/* Video Dance. Builds on app.css tokens and the wig.css form styles. */
.dance video { display: block; width: 100%; max-height: 62vh; background: var(--well); border-radius: 16px; object-fit: contain; }
/* The preview is mirrored, the way a mirror is, so moving left moves left.
   And it is capped. Found 2026-11-28: with no cap the preview rendered 488px tall and pushed
   Start recording below the fold on an ordinary laptop window, so a person saw their own face,
   a microphone meter, and no button until they scrolled. The cap is in viewport units so the
   button is reachable on a short window and the preview still fills a phone. */
.dance .rec-live { transform: scaleX(-1); max-height: 46vh; object-fit: cover; width: 100%; }
.dance .clip { display: grid; gap: 8px; }
.dance .clip-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.dance .clip-label b { color: var(--text); }
/* The Dance's progress bar (Paul, 2026-11-19). Big on purpose: it is the first thing on a Dance
   screen. Every edge that carries meaning (filled, empty, your turn) uses --cta or --muted, both
   well past 3:1 on --bg in light and dark. */
/* app.css has an older one-line .progress (6px tall, grey, overflow hidden) for another screen.
   Left in force, it clipped this whole bar down to a 6px grey strip, which is what Paul saw as
   "empty grey" on 2026-11-19. Undo it here. */
.dance .progress { height: auto; overflow: visible; background: none; border-radius: 0; box-shadow: none; }
/* Paul, 2026-11-30: "tighten Round 1 up so smaller white space with the bar itself, so Miss or
   meet aligns vertically. And center each round under the respective set of ovals. Might even
   have an accent color bar go around the whole progress bar." So the labels sit close under
   their own ovals and centred on them, the flag sits on the same line as the labels rather than
   floating above them, and the whole thing lives inside a soft accent frame that holds it
   together as one object. */
.dance .progress { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px;
  align-items: start; margin: 2px 0 10px; padding: 10px 12px 8px;
  border: 1.5px solid var(--trust); border-radius: 14px; background: var(--trust-wash);
  /* Paul, 2026-11-30: "the highlight surrounding the progress bar feels too heavy on orange,
     could it be blue?" The frame is blue now. The filled halves stay in the call-to-action
     colour, so the eye still lands on what is done rather than on the box around it. */ }
.dance .pr-round { display: grid; gap: 2px; min-width: 0; justify-items: center; }
.dance .pr-bar { display: flex; gap: 3px; width: 100%; }
.dance .pr-bar i { flex: 1; height: 14px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.dance .pr-bar i:first-child { border-radius: 99px 0 0 99px; }
.dance .pr-bar i:last-child { border-radius: 0 99px 99px 0; }
.dance .pr-bar i.on { background: var(--cta); box-shadow: none; }
.dance .pr-bar i.now { box-shadow: inset 0 0 0 3px var(--cta); }
.dance .pr-label { font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap;
  text-align: center; }
.dance .pr-round.cur .pr-label { color: var(--text); }
/* The flag sits level with the ovals, so its text line meets the round labels. */
.dance .pr-end { display: flex; align-items: flex-start; }
.dance .pr-flag { font-size: 14px; font-weight: 700; line-height: 1; padding: 6px 10px;
  margin-top: 0; border-radius: 99px; border: 1.5px solid var(--muted); color: var(--muted);
  white-space: nowrap; }
.dance .pr-end.on .pr-flag { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.dance .count { font-variant-numeric: tabular-nums; }
.dance .reasons { display: flex; flex-wrap: wrap; gap: 8px; }
/* Side by side when there is room, stacked on a narrow phone (Paul, 2026-11-24: "'Good, now
   record my question' should be next to 'Record again'"). */
/* Two buttons, side by side, on every screen width. Paul has asked for this more than once:
   the auto-fit version needed 190px a column, so on a phone the pair fell back to a stack and
   only looked right on a desktop. A fixed two-column grid cannot do that. Long labels wrap
   inside their own button instead of pushing the pair apart. */
.dance .row-btns { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; align-items: stretch; }
.dance .row-btns > .btn { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.dance .thread-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.dance .thread-row .small { color: var(--muted); }
.dance .pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--trust-wash); color: var(--trust); white-space: nowrap; }
.dance .pill.you { background: var(--coral-wash); color: var(--cta-ink); }
/* The code is the thing a dancer hands out, so it reads like a code: big, spaced, selectable.
   Paul, 2026-11-27. The direct link moved behind a disclosure under it. */
.codebox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 30px;
  letter-spacing: .14em; text-align: center; background: var(--surface-2); border-radius: 12px;
  padding: 14px 10px; margin: 0; user-select: all; }
.invite-draft { background: var(--surface-2); border-radius: 12px; padding: 12px 14px;
  margin: 0; line-height: 1.5; }
.dance .linkbox { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
/* Said before the camera turns on, so it has to read as information, not fine print. */
.dance .disclose { background: var(--surface-2); }
.dance .disclose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.dance .disclose li { font-size: 16px; line-height: 1.45; }
.dance .clip.gone p { margin: 0; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line); }
/* The headline number, and the one that can say the claim is wrong. */
.adm .claim { border-left: 4px solid var(--line); }
.adm .claim.alive { border-left-color: var(--trust-fill); }
.adm .claim.dead { border-left-color: var(--cta); }

/* "Something off? Tell us". Quiet, below everything, above the bottom nav. It expands in place
   rather than covering the screen, so nobody loses what they were reading, and it disappears
   while the camera is live: a feedback prompt over your own face mid-recording is an interruption
   whatever it says. */
.fb { margin: 24px 0 0; padding: 0 0 16px; text-align: center; }
.fb-open { display: block; width: 100%; background: var(--brand); color: var(--brand-text); border: 0; border-radius: 0; font: 600 15px/1.35 var(--sans); letter-spacing: .01em; padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); cursor: pointer; }
.fb-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.fb-open:focus-visible { outline-offset: -4px; outline-color: var(--brand-text); border-radius: 0; }
.fb-box { text-align: left; margin: 12px max(16px, calc((100% - 620px) / 2)) 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.fb-box textarea { width: 100%; min-height: 96px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; resize: vertical; }
.fb-box .small { color: var(--muted); }
body.camera-on .fb { display: none; }
.fb-shot { margin: 12px 0; }
.fb-shot .small { margin-top: 6px; }
.fb-prev { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.fb-prev[hidden] { display: none; }
.fb-prev img { max-width: 96px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
/* "Report this video": quiet, at the foot of any page that plays someone else's video. */
.report { text-align: center; }
.report .link { color: var(--muted); font-size: 14px; }
.report-box { text-align: left; }
.report-box textarea { width: 100%; min-height: 80px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; resize: vertical; }
.report-box fieldset { border: 0; padding: 0; margin: 0; }
.report-box legend { font-weight: 600; margin-bottom: 6px; }
/* The recorder's two steps (2026-11-23). The answer and the question are separate takes now, so
   the old one-take phase strip that changed colour at 40 seconds is gone. What is left is the step
   line above the camera and one countdown for whichever take is running. */
.rec-lead { font-weight: 650; color: var(--text); }
.dance .rec-step { margin: 0; font-size: 15px; color: var(--muted); }
.dance .rec-step b { color: var(--text); }
.rec-count { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--trust-wash); color: var(--trust); font-weight: 650; font-size: 17px; }
.rec-count b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.rec-bar { display: block; height: 6px; border-radius: 3px; background: var(--trust-wash-line); box-shadow: inset 0 0 0 1px var(--trust-fill); overflow: hidden; }
.rec-bar i { display: block; height: 100%; width: 0; background: currentColor; transition: width 1s linear; }

/* The pair: the two clips of a turn, side by side, above the fold (F3.8, Paul 2026-11-22). Two
   columns at every width, because the point is seeing that a turn is an answer AND a question. At
   390 wide, with the page's own padding, each tile lands near 170px, which is enough to read a
   face. Tapping either tile opens the stage above them and plays it full width. */
.dance .pair { display: grid; gap: 10px; }
.dance .pair-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.dance .tile { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--control-edge); border-radius: 14px; background: var(--well); overflow: hidden; cursor: pointer; text-align: left; }
.dance .tile video { width: 100%; aspect-ratio: 4 / 3; max-height: none; border-radius: 0; pointer-events: none; }
/* The caption sits on a video thumbnail, which is dark whatever the theme is, so its cream and
   its scrim are fixed rather than themed. 16.30:1 against the well. */
.dance .tile-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 10px; font: 650 14px/1.2 var(--sans); color: #FFF7EC; background: linear-gradient(to top, rgba(28, 26, 27, .9), rgba(28, 26, 27, 0)); }
/* The play mark reads as a control without an icon font or an image request. */
.dance .tile-cap::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #FFF7EC; }
.dance .tile.on { border-color: var(--cta); box-shadow: 0 0 0 2px var(--cta); }
.dance .tile:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.dance .pair-stage video { width: 100%; }
@media (min-width: 620px) {
  /* Room to breathe on a desktop, and a tile that does not grow to the width of a television. */
  .dance .pair-tiles { grid-template-columns: repeat(2, minmax(0, 220px)); }
}

/* The microphone meter under the live camera (Paul, 2026-11-24). It sits above the countdown so a
   person sees it before they press record, not after they have spoken into nothing. */
.rec-mic { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin: 2px 0 6px; }
.rec-mic-label { font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.rec-mic-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rec-mic-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--cta); transition: width .08s linear; }
.rec-mic-bar i.low { background: var(--muted); }
.rec-mic-say { grid-column: 1 / -1; font: 500 14px/1.35 var(--sans); color: var(--cta-ink, var(--cta)); }

/* Author CSS beats the browser's own [hidden] rule, so the countdown box showed as an empty
   panel before anybody pressed record (found 2026-11-24). app.css already guards two other
   elements the same way. */
.rec-count[hidden] { display: none; }

/* ---- The ready moment (Paul, 2026-11-25) -------------------------------------------------
   The moment a member's hello and their first question are recorded and their invite link is
   ready to send. A thin scatter, not a burst: the burst belongs to the mutual meet, and an
   active member sees this one several times a week.

   It only ever appears on the way out of the recorder, never on a plain visit to the page, so
   the scatter is a reward for finishing rather than wallpaper. js/dance.js is what decides.

   It carries the next step in words as well, because confetti on its own tells somebody they
   did well and not what to do with it. */
.dance .ready { margin: 0 0 4px; }
.dance .ready .moment-in { padding: 26px 20px 24px; }
.dance .ready .m-big { font-size: clamp(22px, 5.4vw, 30px); }
.dance .ready .m-sub { margin: 0; }
.dance .ready .m-next { margin: 12px 0 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: 15.5px; color: var(--text); }
.dance .ready .m-next li::marker { color: var(--trust-fill); }

/* The line drawing. Paul, 2026-11-28: what shipped was "way too dark" and nothing like the
   graphite look we have used before, which is delicate contour lines on warm white paper.
   A contrast crush cannot do that, so this uses a real edge filter: desaturate, soften, find the
   contours, then lay them down dark on a warm white ground with a breath of blur back into the
   line, which is what makes graphite read as graphite.

   The video file is never touched. The drawing happens at playback, so switching it off is
   instant and a reported video is always viewable as it was recorded. */
.draw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pencil { position: relative; background: #FBF7F0; }
/* Paul, 2026-11-28: the edge filter blanked the video for him. Safari does not reliably apply an
   SVG filter to a video element, and when it fails it renders nothing rather than falling back,
   so the clip disappeared. This stack is plain CSS and works in every engine.
   Light, not dark: his first complaint was that it went black, so brightness is lifted and
   contrast is held well below where faces crush into ink. True contour lines need the frames
   processed through a canvas, which is a bigger build and the right one later. */
.pencil video, .pencil img {
  filter: grayscale(1) brightness(1.42) contrast(1.75) sepia(.12);
  mix-blend-mode: multiply;
  background: #FBF7F0;
}
.pencil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: repeating-linear-gradient(118deg, rgba(60,45,30,.030) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(32deg, rgba(60,45,30,.022) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
}
/* The paper is warm white in both themes, so anything sitting on it takes paper ink, not the
   page's. Caught by the contrast check in dark mode, where the labels went invisible. */
.pencil, .pencil .clip-label, .pencil .clip-label b, .pencil .tile-cap { color: #26211B; }
.pencil-tag { display: inline-block; font: 650 11px var(--sans); letter-spacing: .1em;
  text-transform: uppercase; opacity: .75; margin-top: 6px; } }

/* The mutual meet, where a pair actually lands. The burst was on the marketing page before this
   and nowhere in the product, which meant the loudest promise we make had no moment behind it.
   Paul, 2026-11-27. */
.meet-moment { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.meet-moment > * { position: relative; z-index: 2; }
.meet-moment h2 { margin: 2px 0 8px; }

/* The ten starters. Closed by default: someone who knows what to say should not scroll past
   suggestions to reach the camera. Paul, 2026-11-27. */
.starters { margin-top: 10px; }
.starter-list { margin: 10px 0 6px; padding-left: 20px; }
.starter-list li { margin: 0 0 7px; line-height: 1.45; }

/* My recordings: two shelves, one per job. Paul, 2026-11-30: "tiny thumbnails for the primary
   and the number two, the number three, number four, often all in a row to the right and they
   can scroll to see them going across." So a shelf is one row that scrolls sideways under a
   thumb, and the row is the only thing that scrolls: the page stays where it is.

   136px wide at 4:3 puts about 102px of face on screen, which is enough to tell two takes
   apart, and at 390 wide two and a half thumbnails show, so the row says for itself that there
   is more to the right. */
.shelves { display: grid; gap: 20px; }
.shelf { display: grid; gap: 8px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.shelf-head h3 { margin: 0; font-size: 17px; }
.shelf-hint[hidden] { display: none; }
.shelf-row { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  padding: 3px 3px 8px; margin: 0 -3px; }
.thumb { flex: 0 0 auto; width: 136px; padding: 0; border: 1px solid var(--control-edge);
  border-radius: 12px; background: var(--well); overflow: hidden; cursor: pointer;
  text-align: left; scroll-snap-align: start; }
.thumb video { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: none;
  border-radius: 0; object-fit: cover; pointer-events: none; background: var(--well); }
.thumb-cap { display: block; padding: 7px 9px; font: 650 13px/1.25 var(--sans);
  color: var(--text); background: var(--surface);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The one on air is marked twice over, by its edge and by its label, so it reads at a glance
   and never depends on colour alone. */
.thumb.live { border-color: var(--cta); }
.thumb.live .thumb-cap { background: var(--cta); color: var(--cta-text); }
.thumb.on { box-shadow: 0 0 0 3px var(--cta); }
.thumb:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* The opened recording. Two larger previews side by side, stacked on a phone so neither is a
   postage stamp, and each one is the play control. The pencil slot names itself twice over
   because .pencil earlier in this file carries the same weight and wins on source order, which
   would put the dark well behind the paper. */
.shelf-open:empty { display: none; }
.open-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.open-head h4 { margin: 0; font-size: 17px; }
.takes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.take-slot { position: relative; border: 1px solid var(--control-edge); border-radius: 14px;
  overflow: hidden; background: var(--well); }
.take-slot.pencil { background: #FBF7F0; }
.take { display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; text-align: left; }
.take:focus-visible { outline: 3px solid var(--cta); outline-offset: -3px; }
.take-slot video { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: none;
  border-radius: 0; object-fit: cover; }
.take-slot.playing video { object-fit: contain; }
.take-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  gap: 7px; padding: 9px 11px; font: 650 14px/1.2 var(--sans); color: #FFF7EC;
  background: linear-gradient(to top, rgba(28, 26, 27, .9), rgba(28, 26, 27, 0)); }
.take-cap svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.take-now { display: block; padding: 7px 10px; font: 650 13px var(--sans);
  color: var(--text); background: var(--surface); }
.take-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.vbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--control-edge); background: var(--surface);
  color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.vbtn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.vbtn.on { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
@media (max-width: 520px) {
  .takes { grid-template-columns: 1fr; }
  .take-btns .vbtn { flex: 1; justify-content: center; }
}

/* The top of the member page was eating the screen and selling nothing. Paul, 2026-11-27. The
   greeting shrinks, and the thing that earns its place up there is the link to real wording a
   person can paste. */
.stack.tight { gap: 2px; margin-bottom: 4px; }
h1.hi { font-size: clamp(22px, 4vw, 30px); margin: 0; }
.sell { margin: 2px 0 0; }
.sell .link { font: 600 15px var(--sans); text-align: left; }

/* The code on one line, with a copy icon beside it. Paul, 2026-11-27: "all on one line,
   preserving screen real estate", so My Dances is the next thing on the screen, "because that
   is what makes the magic". */
.codecard { padding-top: 12px; padding-bottom: 12px; }
.codeline { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.codeword { font: 600 15px var(--sans); }
.codecard .codebox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px; letter-spacing: .1em; background: none; padding: 0; margin: 0; user-select: all; }
.copyicon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--control-edge); background: var(--surface);
  color: var(--text); cursor: pointer; flex: none; }
.copyicon svg { width: 20px; height: 20px; }

/* The reason, said before the question. Paul, 2026-11-28. */
.why { font: 500 clamp(17px, 2.4vw, 20px)/1.4 var(--serif); margin: 0 0 10px; }

/* The copy icon beside the heading rather than a full-width button under the words.
   Paul, 2026-11-28: "the copy buttons take up a lot of real estate." */
.iw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iw-head h3 { margin: 0; }

/* The round a clip belongs to, small and quiet, as a marker down the Dance rather than a
   heading that competes with the person in the video. Paul, 2026-11-30. */
.dance .round-head { margin: 18px 0 2px; font: 650 13px/1 var(--sans);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
