body.tab-rehearsal .right-rail { display: none; }
body.tab-rehearsal .cv-nav a[href*="gamebanana.com"] { display: none; }
body.tab-rehearsal .content { padding: 12px 0; }
body.tab-rehearsal #studioIntro, body.tab-rehearsal #publisherGuide { display: none; }
.script-import { color: #f52e83; font-weight: 800; cursor: pointer; }
.rehearsal-setup > summary { cursor: pointer; color: #d3cedc; padding-block: 12px; }
#rehearsalWorkspace[hidden], #revealActorLine[hidden] { display: none; }
#rehearsalStatus { color: #c9c6d8; line-height: 1.5; min-height: 24px; }
.rehearsal-settings { display: flex; flex-wrap: wrap; gap: 18px; padding-block: 20px; border-block: 1px solid #302639; }
.rehearsal-settings label, .rehearsal-cast label { display: grid; gap: 8px; font-size: 14px; color: #d3cedc; min-width: 0; }
.rehearsal-settings select { max-width: 350px; }
.rehearsal-settings select, .rehearsal-cast select, .rehearsal-cast textarea { width: 100%; background: #100e1c; color: #fff; border: 1px solid #51445c; padding: 10px; border-radius: 6px; font: inherit; }
.rehearsal-settings .rehearsal-check { display: flex; align-items: center; gap: 8px; }
.rehearsal-check input { width: 18px; height: 18px; accent-color: #f52e83; flex-shrink: 0; }
.rehearsal-note { color: #aca5ba; font-size: 12px; }
.pilot-offer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 18px 0 8px; padding: 18px 20px; border: 1px solid #6c2c63; border-radius: 8px; background: linear-gradient(100deg, #1a1025, #110e1c); }
.pilot-offer h3 { margin: 4px 0 5px; font-size: 18px; }
.pilot-offer p { margin: 0; color: #bdb4ca; font-size: 13px; }
.pilot-kicker { color: #ff91bf; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.pilot-meta { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }
.pilot-meta strong { color: #63e7a6; font-size: 16px; }
.pilot-meta span { color: #aaa4b8; font-size: 12px; }
.pilot-meta button { margin-top: 5px; min-height: 38px; }
.rehearsal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; margin-top: 24px; }
.rehearsal-stage { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0; }
.rehearsal-scene-heading { width: 100%; display: flex; justify-content: space-between; gap: 20px; color: #b9b2c8; font-size: 13px; text-align: left; }
.rehearsal-scene-heading span:first-child { overflow-wrap: anywhere; }
.rehearsal-scene-heading span:last-child { white-space: nowrap; }
.rehearsal-mark { width: 92px; height: 92px; object-fit: contain; margin: 28px 0 20px; }
.rehearsal-speaker { font-size: 16px; font-weight: 700; color: #ff91bf; }
.actor-turn .rehearsal-speaker { color: #63e7a6; }
.rehearsal-directions { color: #aaa4b8; font-style: italic; font-size: 14px; line-height: 1.5; }
.rehearsal-cue { width: min(720px, 100%); display: grid; gap: 5px; margin: 8px 0 4px; padding: 10px 14px; text-align: left; background: #171327; border-left: 3px solid #ff9b35; border-radius: 6px; color: #d3cedc; }
.rehearsal-cue small { color: #ffb45c; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rehearsal-cue span { font-size: 16px; line-height: 1.45; }
.rehearsal-line { width: 100%; font-size: 26px; line-height: 1.65; font-weight: 600; min-height: 160px; overflow-wrap: anywhere; margin: 12px 0 24px; }
.spoken-word { color: #63e7a6; }
.rehearsal-follow { width: 100%; display: grid; gap: 10px; color: #aaa4b8; font-size: 13px; }
.rehearsal-follow progress { width: 100%; height: 8px; accent-color: #63e7a6; }
.rehearsal-transcript { width: 100%; min-height: 40px; color: #aaa4b8; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rehearsal-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; width: 100%; }
.rehearsal-controls button { min-height: 44px; border-radius: 6px; }
.rehearsal-controls button:disabled { opacity: .45; cursor: default; }
.rehearsal-transcript-strip { width: 100%; max-height: 118px; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 14px 2px 4px; scroll-snap-type: x proximity; }
.rehearsal-transcript-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; color: #d3cedc; font-size: 13px; text-align: left; }
.rehearsal-transcript-head label { display: flex; align-items: center; gap: 8px; color: #aaa4b8; }
.rehearsal-transcript-head select { background: #100e1c; color: #fff; border: 1px solid #51445c; border-radius: 6px; padding: 7px 9px; font: inherit; }
.rehearsal-transcript-item { flex: 0 0 min(240px, 72vw); display: grid; gap: 4px; text-align: left; scroll-snap-align: center; background: #100e1c; color: #c9c1d2; border: 1px solid #3a3046; border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.rehearsal-transcript-item strong { color: #ff91bf; font-size: 12px; }
.rehearsal-transcript-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.rehearsal-transcript-item.is-actor strong { color: #63e7a6; }
.rehearsal-transcript-item.is-current { border-color: #f52e83; box-shadow: 0 0 0 1px #f52e83; }
.rehearsal-cast { border-left: 1px solid #302639; padding-left: 20px; min-width: 0; }
.rehearsal-cast h3 { margin-top: 0; font-size: 16px; }
#rehearsalVoices { display: grid; gap: 18px; }
.rehearsal-review { margin-top: 28px; border-top: 1px solid #302639; padding-top: 18px; }
.rehearsal-review summary { cursor: pointer; padding-block: 8px; }
#scriptReview { max-height: 460px; overflow-y: auto; padding-right: 8px; }
#scriptReview label { margin-block: 20px; }
#scriptReview h4 { font-size: 13px; line-height: 1.5; color: #ff91bf; }
#scriptReview textarea { resize: vertical; line-height: 1.5; }
#scriptReview button { min-height: 40px; }
@media (max-width: 1120px) {
  .rehearsal-layout { grid-template-columns: minmax(0, 1fr); }
  .rehearsal-cast { border-left: 0; padding-left: 0; border-top: 1px solid #302639; padding-top: 20px; }
  #rehearsalVoices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pilot-offer { align-items: stretch; flex-direction: column; gap: 14px; }
  .pilot-meta { justify-items: start; }
  .pilot-meta button { width: 100%; }
  body.tab-rehearsal .content { padding: 12px 0; }
  body.tab-rehearsal .cv-now { display: none; }
  #rehearsalTab .section-head { flex-wrap: wrap; gap: 14px; }
  .rehearsal-settings { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rehearsal-settings select { max-width: none; }
  .rehearsal-line { font-size: 22px; min-height: 110px; margin-bottom: 12px; }
  .rehearsal-mark { display: none; }
  .rehearsal-speaker { margin-top: 18px; }
  .rehearsal-layout { margin-top: 12px; }
  .rehearsal-transcript { min-height: 28px; }
  .rehearsal-stage { padding-top: 10px; }
  #rehearsalTab { min-width: 0; overflow: hidden; }
  .rehearsal-settings { gap: 12px; padding-block: 14px; }
  .rehearsal-settings label, .rehearsal-cast label { font-size: 13px; }
  .rehearsal-settings select, .rehearsal-cast select, .rehearsal-cast textarea { min-width: 0; max-width: 100%; }
  .rehearsal-settings input[type="range"] { width: 100%; }
  .rehearsal-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rehearsal-controls button { width: 100%; min-width: 0; padding: 10px; }
  .rehearsal-transcript-head { align-items: stretch; flex-direction: column; }
  .rehearsal-transcript-head select { width: 100%; }
  .rehearsal-cue span { font-size: 15px; }
  .rehearsal-line { font-size: clamp(20px, 5.8vw, 22px); }
  #rehearsalVoices { grid-template-columns: minmax(0, 1fr); }
}
