/* The Review Room v0 — room.css (WEB). Tokens, one-screen grid, arrival, panels, assets, pills, transport, script card.
   Look = the AyP Sound site (docs/research/website.md §2): dusty rose on navy, one glass recipe, rounded, a little 3D.
   House rules kept from the site: blur only on top-level glass; nothing that tilts gets filter/backdrop-filter;
   selected = dusty rose; never hot pink (#FFBCCD is the studio playhead colour: playhead + karaoke char only).
   CSP: no inline styles anywhere; JS only sets CSS custom properties / positions through the CSSOM.
   timeline.css (TL) owns the deck internals, hope.css (HUI) owns the Hope panel internals. Fallback rules for
   those areas are wrapped in :where() (zero specificity) so the owners' files always win. */

/* ---------- Fonts (copied read-only from the site, OFL: web/fonts/OFL-*.txt) ---------- */
@font-face{font-family:"Space Grotesk";src:url("/assets/fonts/space-grotesk-var.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("/assets/fonts/fraunces-italic-var.woff2") format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:"SG Fallback";src:local("Arial"),local("Helvetica Neue"),local("Helvetica");size-adjust:104%;ascent-override:94%;descent-override:28%;line-gap-override:0%}
@font-face{font-family:"Fr Fallback";src:local("Georgia Italic"),local("Georgia-Italic"),local("Times New Roman Italic");font-style:italic;size-adjust:102%;ascent-override:96%;descent-override:25%;line-gap-override:0%}

/* ---------- Tokens ---------- */
:root{
  color-scheme:dark;
  /* site colours */
  --navy-0:#070B10; --navy-1:#0A111A; --navy-2:#0C1520;
  --rose:#D5B1B2; --rose-lt:#EDDADB; --rose-deep:#885B61;
  --grey:#91A3B4; --grey-2:#5F7484;
  --text:#EDF2F7; --text-2:#C9D3DD;
  --rose-rgb:213 177 178; --rose-lt-rgb:237 218 219; --navy-rgb:7 11 16;
  /* studio track colours (shown values, CONTRACT §2) */
  --c-vo:#EDCF70; --c-sfx:#6DA5EC; --c-music:#EF976D; --c-ok:#6BBA7C; --c-ok-hi:#92ECB1;
  --c-play:#FFBCCD; --c-play-core:#FFE7ED; --c-play-glow:#F8719C;
  --c-hope:#9b7cff; --c-hope-lt:#c4b0ff; --c-hope-deep:#5a3cc0;

  /* glass (site.css 21-53) */
  --g-fill:rgb(73 71 75 / .26); --g-fill-hi:rgb(100 95 98 / .30); --g-fill-press:rgb(118 110 113 / .34);
  --g-fill-card:rgb(48 48 52 / .40); --g-fill-bar:rgb(10 17 26 / .55); --g-fill-onpic:rgb(10 17 26 / .62);
  --g-fill-nest:rgb(var(--rose-lt-rgb) / .08); --g-fill-solid:rgb(14 21 30 / .86);
  --g-blur:blur(20px) saturate(150%); --g-blur-sm:blur(12px) saturate(140%);
  --g-border:rgb(var(--rose-lt-rgb) / .18); --g-border-hi:rgb(var(--rose-lt-rgb) / .34);
  --g-rim:inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(var(--navy-rgb) / .35), inset 0 0 22px rgb(var(--rose-lt-rgb) / .04);
  --g-sheen:linear-gradient(160deg, rgb(255 255 255 / .12) 0%, rgb(255 255 255 / .035) 26%, rgb(255 255 255 / 0) 46%);
  --g-depth:0 1px 1px rgb(0 0 0 / .22), 0 12px 32px -12px rgb(2 5 9 / .60), 0 40px 80px -36px rgb(2 5 9 / .70);
  --g-depth-hi:0 2px 2px rgb(0 0 0 / .22), 0 18px 42px -12px rgb(2 5 9 / .65), 0 48px 90px -36px rgb(2 5 9 / .75);
  --g-catch:0 30px 70px -36px rgb(var(--rose-rgb) / .30);
  --g-holo:conic-gradient(from var(--holo, 210deg), rgb(var(--rose-lt-rgb) / .70), rgb(145 163 180 / .30),
           rgb(255 255 255 / .70), rgb(var(--rose-rgb) / .55), rgb(145 163 180 / .25), rgb(var(--rose-lt-rgb) / .70));
  --g-sel-fill:rgb(var(--rose-rgb) / .22); --g-sel-border:rgb(var(--rose-rgb) / .80);
  --g-sel-glow:0 0 0 1px rgb(var(--rose-rgb) / .30), 0 8px 26px -8px rgb(var(--rose-rgb) / .50); --g-sel-text:#F8EEEE;

  /* radii + motion */
  --r-pill:999px; --r-chip:12px; --r-media:14px; --r-tile:18px; --r-card:22px; --r-slab:26px;
  --ease:cubic-bezier(.22,.8,.24,1); --t-fast:.25s; --t-med:.5s; --t-slow:.9s;

  /* type */
  --f-sans:"Space Grotesk","SG Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --f-serif:"Fraunces","Fr Fallback",Georgia,"Times New Roman",serif;

  /* one-screen grid, regular (viewport >= 1361 x >= 821; CONTRACT I.2) */
  --pad:16px; --gap-row:16px; --gap-col:16px;
  --col-hope:272px; --col-assets:300px;
  --row-top:48px; --row-trans:48px; --stage-min:260px;
  --pill-h:22px; --pill-gap:4px; --row-pills:calc(3 * var(--pill-h) + 2 * var(--pill-gap));   /* 74 */
  --asset-row:52px; --hope-canvas:240px;
  --tc-size:22px; --play-size:40px; --ctl-size:32px; --bezel:7px; --pic-ar:2.3989;
}
/* compact (<= 1360 wide or <= 820 tall; CA-11) */
@media (max-width:1360px), (max-height:820px){
  :root{
    --pad:10px; --gap-row:8px; --gap-col:12px;
    --col-hope:216px; --col-assets:232px;
    --row-top:40px; --row-trans:40px; --stage-min:200px;
    --pill-h:18px; --pill-gap:3px;                                                              /* 60 */
    --asset-row:46px; --hope-canvas:184px;
    --tc-size:18px; --play-size:32px; --ctl-size:28px; --bezel:5px;
  }
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden}
html{background:var(--navy-0);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{background:radial-gradient(1200px 600px at 50% -10%, rgb(var(--rose-rgb) / .13), transparent 60%), var(--navy-0);
  color:var(--text);font:400 14px/1.4 var(--f-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default}
p,h1,h2,h3{margin:0}
h1,h2,h3{font-weight:500}
[hidden]{display:none!important}
::selection{background:rgb(var(--rose-rgb) / .35);color:var(--text)}
:focus-visible{outline:2px solid var(--rose-lt);outline-offset:3px}
:focus:not(:focus-visible){outline:none}
.rr-ico{width:18px;height:18px;flex:none;display:block}
.rr-app{position:relative;height:100%;width:100%}

/* ---------- The glass recipe (site .glass, prefixed so the site's own classes never collide) ---------- */
.rr-glass{position:relative;isolation:isolate;background:var(--g-sheen),var(--g-fill);border:1px solid var(--g-border);
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);box-shadow:var(--g-rim),var(--g-depth)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .rr-glass{background:var(--g-sheen),var(--g-fill-solid)} }

/* ---------- One-screen grid (CONTRACT I.2) ---------- */
.rr-room{
  position:relative;width:100%;height:calc(100dvh - var(--site-header, 0px));
  display:grid;
  grid-template-columns:var(--col-hope) minmax(0,1fr) var(--col-assets);
  grid-template-rows:var(--row-top) minmax(var(--stage-min),1fr) var(--row-trans) auto var(--row-pills);
  grid-template-areas:
    "hope top    assets"
    "hope stage  assets"
    "hope trans  assets"
    "hope deck   assets"
    "hope pills  assets";
  padding:var(--pad);column-gap:var(--gap-col);row-gap:var(--gap-row);
  transform-origin:50% 42%;
  transition:filter var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}
/* arrival (CONTRACT I.8): blurred + dimmed underneath the intro; no perspective on this wrapper */
.rr-room.is-arriving{filter:blur(14px) saturate(120%) brightness(.55);transform:scale(1.02);pointer-events:none;user-select:none}
.rr-room.is-settled{filter:none;transform:none;transition:none}

.rr-panel{border-radius:var(--r-card);min-height:0;min-width:0}

/* ---------- Top bar: text on the light (navy halo, no island) ---------- */
.rr-top{grid-area:top;display:flex;align-items:center;gap:14px;min-width:0;padding:0 6px 0 4px;
  text-shadow:0 0 24px rgb(var(--navy-rgb) / .8), 0 0 4px rgb(var(--navy-rgb) / .7)}
.rr-brand{display:flex;align-items:baseline;gap:9px;flex:none}
.rr-brand-mark{font:500 15px/1 var(--f-sans);letter-spacing:-.01em;color:var(--text)}
.rr-brand-mark em{font-family:var(--f-serif);font-style:italic;font-weight:360;font-size:1.06em;color:var(--rose)}
.rr-brand-sub{font:500 10.5px/1 var(--f-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--grey)}
.rr-project{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1;padding-left:14px;border-left:1px solid rgb(var(--rose-lt-rgb) / .14)}
.rr-project-title{font:500 16px/1.1 var(--f-sans);letter-spacing:-.015em;white-space:nowrap}
.rr-project-meta{font:400 12.5px/1.1 var(--f-sans);color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rr-current{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.rr-current-label{font:500 13px/1 var(--f-sans);color:var(--text-2);white-space:nowrap}
/* approve the open film without Hope (set_file_status); pressed = approved (green, the studio's approved colour) */
.rr-approve{flex:none;display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px 0 8px;border-radius:var(--r-pill);
  font:500 11.5px/1 var(--f-sans);color:var(--text-2);background:var(--g-sheen),var(--g-fill);border:1px solid var(--g-border);box-shadow:var(--g-rim);
  text-shadow:none;transition:color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform .1s var(--ease)}
.rr-approve .rr-ico{width:13px;height:13px}
@media (hover:hover) and (pointer:fine){ .rr-approve:hover{color:var(--text);border-color:var(--g-border-hi);background-color:var(--g-fill-hi)} }
.rr-approve:active{transform:scale(.97)}
.rr-approve[aria-pressed="true"]{color:#E6F6EA;border-color:rgb(107 186 124 / .75);background:rgb(107 186 124 / .22);box-shadow:0 0 14px -6px rgb(107 186 124 / .9)}
.rr-approve[aria-pressed="true"] .rr-ico{color:var(--c-ok-hi)}
@media (max-width:1360px), (max-height:820px){ .rr-approve{height:22px;font-size:10.5px;gap:4px;padding:0 8px 0 6px} .rr-current{gap:7px} .rr-top{gap:12px} .rr-project{padding-left:12px} }
.rr-conn{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:var(--r-pill);
  font:500 11px/1 var(--f-sans);color:var(--text-2);background:var(--g-fill-nest);border:1px solid var(--g-border)}
.rr-conn i{width:6px;height:6px;border-radius:50%;background:var(--rose);animation:rr-blink 1.4s var(--ease) infinite}
@keyframes rr-blink{50%{opacity:.25}}

/* status badges (asset rows + top bar) */
.rr-badge{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:var(--r-pill);
  font:600 10.5px/1 var(--f-sans);letter-spacing:.01em;white-space:nowrap;text-shadow:none}
.rr-badge:empty{display:none}
.rr-badge[data-status="not_reviewed"]{color:var(--grey);border:1px solid rgb(145 163 180 / .42);background:transparent}
.rr-badge[data-status="notes"]{color:#F8EEEE;border:1px solid rgb(var(--rose-rgb) / .62);background:rgb(var(--rose-rgb) / .20)}
.rr-badge[data-status="approved"]{color:#E6F6EA;border:1px solid rgb(107 186 124 / .75);background:rgb(107 186 124 / .22)}
.rr-badge[data-status="approved"]::before{content:"";width:8px;height:5px;border-left:2px solid var(--c-ok-hi);border-bottom:2px solid var(--c-ok-hi);
  transform:translateY(-1.5px) rotate(-45deg)}

/* ---------- Stage: the cinema screen ---------- */
.rr-stage{grid-area:stage;position:relative;min-height:0;min-width:0;container-type:size;display:grid;place-items:center}
.rr-stage::before{content:"";position:absolute;inset:-6% 4% -18%;pointer-events:none;z-index:-1;
  background:radial-gradient(56% 60% at 50% 46%, rgb(145 163 180 / .07), transparent 70%)}   /* soft projector spill */
.rr-screen{position:relative;isolation:isolate;
  width:min(100cqw, calc((100cqh - 2 * var(--bezel)) * var(--pic-ar) + 2 * var(--bezel)));
  padding:var(--bezel);border-radius:calc(var(--r-media) + var(--bezel));
  background:linear-gradient(180deg, rgb(var(--rose-lt-rgb) / .13), rgb(var(--rose-lt-rgb) / .045) 42%, rgb(var(--navy-rgb) / .45)), rgb(20 26 36 / .55);
  border:1px solid rgb(var(--rose-lt-rgb) / .20);
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .24), inset 0 -1px 0 rgb(0 0 0 / .45),
             0 2px 2px rgb(0 0 0 / .3), 0 24px 50px -22px rgb(2 5 9 / .85), 0 60px 110px -50px rgb(2 5 9 / .8),
             0 34px 80px -40px rgb(var(--rose-rgb) / .38)}
.rr-screen::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:var(--g-holo);pointer-events:none;opacity:.55;z-index:-1;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.rr-video-box{position:relative;width:100%;aspect-ratio:var(--pic-ar);border-radius:var(--r-media);overflow:hidden;background:#000;
  box-shadow:0 0 0 1px rgb(0 0 0 / .65), 0 1px 0 1px rgb(255 255 255 / .04)}
.rr-video-box video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:#000}
.rr-screen-glare{position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(168deg, rgb(255 255 255 / .07) 0%, rgb(255 255 255 / .015) 22%, transparent 40%),
             radial-gradient(130% 90% at 50% 120%, rgb(0 0 0 / .22), transparent 55%);
  box-shadow:inset 0 0 0 1px rgb(255 255 255 / .05), inset 0 0 40px rgb(0 0 0 / .35)}
.rr-stage-loading{position:absolute;inset:0;display:grid;place-items:center;background:rgb(var(--navy-rgb) / .35);pointer-events:none}
.rr-stage-loading i{width:26px;height:26px;border-radius:50%;border:2px solid rgb(var(--rose-lt-rgb) / .18);border-top-color:var(--rose-lt);animation:rr-spin .9s linear infinite}
@keyframes rr-spin{to{transform:rotate(360deg)}}

/* ---------- Transport (CONTRACT I.6) ---------- */
.rr-transport{grid-area:trans;display:flex;align-items:center;gap:10px;min-width:0;padding:0 10px 0 4px;border-radius:var(--r-pill)}
.rr-spacer{flex:1;min-width:0}

/* 3D play dome: lit top, shaded bottom, socket ring, press-in (Juan: "a 3D play button") */
.rr-play{position:relative;flex:none;width:var(--play-size);height:var(--play-size);border-radius:50%;border:0;padding:0;
  display:grid;place-items:center;color:#0A111A;
  background:
    radial-gradient(70% 46% at 50% 14%, rgb(255 255 255 / .85), rgb(255 255 255 / .18) 62%, transparent 78%),
    radial-gradient(90% 70% at 50% 108%, rgb(136 91 97 / .55), transparent 70%),
    linear-gradient(180deg, #F6E9EA 0%, #E2C4C5 38%, #C99A9C 78%, #A97A7E 100%);
  box-shadow:
    0 0 0 3px rgb(7 11 16 / .55), 0 0 0 4px rgb(var(--rose-lt-rgb) / .16),
    inset 0 1px 1px rgb(255 255 255 / .9), inset 0 -3px 5px rgb(88 46 52 / .38),
    0 7px 14px -4px rgb(0 0 0 / .65), 0 2px 3px rgb(0 0 0 / .45), 0 12px 28px -10px rgb(var(--rose-rgb) / .55);
  transition:transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s var(--ease)}
.rr-play .rr-ico{width:46%;height:46%;filter:drop-shadow(0 1px 0 rgb(255 255 255 / .45))}
.rr-play .rr-ico-play{transform:translateX(6%)}
.rr-play .rr-ico-pause{display:none}
.rr-play[aria-pressed="true"] .rr-ico-play{display:none}
.rr-play[aria-pressed="true"] .rr-ico-pause{display:block}
@media (hover:hover) and (pointer:fine){ .rr-play:hover{filter:brightness(1.05) saturate(1.05)} }
.rr-play:active{transform:translateY(1.5px) scale(.965);
  box-shadow:0 0 0 3px rgb(7 11 16 / .55), 0 0 0 4px rgb(var(--rose-lt-rgb) / .16),
    inset 0 2px 5px rgb(88 46 52 / .5), inset 0 -1px 1px rgb(255 255 255 / .35), 0 2px 5px -2px rgb(0 0 0 / .7), 0 6px 16px -10px rgb(var(--rose-rgb) / .5)}

.rr-steps{display:flex;gap:4px;flex:none}
.rr-ctl{flex:none;width:var(--ctl-size);height:var(--ctl-size);border-radius:50%;display:grid;place-items:center;padding:0;color:var(--text-2);
  background:var(--g-sheen),var(--g-fill-nest);border:1px solid var(--g-border);box-shadow:inset 0 1px 0 rgb(255 255 255 / .12);
  transition:background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform .1s var(--ease)}
.rr-ctl .rr-ico{width:16px;height:16px}
@media (hover:hover) and (pointer:fine){ .rr-ctl:hover{color:var(--text);background-color:var(--g-fill-hi);border-color:var(--g-border-hi)} }
.rr-ctl:active{transform:scale(.94)}
.rr-ctl[aria-expanded="true"]{color:var(--g-sel-text);background:var(--g-sel-fill);border-color:var(--g-sel-border)}

.rr-tc-wrap{display:flex;align-items:center;gap:10px;flex:none}
.rr-tc{display:inline-block;font:600 var(--tc-size)/1 var(--f-sans);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;letter-spacing:.02em;
  color:#EDDADB;background:#000;padding:calc(var(--tc-size) * .3) calc(var(--tc-size) * .55);border-radius:10px;min-width:calc(var(--tc-size) * 6.2);text-align:center;
  box-shadow:inset 0 0 0 1px rgb(var(--rose-rgb) / .30), inset 0 1px 0 rgb(255 255 255 / .06), 0 1px 0 rgb(255 255 255 / .05)}
.rr-tc-meta{font:500 11.5px/1.15 var(--f-sans);color:var(--grey);white-space:nowrap;font-variant-numeric:tabular-nums}
.rr-trans-file{font:500 12px/1 var(--f-sans);color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:30%}

.rr-volume{display:flex;align-items:center;gap:8px;flex:none;color:var(--text-2)}
.rr-volume .rr-ico{width:17px;height:17px}
.rr-range{-webkit-appearance:none;appearance:none;width:96px;height:18px;background:transparent;margin:0;cursor:pointer;
  --pct:85%}
.rr-range::-webkit-slider-runnable-track{height:4px;border-radius:4px;
  background:linear-gradient(90deg, var(--rose-lt) 0 var(--pct), rgb(95 116 132 / .7) var(--pct) 100%)}
.rr-range::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:var(--rose-lt);
  box-shadow:0 0 0 3px rgb(var(--rose-rgb) / .22), 0 2px 4px rgb(0 0 0 / .5)}
.rr-range::-moz-range-track{height:4px;border-radius:4px;background:rgb(95 116 132 / .7)}
.rr-range::-moz-range-progress{height:4px;border-radius:4px;background:var(--rose-lt)}
.rr-range::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--rose-lt);box-shadow:0 0 0 3px rgb(var(--rose-rgb) / .22)}

/* ---------- Deck + pills: one plane, a little 3D (CONTRACT I.1) ---------- */
.rr-deckzone{grid-column:deck;grid-row:deck-start / pills-end;min-width:0;min-height:0;perspective:1600px;perspective-origin:50% 0%}
.rr-plane{display:flex;flex-direction:column;gap:var(--gap-row);transform:rotateX(2deg);transform-origin:50% 0%;transform-style:flat}
@media (prefers-reduced-motion:reduce){ .rr-plane{transform:none} }
.rr-deck{position:relative;min-width:0;border-radius:var(--r-tile);padding:5px 6px;
  background:linear-gradient(180deg, rgb(22 30 43 / .86), rgb(11 16 25 / .92) 60%, rgb(9 13 21 / .94));
  border:1px solid rgb(var(--rose-lt-rgb) / .15);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .10), inset 0 -1px 0 rgb(0 0 0 / .45),
             0 1px 1px rgb(0 0 0 / .25), 0 22px 44px -20px rgb(2 5 9 / .85), 0 50px 90px -46px rgb(2 5 9 / .8)}
.rr-deck::after{content:"";position:absolute;left:8%;right:8%;bottom:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg, transparent, rgb(var(--rose-lt-rgb) / .22), transparent)}
#timeline{position:relative;min-width:0}
:where(#tracks-canvas){display:block;width:100%}

/* ---------- Note pills (CONTRACT I.6; stacked rows, "+N" when a 4th overlaps) ---------- */
.rr-pills{position:relative;flex:none;height:var(--row-pills);min-width:0}
.rr-pills-rail{position:absolute;left:0;right:0;top:-6px;height:1px;pointer-events:none;
  background:linear-gradient(90deg, transparent, rgb(var(--rose-lt-rgb) / .10) 12%, rgb(var(--rose-lt-rgb) / .10) 88%, transparent)}
.rr-pills-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:none;
  font:500 11.5px/1 var(--f-sans);color:rgb(145 163 180 / .8);letter-spacing:.01em}
.rr-pills-empty i{width:6px;height:6px;border-radius:50%;background:rgb(var(--rose-rgb) / .5)}
.rr-pill{position:absolute;top:0;left:0;height:var(--pill-h);display:inline-flex;align-items:center;gap:6px;padding:0 10px 0 7px;
  border-radius:var(--r-pill);border:1px solid var(--g-border);
  background:linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / 0) 60%), var(--g-fill-onpic);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .12), 0 6px 14px -8px rgb(0 0 0 / .7);
  font:500 11.5px/1 var(--f-sans);color:var(--text-2);white-space:nowrap;cursor:pointer;
  transition:border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform .12s var(--ease)}
.rr-pill .rr-pill-dot{width:6px;height:6px;border-radius:50%;flex:none;background:var(--c, var(--rose));box-shadow:0 0 6px var(--c, var(--rose))}
.rr-pill .rr-pill-tc{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600;letter-spacing:.01em}
.rr-pill .rr-pill-sep{opacity:.45}
.rr-pill .rr-pill-txt{max-width:140px;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover) and (pointer:fine){ .rr-pill:hover{border-color:var(--g-border-hi);color:var(--text)} }
.rr-pill:active{transform:scale(.97)}
.rr-pill.is-near{border-color:rgb(var(--rose-rgb) / .85);color:var(--text);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(var(--rose-rgb) / .28), 0 6px 18px -6px rgb(var(--rose-rgb) / .6)}
/* the dot always sits on the note's time: near the right edge the pill grows leftwards with its dot on the right end */
.rr-pill.is-flip{padding:0 7px 0 10px}
.rr-pill.is-flip .rr-pill-dot,.rr-pill.is-flip .rr-pill-dots{order:9}
/* no room for the text: compact (dot + TC) or a single dot; it opens in place on hover / focus / under the playhead */
.rr-pill.is-compact .rr-pill-sep,.rr-pill.is-compact .rr-pill-txt,
.rr-pill.is-dot .rr-pill-tc,.rr-pill.is-dot .rr-pill-sep,.rr-pill.is-dot .rr-pill-txt{display:none}
.rr-pill.is-dot{padding:0 7px}
.rr-pill.is-compact:is(:hover,:focus-visible,.is-near),.rr-pill.is-dot:is(:hover,:focus-visible,.is-near){z-index:3;
  background:linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / 0) 60%), rgb(14 20 30 / .97)}
.rr-pill.is-compact:is(:hover,:focus-visible,.is-near) :is(.rr-pill-sep,.rr-pill-txt),
.rr-pill.is-dot:is(:hover,:focus-visible,.is-near) :is(.rr-pill-tc,.rr-pill-sep,.rr-pill-txt){display:inline}
.rr-pill.is-dot:is(:hover,:focus-visible,.is-near){padding:0 10px 0 7px}
.rr-pill.is-dot.is-flip:is(:hover,:focus-visible,.is-near){padding:0 7px 0 10px}
.rr-pill.rr-pill-more{padding:0 10px;color:var(--text);font-weight:600}
.rr-pill.rr-pill-more .rr-pill-dots{display:inline-flex;gap:2px}
.rr-pill.rr-pill-more .rr-pill-dots i{width:5px;height:5px;border-radius:50%;background:var(--c, var(--rose))}
@media (max-width:1360px), (max-height:820px){
  .rr-pill{font-size:10.5px;gap:5px;padding:0 8px 0 6px} .rr-pill .rr-pill-txt{max-width:118px}
  .rr-pill.is-flip{padding:0 6px 0 8px} .rr-pill.is-dot{padding:0 6px}
  .rr-pill.is-dot:is(:hover,:focus-visible,.is-near){padding:0 8px 0 6px} .rr-pill.is-dot.is-flip:is(:hover,:focus-visible,.is-near){padding:0 6px 0 8px}
}

/* ---------- Popovers (pills "+N", settings, finish confirm) ---------- */
.rr-popover-root{position:fixed;inset:0;pointer-events:none;z-index:40}
.rr-pop{position:absolute;pointer-events:auto;min-width:220px;max-width:340px;padding:8px;border-radius:16px;
  background:var(--g-sheen),rgb(16 22 32 / .78);border:1px solid var(--g-border-hi);
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);box-shadow:var(--g-rim),var(--g-depth-hi);
  animation:rr-pop-in .18s var(--ease)}
@keyframes rr-pop-in{from{opacity:0;transform:translateY(4px) scale(.98)}}
.rr-pop-title{font:600 10.5px/1 var(--f-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--grey);padding:6px 8px 8px}
.rr-pop-row{display:flex;align-items:center;gap:8px;width:100%;padding:8px;border:0;border-radius:10px;background:transparent;text-align:left;
  font:500 12.5px/1.3 var(--f-sans);color:var(--text-2)}
.rr-pop-row:hover,.rr-pop-row:focus-visible{background:var(--g-fill-nest);color:var(--text)}
.rr-pop-row .rr-pill-dot{width:7px;height:7px;border-radius:50%;flex:none;background:var(--c, var(--rose))}
.rr-pop-row .rr-pill-tc{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600;flex:none}
.rr-pop-row .rr-pop-txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rr-pop-text{font:400 13px/1.5 var(--f-sans);color:var(--text-2);padding:4px 8px 12px}
.rr-pop-actions{display:flex;gap:8px;justify-content:flex-end;padding:0 4px 4px}
.rr-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:10px 8px;border:0;border-radius:10px;background:transparent;
  font:500 12.5px/1.35 var(--f-sans);color:var(--text-2);text-align:left}
.rr-toggle:hover{background:var(--g-fill-nest);color:var(--text)}
.rr-toggle small{display:block;color:var(--grey);font-size:11px;font-weight:400;margin-top:2px}
.rr-switch{position:relative;flex:none;width:34px;height:20px;border-radius:999px;background:rgb(95 116 132 / .55);box-shadow:inset 0 1px 2px rgb(0 0 0 / .5);transition:background-color var(--t-fast) var(--ease)}
.rr-switch::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--text);box-shadow:0 1px 2px rgb(0 0 0 / .5);transition:transform var(--t-fast) var(--ease)}
.rr-toggle[aria-checked="true"] .rr-switch{background:rgb(var(--rose-rgb) / .85)}
.rr-toggle[aria-checked="true"] .rr-switch::after{transform:translateX(14px)}

/* small glass pill buttons (popovers, finish confirm) */
.rr-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:34px;padding:0 16px;border-radius:var(--r-pill);
  font:500 13px/1 var(--f-sans);color:var(--text);background:var(--g-sheen),var(--g-fill);border:1px solid var(--g-border);box-shadow:var(--g-rim);
  transition:background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform .1s var(--ease)}
.rr-btn:hover{background-color:var(--g-fill-hi);border-color:var(--g-border-hi)}
.rr-btn:active{transform:scale(.98)}
.rr-btn.is-primary{color:#0A111A;font-weight:600;border-color:rgb(255 255 255 / .35);
  background:radial-gradient(80% 60% at 50% 0%, rgb(255 255 255 / .6), transparent 70%), linear-gradient(180deg, #F2E1E2, #D5B1B2 60%, #B98C90);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -2px 3px rgb(88 46 52 / .3), 0 6px 16px -8px rgb(var(--rose-rgb) / .7)}

/* toast (notices: plain words, never a modal) */
.rr-toast{position:absolute;left:50%;top:calc(var(--pad) + var(--row-top) + 10px);transform:translateX(-50%);pointer-events:auto;max-width:min(520px, 60vw);
  padding:10px 16px;border-radius:14px;font:500 12.5px/1.4 var(--f-sans);color:var(--text);
  background:var(--g-sheen),rgb(16 22 32 / .8);border:1px solid var(--g-border-hi);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);
  box-shadow:var(--g-rim),var(--g-depth);animation:rr-pop-in .2s var(--ease)}
.rr-toast.is-leaving{opacity:0;transition:opacity .4s var(--ease)}

/* ---------- Script card (CONTRACT I.6): glass over the lower part of the picture ---------- */
.rr-script-card{position:absolute;left:50%;bottom:calc(var(--bezel) + 10px);transform:translateX(-50%);z-index:5;
  width:min(560px, calc(100% - 2 * var(--bezel) - 32px));max-height:calc(100% - 2 * var(--bezel) - 20px);overflow:hidden;
  padding:10px 12px 12px;border-radius:var(--r-tile);
  background:var(--g-sheen),rgb(10 17 26 / .72);border:1px solid var(--g-border-hi);
  -webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);box-shadow:var(--g-rim),var(--g-depth);
  animation:rr-card-in .28s var(--ease)}
.rr-script-card.is-wide{width:min(640px, calc(100% - 2 * var(--bezel) - 32px))}
@keyframes rr-card-in{from{opacity:0;transform:translate(-50%, 8px)}}
.rr-sc-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;min-width:0}
.rr-sc-title{font:600 12px/1.2 var(--f-sans);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rr-sc-title .rr-sc-dim{color:var(--grey);font-weight:500}
.rr-sc-close{margin-left:auto;flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;padding:0;border:1px solid var(--g-border);
  background:var(--g-fill-nest);color:var(--text-2)}
.rr-sc-close:hover{color:var(--text);border-color:var(--g-border-hi)}
.rr-sc-close .rr-ico{width:13px;height:13px}
.rr-sc-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.rr-sc-cols.is-pair{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.rr-sc-col{min-width:0;border-radius:11px;border:1px solid color-mix(in srgb, var(--cc, var(--c-vo)) 42%, transparent);
  background:linear-gradient(180deg, rgb(255 255 255 / .035), transparent), rgb(7 11 16 / .55);overflow:hidden}
.rr-sc-col.is-ref{--cc:#9AA6B6}
.rr-sc-colhd{display:flex;align-items:center;gap:6px;padding:6px 9px;font:500 10.5px/1 var(--f-sans);color:var(--text-2);
  border-bottom:1px solid rgb(255 255 255 / .05);white-space:nowrap;min-width:0}
.rr-sc-colhd img{width:16px;height:11px;border-radius:2px;flex:none;box-shadow:0 0 0 1px rgb(0 0 0 / .4)}
.rr-sc-colhd b{font-weight:600;color:var(--text)}
.rr-sc-chip{display:inline-flex;align-items:center;height:17px;padding:0 7px;border-radius:9px;font:600 10px/1 var(--f-sans);white-space:nowrap;flex:none;
  background:rgb(255 255 255 / .08);color:#cbd5e1}
.rr-sc-chip.is-fit{background:#2a1d20;color:var(--rose)}
.rr-sc-chip.is-over{background:#3a2705;color:#fbbf24}
.rr-sc-chip.is-short{background:#121a24;color:var(--grey)}
.rr-sc-chip.is-changed{background:rgb(var(--rose-rgb) / .16);color:var(--rose-lt);border:1px solid rgb(var(--rose-rgb) / .45)}
.rr-sc-chip.is-take{background:rgb(237 207 112 / .14);color:var(--c-vo)}
.rr-sc-colhd .rr-sc-chips{margin-left:auto;display:flex;gap:4px}
.rr-sc-text{padding:7px 10px 9px;font:500 13.5px/1.6 var(--f-sans);color:#d7e2f2;text-wrap:pretty}
.rr-sc-col.is-ref .rr-sc-text{font-size:12.5px;color:#aab6c6}
.rr-w{color:#5a6b84;transition:color .09s, text-shadow .09s;border-radius:4px}
.rr-w.is-spoken{color:#c7d4e6}
.rr-w.is-cur{color:var(--cc, var(--c-vo));text-shadow:0 0 14px var(--cc, var(--c-vo)), 0 1px 5px #000}
.rr-sc-text.is-static .rr-w{color:#d7e2f2}
.rr-sc-text .rr-sc-was{display:block;margin-top:4px;font-size:11px;color:var(--grey);text-decoration:line-through;text-decoration-color:rgb(145 163 180 / .5)}
/* takes in the card (I.5): Original + up to 3 takes as 32 px tiles, listen (▶) and Pick */
.rr-sc-takes{margin-top:8px}
.rr-sc-takes-hd{display:flex;align-items:center;gap:7px;min-width:0;margin:0 2px 6px;font:500 10.5px/1 var(--f-sans);color:var(--grey);white-space:nowrap}
.rr-sc-takes-hd b{font-weight:600;color:var(--text);letter-spacing:.01em}
.rr-sc-chip.is-dir{background:rgb(237 207 112 / .12);color:var(--c-vo);border:1px solid rgb(237 207 112 / .28);max-width:180px;overflow:hidden;text-overflow:ellipsis}
.rr-sc-takes-hint{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.rr-sc-opts{display:flex;gap:6px;min-width:0}
.rr-sc-opt{position:relative;flex:1 1 0;min-width:0;height:34px;display:flex;align-items:center;gap:6px;padding:0 4px 0 4px;border-radius:12px;
  border:1px solid rgb(237 207 112 / .22);background:linear-gradient(180deg, rgb(255 255 255 / .05), transparent), rgb(7 11 16 / .6);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .06);transition:border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease)}
.rr-sc-opt.is-original{border-color:rgb(145 163 180 / .24)}
.rr-sc-opt.is-chosen{border-color:var(--g-sel-border);background:linear-gradient(180deg, rgb(255 255 255 / .06), transparent), var(--g-sel-fill);box-shadow:var(--g-sel-glow)}
.rr-sc-opt.is-playing{border-color:rgb(237 207 112 / .75);box-shadow:0 0 0 1px rgb(237 207 112 / .25), 0 0 14px -4px rgb(237 207 112 / .7)}
.rr-sc-opt.is-rendering{border-style:dashed;animation:rr-take-pulse 1.3s ease-in-out infinite}
@keyframes rr-take-pulse{50%{border-color:rgb(var(--rose-lt-rgb) / .8)}}
.rr-sc-opt-play{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;padding:0;border:1px solid rgb(237 207 112 / .35);
  color:var(--c-vo);background:radial-gradient(70% 60% at 50% 20%, rgb(255 255 255 / .16), transparent 70%), rgb(237 207 112 / .10);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .12), 0 3px 8px -4px rgb(0 0 0 / .8);transition:transform .1s var(--ease), background-color var(--t-fast) var(--ease)}
.rr-sc-opt-play .rr-ico{width:12px;height:12px;margin-left:1px}
.rr-sc-opt-play:hover:not(:disabled){background-color:rgb(237 207 112 / .22)}
.rr-sc-opt-play:active:not(:disabled){transform:scale(.94)}
.rr-sc-opt.is-original .rr-sc-opt-play{color:var(--text-2);border-color:rgb(145 163 180 / .35);background-color:rgb(145 163 180 / .10)}
.rr-sc-opt-lab{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1}
.rr-sc-opt-lab b{font:600 11.5px/1 var(--f-sans);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rr-sc-opt-lab small{font:500 9.5px/1 var(--f-sans);color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.rr-sc-opt-pick{flex:none;display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 8px 0 6px;border-radius:999px;
  font:600 10.5px/1 var(--f-sans);color:var(--text-2);border:1px solid var(--g-border);background:var(--g-fill-nest);
  transition:color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease)}
.rr-sc-opt-pick .rr-ico{width:11px;height:11px}
.rr-sc-opt-pick:hover:not(:disabled){color:var(--text);border-color:var(--g-border-hi)}
.rr-sc-opt-pick[aria-pressed="true"]{width:24px;padding:0;justify-content:center;color:#0A111A;border-color:rgb(255 255 255 / .35);cursor:default;
  background:radial-gradient(80% 60% at 50% 0%, rgb(255 255 255 / .6), transparent 70%), linear-gradient(180deg, #F2E1E2, #D5B1B2 60%, #B98C90)}
.rr-sc-opt button:disabled{opacity:.4;cursor:default}
.rr-sc-opts[data-n="5"] .rr-sc-opt-pick span,.rr-sc-opts[data-n="6"] .rr-sc-opt-pick span{display:none}
.rr-sc-opts[data-n="5"] .rr-sc-opt-pick,.rr-sc-opts[data-n="6"] .rr-sc-opt-pick{width:24px;padding:0;justify-content:center}
@media (max-width:1360px), (max-height:820px){
  .rr-script-card{padding:8px 10px 10px;bottom:calc(var(--bezel) + 6px)}
  .rr-sc-takes{margin-top:6px}
  .rr-sc-takes-hd{margin-bottom:5px;font-size:10px}
  .rr-sc-opts{gap:5px}
  .rr-sc-opt{height:32px;gap:4px;padding:0 3px}
  .rr-sc-opt-play{width:24px;height:24px}
  .rr-sc-opt-lab b{font-size:11px;letter-spacing:-.1px}
  .rr-sc-opt-pick{height:22px;gap:2px;padding:0 6px 0 4px;font-size:10px}
  .rr-sc-opt-pick[aria-pressed="true"]{width:22px;padding:0}
  .rr-sc-text{font-size:12.5px;line-height:1.5;padding:6px 9px 7px}
  .rr-sc-col.is-ref .rr-sc-text{font-size:11.5px}
}

/* ---------- Assets (CONTRACT I.6) ---------- */
.rr-assets{grid-area:assets;display:flex;flex-direction:column;padding:16px 10px 10px;gap:10px}
.rr-assets-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 6px}
.rr-assets-title{font:500 17px/1 var(--f-sans);letter-spacing:-.015em}
.rr-assets-sub{font:500 10.5px/1 var(--f-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--grey)}
.rr-asset-list{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:12px}
.rr-cut{display:flex;flex-direction:column;gap:2px}
.rr-files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rr-cut-head{display:flex;align-items:center;gap:8px;padding:0 6px 4px;font:600 11px/1 var(--f-sans);letter-spacing:.06em;color:var(--grey);font-variant-numeric:tabular-nums}
.rr-cut-head::after{content:"";flex:1;height:1px;background:linear-gradient(90deg, rgb(var(--rose-lt-rgb) / .14), transparent)}
.rr-cut-dur{font-weight:500;letter-spacing:.04em;text-transform:none;color:rgb(145 163 180 / .7);font-variant-numeric:tabular-nums}
.rr-file{position:relative;display:flex;align-items:center;height:var(--asset-row);border-radius:var(--r-chip);border:1px solid transparent;
  transition:background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){ .rr-file:hover{background:var(--g-fill-nest)} }
.rr-file.is-current{background:var(--g-sel-fill);border-color:var(--g-sel-border);box-shadow:var(--g-sel-glow)}
.rr-file-main{flex:1;min-width:0;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:5px;
  align-content:center;align-items:center;padding:0 4px 0 10px;border:0;background:transparent;text-align:left;border-radius:inherit}
.rr-file-flag{grid-row:1 / 3;width:22px;height:15px;border-radius:3px;box-shadow:0 0 0 1px rgb(0 0 0 / .45), 0 2px 5px -2px rgb(0 0 0 / .6);object-fit:cover}
.rr-file-name{font:500 12px/1.15 var(--f-sans);color:var(--text);overflow:hidden;letter-spacing:-.012em;
  white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.rr-file.is-current .rr-file-name{color:var(--g-sel-text)}
.rr-file-meta{display:flex;align-items:center;gap:7px;min-width:0;font:400 11px/1 var(--f-sans);color:var(--grey);white-space:nowrap}
.rr-file-meta .rr-badge{height:17px;padding:0 7px;font-size:10px}
.rr-dl{flex:none;width:28px;height:28px;margin-right:4px;border-radius:50%;display:grid;place-items:center;color:var(--grey);text-decoration:none;
  border:1px solid transparent;transition:color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease)}
.rr-dl .rr-ico{width:16px;height:16px}
.rr-dl:hover,.rr-dl:focus-visible{color:var(--text);background:var(--g-fill-nest);border-color:var(--g-border)}
.rr-dl[aria-disabled="true"]{opacity:.35;pointer-events:none}
@media (max-width:1360px), (max-height:820px){
  .rr-assets{padding:12px 8px 8px;gap:8px}
  .rr-asset-list{gap:8px}
  .rr-file-main{row-gap:3px;column-gap:8px;padding-left:8px}
  .rr-file-flag{width:18px;height:12px}
  .rr-file-name{font-size:11px}
  .rr-file-meta{font-size:10px;gap:5px}
  .rr-file-meta .rr-badge{height:15px;padding:0 6px;font-size:9.5px}
  .rr-dl{width:26px;height:26px;margin-right:5px}
}
.rr-finish{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:var(--r-pill);
  font:500 14px/1 var(--f-sans);color:var(--text);background:var(--g-sheen),var(--g-fill);border:1px solid var(--g-border);box-shadow:var(--g-rim),0 10px 24px -14px rgb(0 0 0 / .8);
  transition:background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform .1s var(--ease), box-shadow var(--t-fast) var(--ease)}
.rr-finish:hover{background-color:var(--g-fill-hi);border-color:var(--g-border-hi);box-shadow:var(--g-rim),0 12px 28px -14px rgb(0 0 0 / .8),var(--g-catch)}
.rr-finish:active{transform:scale(.98)}
.rr-finish .rr-ico{width:16px;height:16px;color:var(--rose)}
.rr-finish.is-done{color:#E6F6EA;border-color:rgb(107 186 124 / .6);background:var(--g-sheen),rgb(107 186 124 / .16);pointer-events:none}
.rr-finish.is-done .rr-ico{color:var(--c-ok-hi)}
@media (max-width:1360px), (max-height:820px){ .rr-finish{height:36px;font-size:13px} }

/* ---------- Hope panel: fallback layout only (HUI's hope.css wins; :where = zero specificity) ---------- */
.rr-hope{grid-area:hope;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px 14px 12px;overflow:hidden}
:where(.rr-hope) :where(.rr-hope-visual){align-self:center;width:var(--hope-canvas);height:var(--hope-canvas);border-radius:50%;flex:none;
  background:radial-gradient(50% 50% at 50% 42%, rgb(155 124 255 / .30), rgb(90 60 192 / .10) 55%, transparent 72%)}
:where(#hope-canvas){display:block;width:100%;height:100%}
:where(.rr-hope) :where(.rr-hope-status){text-align:center;font:500 12.5px/1.3 var(--f-sans);color:var(--text-2);min-height:17px}
:where(.rr-hope) :where(.rr-hope-mute){align-self:center;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:var(--r-pill);
  font:500 13.5px/1 var(--f-sans);color:var(--text);background:var(--g-sheen),var(--g-fill);border:1px solid var(--g-border);box-shadow:var(--g-rim)}
:where(.rr-hope) :where(.rr-hope-mute[aria-pressed="true"]){color:var(--g-sel-text);background:var(--g-sel-fill);border-color:var(--g-sel-border)}
:where(.rr-hope) :where(.rr-hope-transcript){flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:4px 2px;
  font:400 12.5px/1.45 var(--f-sans);color:var(--text-2);scrollbar-width:thin;scrollbar-color:rgb(var(--rose-rgb) / .25) transparent;
  mask-image:linear-gradient(180deg, transparent 0, #000 18px)}
:where(.rr-hope) :where(.rr-hope-compose){flex:none;display:flex;align-items:center;gap:6px;padding:4px 4px 4px 12px;border-radius:var(--r-pill);
  background:rgb(7 11 16 / .45);border:1px solid var(--g-border);box-shadow:inset 0 1px 2px rgb(0 0 0 / .35)}
:where(.rr-hope) :where(#hope-input){flex:1;min-width:0;height:32px;border:0;background:transparent;font:400 13px/1 var(--f-sans);color:var(--text);outline:none}
:where(.rr-hope) :where(#hope-input)::placeholder{color:rgb(145 163 180 / .75)}
:where(.rr-hope) :where(.rr-hope-send){flex:none;width:32px;height:32px;border-radius:50%;border:0;display:grid;place-items:center;color:#0A111A;
  background:linear-gradient(180deg, #F2E1E2, #D5B1B2 60%, #B98C90);box-shadow:inset 0 1px 0 rgb(255 255 255 / .7), 0 4px 10px -4px rgb(0 0 0 / .6)}
:where(.rr-hope) :where(.rr-hope-send) .rr-ico{width:15px;height:15px}
/* WEB's built-in typed-note fallback (only used when hope-panel.js is unavailable) */
.rr-note-cats{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.rr-note-cat{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border-radius:var(--r-pill);border:1px solid var(--g-border);
  background:var(--g-fill-nest);font:500 11px/1 var(--f-sans);color:var(--text-2)}
.rr-note-cat i{width:6px;height:6px;border-radius:50%;background:var(--c)}
.rr-note-cat[aria-pressed="true"]{color:var(--g-sel-text);background:var(--g-sel-fill);border-color:var(--g-sel-border)}
.rr-note-hint{text-align:center;font:400 11.5px/1.4 var(--f-sans);color:var(--grey)}
.rr-tline{max-width:92%;padding:7px 10px;border-radius:12px;background:rgb(255 255 255 / .04);border:1px solid rgb(255 255 255 / .05)}
.rr-tline.is-client{align-self:flex-end;background:rgb(var(--rose-rgb) / .13);border-color:rgb(var(--rose-rgb) / .22);color:var(--text)}
.rr-tline small{display:block;margin-bottom:2px;font-size:10.5px;color:var(--grey);font-variant-numeric:tabular-nums}

/* ---------- Arrival: intro overlay (CONTRACT I.8) ---------- */
.rr-intro{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;
  background:radial-gradient(70% 60% at 50% 45%, rgb(var(--navy-rgb) / 0), rgb(var(--navy-rgb) / .5));
  transition:opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med)}
.rr-intro.is-leaving{opacity:0;visibility:hidden;pointer-events:none}
.rr-intro-card{position:relative;isolation:isolate;width:min(580px, 100%);padding:38px 46px 30px;border-radius:var(--r-slab);text-align:center;
  background:var(--g-sheen),linear-gradient(160deg, rgb(var(--rose-lt-rgb) / .10), rgb(var(--rose-lt-rgb) / .04) 50%, rgb(var(--navy-rgb) / .30)), rgb(28 32 40 / .42);
  border:1px solid var(--g-border);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);
  box-shadow:var(--g-rim),var(--g-depth-hi),var(--g-catch);
  transition:transform var(--t-med) var(--ease)}
.rr-intro.is-leaving .rr-intro-card{transform:translateY(-6px) scale(.985)}
.rr-intro-card::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:var(--g-holo);pointer-events:none;opacity:.85;z-index:-1;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.rr-eyebrow{display:inline-flex;align-items:center;gap:10px;font:500 10.5px/1 var(--f-sans);letter-spacing:.18em;text-transform:uppercase;color:var(--grey)}
.rr-eyebrow .rr-brand-mark{font-size:14px;letter-spacing:-.005em;text-transform:none;color:var(--text)}
.rr-eyebrow-sep{width:4px;height:4px;border-radius:50%;background:rgb(var(--rose-rgb) / .6)}
.rr-intro-title{margin-top:22px;font:500 clamp(36px, 4.2vw, 50px)/1.02 var(--f-sans);letter-spacing:-.035em;text-wrap:balance}
.rr-intro-title em{font-family:var(--f-serif);font-style:italic;font-weight:360;font-size:1.05em;letter-spacing:-.01em;color:var(--rose)}
.rr-intro-line{margin-top:14px;font:400 15px/1.45 var(--f-sans);color:var(--text-2)}
.rr-intro-line .rr-dot{display:inline-block;width:3px;height:3px;margin:0 9px 3px;border-radius:50%;background:rgb(var(--rose-rgb) / .7);vertical-align:middle}
.rr-intro-small{margin-top:18px;font:400 12px/1.4 var(--f-sans);color:var(--grey)}
.rr-intro-error{margin-top:14px;font:500 13px/1.45 var(--f-sans);color:var(--rose-lt)}
.rr-intro-sub{display:block;margin-top:6px;font-size:12.5px;color:var(--grey)}

/* the 3D Start review pill with its thin progress ring */
.rr-start{position:relative;margin-top:28px;width:240px;height:56px;border:0;padding:0;border-radius:var(--r-pill);
  display:inline-grid;place-items:center;color:#0A111A;font:600 16px/1 var(--f-sans);letter-spacing:-.005em;
  background:
    radial-gradient(60% 70% at 50% 0%, rgb(255 255 255 / .78), rgb(255 255 255 / .12) 58%, transparent 75%),
    radial-gradient(80% 80% at 50% 115%, rgb(136 91 97 / .55), transparent 70%),
    linear-gradient(180deg, #F6E9EA 0%, #E4C7C8 40%, #CC9FA2 80%, #AE7F83 100%);
  box-shadow:inset 0 1px 1px rgb(255 255 255 / .95), inset 0 -3px 6px rgb(88 46 52 / .4),
    0 1px 0 rgb(255 255 255 / .08), 0 10px 22px -8px rgb(0 0 0 / .7), 0 3px 5px rgb(0 0 0 / .4), 0 18px 40px -14px rgb(var(--rose-rgb) / .6);
  transition:transform .14s var(--ease), box-shadow .14s var(--ease), filter var(--t-med) var(--ease), color var(--t-med) var(--ease)}
.rr-start-label{position:relative;z-index:1;text-shadow:0 1px 0 rgb(255 255 255 / .45)}
.rr-start:disabled{filter:saturate(.35) brightness(.72);color:rgb(10 17 26 / .7)}
.rr-start:not(:disabled):hover{filter:brightness(1.04)}
.rr-start:not(:disabled):active{transform:translateY(2px) scale(.985);
  box-shadow:inset 0 3px 7px rgb(88 46 52 / .5), inset 0 -1px 1px rgb(255 255 255 / .4), 0 3px 8px -3px rgb(0 0 0 / .7), 0 8px 20px -12px rgb(var(--rose-rgb) / .5)}
.rr-start-ring{position:absolute;left:-5px;top:-5px;width:250px;height:66px;overflow:visible;pointer-events:none}
.rr-start-ring rect{fill:none;stroke-width:1.5}
.rr-start-ring-track{stroke:rgb(var(--rose-lt-rgb) / .14)}
.rr-start-ring-fill{stroke:var(--rose-lt);stroke-linecap:round;stroke-dasharray:0 600;
  filter:drop-shadow(0 0 4px rgb(var(--rose-rgb) / .8));transition:opacity var(--t-med) var(--ease)}
.rr-start:not(:disabled) .rr-start-ring{opacity:0;transition:opacity var(--t-med) var(--ease) .2s}

/* ---------- Narrow screens ---------- */
.rr-small-screen{display:none}
@media (max-width:1099px){
  .rr-small-screen{display:block;position:fixed;left:50%;bottom:6px;transform:translateX(-50%);z-index:30;pointer-events:none;
    padding:4px 10px;border-radius:var(--r-pill);font:500 10.5px/1 var(--f-sans);color:var(--grey);background:var(--g-fill-solid);border:1px solid var(--g-border)}
  :root{--col-hope:184px;--col-assets:212px;--hope-canvas:150px}
}
@media (prefers-reduced-motion:reduce){
  .rr-room,.rr-intro,.rr-intro-card,.rr-pill,.rr-script-card,.rr-pop,.rr-sc-opt{transition:none!important;animation:none!important}
}
