#stage.rehearsing {background:#111112}
#stage.rehearsing > :is(#top,#sections,#player,footer,.page-line){display:none!important}
#rehearsal {
  --rh-width:min(100%,960px);width:100%;height:100%;display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;
  background:#111112;color:#f4f3ef;font-family:var(--display);
}
.rh-head,.rh-nav,.rh-tools,.rh-actions,.rh-identity,.rh-modes{display:flex;align-items:center}
.rh-head,.rh-nav {padding:8px max(18px,calc((1280px - 1100px)/2));gap:12px;justify-content:space-between;background:#151516}
.rh-head{min-height:52px;border-bottom:1px solid #363637}
.rh-head button,.rh-head select,.rh-tools button,.rh-tools a,.rh-nav button {
  min-height:36px;padding:5px 10px;color:#e8e7e4;border:1px solid transparent;
  background:transparent;border-radius:5px;text-decoration:none;font:600 14px/1.2 var(--display);white-space:nowrap;
}
.rh-head button:focus-visible,.rh-tools a:focus-visible,.rh-tools button:focus-visible,.rh-nav button:focus-visible,.rh-sentence:focus-visible {
  outline:2px solid #f0b90b;outline-offset:2px;
}
.rh-head select{border-color:#474749;color:#f0c542;background:#1d1d1e}
.rh-head button{border-color:#55504a}
.rh-head button:hover,.rh-tools button:hover,.rh-tools a:hover,.rh-nav button:hover,.rh-sentence:hover {color:#ffe186}
.rh-actions,.rh-modes,.rh-identity{gap:7px}
.rh-identity {gap:12px}.rh-identity img{width:37px;height:auto}.rh-identity strong{border-inline-start:1px solid #464648;padding-inline-start:12px;font-size:16px}
.rh-scroll {min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
.rh-reading {width:var(--rh-width);margin:0 auto;padding:16px 20px 28px}
.rh-preview {
  position:relative;width:min(100%,684px);aspect-ratio:1280/552;margin:0 auto;
  border:1px solid #393939;border-radius:6px;overflow:hidden;background:#121212;
}
#stage.rehearsing .rh-preview #canvas {
  width:1280px;height:552px;position:absolute;left:0;top:0;right:auto;bottom:auto;
  transform:scale(var(--rh-scale,1));transform-origin:top left;flex:none;pointer-events:none;
}
#stage.rehearsing #canvas :is(.detailLinks,.bk-play){visibility:hidden}
.rh-tools{align-items:center;justify-content:space-between;gap:8px;padding:8px 0;margin-top:12px;border-bottom:1px solid #343434}
.rh-tools .rh-modes{gap:0}.rh-tools button,.rh-tools a{display:inline-flex;align-items:center;justify-content:center;color:#c3c2bd}
.rh-tools button[aria-pressed="true"]{background:#2a2517;color:#ffcf42}
.rh-tools #rh-play,.rh-tools a,.rh-nav button{color:#f1c447}
#rh-text{width:100%;padding-top:6px}
#rh-text section{margin:0 0 1em}
#rh-text h2{color:#d5d0c2;font-size:clamp(16px,19.2px,20px);font-weight:650;line-height:1.4;margin:9px 0 5px}
#rh-text p{font:450 clamp(17px,21.12px,23px)/1.76 var(--display);margin:.25em 0 .6em;text-wrap:pretty}
.rh-sentence{color:#f4f1ea;text-decoration:none;border-radius:2px}
.rh-sentence[aria-current="time"]{color:#ffda66;text-decoration:underline;text-decoration-color:#967e39;text-underline-offset:.22em}
.rh-nav{min-height:49px;border-top:1px solid #353536;padding-bottom:7px}
.rh-nav button{border-color:#4b4330}.rh-nav output{font:600 14px var(--mono);color:#e1ded4}
