.clientPortal .clientSubtitlePanel { margin-top: 28px; padding-top: 26px; border-top: 1px solid #e7dcc5; }
.clientSubtitlePanel[hidden], .clientSubtitlePanel [hidden] { display: none !important; }
.clientPortal .clientSubtitlePanel h4 { margin: 0 0 8px; font: 600 clamp(28px, 3vw, 40px)/1.12 "Cormorant Garamond", serif; }
.clientPortal .clientSubtitlePanel header > p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: #645e51; }
.clientSubtitlePanel[data-status="ready"] header > p { color: #167657; }
.clientSubtitleWorkspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.clientSubtitleWorkspace > * { min-width: 0; }
.clientSubtitleStage { border-width: 4px; border-radius: 17px; }
.clientSubtitleStage video { object-fit: contain; }
.clientSubtitlePlayback { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.clientPortal .clientSubtitlePlayback button { width: auto; min-width: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; min-height: 38px; box-shadow: none; flex: 0 0 auto; }
.clientPortal .clientSubtitlePlayback input { min-width: 30px; width: 100%; padding: 0; flex: 1; accent-color: #ad7f20; }
.clientSubtitleStage:fullscreen { border: 0; border-radius: 0; width: 100%; height: 100%; }
.clientPortal .clientSubtitlePlaceholder { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; margin: 0; padding: 25px; text-align: center; background: #272722; color: #fff; font-size: 16px; }
.clientPortal .clientSubtitlePreviewNote { font-size: 13px; line-height: 1.55; color: #706c61; margin: 12px 0 0; }
.clientPortal .clientSubtitleTranscript h5 { font: 700 18px/1.3 "Overpass", sans-serif; margin: 0 0 8px; }
.clientPortal .clientSubtitleTranscript > p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #716b5e; }
.clientSubtitleCues { display: grid; gap: 14px; max-height: 370px; overflow: auto; scrollbar-width: thin; scrollbar-color: #d7be83 transparent; padding: 2px 8px 4px 2px; }
.clientSubtitleCue { display: grid; gap: 6px; }
.clientPortal .clientSubtitleTime { justify-self: start; padding: 5px 9px; min-height: 0; border-radius: 8px; font-size: 12px; line-height: 1.3; box-shadow: none; }
.clientPortal .clientSubtitleCue textarea { width: 100%; min-height: 77px; box-sizing: border-box; resize: vertical; padding: 12px; border-radius: 13px; border: 1px solid #ddcfb3; font: 500 16px/1.45 "Overpass", sans-serif; color: #282720; background: #fffdf8; }
.clientSubtitleCue textarea:focus { outline: 2px solid #b98d31; outline-offset: 2px; }
.clientSubtitleActions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 22px; }
.clientPortal .clientSubtitleActions button { white-space: normal; }
.clientPortal .clientSubtitleError { margin: 16px 0; padding: 12px 16px; border-radius: 12px; color: #912e29; background: #fff0e9; font-size: 15px; }
@media (max-width: 860px) {
  .clientSubtitleWorkspace { grid-template-columns: 1fr; gap: 22px; }
  .clientSubtitleCues { max-height: 340px; }
  .clientSubtitleActions > button { width: 100%; }
}
