/* ==========================================================================
   Version A: guided steps. Two ways in (Director, Viral breakdown), each its own page, then the same step pages.
   Structure only: the video bar in the top bar (where you are, its steps, the next step), the page frames, the message
   area inside a video, Home's two doors and first-visit map, the two start pages, Help, and the summary of an older
   video. Every colour, type size, radius and space is a kit token from system.css; kit components are not restyled.
   ========================================================================== */

/* ---------- the page frame ---------- */
.rsa-page { gap: var(--s-6); }
.rsa-page--home { gap: var(--s-8); }

/* ---------- inside a video: the top bar becomes the video bar ---------- */
/* the bar's own spacer and message area make room for the steps and the next step (messages float under the bar) */
.rsa-in-video .rsk-topbar .topbar__spacer,
.rsa-in-video .rsk-topbar > .toasts { display: none; }
.rsa-in-video .rsk-topbar__slot { flex: 1 1 auto; min-width: 0; }
.rsa-in-video .rsk-topbar__where { flex: 0 1 auto; min-width: 0; max-width: 34%; }
.rsa-in-video .rsk-crumbs { min-width: 0; }

.rsa-vbar { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); }
.rsa-vbar__steps { min-width: 0; display: flex; justify-content: center; }

/* the five steps: a mark (done, this step, not yet), the name, joined by a line */
.rsa-steps { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; min-width: 0; }
.rsa-steps > li { display: flex; align-items: center; min-width: 0; }
.rsa-steps > li + li::before { content: ""; flex: none; width: 18px; height: 2px; margin: 0 4px; border-radius: 1px; background: var(--line-2); }
.rsa-steps > li.is-done + li::before { background: rgba(87, 211, 158, 0.45); }
.rsa-step {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: var(--h-36); padding: 0 14px 0 7px; border-radius: var(--r-full);
  color: var(--fg-2); font-size: var(--t-14); font-weight: 500; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.rsa-step:hover { background: var(--surface-3); color: var(--fg-1); }
.rsa-step[aria-current="step"] { background: var(--accent-wash); color: var(--fg-1); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-line); }
.rsa-step[aria-disabled="true"] { color: var(--fg-3); cursor: not-allowed; }
.rsa-step[aria-disabled="true"]:hover { background: transparent; color: var(--fg-3); }
.rsa-step__name { min-width: 0; }

.rsa-mark { position: relative; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--fg-2); }
.rsa-mark .i { width: 13px; height: 13px; stroke-width: 2; }
.is-done .rsa-mark { background: rgba(87, 211, 158, 0.16); color: var(--success); }
.is-locked .rsa-mark { background: transparent; color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line-3); }
[aria-current="step"] .rsa-mark { background: var(--accent); color: #fff; box-shadow: none; }
/* started but not finished (clips made for some shots): a ring that fills as it goes */
.rsa-mark[style*="--p"]::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--p) * 1turn), var(--line-2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

/* the next step: always in the same place, blue once you can move on */
.rsa-next { justify-self: end; }
.rsa-next .i { width: 16px; height: 16px; }
.rsa-next[aria-disabled="true"] { background: var(--surface-2); color: var(--fg-3); border-color: var(--line-1); box-shadow: none; cursor: not-allowed; }
.rsa-next[aria-disabled="true"] .i { color: var(--fg-3); }
.rsa-next[aria-disabled="true"]:active { transform: none; }
.rsa-vbar__done { justify-self: end; display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-36); padding: 0 var(--s-3); border-radius: var(--r-full); font-size: var(--t-14); color: var(--fg-2); white-space: nowrap; }
.rsa-vbar__done .i { width: 16px; height: 16px; color: var(--success); }

/* messages inside a video float just under the bar, on the right, over the page and never moving it */
.rsa-toasts { position: fixed; z-index: 95; top: calc(var(--topbar-h) + 16px); right: 24px; display: flex; justify-content: flex-end; max-width: min(680px, calc(100vw - 48px)); pointer-events: none; }
.rsa-toasts .toast { pointer-events: auto; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--rim-top), var(--shadow-float); }
.rsa-toasts .toast.rskm-toast { border-radius: var(--r-14); padding-top: 8px; padding-bottom: 8px; }

/* narrower windows: the names of the other steps go into their tips; this step keeps its name */
@container rsk-shell (max-width: 1300px) {
  .rsa-in-video .rsk-crumbs__link, .rsa-in-video .rsk-crumbs__sep { display: none; }
}
/* the short "Scheduled" in the bar is for phones only (see below) */
.rsa-vbar__short { display: none; }
/* (each step button carries its name in aria-label, so a name that leaves the bar is display: none, not a 1 px clip) */
@container rsk-shell (max-width: 1100px) {
  .rsa-step:not([aria-current="step"]) .rsa-step__name { display: none; }
  .rsa-step:not([aria-current="step"]) { padding: 0 7px; }
}
/* a phone: the sidebar is a drawer behind the menu button. Closed, it is hidden, not only slid away, so the keyboard does
   not tab into links nobody can see (it slides in, and out before it hides) */
@container rsk-shell (max-width: 760px) {
  .rsk-shell .nav { visibility: hidden; transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
  .rsk-shell[data-nav-open] .nav { visibility: visible; transition: transform var(--t-med) var(--ease), visibility 0s; }
}
/* a phone: the five marks only, closer together (the page's own heading names the step), and Continue */
@container rsk-shell (max-width: 760px) {
  .rsa-in-video .rsk-topbar__where { display: none; }
  .rsa-next .rsa-next__to { display: none; }
  .rsa-vbar { gap: var(--s-2); }
  .rsa-step .rsa-step__name { display: none; }
  .rsa-step, .rsa-step:not([aria-current="step"]) { padding: 0 4px; }
  .rsa-steps > li + li::before { width: 6px; margin: 0 1px; }
  .rsa-vbar__done { padding: 0 4px; font-size: var(--t-13); }
  .rsa-vbar__long { display: none; }
  .rsa-vbar__short { display: inline; }
}

/* the Cut editor's player is sized to the screen minus the page around it: here the bar and the page frame */
.rsa-page--step { --rskm-cut-reserve: 496px; }

/* one "Continue" per screen: on the Breakdown step the bar's "Continue to Shots" is the way on, so the breakdown's own
   button under the two choices is not shown (its line about the chosen way stays) */
.rsa-page--step[data-step="reference"] .rsk-bd__go > [data-act="continue"] { display: none; }

/* ---------- an example (his videos, open to anyone from the cover): one line saying so, and the way to her own ---------- */
.rsa-example { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-radius: var(--r-14); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); }
.rsa-example > .i { color: var(--accent-fg); }
.rsa-example__text { flex: 1 1 auto; min-width: 0; font-size: var(--t-14); line-height: 1.45; color: var(--fg-2); }
.rsa-example__text b { font-weight: 600; color: var(--fg-1); }
.rsa-example .btn { flex: none; }
/* the line takes room above the Cut editor, which is sized to fit the first screen */
.rsa-page--example { --rskm-cut-reserve: 552px; }
@container rsk-shell (max-width: 760px) { .rsa-example { flex-wrap: wrap; padding: var(--s-3); } .rsa-example__text { flex-basis: calc(100% - 30px); } }

/* ---------- Home: the two ways in, side by side, each one whole card a link ---------- */
.rsa-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); width: 100%; max-width: 1480px; margin-inline: auto; }
.rsa-door { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-20); background: var(--glass-card); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line-1); color: inherit; text-decoration: none; transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.rsa-door:hover { background: var(--glass-card-hover); box-shadow: inset 0 0 0 1px var(--line-3); }
.rsa-door:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.rsa-door__art { position: relative; display: flex; gap: var(--s-3); height: 212px; padding: var(--s-4); background: var(--well); box-shadow: inset 0 -1px 0 var(--line-1); }
/* the Director: the one line, then three of the shots it became */
.rsa-door__art--film { flex-direction: column; justify-content: space-between; }
.rsa-door__line { display: flex; align-items: center; gap: var(--s-2); align-self: flex-start; max-width: 100%; padding: 8px 14px; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--t-14); color: var(--fg-1); }
.rsa-door__line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsa-door__line .i { flex: none; width: 16px; height: 16px; color: var(--accent-fg); }
.rsa-door__shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.rsa-door__shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-10); background: #050608; }
.rsa-door__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rsa-door__tag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: var(--r-6); background: rgba(8, 9, 13, 0.86); font-size: var(--t-13); color: var(--fg-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the Viral breakdown: the Reel, and its cuts as bars as tall as they play */
.rsa-door__art--reel { align-items: stretch; }
.rsa-door__reel { position: relative; flex: none; height: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-10); background: #050608; box-shadow: inset 0 0 0 1px var(--line-2); }
/* a Reel's likes on its picture (the door, and the breakdown example) */
.rsa-door__likes { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: var(--r-full); background: rgba(8, 9, 13, 0.86); font-size: var(--t-13); font-weight: 500; color: var(--fg-1); white-space: nowrap; }
.rsa-door__likes .i { flex: none; width: 12px; height: 12px; }
.rsa-door__reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rsa-door__cuts { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-3); }
.rsa-cutbars { display: flex; align-items: flex-end; gap: 3px; height: 96px; }
.rsa-cutbars i { flex: 1 1 0; min-width: 0; height: calc(var(--h) * 100%); border-radius: 3px 3px 1px 1px; background: var(--surface-4); }
.rsa-cutbars i:nth-child(odd) { background: #3A3F4B; }
.rsa-cutbars i.on { background: var(--accent); }
.rsa-door__count { font-size: var(--t-14); color: var(--fg-2); }
.rsa-door__count b { font-size: var(--t-20); font-weight: 600; color: var(--fg-1); margin-right: 2px; }
.rsa-door__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); flex: 1 1 auto; padding: var(--s-5) var(--s-6) var(--s-4); }
.rsa-door__kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-14); font-weight: 600; color: var(--accent-fg); }
.rsa-door__kicker .i { width: 18px; height: 18px; }
.rsa-door__title { font-family: var(--font-serif); font-size: var(--t-32); line-height: 1.1; color: var(--fg-1); text-wrap: balance; }
.rsa-door__text { max-width: 52ch; font-size: var(--t-15); line-height: 1.5; color: var(--fg-2); }
.rsa-door__pick { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-1); padding: 6px 12px; border-radius: var(--r-full); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-line); font-size: var(--t-13); color: var(--fg-1); }
.rsa-door__pick .i { flex: none; width: 16px; height: 16px; color: var(--accent-fg); }
/* both doors are as tall as the taller one: the buttons sit on the same line at the bottom */
.rsa-door__go { pointer-events: none; }
.rsa-door > .rsa-door__go { align-self: flex-start; margin: 0 var(--s-6) var(--s-6); }
/* she has videos: each door is one line (a mark, its name and promise, a quiet button), so her videos come first */
.rsa-doors--compact .rsa-door { flex-direction: row; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.rsa-doors--compact .rsa-door__mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-wash); color: var(--accent-fg); box-shadow: inset 0 0 0 1px var(--accent-line); }
.rsa-doors--compact .rsa-door__mark .i { width: 20px; height: 20px; }
.rsa-doors--compact .rsa-door__body { padding: 0; gap: 2px; }
.rsa-doors--compact .rsa-door__kicker { font-size: var(--t-13); }
.rsa-doors--compact .rsa-door__title { font-size: 24px; }
.rsa-doors--compact .rsa-door > .rsa-door__go { align-self: center; margin: 0; }
@container rsk-shell (max-width: 980px) { .rsa-doors { grid-template-columns: minmax(0, 1fr); } }
@container rsk-shell (max-width: 760px) {
  .rsa-door__art { height: auto; min-height: 172px; padding: var(--s-3); gap: var(--s-3); }
  .rsa-door__line { border-radius: var(--r-14); align-items: flex-start; }
  .rsa-door__line span { white-space: normal; }
  .rsa-door__line .i { margin-top: 2px; }
  .rsa-door__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsa-door__shot:nth-child(3) { display: none; }
  .rsa-door__lens { display: none; }   /* a phone: the shot size alone fits its picture */
  .rsa-door__art--reel { height: 172px; }
  .rsa-door__body { padding: var(--s-4) var(--s-4) var(--s-3); }
  .rsa-door__title { font-size: 26px; }
  .rsa-door > .rsa-door__go { align-self: stretch; margin: 0 var(--s-4) var(--s-4); }
  .rsa-cutbars { height: 72px; }
  .rsa-doors--compact .rsa-door { flex-wrap: wrap; padding: var(--s-4); }
  .rsa-doors--compact .rsa-door__body { flex: 1 1 0; }
  .rsa-doors--compact .rsa-door__title { font-size: 21px; }
  .rsa-doors--compact .rsa-door > .rsa-door__go { flex: 1 1 100%; }
}

/* the two start pages: a head (what this way is, where it leads), then its own start box */
.rsa-page--way { gap: var(--s-8); }
.rsa-way__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-8); width: 100%; max-width: 1480px; margin-inline: auto; }
.rsa-way__text { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; max-width: 760px; }
.rsa-way__title { margin: 0; font-family: var(--font-serif); font-size: 40px; font-weight: 400; line-height: 1.08; color: var(--fg-1); text-wrap: balance; }
.rsa-way__text .rsk-sub { font-size: var(--t-15); color: var(--fg-2); max-width: 70ch; }
/* where this start sits: this page (blue), then the video's own steps, drawn like the bar inside a video (not buttons) */
.rsa-path { flex-wrap: wrap; row-gap: 6px; }
.rsa-path .rsa-step { cursor: default; }
.rsa-path .rsa-step:not([aria-current="step"]):hover { background: transparent; color: var(--fg-2); }
.rsa-start--way { margin: 0 auto; }
.rsa-way__row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-5); align-items: stretch; width: 100%; max-width: 1480px; margin-inline: auto; }
.rsa-way__row .rsa-start { max-width: none; }
.rsa-way__row .rsa-start__box { flex: 1 1 auto; display: flex; flex-direction: column; }
.rsa-way__row .rsk-start { flex: 1 1 auto; }
@container rsk-shell (max-width: 1100px) { .rsa-way__row { grid-template-columns: minmax(0, 1fr); } }
@container rsk-shell (max-width: 760px) { .rsa-way__title { font-size: 30px; } .rsa-path { display: none; } }

/* no Reel yet: Find viral videos, beside the box */
.rsa-findcard { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-20); background: var(--glass-card); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line-1); color: inherit; text-decoration: none; transition: background var(--t-fast) var(--ease); }
.rsa-findcard:hover { background: var(--glass-card-hover); }
.rsa-findcard__covers { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.rsa-findcard__covers img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: var(--r-10); display: block; background: #050608; }
.rsa-findcard__plays { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: var(--r-full); background: rgba(8, 9, 13, 0.86); font-size: var(--t-13); font-weight: 600; color: var(--fg-1); }
.rsa-findcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.rsa-findcard__title { font-size: var(--t-17); font-weight: 600; color: var(--fg-1); }
.rsa-findcard__text { font-size: var(--t-14); line-height: 1.5; color: var(--fg-3); }
.rsa-findcard__go { margin-top: var(--s-2); pointer-events: none; }
@container rsk-shell (max-width: 1100px) { .rsa-findcard { flex-direction: row; align-items: center; } .rsa-findcard__covers { flex: none; width: 180px; } }
@container rsk-shell (max-width: 560px) { .rsa-findcard { flex-direction: column; align-items: stretch; } .rsa-findcard__covers { width: 100%; } .rsa-findcard__covers img { aspect-ratio: 9 / 12; } }

/* the Viral breakdown's example, start to end: the Reel, its breakdown, the video made with its pacing */
.rsa-bdx { display: grid; grid-template-columns: minmax(0, 0.75fr) 28px minmax(0, 1.5fr) 28px minmax(0, 1.25fr); gap: var(--s-3); align-items: stretch; }
.rsa-bdx__card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--s-4); border-radius: var(--r-14); background: var(--glass-card); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line-1); color: inherit; text-decoration: none; transition: background var(--t-fast) var(--ease); }
.rsa-bdx__card:hover { background: var(--glass-card-hover); }
.rsa-bdx__pic { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-10); background: #050608; }
.rsa-bdx__pic--tall { aspect-ratio: auto; height: 200px; }
.rsa-bdx__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rsa-bdx__k { margin-top: 4px; font-size: var(--t-13); font-weight: 600; color: var(--accent-fg); }
.rsa-bdx__t { font-size: var(--t-15); font-weight: 600; color: var(--fg-1); }
.rsa-bdx__big { font-size: var(--t-15); color: var(--fg-2); }
.rsa-bdx__big b { margin-right: 4px; font-size: var(--t-32); font-weight: 600; line-height: 1; color: var(--fg-1); }
.rsa-bdx__strip { display: flex; gap: 2px; height: 44px; padding: 4px; border-radius: var(--r-6); background: var(--well); }
.rsa-bdx__strip i { min-width: 2px; border-radius: 2px; background: #4A5060; }
.rsa-bdx__strip i.alt { background: #343945; }
.rsa-bdx__note { font-size: var(--t-13); color: var(--fg-3); }
.rsa-bdx__parts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-2); }
.rsa-bdx__arrow { align-self: center; justify-self: center; display: grid; place-items: center; color: var(--fg-3); }
.rsa-bdx__arrow .i { width: 20px; height: 20px; }
@container rsk-shell (max-width: 1100px) {
  .rsa-bdx { grid-template-columns: minmax(0, 1fr); }
  .rsa-bdx__arrow { transform: rotate(90deg); }
}

/* an example of what this way gives you: a row of real shots or cuts, each opening the example */
.rsa-example-strip { display: flex; flex-direction: column; gap: var(--s-4); width: 100%; max-width: 1480px; margin-inline: auto; }
.rsa-example-strip__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.rsa-example-strip__row--cuts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rsa-shotcard, .rsa-cutcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--r-14); }
.rsa-shotcard__pic, .rsa-cutcard__pic { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-14); background: #050608; box-shadow: inset 0 0 0 1px var(--line-1); }
.rsa-cutcard__pic { aspect-ratio: 9 / 13; }
.rsa-shotcard__pic img, .rsa-cutcard__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-med) var(--ease); }
.rsa-shotcard:hover img, .rsa-cutcard:hover img { transform: scale(1.03); }
.rsa-shotcard__no { position: absolute; left: 8px; top: 8px; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: var(--r-full); background: rgba(8, 9, 13, 0.86); font-size: var(--t-13); font-weight: 600; color: var(--fg-1); }
.rsa-shotcard__size { margin-top: 4px; font-size: var(--t-14); font-weight: 600; color: var(--fg-1); }
@container rsk-shell (max-width: 560px) { .rsa-cutcard__kind { display: none; } }
.rsa-shotcard__what { font-size: var(--t-14); line-height: 1.45; color: var(--fg-3); text-wrap: pretty; }
/* a phone: the picture and its size (or length) say enough; the sentences are one tap away, in the example itself */
@container rsk-shell (max-width: 760px) { .rsa-shotcard__what { display: none; } }
@container rsk-shell (max-width: 1100px) { .rsa-example-strip__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rsa-example-strip__row--cuts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the start boxes on Home's old place and on the two start pages */
.rsa-start { display: flex; flex-direction: column; gap: var(--s-3); width: 100%; max-width: 1480px; margin-inline: auto; }
.rsa-home__videos { min-width: 0; display: flex; flex-direction: column; gap: var(--s-8); }
/* a first visit: no empty list, the examples three to a row (two on a phone), each as tall as the others */
.rsa-home__videos.has-examples .rsk-videos__empty { display: none; }
.rsa-home__examples .rsk-head__tools { display: none; }
.rsa-home__examples .rsk-videos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.rsa-home__examples .rsk-vcard { height: 100%; }
@container rsk-shell (max-width: 760px) { .rsa-home__examples .rsk-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
/* a phone: Home's start box lays out like the cover's (controls in two columns, the main button full width) */
@container rsk-shell (max-width: 760px) {
  .rsa-start .rsk-start--one { padding: 14px; }
  .rsa-start .rsk-start__idea { font-size: 16px; }
  .rsa-start .rsk-start__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
  .rsa-start .rsk-start__tools { grid-column: 1 / -1; }
  .rsa-start .rsk-start__divider, .rsa-start .rsk-start__foot > .grow { display: none; }
  .rsa-start .rsk-start__foot > .pill, .rsa-start .rsk-start__foot > .stepper { justify-self: start; max-width: 100%; }
  .rsa-start .rsk-start__foot > [data-rsk-writer], .rsa-start .rsk-start__foot > .pill--locked { grid-column: 1 / -1; }
  .rsa-start .rsk-start__gos { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 0; }
  .rsa-start .rsk-start__gos .rsk-go { order: -1; width: 100%; }
  .rsa-start .rsk-start__gos .rsk-start__sample { width: 100%; }
}
/* a wide screen (his 3072 px monitor): the two ways in and the videos side by side, top edges aligned, so neither sits
   alone in the middle of the page and both are in the first screen */
@container rsk-shell (min-width: 2300px) {
  .rsa-page--home { display: grid; grid-template-columns: minmax(0, 1480px) minmax(0, 1fr); grid-template-areas: "start videos" "map videos"; grid-template-rows: auto 1fr; align-items: start; gap: var(--s-8) var(--s-10); }
  .rsa-page--home > .rsa-doors { grid-area: start; margin: 0; }
  .rsa-page--home > .rsa-map { grid-area: map; margin: 0; }
  .rsa-page--home > .rsa-home__videos { grid-area: videos; }
}

/* first visit: the two ways in, where they meet, and the four steps both share (the same marks as inside a video) */
.rsa-map { display: flex; flex-direction: column; gap: var(--s-4); width: 100%; max-width: 1480px; margin-inline: auto; }
.rsa-map__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); }
.rsa-map__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.rsa-map__step { position: relative; display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; padding-top: 52px; }
.rsa-map__step .rsa-mark { position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--surface-3); color: var(--fg-1); }
.rsa-map__step .rsa-mark .i { width: 20px; height: 20px; stroke-width: 1.75; }
/* the line from the step before, at the height of the marks */
.rsa-map__step + .rsa-map__step::before { content: ""; position: absolute; top: 19px; left: calc(-100% - var(--s-5) + 52px); right: calc(100% + 12px); height: 2px; border-radius: 1px; background: var(--line-2); }
.rsa-map__title { font-size: var(--t-15); font-weight: 600; color: var(--fg-1); }
.rsa-map__text { font-size: var(--t-14); line-height: 1.5; color: var(--fg-3); max-width: 34ch; text-wrap: balance; }
.rsa-map__flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.9fr); grid-template-rows: auto auto; gap: var(--s-3) 0; align-items: stretch; }
.rsa-map__way { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-14); background: var(--glass-card); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line-1); }
.rsa-map__way[data-way="director"] { grid-column: 1; grid-row: 1; }
.rsa-map__way[data-way="breakdown"] { grid-column: 1; grid-row: 2; }
.rsa-map__way--both { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.rsa-map__wayname { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-14); font-weight: 600; color: var(--accent-fg); }
.rsa-map__wayname .i { width: 16px; height: 16px; }
.rsa-map__way--both .rsa-map__wayname { color: var(--fg-2); }
.rsa-map__flow .rsa-map__steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.rsa-map__flow .rsa-map__way:not(.rsa-map__way--both) .rsa-map__steps { grid-auto-columns: minmax(0, 220px); justify-content: start; }
/* where the two lanes meet: a bracket from the middle of each lane, then a line into the shared steps */
.rsa-map__join { grid-column: 2; grid-row: 1 / 3; position: relative; }
.rsa-map__join::before { content: ""; position: absolute; left: 0; right: 50%; top: 25%; bottom: 25%; border: 2px solid var(--accent-line); border-left: 0; border-radius: 0 12px 12px 0; }
.rsa-map__join::after { content: ""; position: absolute; left: 50%; right: 6px; top: calc(50% - 1px); height: 2px; background: var(--accent-line); }
.rsa-map__join i { position: absolute; right: 0; top: calc(50% - 6px); width: 0; height: 0; border-left: 8px solid var(--accent-line); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@container rsk-shell (max-width: 1180px) {
  .rsa-map__flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .rsa-map__way[data-way="director"], .rsa-map__way[data-way="breakdown"], .rsa-map__way--both { grid-column: 1; grid-row: auto; }
  .rsa-map__join { display: none; }
}
@container rsk-shell (max-width: 900px) {
  .rsa-map__steps, .rsa-map__flow .rsa-map__steps, .rsa-map__flow .rsa-map__way:not(.rsa-map__way--both) .rsa-map__steps { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: var(--s-4); }
  .rsa-map__step { padding: 0 0 0 56px; min-height: 40px; }
  .rsa-map__step + .rsa-map__step::before { display: none; }
}

/* ---------- a step page's lead line (when the component has no head of its own) ---------- */
.rsa-lead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }

/* ---------- an older video: what it holds, from its real numbers ---------- */
.rsa-sum { display: grid; grid-template-columns: minmax(300px, 640px) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rsa-sum__pic { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-14); background: #050608; }
.rsa-sum__pic img { width: 100%; height: 100%; object-fit: cover; }
.rsa-sum__pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.rsa-sum__body { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; padding-top: var(--s-1); }
.rsa-sum__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.rsa-sum__idea { font-size: var(--t-15); line-height: 1.6; color: var(--fg-2); max-width: 70ch; }
.rsa-sum__imgs { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.rsa-sum__img { display: flex; flex-direction: column; gap: 6px; width: 120px; }
.rsa-sum__img span:first-child { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-10); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.rsa-sum__img img { width: 100%; height: 100%; object-fit: cover; }
.rsa-sum__img span:last-child { font-size: var(--t-13); color: var(--fg-2); }
@container rsk-shell (max-width: 1000px) { .rsa-sum { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Library: Reels saved on Find (only when there are some) ---------- */
.rsa-saved { display: flex; flex-direction: column; gap: var(--s-4); }
.rsa-saved__row { display: flex; gap: var(--s-4); overflow-x: auto; padding: 2px 2px var(--s-2); scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent; }
.rsa-saved__card { flex: none; width: 132px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-align: left; border-radius: var(--r-14); }
.rsa-saved__pic { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-14); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.rsa-saved__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease); }
.rsa-saved__card:hover .rsa-saved__pic img { transform: scale(1.03); }
.rsa-saved__plays { margin-top: 4px; font-size: var(--t-15); font-weight: 600; color: var(--fg-1); }
.rsa-saved__who { font-size: var(--t-13); color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Help ---------- */
.rsa-help { display: flex; flex-direction: column; gap: var(--s-8); max-width: 1180px; }
.rsa-help .rsk-sub { max-width: 88ch; }
.rsa-help__steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.rsa-help__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line-1); }
.rsa-help__step:first-child { border-top: 0; padding-top: 0; }
.rsa-help__step .rsa-mark { width: 40px; height: 40px; color: var(--fg-1); }
.rsa-help__step .rsa-mark .i { width: 20px; height: 20px; stroke-width: 1.75; }
.rsa-help__title { font-size: var(--t-17); font-weight: 600; color: var(--fg-1); }
.rsa-help__text { margin-top: 2px; font-size: var(--t-15); line-height: 1.55; color: var(--fg-2); max-width: 76ch; }
.rsa-help__go { margin-top: var(--s-2); }
.rsa-help__where { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); }
.rsa-help__place { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-14); background: var(--glass-card); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: inset 0 0 0 1px var(--line-1); color: inherit; text-align: left; transition: background var(--t-fast) var(--ease); }
.rsa-help__place:hover { background: var(--glass-card-hover); }
.rsa-help__place > .i { margin-top: 2px; color: var(--accent-fg); }
.rsa-help__place b { display: block; font-size: var(--t-15); font-weight: 600; color: var(--fg-1); }
.rsa-help__place span { display: block; margin-top: 2px; font-size: var(--t-14); line-height: 1.5; color: var(--fg-3); }
