/* 单集工作台（中控台）。 */

/* ===== 中控台：对齐现网布局 + 站位图 ===== */
body.ws-page .ws {
  grid-template-columns: 370px minmax(0, 1fr) 357px;
  grid-template-rows: minmax(0, 1fr) 154px;
  gap: 14px 16px;
  padding: 14px 16px 16px;
}
body.ws-page .panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: none;
}
body.ws-page .editor {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
body.ws-page .player {
  background: #000;
  border-color: rgba(255,255,255,.06);
  border-radius: 16px;
}
body.ws-page .timeline {
  grid-column: 2 / 4;
}
.ws-back {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #e4e4e7;
}
.ws-back:hover {
  background: rgba(255,255,255,.1);
}
.ws-title {
  margin-left: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #f4f4f5;
}
.ws-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.ws-seg button {
  height: 30px;
  padding: 0 18px;
  border-radius: 15px;
  color: #a1a1aa;
  font-weight: 520;
}
.ws-seg button.on {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.ws-export {
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #18181b;
  font-weight: 600;
}
.ws-export svg {
  width: 16px;
  height: 16px;
}
body.ws-page .assets-head h3 {
  font-size: 15px;
  font-weight: 600;
}
body.ws-page .asset-tabs {
  border-bottom-color: rgba(255,255,255,.08);
}
body.ws-page .asset-tabs button {
  font-size: 13px;
}
body.ws-page .asset-tabs button.on::after {
  background: #fff;
}
body.ws-page .asset-scroll {
  padding: 12px 16px 18px;
}
body.ws-page .cat {
  margin-bottom: 18px;
}
body.ws-page .cat-h {
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 600;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.cat-h svg {
  width: 14px;
  height: 14px;
  color: #a1a1aa;
}
body.ws-page .grid-2 {
  gap: 12px 10px;
}
.ws-acard {
  position: relative;
  display: block;
  width: 100%;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  overflow: visible;
  text-align: left;
}
.ws-acard .name {
  display: block;
}
.ws-acard .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.ws-acard.is-scene .thumb,
.ws-acard.is-prop .thumb {
  background: #18181b;
}
.ws-acard .thumb img {
  display: block;
  object-fit: cover;
  object-position: center;
}
.ws-acard.is-char .thumb img {
  object-fit: contain;
}
.ws-acard:hover .thumb {
  border-color: rgba(167,139,250,.55);
}
#asset-scroll[data-tab="clip"] .ws-acard .thumb {
  border-color: #8b5cf6;
}
.ws-acard .name {
  padding: 6px 2px 0;
  font-size: 12.5px;
  color: #e4e4e7;
}
.ws-placed {
  position: absolute;
  left: 6px;
  top: 6px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  color: #fff;
  background: rgba(124,58,237,.88);
}
.ws-cat-empty {
  display: block;
  color: #71717a;
  font-size: 12px;
  padding: 4px 0 6px;
}
.ws-cat-empty.is-center {
  text-align: center;
  padding: 48px 0;
}
.ws-drag-tip {
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #ddd6fe;
  background: rgba(139,92,246,.14);
  border: 1px solid rgba(139,92,246,.28);
}
body.ws-page .shot-head {
  height: 40px;
  padding: 0 2px;
  margin-bottom: 10px;
  gap: 12px;
}
body.ws-page .shot-head .left {
  min-width: 0;
  gap: 10px;
}
body.ws-page #shot-title {
  font-size: 15px;
  white-space: nowrap;
}
.ws-shot-hint {
  color: #71717a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ws-saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a1a1aa;
  font-size: 12px;
}
.ws-saved i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.ws-stage-hot {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: rgba(12,10,18,.74);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ws-stage-hot svg {
  width: 17px;
  height: 17px;
}
.ws-stage-hot em {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  color: #fff;
  background: #7c3aed;
  box-shadow: 0 0 0 2px #18171d;
}
.ws-stage-hot::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  transform: translateY(3px);
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(18,16,23,.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.ws-stage-hot:hover {
  transform: translateY(-1px);
  background: rgba(40,34,54,.94);
  border-color: rgba(196,181,253,.55);
}
.ws-stage-hot:hover::after,
.ws-stage-hot:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ws-stage-hot.is-on {
  color: #fff;
  background: rgba(124,58,237,.92);
  border-color: rgba(221,214,254,.45);
}
.ws-stage-hot.is-on .ws-stage-status-path {
  color: #86efac;
}
.ws-stage-hot.is-off {
  color: #d4d4d8;
  background: rgba(18,17,23,.82);
  border-color: rgba(255,255,255,.2);
}
.ws-stage-hot.is-off .ws-stage-status-path {
  color: #a1a1aa;
}
.ws-stage-hot.is-off em {
  color: #d4d4d8;
  background: #52525b;
}
.ws-stage-hot:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}
.ws-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: #d4d4d8;
  border: 1px solid rgba(255,255,255,.12);
}
.ws-icon:hover {
  background: rgba(255,255,255,.08);
}
.ws-icon svg {
  width: 16px;
  height: 16px;
}
body.ws-page .prompt-box,
.stage-view {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}
.prompt-box[hidden],
.stage-view[hidden],
.sv-empty[hidden],
.sv-off[hidden] {
  display: none !important;
}
.ws-prompt {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  outline: none;
  font-size: 13px;
  line-height: 1.95;
  color: #f4f4f5;
  white-space: pre-wrap;
  word-break: break-word;
}
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 6px 0 4px;
  margin: 0 1px;
  border-radius: 17px;
  border: 1px solid;
  font-size: 12.5px;
  line-height: 1;
  vertical-align: 1px;
  white-space: nowrap;
}
.pchip svg {
  width: 12px;
  height: 12px;
}
.pc-char {
  background: rgba(251,146,60,.15);
  border-color: rgba(251,146,60,.7);
}
.pc-scene {
  background: rgba(129,140,248,.15);
  border-color: rgba(129,140,248,.7);
}
.pc-prop {
  background: rgba(45,212,191,.13);
  border-color: rgba(45,212,191,.65);
}
.pc-time {
  padding: 0 6px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #d4d4d8;
}
.pc-stage {
  background: rgba(168,113,255,.16);
  border-color: rgba(186,146,255,.75);
  color: #eadcff;
}
body.ws-page .shot-foot {
  padding: 12px 0 0;
  border-top: 0;
  gap: 8px;
}
.ws-gen-group {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 3px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.ws-gen-group .model-wrap {
  position: relative;
}
.ws-gen-group .model-btn,
.ws-gen-group .mini {
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 15px;
  background: transparent;
}
.ws-gen-group .model-btn:hover,
.ws-gen-group .mini:hover {
  background: rgba(255,255,255,.08);
}
.ws-gen-group .mini input {
  width: 26px;
}
.ws-foot-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ws-foot-actions .mini {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.ws-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4d4d8;
  font-size: 12.5px;
  white-space: nowrap;
}
.ws-switch i {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.22);
  transition: background .15s;
}
.ws-switch i::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}
.ws-switch.on i {
  background: #9e4cff;
}
.ws-switch.on i::after {
  transform: translateX(12px);
}
.ws-switch:disabled {
  opacity: .45;
  cursor: not-allowed;
}
body.ws-page .gen-btn {
  margin-left: 0;
  height: 32px;
  border-radius: 16px;
  padding: 0 16px;
  color: #18181b;
  background: #fff;
  border: 0;
  box-shadow: none;
}
body.ws-page .gen-btn:hover {
  background: #e4e4e7;
}
body.ws-page .gen-btn:disabled {
  color: #a1a1aa;
  background: rgba(255,255,255,.1);
  cursor: default;
}
body.ws-page .draft-hint {
  margin-top: 10px;
  border: 1px solid rgba(157,103,255,.2);
  border-radius: 12px;
}
body.ws-page .player .stage {
  background: #000;
}
.stage-badges {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.stage-badges .player-status {
  position: static;
}
.station-badge {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #a1a1aa;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.12);
}
.station-badge.on {
  color: #ddd6fe;
  border-color: rgba(167,139,250,.55);
}
.station-badge.on::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
}
body.ws-page .player-bar {
  height: 40px;
  justify-content: space-between;
  font-size: 12px;
}
.ws-player-tools {
  display: flex;
  gap: 2px;
}
.ws-player-tools button {
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  color: #a1a1aa;
  font-size: 11.5px;
  white-space: nowrap;
}
body.ws-page .player-bar > span:first-child {
  white-space: nowrap;
}
.ws-player-tools button:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
body.ws-page .tl-head {
  height: 40px;
  padding: 0 16px;
  border-bottom: 0;
}
.ws-tl-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4d4d8;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.ws-play {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #fff;
  background: rgba(255,255,255,.1);
}
body.ws-page .tl-track {
  gap: 6px;
  padding: 2px 16px 14px;
}
.ws-tl-add {
  flex: none;
  width: 18px;
  height: 40px;
  border-radius: 9px;
  color: #71717a;
  font-size: 14px;
  background: rgba(255,255,255,.05);
}
.ws-tl-add:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
body.ws-page .tcard {
  width: 160px;
  height: 90px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.1);
  box-shadow: none;
}
body.ws-page .tcard.on {
  border-color: #fff;
}
.ws-tl-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ws-tl-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ws-tl-empty {
  color: #52525b;
  font-size: 20px;
}
body.ws-page .tcard .num {
  left: 6px;
  top: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.55);
}
body.ws-page .tcard .state {
  right: 6px;
  top: 6px;
  background: rgba(0,0,0,.55);
}
body.ws-page .tcard .dur {
  left: 6px;
  bottom: 5px;
  color: #e4e4e7;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
#stage-modal {
  z-index: 30;
  background: rgba(0,0,0,.55);
}
.stage-modal {
  width: min(980px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
  overflow: visible;
  background: #16141c;
  border-radius: 18px;
}
.stage-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex: none;
}
.stage-modal-head h3 {
  font-size: 15px;
  font-weight: 600;
}
.stage-modal-title {
  min-width: 0;
}
.stage-modal-title span {
  display: block;
  margin-top: 2px;
  color: #77727f;
  font-size: 11.5px;
}
.stage-modal-head .ws-switch {
  margin-left: auto;
}
.stage-modal .stage-view {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.stage-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}
.sv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}
.sv-scenes {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}
.sv-scene {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 4px 12px 4px 4px;
  border-radius: 10px;
  text-align: left;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.sv-scene img {
  width: 54px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}
.sv-scene b {
  display: block;
  font-size: 12px;
  font-weight: 560;
}
.sv-scene small {
  display: block;
  font-size: 10.5px;
  color: #71717a;
}
.sv-scene.on {
  border-color: #a78bfa;
  background: rgba(139,92,246,.16);
}
.sv-scene-one {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4d4d8;
  font-size: 12.5px;
}
.sv-scene-one svg {
  width: 14px;
  height: 14px;
}
.sv-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.sv-tools button {
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  color: #d4d4d8;
  font-size: 12px;
  background: rgba(255,255,255,.06);
}
.sv-tools button:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
}
.sv-tools button:disabled {
  opacity: .38;
  cursor: default;
}
.sv-tools i {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: rgba(255,255,255,.14);
}
.sv-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-canvas {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.sv-canvas.is-drop {
  outline: 2px dashed #a78bfa;
  outline-offset: 2px;
}
.sv-canvas > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.sv-layer {
  position: absolute;
  inset: 0;
}
.sv-point {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sv-point i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.8);
  background: rgba(0,0,0,.3);
}
.sv-point em {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-style: normal;
  font-size: 10.5px;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.sv-point.is-used i {
  opacity: .3;
}
.sv-point.is-used em {
  display: none;
}
.sv-range {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px dashed rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
}
.sv-range.is-out {
  border-color: #ff5d73;
  background: rgba(255,93,115,.14);
}
.mk {
  position: absolute;
  width: calc(var(--h) * .34);
  height: var(--h);
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: .6;
  cursor: grab;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
  transition: opacity .15s;
}
.mk:hover {
  opacity: .85;
}
.mk.on {
  opacity: 1;
  z-index: 3;
}
.mk.is-bounce {
  transition: left .28s cubic-bezier(.3, 1.5, .5, 1), top .28s cubic-bezier(.3, 1.5, .5, 1);
}
.mk-name {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 9px;
  transform: translateX(-50%);
  white-space: nowrap;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(10,10,14,.78);
  border: 1px solid var(--c);
}
.mk-head {
  position: relative;
  flex: none;
  width: calc(var(--h) * .22);
  height: calc(var(--h) * .22);
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.mk-dir {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mk-dir i {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0;
  height: 0;
  margin-left: -5px;
  margin-top: 1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #fff;
  pointer-events: auto;
  z-index: 1;
}
.mk-dir i::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.mk.on .mk-dir i {
  cursor: alias;
}
.mk.on .mk-head::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.7);
  pointer-events: none;
}
.mk-body {
  position: relative;
  flex: 1;
  width: calc(var(--h) * .28);
  margin-top: calc(var(--h) * .015);
  overflow: hidden;
  border-radius: calc(var(--h) * .12) calc(var(--h) * .12) calc(var(--h) * .05) calc(var(--h) * .05);
  background: #f4f4f5;
  border: 1.5px solid var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.mk-wear {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.38);
  pointer-events: none;
  user-select: none;
}
.mk-foot {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: calc(var(--h) * .42);
  height: calc(var(--h) * .11);
  border-radius: 50%;
  border: 2px solid var(--c);
  background: rgba(0,0,0,.3);
}
.mk.is-locked .mk-foot {
  border-style: dashed;
}
.mk.is-overlap .mk-head,
.mk.is-overlap .mk-body {
  box-shadow: 0 0 0 2px #ff4d67;
}
.mk.is-overlap .mk-name {
  border-color: #ff4d67;
  color: #ffd1d8;
}
.sv-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  background: rgba(10,10,14,.76);
  pointer-events: none;
}
.sv-empty b {
  font-size: 14px;
}
.sv-empty span {
  font-size: 12px;
  color: #a1a1aa;
}
.sv-off {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8,8,12,.66);
  backdrop-filter: blur(2px);
}
.sv-off b {
  font-size: 15px;
}
.sv-off span {
  font-size: 12px;
  color: #a1a1aa;
}
.sv-off button {
  margin-top: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  color: #18181b;
  background: #fff;
  font-weight: 600;
}
.sv-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 38px;
  padding: 4px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.sv-add-person {
  flex: none;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ddd6fe;
  background: rgba(124,58,237,.16);
  border: 1px solid rgba(167,139,250,.3);
  font-size: 12px;
  font-weight: 600;
}
.sv-add-person svg {
  width: 15px;
  height: 15px;
}
.sv-add-person:hover,
.sv-add-person.on {
  color: #fff;
  background: rgba(124,58,237,.38);
  border-color: rgba(196,181,253,.55);
}
.sv-add-person:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}
.sv-tray {
  flex: none;
  max-width: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sv-tray::-webkit-scrollbar {
  display: none;
}
.sv-tray-h {
  flex: none;
  color: #a1a1aa;
  font-size: 12px;
}
.sv-tray-none {
  color: #71717a;
  font-size: 12px;
}
.sv-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 13px;
  white-space: nowrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: grab;
}
.sv-chip.is-placed {
  cursor: pointer;
}
.sv-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.sv-chip b {
  font-size: 12.5px;
  font-weight: 560;
}
.sv-chip small {
  font-size: 11px;
  color: #71717a;
}
.sv-chip.is-placed small {
  color: #86efac;
}
.sv-chip.is-off small {
  color: #fbbf24;
}
.sv-hint {
  flex: 1;
  min-width: 0;
  color: #8d8996;
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-hint b {
  color: #e4e4e7;
  font-weight: 560;
}
.sv-hint button {
  color: #c4b5fd;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sv-person-picker {
  position: absolute;
  left: 16px;
  bottom: 58px;
  z-index: 12;
  width: 330px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(24,22,31,.98);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 44px rgba(0,0,0,.48);
  backdrop-filter: blur(12px);
}
.sv-person-picker[hidden] {
  display: none !important;
}
.sv-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sv-person-head b {
  font-size: 13px;
  font-weight: 600;
}
.sv-person-head button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #9b96a5;
  font-size: 18px;
  line-height: 1;
}
.sv-person-head button:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.sv-person-search {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #77727f;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.sv-person-search:focus-within {
  border-color: rgba(167,139,250,.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.sv-person-search svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.sv-person-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  color: #f4f4f5;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12.5px;
}
.sv-person-list {
  max-height: 286px;
  margin-top: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sv-person-row {
  width: 100%;
  min-height: 50px;
  padding: 4px 7px 4px 4px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.sv-person-row:hover:not(:disabled) {
  background: rgba(255,255,255,.07);
}
.sv-person-row img {
  width: 40px;
  height: 42px;
  border-radius: 7px;
  object-fit: contain;
  background: #eee;
}
.sv-person-row span {
  min-width: 0;
}
.sv-person-row b,
.sv-person-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sv-person-row b {
  color: #f2eff7;
  font-size: 12.5px;
  font-weight: 600;
}
.sv-person-row small {
  margin-top: 2px;
  color: #77727f;
  font-size: 10.5px;
}
.sv-person-row em {
  color: #c4b5fd;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}
.sv-person-row.is-placed {
  opacity: .48;
  cursor: default;
}
.sv-person-row.is-placed em {
  color: #86efac;
}
.sv-person-empty {
  padding: 28px 0;
  text-align: center;
  color: #77727f;
  font-size: 12px;
}
.sv-person-picker > p {
  margin-top: 8px;
  color: #77727f;
  font-size: 10.5px;
  line-height: 1.5;
}
.sv-point.is-target i {
  width: 16px;
  height: 16px;
  border: 2px solid #c4b5fd;
  background: rgba(139,92,246,.45);
  box-shadow: 0 0 0 6px rgba(139,92,246,.2);
}
.sv-point.is-target em {
  display: block;
  color: #fff;
  font-weight: 600;
}
.sv-canvas.is-drop .sv-point:not(.is-used):not(.is-target) i {
  border-color: #c4b5fd;
}
.sv-pop {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 4px;
  border-radius: 17px;
  background: rgba(24,22,32,.94);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.sv-pop[hidden] {
  display: none;
}
.sv-pop button {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  color: #e4e4e7;
  font-size: 13px;
}
.sv-pop button:hover {
  background: rgba(255,255,255,.1);
}
.sv-pop .sv-pop-icon {
  width: 26px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #d4d4d8;
}
.sv-pop .sv-pop-icon:hover {
  color: #fff;
}
.sv-pop-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}
.sv-pop em {
  font-style: normal;
  font-size: 12px;
  color: #fff;
  text-align: center;
}
.sv-pop-dir {
  min-width: 48px;
}
.sv-pop-size {
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}
.sv-pop-sep {
  width: 1px;
  height: 14px;
  margin: 0 3px;
  background: rgba(255,255,255,.14);
}
.sv-pop .sv-pop-text {
  font-size: 12px;
  color: #d4d4d8;
}
.sv-pop .sv-pop-text.on {
  color: #ddd6fe;
  background: rgba(139,92,246,.28);
}
.sv-pop .sv-pop-text.is-danger {
  color: #fda4af;
}
body.ws-full .ws .editor {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
}
body.ws-full .ws .player,
body.ws-full .ws .timeline {
  display: none;
}
body.ws-full .ws-icon[data-act="full"] {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.sv-modal p {
  margin: 8px 0 16px;
  color: #a1a1aa;
  line-height: 1.7;
}
.sv-modal-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1280px) {
  body.ws-page .ws {
    grid-template-columns: 300px minmax(0, 1fr) 280px;
  }
  .ws-shot-hint {
    display: none;
  }
}

@media (max-width: 1100px) {
  body.ws-page .ws {
    grid-template-columns: 250px minmax(0, 1fr) 240px;
  }
  .ws-saved {
    display: none;
  }
  .ws-player-tools button {
    padding: 0 5px;
    font-size: 11px;
  }
}
.shot-voices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.shot-voices:empty { display: none; }
.shot-voices-label,
.shot-voices em {
  color: #8d8796;
  font-size: 12px;
  font-style: normal;
}
.shot-voices em {
  flex: 1 0 100%;
  line-height: 1.4;
}
.shot-voice {
  height: 28px;
  padding: 0 8px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}
.shot-voice.is-empty { border-color: rgba(240,176,92,.35); }
.shot-voice b { color: #f4f1f8; font-weight: 620; }
.shot-voice strong { color: #e4d8ff; font-weight: 560; }
.shot-voice small { color: #f0c27a; }
.shot-voice i {
  color: #cbbcf2;
  font-style: normal;
  font-size: 10px;
}
.shot-voice button,
.shot-voice a {
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #7c5cff;
  font-size: 11px;
  line-height: 20px;
}
.shot-voice a { text-decoration: none; }
