/* Reels shell (1.30.0): an Instagram-style dark app. Pure black canvas, white type in the system sans, #A8A8A8 secondary,
   #262626 hairlines and fields; the one colour is vbot's ochre (likes, primary actions, unread dots). Dark only.
   Shell contract: the page never scrolls; the tab bar is the bottom-most bar and pads EXACTLY env(safe-area-inset-bottom).
   While a field is focused (html.typing) the tab bar is removed and the focused view's own bar meets the keyboard. */
:root {
  --wall: #000000; --paper: #121212; --sheet: #262626; --ink: #F5F5F5; --muted: #A8A8A8; --line: #363636; --line-soft: #262626;
  --prussian: #E2B458; --on-prussian: #1A1406; --prussian-wash: #3A2F17; --ochre: #E2B458; --ochre-mark: #E2B458; --ochre-soft: #4A3C1C;
  --bad: #ED4956; --on-bad: #FFFFFF; --press: rgba(255, 255, 255, .08); --shadow: none;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --r1: 8px; --r2: 12px; --r3: 16px;
  --d1: 140ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --tabh: 50px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--wall); color: var(--ink); font: 16px/1.5 var(--sans);
  -webkit-text-size-adjust: 100%; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--prussian); outline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; }

/* ---- header */
.bar { flex: none; position: relative; display: flex; align-items: center; gap: 8px; min-height: calc(52px + var(--sat));
  padding: var(--sat) calc(16px + var(--sar)) 0 calc(16px + var(--sal)); background: var(--wall); border-bottom: 1px solid var(--line-soft); }
.mark { margin: 0; flex: 1; font: 600 21px/1.1 var(--serif); letter-spacing: -.01em; }
.mark em { font-weight: 400; color: var(--prussian); }
.who { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.who::before { content: attr(data-i); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--prussian-wash); color: var(--prussian); font: 600 13px/1 var(--sans); }
.who:empty::before { display: none; }
.back { display: inline-flex; align-items: center; gap: 2px; margin-left: -8px; padding: 0 10px 0 2px; min-height: 44px; border: 0; background: none;
  color: var(--prussian); font-weight: 600; cursor: pointer; border-radius: var(--r1); }
.back:active { background: var(--press); }
.back:not([hidden]) + .mark { visibility: hidden; }

/* ---- the one scroller */
main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }
.view { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 16px calc(16px + var(--sar)) calc(32px + var(--sab)) calc(16px + var(--sal)); }
.view > * { max-width: 680px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: no-preference) { .view { animation: fade var(--d1) var(--ease); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

h2 { font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; }
h2.gap { margin-top: 32px; }
h2.sect { font-size: 18px; margin: 32px auto 4px; }
.lede { color: var(--muted); margin: 0 0 16px; max-width: 60ch; font-size: 15px; }
.err { color: var(--bad); min-height: 1.5em; font-size: 15px; }
.err:empty { min-height: 0; margin: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink);
  border-radius: 999px; padding: 0 18px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform var(--d1) var(--ease), background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--prussian); color: var(--on-prussian); border-color: var(--prussian); }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; color: var(--prussian); padding: 0 4px; cursor: pointer; font-weight: 600; min-height: 44px; }

/* ---- pairing */
#pair { display: flex; flex-direction: column; justify-content: center; padding-top: 32px; }
#pair > * { width: 100%; }
#pair h2 { font-size: 26px; }
#pairForm { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
#pairCode { font: 600 26px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; text-align: center;
  padding: 16px 12px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--sheet); }
#pairCode:focus { outline: none; border-color: var(--prussian); box-shadow: 0 0 0 3px var(--prussian-wash); }
#pairForm .btn { min-height: 50px; }
#pkLogin { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
#pkLogin h2 { font-size: 17px; }
#pkLogin .btn { width: 100%; margin-top: 8px; background: var(--sheet); color: var(--prussian); border-color: var(--line); }

/* passkey offer: a quiet strip at the top of Screen, not a card on every tab */
.offer { flex: none; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  margin: 12px calc(16px + var(--sar)) 0 calc(16px + var(--sal)); padding: 12px 12px 12px 16px; border-radius: var(--r2);
  background: var(--prussian-wash); color: var(--ink); }
.offer h4 { margin: 0; font: 600 15px/1.3 var(--sans); }
.offer .hint { grid-column: 1; margin: 0; font-size: 13px; color: var(--muted); }
.offer .row { grid-column: 2; grid-row: 1 / span 2; margin: 0; gap: 4px; }
.offer .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.offer .link { font-size: 14px; color: var(--muted); font-weight: 500; }
.offer .err { grid-column: 1 / -1; }
#pkErr:empty { display: none; }

/* ---- list of cuts: posters hung on the wall — the poster is the content */
#list { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 10px 12px 10px 10px;
  background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--r3); cursor: pointer; box-shadow: var(--shadow);
  transition: transform var(--d1) var(--ease), background-color var(--d1) var(--ease); }
.item:active { transform: scale(.985); background: var(--paper); }
.item::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; opacity: .6; }
.thumb { width: 72px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--wall); display: block; }
.item .meta { min-width: 0; }
.item h3 { margin: 0 0 2px; font: 600 17px/1.28 var(--serif); letter-spacing: -.005em; overflow-wrap: anywhere; }
.item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .kind { font-size: 13px; margin-top: 2px; }
.state { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: var(--wall); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre-mark); }
.state.done { color: var(--prussian); background: var(--prussian-wash); }
.state.done::before { background: var(--prussian); }
.empty { color: var(--muted); padding: 40px 8px; text-align: center; font-size: 15px; max-width: 34ch; margin: 0 auto; }

/* ---- detail: the player and its timeline are the one bold thing */
#detail h2 { margin-top: 2px; }
#detail .lede { margin-bottom: 14px; }
.stage { background: #000; border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow); }
.stage video, .stage img { display: block; width: 100%; max-height: 58dvh; object-fit: contain; background: #000; }
.parts { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.parts::-webkit-scrollbar { display: none; }
.parts .btn { white-space: nowrap; min-height: 44px; font-size: 14px; padding: 0 14px; }
.parts .btn[aria-pressed="true"] { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.tlwrap { margin-top: 16px; }
.timeline { position: relative; height: 44px; border-radius: var(--r2); background: var(--sheet); border: 1px solid var(--line); cursor: pointer; touch-action: manipulation; overflow: hidden; }
.timeline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 10px); pointer-events: none; }
.timeline .play { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ochre-soft); pointer-events: none; }
.timeline .pin { position: absolute; top: 8px; bottom: 8px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ochre-mark); pointer-events: none; box-shadow: 0 0 0 2px var(--sheet); }
.newc { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); }
.newc:focus-within { border-color: var(--prussian); box-shadow: 0 0 0 3px var(--prussian-wash); }
.newc input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; font-size: 16px; outline: none; }
.newc input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.newc .btn { min-height: 44px; padding: 0 16px; }
.at { font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ochre); min-width: 36px; }
.comments { list-style: none; margin: 8px 0 0; padding: 0; }
.comments li { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: center; min-height: 48px; border-top: 1px solid var(--line-soft); }
.comments li span { font-size: 15px; line-height: 1.4; padding: 10px 0; overflow-wrap: anywhere; }
.comments button.at { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-height: 44px; }
.comments .x { background: none; border: 0; color: var(--muted); cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.comments .x:active { background: var(--press); }

/* rating: one sheet, three sections divided by hairlines */
.card { background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--r3); padding: 4px 16px 16px; margin: 24px auto 0; box-shadow: var(--shadow); }
.card section { padding-top: 16px; }
.card section + section { margin-top: 16px; border-top: 1px solid var(--line-soft); }
.card h4 { margin: 0 0 10px; font: 600 17px/1.3 var(--serif); }
.stars { display: flex; gap: 2px; margin-left: -6px; }
.stars button { font-size: 32px; line-height: 1; background: none; border: 0; padding: 0; width: 48px; height: 48px; color: var(--line); cursor: pointer;
  transition: transform var(--d1) var(--ease), color var(--d1) var(--ease); }
.stars button:active { transform: scale(.88); }
.stars button.on { color: var(--ochre-mark); }
.rubric { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.rubric > span { font-size: 15px; }
.seg { display: inline-grid; grid-template-columns: repeat(5, 40px); padding: 3px; gap: 2px; border-radius: 12px; background: var(--wall); }
.seg button { background: none; border: 0; height: 44px; border-radius: 9px; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--muted);
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.seg button[aria-pressed="true"] { background: var(--prussian); color: var(--on-prussian); font-weight: 700; }
.verdict { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.verdict .btn { padding: 0 8px; white-space: nowrap; }
.verdict button[aria-pressed="true"] { background: var(--prussian); color: var(--on-prussian); border-color: var(--prussian); }
.verdict button[data-v="reject"][aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
textarea { display: block; width: 100%; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--paper); resize: none; font-size: 16px; line-height: 1.45; }
.card textarea { margin-top: 12px; min-height: 96px; }
.card textarea:focus { outline: none; border-color: var(--prussian); box-shadow: 0 0 0 3px var(--prussian-wash); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.saved { color: var(--muted); font-size: 14px; }
.saved.ok { color: var(--prussian); font-weight: 600; }

/* ---- A/B */
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab figure { margin: 0; min-width: 0; }
.ab video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--r2); object-fit: contain; }
.ab figcaption { font-size: 13px; line-height: 1.35; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.abpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.abpick .same { grid-column: 1 / -1; background: var(--sheet); border-color: var(--line); color: var(--muted); min-height: 44px; }
.board { padding: 0; margin: 8px auto 0; list-style: none; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow); }
.board li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; min-height: 60px; }
.board li + li { border-top: 1px solid var(--line-soft); }
.board li.empty { display: block; padding: 24px 16px; }
.board .rk { font: 600 22px/1 var(--serif); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.board li:first-child .rk { color: var(--ochre); }
.board .t { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.board .m { color: var(--muted); font-size: 13px; }
.board .s { color: var(--ochre); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---- chat: messages scroll, composer is the view's footer */
.msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px;
  padding: 16px calc(16px + var(--sar)) 12px calc(16px + var(--sal)); }
.msgs > :first-child { margin-top: auto; }
.msgs .empty { margin: auto; }
.msg { max-width: 82%; padding: 9px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.msg.in { align-self: flex-end; background: var(--prussian); color: var(--on-prussian); border-bottom-right-radius: 6px; }
.msg.out { align-self: flex-start; background: var(--sheet); border: 1px solid var(--line-soft); border-bottom-left-radius: 6px; }
.msg small { display: block; opacity: .72; font-size: 12px; margin-top: 3px; }
.compose { flex: none; padding: 8px calc(12px + var(--sar)) 8px calc(12px + var(--sal)); background: var(--wall); border-top: 1px solid var(--line-soft); }
.compose .box { display: flex; align-items: flex-end; gap: 6px; max-width: 680px; margin: 0 auto; padding: 4px; background: var(--sheet); border: 1px solid var(--line); border-radius: 22px;
  transition: border-color var(--d1) var(--ease); }
.compose .box:focus-within { border-color: var(--prussian); }
.compose textarea { flex: 1; min-width: 0; border: 0; background: none; padding: 7px 4px 7px 12px; max-height: 132px; overflow-y: auto; outline: none; }
.send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--prussian); color: var(--on-prussian); cursor: pointer;
  transition: background-color var(--d1) var(--ease), transform var(--d1) var(--ease); position: relative; }
.send::after { content: ""; position: absolute; inset: -4px; }
.send:active { transform: scale(.92); }
.send:disabled { background: var(--line); color: var(--muted); cursor: default; }


@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { .timeline .play { transition: width .2s linear; } }

/* ---- Scroll (1.24.0): the video owns the screen. Chrome goes dark and gets out of the way; nothing on the stage says
   what the cut is (blind, like a real viewer) until the "i" is tapped. The one flourish is the ochre like-mark. */
html.reel-on .bar { display: none; }
html.reel-on body, html.reel-on { background: #000; }
#scroll.feed { padding: 0; overflow: hidden; position: relative; background: #000; color: #fff; animation: none; }
#scroll.feed > * { max-width: none; margin: 0; }
.reel { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; outline: none; }
.reel::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.slide video, .slide .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.slide .poster { z-index: 0; }
.slide video { z-index: 1; pointer-events: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.slide, .slide video, .slide .poster { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-drag: none; }
/* real-iOS belt-and-braces (1.29.10): every layer of the reel refuses select/loupe/callout/drag/Look Up; media layers
   take no hits so a long-press never lands on an <img>/<video> (iOS image-preview "lift"/zoom); no double-tap zoom anywhere. */
html.reel-on, html.reel-on body, #scroll.feed { touch-action: pan-y; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
.reel, .reel * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; }
.reel *:not(button):not(.glass) { touch-action: pan-y; }
.slide .poster, .slide video { pointer-events: none; }
.speedPill { position: absolute; z-index: 4; top: calc(12px + var(--sat)); left: 50%; margin: 0; padding: 5px 12px; border-radius: 14px;
  background: rgba(20, 24, 28, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font: 600 13px/1 var(--serif);
  opacity: 0; transform: translate(-50%, -6px); transition: opacity 120ms var(--ease), transform 120ms var(--ease); pointer-events: none; }
.slide.speedup .speedPill { opacity: 1; transform: translate(-50%, 0); }
.slide::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; z-index: 2; border-radius: 50%;
  background: rgba(0, 0, 0, .38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='white'/%3E%3C/svg%3E") center / 34px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity 160ms var(--ease), transform 160ms var(--ease); pointer-events: none; }
.slide.paused::after { opacity: 1; transform: none; }
.slide.end { display: grid; place-items: center; text-align: center; padding: 24px; }
.slide.end::after { display: none; }
.slide.end p { font: 400 20px/1.35 var(--serif); color: rgba(255, 255, 255, .8); margin: 0 0 16px; }
.burst { position: absolute; z-index: 3; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5S3.5 15.2 3.5 9.3A4.6 4.6 0 0 1 12 6.8a4.6 4.6 0 0 1 8.5 2.5c0 5.9-8.5 11.2-8.5 11.2z' fill='%23E2B458'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }
.burst.go { animation: burst 700ms var(--ease) forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 18% { opacity: 1; transform: scale(1.15) rotate(-6deg); }
  40% { transform: scale(1) rotate(-8deg); } 100% { opacity: 0; transform: scale(1.1) translateY(-40px) rotate(-8deg); } }
.hud { position: absolute; z-index: 4; top: calc(12px + var(--sat)); right: calc(12px + var(--sar)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.glass { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(20, 24, 28, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--d1) var(--ease); }
.glass:active { transform: scale(.9); }
#muteBtn .off { display: none; }
#scroll.muted #muteBtn .off { display: inline; }
#scroll.muted #muteBtn .on { display: none; }
.scrub { position: absolute; z-index: 4; left: 0; right: 0; bottom: var(--nbh); height: 2px; background: rgba(255, 255, 255, .16); pointer-events: none; }
.scrub > i { display: block; height: 100%; background: rgba(255, 255, 255, .85); transform-origin: 0 50%; transform: scaleX(0); }
.start { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px;
  border: 0; color: #fff; background: rgba(0, 0, 0, .55); cursor: pointer; text-align: center; }
.start .ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .7); margin-bottom: 8px; }
.start b { font: 400 26px/1.2 var(--serif); }
.start small { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .75); max-width: 30ch; }
.empty.onblack { position: absolute; inset: 0; margin: auto; height: fit-content; color: rgba(255, 255, 255, .7); }
.sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; max-height: 82%; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px calc(20px + var(--sar)) 20px calc(20px + var(--sal)); background: var(--paper); color: var(--ink);
  border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); transform: translateY(100%); transition: transform 220ms var(--ease); }
.sheet.up { transform: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font: 600 21px/1.25 var(--serif); margin: 0 0 4px; overflow-wrap: anywhere; }
.sheet h4 { font: 600 16px/1.3 var(--serif); margin: 18px 0 6px; }
.sheet p { margin: 0 0 8px; font-size: 15px; }
.sheet .meta { color: var(--muted); font-size: 14px; }
.sheet .stars { margin: 8px 0 12px -6px; }
.sheet textarea { margin-top: 12px; }
.sheet .note { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--sheet); font-size: 16px; }
.sheet .note:focus, .sheet textarea:focus { outline: none; border-color: var(--prussian); box-shadow: 0 0 0 3px var(--prussian-wash); }
.curve { display: block; width: 100%; height: 72px; overflow: visible; }
.curve .area { fill: var(--prussian-wash); }
.curve .line { fill: none; stroke: var(--prussian); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rcard { background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--r3); padding: 14px 16px 12px; margin: 0 auto 12px; box-shadow: var(--shadow); }
.rcard h3 { margin: 0; font: 600 17px/1.3 var(--serif); overflow-wrap: anywhere; }
.rcard .meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.rcard .axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.rcard .stat { margin: 8px 0 2px; font-size: 14px; }
.take { position: absolute; z-index: 5; left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(var(--nbh) + 14px); padding: 6px 6px 6px 16px;
  border-radius: 26px; background: rgba(20, 24, 28, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff;
  transform: translateY(12px); opacity: 0; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.take.up { transform: none; opacity: 1; }
.takerow { display: flex; align-items: center; gap: 4px; }
.take .q { flex: 1; font: 400 17px/1.2 var(--serif); }
.take button { border: 0; color: #fff; cursor: pointer; background: none; }
.take .tk { width: 48px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background-color var(--d1) var(--ease), transform var(--d1) var(--ease); }
.take .tk:active { transform: scale(.9); }
.take .tk[aria-pressed="true"] { background: var(--ochre-mark); color: #1C2528; }
.take .tx { width: 40px; height: 44px; display: grid; place-items: center; color: rgba(255, 255, 255, .6); }
.take .why { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 4px 0; }
.take .why button { min-height: 36px; padding: 0 14px; border-radius: 18px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .12); }
.take .why button[aria-pressed="true"] { background: #fff; color: #1C2528; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } .burst.go { animation: none; opacity: 1; } .take { transition: none; } .speedPill { transition: none; } }

/* ---- feed-first studio (1.25.x): everything Kyle does happens on the feed. Left: menu. Right top: info, sound.
   Right rail: rate, A/B (only when this cut has another version), chat. Bottom: the note bar, the primary feedback
   path, Reels-style: type while it plays, each note pinned to the moment typing started. Blind: no titles, no scores. */
#scroll.feed { --pb: max(8px, var(--sab)); --nbh: calc(52px + var(--pb)); margin-bottom: var(--kb, 0px); }
#scroll.feed.kbup { --pb: 8px; }
.hud-l { left: calc(12px + var(--sal)); right: auto; }
.rail { position: absolute; z-index: 4; right: calc(10px + var(--sar)); bottom: calc(var(--nbh) + 16px); display: flex; flex-direction: column; gap: 14px; }
.glass.big { width: 52px; height: auto; min-height: 52px; border-radius: 26px; padding: 10px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 600 11px/1.1 var(--sans); letter-spacing: .01em; }
.glass.big svg { flex: none; }
.glass.big span { color: rgba(255, 255, 255, .88); }
.rail, .hud { transition: opacity var(--d1) var(--ease); }
#scroll.sheeted .rail, #scroll.sheeted .rail * { opacity: 0; pointer-events: none; }
.scrub { height: 3px; }
.scrub .pins { position: absolute; inset: -4px 0; }
.scrub .pins i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #E2B458;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); }
.notebar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px calc(12px + var(--sar)) var(--pb) calc(12px + var(--sal));
  background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .72)); }
.notebar input { flex: 1; min-width: 0; height: 44px; padding: 0 14px 0 72px; margin-left: -68px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease); }
.notebar input::placeholder { color: rgba(255, 255, 255, .7); opacity: 1; }
.notebar input:focus { background: rgba(20, 24, 28, .72); border-color: rgba(226, 180, 88, .7); }
.noteat { position: relative; z-index: 1; flex: none; width: 52px; margin-left: 8px; text-align: center; padding: 3px 0; border-radius: 9px;
  font: 600 13px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); pointer-events: none; white-space: nowrap;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.noteat.held, .noteat.flash { background: #E2B458; color: #1C2528; }
.notesend { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: #E2B458; color: #1C2528; transition: transform var(--d1) var(--ease), background-color var(--d1) var(--ease); }
.notesend:active { transform: scale(.92); }
.notesend:disabled { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6); cursor: default; }
.sheet { padding-bottom: max(20px, var(--sab)); }
#scroll.kbup .sheet { padding-bottom: 12px; }
.shead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.shead h3 { flex: 1; margin: 0; }
.sheetx { flex: none; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; }
.sheetx:active { background: var(--press); }
.sheet .seg { grid-template-columns: repeat(5, 38px); }
.sheet .row { margin-top: 8px; }
/* the rate sheet is taller than the space: its Save row stays pinned to the sheet bottom while the rubric scrolls */
.sheet[data-kind="rate"] .row { position: sticky; bottom: calc(-1 * max(20px, var(--sab))); margin: 8px -20px calc(-1 * max(20px, var(--sab))); padding: 10px 20px max(20px, var(--sab)); background: var(--paper); border-top: 1px solid var(--line-soft); }
#scroll.kbup .sheet[data-kind="rate"] .row { bottom: -12px; margin-bottom: -12px; padding-bottom: 12px; }
/* the quick take leaves the rail its column */
#scroll.feed .take { right: calc(74px + var(--sar)); }
.menu { display: flex; flex-direction: column; margin: 4px -8px 0; }
.mrow { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; min-height: 64px; padding: 10px 8px; border: 0;
  background: none; text-align: left; cursor: pointer; }
.mrow:active { background: var(--press); }
.mrow + .mrow { border-top: 1px solid var(--line-soft); }
.mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--prussian-wash); color: var(--prussian); font-size: 20px; line-height: 1; }
.mrow b { display: block; font: 600 17px/1.3 var(--serif); }
.mrow small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.sheet .ab { margin-top: 10px; }
.abside { position: relative; padding: 0; border: 2px solid transparent; border-radius: calc(var(--r2) + 2px); background: none; cursor: pointer; min-width: 0; }
.abside video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 42dvh; background: #000; border-radius: var(--r2); object-fit: contain; pointer-events: none; }
.abside span { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600; }
.abside[aria-pressed="true"] { border-color: var(--ochre-mark); }
.abside[aria-pressed="true"] span::after { content: " \266A"; }
.chatsheet { display: flex; flex-direction: column; height: 78%; max-height: 78%; overflow: hidden; padding: 8px 0 0; }
.chatsheet .chathead { flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 calc(16px + var(--sar)) 4px calc(20px + var(--sal)); border-bottom: 1px solid var(--line-soft); }
.chatsheet .grab { grid-column: 1 / -1; }
.chatsheet h3 { margin: 0; font-size: 19px; }
.chatsheet .msgs { background: var(--wall); }
.chatsheet .compose { padding-bottom: max(8px, var(--sab)); }
#scroll.kbup .chatsheet .compose { padding-bottom: 8px; }
/* ---- 1.26.0 voice call (collaborators): header key, Scroll HUD key, and a slim call bar over the tab bar */
.callbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--prussian); background: var(--prussian-wash); color: var(--prussian); font: 600 14px/1 var(--sans); }
.callbtn:active { transform: scale(.96); }
.callbtn[aria-pressed="true"] { background: var(--prussian); color: var(--on-prussian); }
.glass.call[aria-pressed="true"] { background: #2E7D4F; }
.callbar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px calc(16px + var(--sar)) 10px calc(16px + var(--sal));
  background: var(--sheet); border-top: 1px solid var(--line-soft); box-shadow: var(--shadow); }
html.reel-on .callbar { background: #111; color: #fff; border-top-color: rgba(255, 255, 255, .08); }
.callbar .orb { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 90ms linear, background-color var(--d1) var(--ease); }
.callbar[data-state="listening"] .orb, .callbar[data-state="user"] .orb { background: #2E7D4F; }
.callbar[data-state="thinking"] .orb { background: var(--ochre-mark); }
.callbar[data-state="speaking"] .orb { background: var(--prussian); }
.cb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cb-text b { font-size: 14px; }
.cb-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.reel-on .cb-text span { color: rgba(255, 255, 255, .7); }
.btn.end { background: var(--bad); color: var(--on-bad); border-color: var(--bad); min-height: 40px; padding: 0 18px; }

/* =========================== Reels shell (1.30.0) =========================== */
.bar { border-bottom: 0; min-height: calc(44px + var(--sat)); }
.mark { font: 700 22px/1.1 var(--sans); letter-spacing: -.02em; }
.mark.small { font-size: 17px; text-align: center; padding-right: 36px; }
.back:not([hidden]) + .mark { visibility: visible; }
.back { color: var(--ink); }
.callbtn { border: 0; background: none; color: var(--ink); min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.callbtn[aria-pressed="true"] { color: #3FB66B; background: none; }
.view { padding-bottom: 32px; }
h2 { font: 700 20px/1.25 var(--sans); }
.btn { border-color: var(--sheet); background: var(--sheet); border-radius: var(--r2); }
.btn.primary { background: var(--ochre); color: var(--on-prussian); border-color: var(--ochre); }

/* tab bar: bottom-most, consumes the home-indicator inset exactly once */
.tabs { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #000; border-top: 1px solid var(--line-soft);
  padding: 0 var(--sar) var(--sab) var(--sal); }
.tabs button { position: relative; height: var(--tabh); border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: transform var(--d1) var(--ease); }
.tabs button:active { transform: scale(.9); }
.tabs button[aria-current="page"] .fl { fill: currentColor; }
.tabs button[aria-current="page"] svg { stroke-width: 2.4; }
.tabs .dot { position: absolute; top: 9px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
html.typing .tabs { display: none; }
html.reel-on .tabs { border-top-color: #000; }
.av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ochre); color: #1A1406;
  font: 700 14px/1 var(--sans); text-transform: uppercase; object-fit: cover; }
.av.tab { width: 26px; height: 26px; font-size: 12px; }
.tabs button[aria-current="page"] .av.tab { box-shadow: 0 0 0 1.5px #000, 0 0 0 3px var(--ink); }
.av.big { width: 44px; height: 44px; font-size: 18px; }
.av.huge { width: 86px; height: 86px; font-size: 34px; }

/* ---- Reels: chrome over the video; the note bar sits on the tab bar */
html:not(.typing) #scroll.feed { --pb: 8px; }
.top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(6px + var(--sat)) calc(8px + var(--sar)) 24px calc(16px + var(--sal));
  background: linear-gradient(rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.reelsmark { margin: 0; font: 700 24px/1.2 var(--sans); letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.topr { display: flex; gap: 2px; pointer-events: auto; }
.ico { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #fff; display: grid; place-items: center; cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); transition: transform var(--d1) var(--ease); }
.ico:active { transform: scale(.88); }
.ico.call[aria-pressed="true"] { color: #3FB66B; }
.rail { right: calc(4px + var(--sar)); bottom: calc(var(--nbh) + 14px); gap: 10px; align-items: center; }
.act { width: 52px; min-height: 52px; border: 0; background: none; color: #fff; padding: 2px 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; font: 600 12px/1.1 var(--sans); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); transition: transform var(--d1) var(--ease); }
.act:active { transform: scale(.86); }
.act[aria-pressed="true"] { color: var(--ochre); }
#likeBtn[aria-pressed="true"] path { fill: currentColor; }
#dislikeBtn[aria-pressed="true"] path { fill: currentColor; fill-opacity: .3; }
.act.pop svg { animation: pop 320ms var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.cap { position: absolute; z-index: 4; left: calc(16px + var(--sal)); right: calc(72px + var(--sar)); bottom: calc(var(--nbh) + 14px); color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55); cursor: pointer; transition: opacity var(--d1) var(--ease); }
.capby { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.capby .av { width: 28px; height: 28px; font-size: 13px; text-shadow: none; }
.capdot { color: var(--ochre); font-weight: 600; font-size: 13px; }
.capdot:empty { display: none; }
.captitle { margin: 8px 0 2px; font: 600 15px/1.3 var(--sans); overflow-wrap: anywhere; }
.captitle:empty { display: none; }
.capbrief { margin: 0; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.capbrief:empty { display: none; }
.cap.open .capbrief { -webkit-line-clamp: 8; }
#scroll.sheeted .cap, #scroll.sheeted .top { opacity: 0; pointer-events: none; }
#scroll.feed .take { bottom: calc(var(--nbh) + 14px); }
#scroll.feed:has(.take.up) .cap { opacity: 0; pointer-events: none; }
.scrub { height: 2px; }
.notebar { background: #000; padding-top: 8px; }
.notebar input { background: transparent; border-color: var(--line); }
.notebar input:focus { background: #121212; }
.slide.end p { font: 600 18px/1.35 var(--sans); }
.start b { font: 700 24px/1.2 var(--sans); }
.speedPill { font: 600 13px/1 var(--sans); }
.take .q { font: 600 16px/1.2 var(--sans); }
.sheet { background: #262626; }
.sheet .note, .sheet textarea { background: #121212; }
.sheet .grab { background: #555; }

/* ---- Search: rounded field, filter chips, 3-column grid of 9:16 posters */
.searchbox { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--sheet); color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; }
.searchbox input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; margin-bottom: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; position: relative; }
.chips button::after { content: ""; position: absolute; inset: -4px 0; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
#list > .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-left: calc(-16px - var(--sal)); margin-right: calc(-16px - var(--sar)); max-width: none; }
@media (min-width: 712px) { #list > .grid { margin-left: auto; margin-right: auto; max-width: 680px; } }
.grid .item { position: relative; display: block; padding: 0; border: 0; border-radius: 0; background: #121212; box-shadow: none; aspect-ratio: 9 / 16; overflow: hidden; }
.grid .item::after { display: none; }
.grid .item:active { transform: none; opacity: .8; }
.grid .thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: #121212; }
.grid .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; }
.grid .item h3 { font: 600 12px/1.25 var(--sans); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid .state { margin-top: 4px; padding: 0; background: none; font-size: 11px; color: rgba(255, 255, 255, .8); }
.grid .state.done { color: var(--ochre); background: none; }
.grid .state.done::before { background: var(--ochre); }
.grid .multi { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.grid .empty { grid-column: 1 / -1; }
.card, .rcard, .board { background: #121212; border-color: var(--line-soft); }
.item h3, .card h4, .rcard h3, .sheet h3, .sheet h4, .mrow b, .board .rk { font-family: var(--sans); }

/* ---- Chat (a full tab): header, messages, composer on the tab bar */
.chatv { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chatv > * { max-width: none; margin: 0; }
.chathead { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px calc(16px + var(--sar)) 12px calc(16px + var(--sal)); border-bottom: 1px solid var(--line-soft); }
.chathead h3 { margin: 0; font: 600 16px/1.25 var(--sans); }
.chathead small { color: var(--muted); font-size: 13px; }
.msgs { background: #000; }
.msg.in { background: var(--ochre); color: #1A1406; border-radius: 22px; border-bottom-right-radius: 6px; }
.msg.out { background: var(--sheet); border: 0; border-radius: 22px; border-bottom-left-radius: 6px; }
.compose { background: #000; border-top: 0; padding-bottom: 8px; }
.compose .box { background: none; border-color: var(--line); }
.send { width: auto; height: 36px; border-radius: 18px; padding: 0 12px; background: none; color: var(--ochre); font-weight: 700; font-size: 15px; }
.send:disabled { background: none; color: rgba(226, 180, 88, .45); }
.chatack { margin: 0; padding: 2px calc(16px + var(--sar)) 0 calc(16px + var(--sal)); font-size: 12.5px; color: var(--muted); }

/* ---- My Requests (1.39.0): Chat/My Requests switch + request cards ---- */
.chatsw { margin-left: auto; display: flex; gap: 2px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 2px; flex: none; }
.chatsw button { border: 0; background: none; color: var(--muted); font: 600 12.5px var(--sans); padding: 5px 10px; border-radius: 12px; position: relative; }
.chatsw button[aria-selected="true"] { background: var(--prussian); color: var(--on-prussian); }
.rqdot { position: absolute; top: 2px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.requests { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px calc(12px + var(--sar)) 10px calc(12px + var(--sal)); background: #000; }
.requests .empty { margin: 20px auto; color: var(--muted); text-align: center; }
.shipped { margin: 0 0 10px; font: 700 13px var(--sans); color: var(--ochre); text-align: center; }
.rqcard { background: var(--sheet); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.rqcard.done { border-color: var(--ochre); animation: rq-ship .6s ease-out; }
@keyframes rq-ship { 0% { box-shadow: 0 0 0 0 rgba(226, 180, 88, .55); } 100% { box-shadow: 0 0 0 10px rgba(226, 180, 88, 0); } }
.rqhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rqpill { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .02em; padding: 3px 8px; border-radius: 10px; background: var(--line-soft); color: var(--muted); }
.rqpill.done { background: var(--ochre); color: #1A1406; }
.rqpill.in_progress { background: var(--prussian); color: var(--on-prussian); }
.rqpill.needs_info { background: #5a3; color: #fff; }
.rqtime { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.rqtext { margin: 0 0 6px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rqnote { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.rqposted { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ochre); margin-bottom: 6px; }
.rqmedia { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.rqmedia figure { margin: 0; }
.rqmedia video { width: 100%; border-radius: 8px; display: block; background: #000; }
.rqmedia figcaption { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: center; }
.rqbtns { display: flex; gap: 8px; margin-top: 8px; }
.rqbtns button { flex: 1; }
.rqreply { margin-top: 8px; display: flex; gap: 6px; }
.rqreply input { flex: 1; min-width: 0; }

/* ---- Activity: notification rows */
#actList h4 { margin: 8px 0 6px; font: 700 16px/1.3 var(--sans); }
.act-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font-size: 14px; line-height: 1.35; }
.act-row:active { background: var(--press); }
.act-row .av { width: 44px; height: 44px; }
.act-row img.av { border-radius: 6px; width: 40px; height: 56px; }
.act-row .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.act-row time { color: var(--muted); }
.act-row.new .tx::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--ochre); vertical-align: middle; }

/* ---- Profile */
.phead { display: flex; align-items: center; gap: 24px; margin-top: 4px; }
.pstats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pstats b { display: block; font: 700 18px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.pstats span { font-size: 13px; }
.pname { margin: 12px auto 0; font-weight: 600; font-size: 14px; }
.pbio { margin: 2px auto 0; font-size: 14px; }
.pbtns { display: flex; gap: 8px; margin-top: 14px; }
.pbtn { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: var(--sheet); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.pbtn:active { background: #363636; }
#profile .offer { margin: 16px auto 0; background: #121212; border: 1px solid var(--line); }
#profile .menu { margin-top: 20px; border-top: 1px solid var(--line-soft); }
.menu .row { margin: 0; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--ink);
  text-align: left; font-size: 15px; cursor: pointer; }
.menu .row small { display: block; color: var(--muted); font-size: 13px; }
.menu .row .chev { color: var(--muted); font-size: 22px; }
.menu .row:active { background: var(--press); }
#pOut { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .act.pop svg { animation: none; } .tabs button, .act, .ico, .cap { transition: none; } }

/* Profile menu (1.30.0) */
.iconbtn { flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--ink); cursor: pointer; }
.iconbtn:active { background: var(--press); }
.scrim { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .5); opacity: 0; transition: opacity var(--d1) var(--ease); }
.scrim.up { opacity: 1; }
.psheet { position: fixed; z-index: 21; max-height: 85dvh; }
.psheet .menu { margin: 4px 0 0; }
.psheet #pmBack { margin: 0 0 0 -10px; font-size: 30px; line-height: 1; color: var(--ink); }
.menu .row.danger { color: var(--bad); }
.menu .row .tog { flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--line); position: relative; transition: background var(--d1) var(--ease); }
.menu .row .tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform var(--d1) var(--ease); }
.menu .row[aria-checked="true"] .tog { background: var(--prussian); }
.menu .row[aria-checked="true"] .tog::after { transform: translateX(20px); }
.psheet .pstats.wide { display: flex; justify-content: space-around; margin: 12px 0; }
.psheet .btn.primary { width: 100%; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .scrim, .menu .row .tog, .menu .row .tog::after { transition: none; } }

/* ==== 1.31.0 momentum layer: verdict-first rating, rewards, finish line, state everywhere (docs/studio-redesign/DESIGN.md) ==== */
:root { --ok: #5BD08A; --on-ok: #062012; --d2: 200ms; --d3: 360ms; --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Reels top bar: ring (rated / total) + what is left + day streak */
.momentum { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.mring { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.mring svg { position: absolute; inset: 2px; transform: rotate(-90deg); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.mring circle { fill: none; stroke-width: 3.2; }
.mring .trk { stroke: rgba(255, 255, 255, .28); }
.mring .fil { stroke: var(--ochre); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset var(--d3) var(--spring); }
.mring b { position: relative; font: 700 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.momentum.done .fil { stroke: var(--ok); }
.mtext { display: flex; flex-direction: column; min-width: 0; }
.mtext b { font: 700 17px/1.15 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.mtext small { font: 500 12px/1.2 var(--sans); color: rgba(255, 255, 255, .78); white-space: nowrap; }
.mtext small:empty { display: none; }
.streak { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px 0 7px; border-radius: 13px; background: rgba(0, 0, 0, .35);
  color: var(--ochre); font: 700 13px/1 var(--sans); font-variant-numeric: tabular-nums; text-shadow: none; }

/* Rail Rate key carries state: filled star when rated, verdict tint */
#rateBtn.rated path { fill: currentColor; }
#rateBtn.rated { color: var(--ochre); }
#rateBtn[data-v="approve"] { color: var(--ok); }
#rateBtn[data-v="reject"] { color: var(--bad); }

/* Rate sheet: verdict tiles first */
.verdict.tiles { gap: 8px; margin-top: 12px; }
.verdict .vtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 76px; padding: 0 6px; border-radius: var(--r2);
  background: #121212; border: 1px solid var(--line); color: var(--ink); font: 600 14px/1.1 var(--sans);
  transition: transform var(--d1) var(--ease), background var(--d2) var(--ease), border-color var(--d2) var(--ease); }
.verdict .vtile .vg { font-size: 22px; line-height: 1; color: var(--muted); transition: color var(--d2) var(--ease); }
.verdict .vtile:active { transform: scale(.94); }
.verdict .vtile[aria-pressed="true"] { transform: scale(1.02); }
.verdict .vtile[aria-pressed="true"] .vg { color: inherit; }
.verdict button[data-v="approve"][aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.sheet .stars.big { justify-content: space-between; margin: 14px 0 4px; max-width: 300px; }
.stars.big button { width: 52px; height: 52px; font-size: 38px; transition: color var(--d1) var(--ease), transform var(--d1) var(--ease); }
.stars button.pop { animation: starpop var(--d2) var(--spring) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes starpop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.whybox textarea { width: 100%; }
.whybox.nudge { animation: nudge 300ms var(--ease); }
.whybox.nudge textarea { border-color: var(--bad); }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rdetail { margin-top: 12px; border-top: 1px solid var(--line); }
.rdetail summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.rdetail summary::-webkit-details-marker { display: none; }
.rdetail summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px 10px; transition: transform var(--d2) var(--ease); }
.rdetail[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.rdetail summary .cnt { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; }
.rdetail .rubric { padding-bottom: 8px; }
.sheet[data-kind="rate"] .savebar .btn.primary { min-width: 168px; }
.sheet[data-kind="rate"][data-v="approve"] .savebar .btn.primary { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.sheet[data-kind="rate"][data-v="reject"] .savebar .btn.primary { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }

/* Save reward: a stamp over the video; never intercepts touches */
.stamp { position: absolute; z-index: 5; left: 50%; top: 42%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 26px 16px;
  border-radius: 22px; background: rgba(18, 18, 18, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); opacity: 0; text-align: center; }
.stamp .sglyph { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ochre); color: var(--on-prussian); font: 700 28px/1 var(--sans); }
.stamp[data-v="approve"] .sglyph, .stamp[data-v="all"] .sglyph { background: var(--ok); color: var(--on-ok); }
.stamp[data-v="reject"] .sglyph { background: var(--bad); color: var(--on-bad); }
.stamp b { font: 700 19px/1.2 var(--sans); }
.stamp small { font: 500 13px/1.2 var(--sans); color: rgba(255, 255, 255, .78); }
.stamp small:empty { display: none; }
.stamp.go { animation: stamp 1700ms var(--ease) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); animation-timing-function: var(--spring); }
  21% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
}

/* End of feed: caught up */
.endcard { display: flex; flex-direction: column; align-items: center; max-width: 300px; }
.endring { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--ok); color: var(--ok); font: 700 38px/1 var(--sans); margin-bottom: 18px; }
.endcard h3 { margin: 0 0 6px; font: 700 22px/1.2 var(--sans); color: #fff; }
.slide.end .endcard p { margin: 0 0 22px; font: 400 15px/1.4 var(--sans); color: var(--muted); }
.endbtns { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.endbtns .btn { width: 100%; }

/* Poster tiles (Search + Profile): status as a compact badge, lighter scrim */
.grid .meta { padding: 28px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.badge { position: absolute; z-index: 1; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: rgba(0, 0, 0, .55); color: var(--ochre); font: 700 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.badge i { font-style: normal; }
.badge.v-approve i { color: var(--ok); }
.badge.v-reject i { color: var(--bad); }
.badge.todo { width: 10px; height: 10px; padding: 0; top: 9px; left: 9px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }

/* Profile: ring avatar, 4 stats, grid tabs, edge-to-edge grid */
.pring { --p: 0; flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: conic-gradient(var(--ochre) calc(var(--p) * 1%), var(--line) 0); }
.pring .av.huge { box-shadow: 0 0 0 3px var(--wall); }
.phead { gap: 16px; }
.pstats { grid-template-columns: repeat(4, 1fr); }
.pstats span { display: block; color: var(--ink); line-height: 1.2; }
.ptabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px calc(-16px - var(--sar)) 2px calc(-16px - var(--sal)); border-bottom: 1px solid var(--line-soft); }
.ptabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 13px/1 var(--sans); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--d1) var(--ease); }
.ptabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 calc(-16px - var(--sar)) 0 calc(-16px - var(--sal)); }
.pgrid .empty { grid-column: 1 / -1; padding: 32px 16px; text-align: center; color: var(--muted); }
@media (min-width: 712px) { .ptabs, .pgrid { margin-left: auto; margin-right: auto; max-width: 680px; } }

@media (prefers-reduced-motion: reduce) {
  .stamp.go { animation: none; opacity: 1; transform: translate(-50%, -50%); }
  .stars button.pop, .whybox.nudge { animation: none; }
  .mring .fil, .verdict .vtile { transition: none; }
}
#scroll.atend .cap, #scroll.atend .rail, #scroll.atend .notebar { opacity: 0; pointer-events: none; }

/* ---- 1.35.0 Record voiceover: Activity cards + teleprompter recorder */
.vocards { padding: 0 16px; }
.vocards h4, .vo h4 { margin: 18px 0 8px; font: 600 15px/1.2 var(--sans); }
.vocard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 8px; border: 1px solid var(--ochre-soft);
  border-radius: var(--r3); background: var(--paper); text-align: left; cursor: pointer; }
.vocard:active { background: var(--press); }
.vocard .vomic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--prussian-wash); color: var(--prussian); }
.vocard .votx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vocard .votx small { color: var(--prussian); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vocard .votx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vocard .votx span { color: var(--muted); font-size: 13px; }
.vocard .vogo { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--prussian); color: var(--on-prussian); font-weight: 600; font-size: 14px; }
.vocard.s-done { border-color: var(--line-soft); }
.vocard.s-done .vogo { background: var(--sheet); color: var(--ink); }
.vo { padding: 12px 16px 32px; }
.vohead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vohead b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.votime { flex: none; color: var(--muted); font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tp { height: 46vh; min-height: 220px; overflow-y: auto; padding: 18vh 4px; border-radius: var(--r3); background: var(--paper); cursor: pointer;
  scroll-behavior: smooth; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.tpl { margin: 0 12px 22px; font: 600 27px/1.32 var(--serif); letter-spacing: -.01em; color: #5E5E5E; transition: color var(--d1) var(--ease); }
.tpl.past { color: #3A3A3A; }
.tpl.on { color: var(--ink); }
.tpl.flash { animation: tpflash .5s var(--ease); }
@keyframes tpflash { 0% { color: var(--prussian); } 100% { color: var(--ink); } }
.vometer { display: block; width: 100%; height: 40px; margin: 10px 0 0; }
.vorecrow { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.vorecrow small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.recbtn { flex: none; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--ink); background: transparent; cursor: pointer; padding: 0; }
.recbtn i { display: block; width: 58px; height: 58px; border-radius: 50%; background: var(--bad); transition: all var(--d1) var(--ease); }
.recbtn.on i { width: 30px; height: 30px; border-radius: 7px; }
.recbtn:active { transform: scale(.96); }
.voctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.voctl .btn { min-height: 44px; font-size: 14px; padding: 0 6px; }
.votake { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.votake span { color: var(--muted); font-size: 13px; flex: 1; }
.votake audio { width: 100%; height: 36px; }
.votake .link { border: 0; background: none; color: var(--bad); min-height: 36px; cursor: pointer; }
.vost { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r2); background: var(--sheet); font-size: 14px; }
.vost.ok { color: var(--prussian); }
.vost.bad { color: var(--bad); }
.vosend { width: 100%; min-height: 50px; margin-top: 16px; font-weight: 600; }
.vo .hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.vo .err { min-height: 0; margin: 6px 0 0; font-size: 14px; color: var(--bad); }

/* 1.39.0 his own notifications */
.pushrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.pushrow button { font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.pushrow button:disabled { opacity: .55; cursor: default; }
.pushrow small { opacity: .75; }
