/* Review-only styles. The import view retains its own controls and layout. */
#ptStudio { --ink:#192b29;--sub:#5e6d68;--muted:#718079;--line:#d9dfd9;--accent:#176358;--src:#6588aa;--dst:#328271;--play:#ce6537;--gutter:24px;--mono:"SFMono-Regular",Menlo,monospace;font:15px/1.48 Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC",sans-serif;color:var(--ink);background:#f2f3ef }
#ptStudio * { box-sizing:border-box }
#ptStudio, #ptStudio h1, #ptStudio h2, #ptStudio h3, #ptStudio p { margin:0 }
#ptStudio button { font:inherit;line-height:1.25;color:inherit;cursor:pointer }
#ptStudio button:disabled { cursor:default }
#ptStudio button:focus-visible { outline:3px solid #2c947e;outline-offset:3px }
#ptStudio [hidden] { display:none!important }
#ptStudio [data-icon] { display:inline-flex;align-items:center;justify-content:center;flex:none }
#ptStudio [data-icon] svg { display:block;width:17px;height:17px }
#ptStudio .pr-mast { background:#1d2b29;color:#fbfffa;border-bottom:1px solid #172622 }
#ptStudio .pr-mast-inner, #ptStudio main { width:calc(100% - 96px);max-width:1240px;margin:0 auto }
#ptStudio .pr-mast-inner { height:52px;display:flex;align-items:center;gap:14px;font-size:13px }
#ptStudio .pr-brand { display:flex;align-items:center;gap:9px;font-size:17px;font-weight:680;letter-spacing:.02em }
#ptStudio .pr-brand img { width:30px;height:30px }
#ptStudio .pr-mast-rule { width:1px;height:16px;background:#51605b;margin:0 2px }
#ptStudio .pr-product, #ptStudio .pr-mast-sep, #ptStudio .pr-mast-back { color:#c3cfc9 }
#ptStudio .pr-mast-sep { opacity:.6 }
#ptStudio .pr-mast-inner>strong { font-weight:550 }
#ptStudio .pr-mast-back { display:flex;align-items:center;gap:7px;margin-left:auto;font-size:12px }
#ptStudio .pr-mast-back svg { width:14px }
#ptStudio main { padding:0 0 30px }
#ptStudio .pr-project { display:flex;align-items:center;justify-content:space-between;padding:23px 0 22px;gap:18px }
#ptStudio .pr-metadata, #ptStudio .pr-project-actions, #ptStudio .pr-saved, #ptStudio .pr-metadata span { display:flex;align-items:center }
#ptStudio .pr-metadata { gap:10px;font-size:12px;color:var(--sub) }
#ptStudio .pr-metadata span { gap:6px }
#ptStudio .pr-metadata i { width:3px;height:3px;background:#9daa9e;border-radius:50% }
#ptStudio .pr-metadata b { font-weight:400;color:#849189 }
#ptStudio .pr-number, #ptStudio time, #ptStudio .pr-readout, #ptStudio .pr-ruler-labels, #ptStudio .pr-needle span { font-family:var(--mono);font-variant-numeric:tabular-nums }
#ptStudio .pr-project-actions { gap:20px }
#ptStudio .pr-saved { gap:6px;font-size:12px;color:#66766e }
#ptStudio .pr-saved svg { width:16px }
#ptStudio .pr-primary, #ptStudio .pr-split, #ptStudio .pr-batch, #ptStudio .pr-timeline-tools button, #ptStudio .pr-pager button, #ptStudio .pr-history button, #ptStudio .pr-close, #ptStudio .pr-cancel, #ptStudio .pr-timing, #ptStudio .pr-editor-foot button { display:inline-flex;align-items:center;justify-content:center;gap:7px }
#ptStudio .pr-primary { background:var(--accent);color:#fff;border:1px solid #135b51;border-radius:7px;padding:11px 20px;font-weight:620;box-shadow:0 1px 2px #14282315 }
#ptStudio .pr-desk { display:grid;grid-template-columns:minmax(278px,.78fr) minmax(0,1.65fr);gap:16px;align-items:stretch }
#ptStudio .pr-panel, #ptStudio .pr-monitor { border-radius:12px;overflow:hidden }
#ptStudio .pr-panel { background:#fff;border:1px solid var(--line) }
#ptStudio h2 { font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.025em }
#ptStudio .pr-panel-head, #ptStudio .pr-monitor-head { display:flex;align-items:center;justify-content:space-between;gap:12px }
#ptStudio .pr-monitor { background:#222b2a;color:#f2f4ef;display:flex;flex-direction:column;border:1px solid #202a28 }
#ptStudio .pr-monitor-head { padding:14px 18px;height:48px }
#ptStudio .pr-monitor-head h2 { font-size:15px;display:flex;align-items:center;gap:8px;font-weight:560 }
#ptStudio .pr-monitor-head h2 svg { width:16px;color:#bbc7c1 }
#ptStudio .pr-stage { background:radial-gradient(ellipse at 50% 54%,#35403b,#181e1d 78%);min-height:0;display:grid;place-items:center;flex:1;padding:9px 0;box-shadow:inset 0 1px #ffffff08,inset 0 -1px #ffffff0e }
#ptStudio .pr-film { position:relative;isolation:isolate;width:180px;aspect-ratio:9/16;container-type:inline-size;border-radius:3px;background-position:center;background-size:cover;box-shadow:0 2px 20px #070c0b5c }
#ptStudio .pr-safe { position:absolute;inset:7% 12% 14% 8%;pointer-events:none }
#ptStudio .pr-safe i { position:absolute;width:10px;height:10px;border:0 solid #fff9 }
#ptStudio .pr-safe i:nth-child(1) { top:0;left:0;border-width:1px 0 0 1px }
#ptStudio .pr-safe i:nth-child(2) { right:0;top:0;border-width:1px 1px 0 0 }
#ptStudio .pr-safe i:nth-child(3) { left:0;bottom:0;border-width:0 0 1px 1px }
#ptStudio .pr-safe i:nth-child(4) { right:0;bottom:0;border-width:0 1px 1px 0 }
#ptStudio .pr-caption { position:absolute;left:4%;right:4%;bottom:19%;font-size:6.6cqw;font-weight:650;line-height:1.55;text-align:center;color:#fff;text-shadow:0 1px 3px black,0 0 4px #000,0 0 9px #000 }
#ptStudio .pr-monitor-controls { padding:13px 18px 12px;position:relative }
#ptStudio .pr-media-name { font-size:11px;color:#c6d0c9;display:flex;align-items:center;gap:6px;position:absolute;left:15px;top:-25px;padding:2px 7px;background:#101714d9;border-radius:3px }
#ptStudio .pr-dot { width:5px;height:5px;border-radius:50%;background:#b7c9be }
#ptStudio .pr-transport { display:flex;align-items:center;gap:12px }
#ptStudio .pr-transport-main { flex:1;min-width:0 }
#ptStudio .pr-readout { display:flex;align-items:baseline;gap:7px;font-size:10px;color:#b6c1bb }
#ptStudio .pr-readout strong { font-weight:450;font-size:12px;color:#fff }
#ptStudio .pr-monitor-foot { display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff14;margin-top:10px;padding-top:9px }

#ptStudio .pr-monitor-foot svg { width:14px;height:14px }
#ptStudio .pr-editor { display:flex;flex-direction:column }
#ptStudio .pr-panel-head { padding:14px var(--gutter);border-bottom:1px solid var(--line);min-height:60px }
#ptStudio .pr-pager { display:flex;gap:11px;align-items:center;font-size:12px;color:#65736c }
#ptStudio .pr-pager span { white-space:nowrap }
#ptStudio .pr-pager strong { font-family:var(--mono);color:var(--ink);font-weight:600 }
#ptStudio .pr-pager button, #ptStudio .pr-close { background:#fff;border:1px solid #d9e0d9;border-radius:6px;width:28px;height:28px;padding:0 }
#ptStudio .pr-pager button svg { width:14px }
#ptStudio .pr-edit-body { padding:19px var(--gutter) 16px;flex:1 }
#ptStudio .pr-cue { margin-bottom:17px }
#ptStudio .pr-cue-head, #ptStudio .pr-cue-head label { display:flex;align-items:center }
#ptStudio .pr-cue-head { justify-content:space-between;margin-bottom:7px;gap:6px }
#ptStudio .pr-cue-head label { gap:8px;font-weight:650;font-size:13px }
#ptStudio .pr-cue-head label i, #ptStudio .pr-track-label i { width:7px;height:7px;display:inline-block;border-radius:2px;background:var(--src) }
#ptStudio .pr-cue-head label span { font-size:12px;color:#687670;font-weight:450 }
#ptStudio .pr-cue.pr-target label i, #ptStudio .pr-track-label .pr-tag-dst { background:var(--dst) }
#ptStudio time { font-size:11px;color:#65736c;white-space:nowrap }
#ptStudio time b { color:#a4afa8;font-weight:400 }
#ptStudio .pr-cue-text { padding:13px 15px;border:1px solid #d9e0df;border-radius:7px;background:#f5f7f7;color:#354443;min-height:73px;line-height:1.52;font-size:19px;letter-spacing:-.012em }
#ptStudio .pr-source .pr-cue-text { font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:460 }
#ptStudio .pr-target .pr-cue-text { border-color:#74aa97;background:#fcfefb;box-shadow:0 0 0 2px #2772590b;color:#182d24;font-size:20px;font-weight:500;min-height:76px }
#ptStudio .pr-edit-tools, #ptStudio .pr-tool-group, #ptStudio .pr-history { display:flex;align-items:center }
#ptStudio .pr-edit-tools { justify-content:space-between;gap:10px }
#ptStudio .pr-tool-group { gap:9px }
#ptStudio .pr-split { padding:8px 12px;background:#273d36;color:white;border:1px solid #273d36;border-radius:6px;font-size:13px;font-weight:600 }
#ptStudio .pr-split svg { width:16px }
#ptStudio .pr-split kbd { border:1px solid #75867e;border-radius:3px;padding:0 4px;color:#dbe5df;line-height:14px;font-size:10px }
#ptStudio .pr-timing, #ptStudio .pr-history button, #ptStudio .pr-editor-foot button { background:transparent;border:0;padding:6px 3px;font-size:12px;color:#55655b }
#ptStudio .pr-timing svg { width:12px }
#ptStudio .pr-history { gap:13px }
#ptStudio .pr-history svg { width:15px }
#ptStudio .pr-history button:disabled { color:#a3afa6 }
#ptStudio .pr-keys { font-size:11px;color:#68776e;margin-top:10px }
#ptStudio .pr-keys kbd { font:10px var(--mono);border-radius:3px;border:1px solid #d9dfd9;background:#fafbf8;padding:1px 4px }
#ptStudio .pr-keys span { margin:0 6px }
#ptStudio .pr-editor-foot { display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fafbf8;border-top:1px solid #e3e8e0;padding:10px var(--gutter) }
#ptStudio .pr-good { display:flex;align-items:center;gap:6px;color:#41715a;font-size:12px }
#ptStudio .pr-good svg { width:15px }
#ptStudio .pr-editor-foot button { padding:2px 0 }
#ptStudio .pr-editor-foot button svg { width:13px }
#ptStudio .pr-timeline { margin-top:16px }
#ptStudio .pr-timeline .pr-panel-head { min-height:59px }
#ptStudio .pr-time-title, #ptStudio .pr-policy, #ptStudio .pr-timeline-tools { display:flex;align-items:center }
#ptStudio .pr-time-title { gap:13px }
#ptStudio .pr-policy { font-size:12px;color:#4e6459;gap:5px;background:#f3f6f1;border:1px solid #dfe5dc;padding:4px 8px;border-radius:5px }
#ptStudio .pr-policy svg { width:13px;height:13px }
#ptStudio .pr-policy i:last-child svg { width:10px }
#ptStudio .pr-timeline-tools { gap:8px }
#ptStudio .pr-timeline-tools button, #ptStudio .pr-cancel { border:1px solid #ccd7ce;background:white;border-radius:6px;padding:7px 10px;font-size:12px }
#ptStudio .pr-timeline-tools button svg { width:14px;height:14px }
#ptStudio .pr-timeline-tools .pr-batch { color:#185e4b;background:#edf6ef;border-color:#a9c9b6;font-weight:620 }
#ptStudio .pr-track-grid { display:grid;grid-template-columns:65px minmax(0,1fr);gap:5px 10px;padding:14px var(--gutter) 18px;align-items:center }
#ptStudio .pr-track-label { display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650 }
#ptStudio .pr-time-label { font-size:10px;color:#7b887e;font-weight:500 }
#ptStudio .pr-ruler { height:29px;position:relative;background:repeating-linear-gradient(90deg,#cbd4cc 0 1px,transparent 1px 3.125%) bottom / 100% 4px no-repeat;border-bottom:1px solid #d4dbd3 }
#ptStudio .pr-ruler-labels { display:flex;justify-content:space-between;font-size:10px;color:#708075 }
#ptStudio .pr-needle, #ptStudio .pr-rail:after { position:absolute;left:var(--pt-head,0%);z-index:3;width:2px;background:var(--play);pointer-events:none }
#ptStudio .pr-needle { top:0;bottom:-6px }
#ptStudio .pr-needle span { position:absolute;top:-2px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 6px;border-radius:3px;background:var(--play);color:white;font-size:10px;font-weight:600 }
#ptStudio .pr-needle span:after { content:"";border:4px solid transparent;border-top-color:var(--play);position:absolute;left:calc(50% - 4px);bottom:-7px }
#ptStudio .pr-rail { display:grid;gap:3px;position:relative;min-width:0 }
#ptStudio .pr-rail:after { content:"";top:-5px;bottom:0 }
#ptStudio .pr-rail button { min-width:0;height:31px;padding:6px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;font-size:12px;line-height:18px;border:1px solid #d1dce4;background:#eaf0f4;color:#466179 }
#ptStudio .pr-rail-src [aria-current] { background:#d8e5ee;border-color:#86a7bd }
#ptStudio .pr-rail-dst button { color:#32684f;border-color:#c5dbcb;background:#e8f3e9 }
#ptStudio .pr-rail-dst [aria-current] { background:#cbe6d6;border-color:#639b7e;color:#234d38 }
#ptStudio .pr-dialog { background:#fff;border:1px solid #e7ebe6;border-radius:16px;box-shadow:0 20px 80px #0b1b1a30;width:min(490px,100%);padding:25px;max-height:calc(100dvh - 30px);overflow:auto }
#ptStudio .pr-dialog-head { display:flex;align-items:center;justify-content:space-between;margin-bottom:21px }
#ptStudio .pr-dialog-head h2 { font-size:23px }
#ptStudio .pr-close svg { width:14px }
#ptStudio .pr-export-file { display:flex;align-items:center;gap:15px;background:#f4f7f1;border:1px solid #dbe4d9;padding:16px;border-radius:9px;word-break:break-word }
#ptStudio .pr-file-icon { position:relative;width:39px;height:47px;border-radius:4px;background:#c6deca;color:#245d45;display:grid;place-items:end center;padding-bottom:5px;font:700 11px/1.2 var(--mono);clip-path:polygon(0 0,70% 0,100% 27%,100% 100%,0 100%) }
#ptStudio .pr-file-icon:after { content:"";position:absolute;right:0;top:0;width:12px;height:13px;background:#8cb69a }
#ptStudio .pr-export-file strong { font-size:15px }
#ptStudio .pr-export-file p, #ptStudio .pr-hint { font-size:12px;color:#65736a }
#ptStudio .pr-export-file p { margin-top:4px }
#ptStudio .pr-export-file p b { margin:0 4px;color:#8e9b92 }
#ptStudio .pr-dialog h3 { font-size:13px;font-weight:650;margin:20px 0 8px }
#ptStudio .pr-select, #ptStudio .pr-limit { display:flex;align-items:center;gap:8px }
#ptStudio .pr-export-note { display:flex;align-items:flex-start;gap:8px;color:#617267;font-size:12px;margin-top:13px;line-height:1.6 }
#ptStudio .pr-export-note svg { width:15px;height:16px;margin-top:2px }
#ptStudio .pr-dialog-foot { display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e0e5df;margin-top:22px;padding-top:17px }
#ptStudio .pr-cancel { padding:9px 15px;font-size:13px }
#ptStudio .pr-dialog-foot .pr-primary { font-size:13px;padding:9px 15px }
#ptStudio .pr-limit { font-size:14px }
#ptStudio .pr-limit input { font:500 16px var(--mono);padding:8px 18px;border:1px solid #c4d2c5;border-radius:6px }
#ptStudio .pr-limit button { border:0;background:none;color:var(--accent);font-size:12px }
#ptStudio .pr-hint { margin-top:8px }
#ptStudio .pr-layout-choice { display:flex;gap:10px;border:1px solid var(--line);border-radius:7px;padding:13px;margin-top:8px }
#ptStudio .pr-layout-choice strong, #ptStudio .pr-layout-choice span { display:block }
#ptStudio .pr-layout-choice strong { font-size:14px }
#ptStudio .pr-layout-choice span { font-size:12px;color:#617067;margin-top:3px }
@media(min-width:1500px) {
  #ptStudio main, #ptStudio .pr-mast-inner { max-width:1300px }
  #ptStudio .pr-film { width:198px }
}
@media(max-width:980px) {
  #ptStudio main, #ptStudio .pr-mast-inner { width:calc(100% - 44px) }
  #ptStudio .pr-desk { grid-template-columns:minmax(235px,.72fr) minmax(0,1.4fr) }
  #ptStudio { --gutter:18px }
  #ptStudio .pr-saved { display:none }
  #ptStudio .pr-time-title { gap:8px }
  #ptStudio .pr-source .pr-cue-text { font-size:17px }
}
@media(max-width:700px) {
  #ptStudio { --gutter:14px }
  #ptStudio .pr-mast-inner, #ptStudio main { width:calc(100% - 26px) }
  #ptStudio .pr-mast-inner { height:43px;gap:7px;font-size:11px }
  #ptStudio .pr-brand { font-size:14px;gap:4px }
  #ptStudio .pr-brand img { width:23px }
  #ptStudio .pr-mast-rule { margin:0 2px;height:13px }
  #ptStudio .pr-mast-back { display:none }
  #ptStudio .pr-project { padding:15px 1px;gap:4px }
  #ptStudio .pr-metadata { font-size:11px;gap:6px }
  #ptStudio .pr-project-actions .pr-primary { font-size:13px;padding:9px 12px }
  #ptStudio .pr-desk { grid-template-columns:minmax(0,1fr);gap:10px }
  #ptStudio .pr-panel, #ptStudio .pr-monitor { border-radius:10px }
  #ptStudio .pr-monitor { display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:14px;padding:11px }
  #ptStudio .pr-stage { grid-column:1;grid-row:1/3;background:transparent;box-shadow:none;padding:0 }
  #ptStudio .pr-film { width:100% }
  #ptStudio .pr-monitor-head { grid-column:2;grid-row:1;padding:0;height:28px;gap:4px }
  #ptStudio .pr-monitor-head h2 { font-size:14px;gap:4px }
  #ptStudio .pr-monitor-head h2 svg { width:14px }
  #ptStudio .pr-monitor-controls { padding:0;display:flex;flex-direction:column;justify-content:center;align-self:stretch }
  #ptStudio .pr-media-name { position:static;background:transparent;padding:0;margin:1px 0 18px;font-size:11px }
  #ptStudio .pr-monitor-foot { margin-top:15px;padding-top:10px }

  #ptStudio .pr-transport { gap:7px }
  #ptStudio .pr-readout { gap:3px;flex-wrap:wrap;font-size:9px }
  #ptStudio .pr-readout strong { font-size:10px }
  #ptStudio .pr-panel-head { padding:10px var(--gutter);min-height:43px }
  #ptStudio h2 { font-size:16px }
  #ptStudio .pr-pager { font-size:11px;gap:6px }
  #ptStudio .pr-pager button { width:24px;height:24px }
  #ptStudio .pr-edit-body { padding:12px var(--gutter) 11px }
  #ptStudio .pr-cue { margin-bottom:13px }
  #ptStudio .pr-cue-head { margin-bottom:5px }
  #ptStudio .pr-cue-head label { font-size:12px }
  #ptStudio .pr-cue-head label span { font-size:11px }
  #ptStudio time { font-size:9px }
  #ptStudio .pr-cue-text, #ptStudio .pr-source .pr-cue-text, #ptStudio .pr-target .pr-cue-text { font-size:16px;line-height:1.46;min-height:0;padding:10px 11px }
  #ptStudio .pr-target .pr-cue-text { font-size:17px }
  #ptStudio .pr-history { gap:10px }
  #ptStudio .pr-history span { display:none }
  #ptStudio .pr-history button { min-width:28px }
  #ptStudio .pr-keys { margin-top:8px;font-size:10px }
  #ptStudio .pr-editor-foot { padding:8px var(--gutter) }
  #ptStudio .pr-good, #ptStudio .pr-editor-foot button { font-size:11px }
  #ptStudio .pr-timeline { margin-top:10px }
  #ptStudio .pr-timeline .pr-panel-head { align-items:flex-start;flex-wrap:wrap;gap:9px;min-height:43px }
  #ptStudio .pr-time-title { width:100%;justify-content:space-between }
  #ptStudio .pr-policy { font-size:10px }
  #ptStudio .pr-timeline-tools { width:100%;justify-content:flex-end;gap:6px }
  #ptStudio .pr-timeline-tools button { font-size:11px;padding:5px 8px }
  #ptStudio .pr-track-grid { grid-template-columns:37px minmax(0,1fr);padding:10px var(--gutter) 12px;gap:5px 3px }
  #ptStudio .pr-track-label { font-size:10px;gap:4px }
  #ptStudio .pr-track-label i { width:5px;height:5px }
  #ptStudio .pr-ruler-labels { font-size:8px }
  #ptStudio .pr-ruler-labels span:nth-child(even) { display:none }
  #ptStudio .pr-ruler { height:25px }
  #ptStudio .pr-needle span { font-size:8px }
  #ptStudio .pr-rail button { font-size:10px;padding:4px;height:26px }
  #ptStudio .pr-dialog { padding:18px }
  #ptStudio .pr-dialog-head h2 { font-size:20px }
}
@media(min-width:701px) {
  #ptStudio .pr-project { padding:20px 0 18px }
}
@media(max-width:700px) {
  #ptStudio .pr-keys, #ptStudio .pr-split kbd { display:none }
}
@media(max-width:700px) {
  #ptStudio .pr-mast-back { display:flex }
  #ptStudio .pr-mast-back span { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%) }
}
#ptStudio[hidden], #ptStudio dialog:not([open]), #ptWorkbench[hidden], .pt-top[hidden] {display:none!important}
html:has(#ptStudio:not([hidden])), html:has(#ptStudio:not([hidden])) body {background:#f2f3ef}
#ptStudio {min-height:100vh; text-align:left}
#ptStudio main {display:block;max-width:1240px}
#ptStudio [data-icon] svg {fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#ptStudio .pr-brand {color:inherit;text-decoration:none}
#ptStudio .pr-mast-back {border:0;background:none}
#ptStudio :is(button,select,input,textarea,a):focus-visible {outline:2px solid #3a9076;outline-offset:2px}
#ptStudio :is(select,textarea,input:not([type=range])) {font:inherit;letter-spacing:normal}
#ptStudio select {width:auto;min-width:0;cursor:pointer;appearance:auto;background-image:none}
#ptStudio .pr-policy select {font-size:12px;background-color:transparent;border:0;padding:0;color:inherit;font-weight:550}
#ptStudio .pr-timing {font-size:12px}
#ptStudio .pr-cue-text {display:block;width:100%;margin:0;resize:vertical;letter-spacing:-.012em;line-height:1.5;font-family:inherit}
#ptStudio .pr-source textarea {font-size:19px}
#ptStudio .pr-target textarea {font-size:20px}
#ptStudio .pr-target textarea:focus {outline:none;box-shadow:0 0 0 2px #27725929}
#ptStudio h1, #ptStudio h2, #ptStudio h3 {color:inherit;letter-spacing:-.025em}
#ptStudio .pr-film {grid-area:auto;overflow:hidden;margin:0;border-radius:3px;max-width:100%;background-image:url(/landing-coast-v1.webp)}
#ptStudio[data-example] .pr-film {background-image:url(/img/portrait-coffee.jpg)}
#ptStudio .pr-film[data-local] {background:#151918}
#ptStudio .pr-safe {border:none}
#ptStudio .pr-caption {width:92%;bottom:var(--pt-margin,24%);background:none;white-space:pre-line;border-radius:0}
#ptStudio .pr-monitor input[type=file] {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#ptStudio .pr-monitor-foot label {position:relative;display:inline-flex;align-items:center;gap:5px;color:#e2eae4;font-size:12px;cursor:pointer}
#ptStudio .pr-monitor-foot label:focus-within {outline:2px solid white}
#ptStudio #ptPlay {display:grid;place-items:center;background:#f1f5f0;border:0;border-radius:50%;width:32px;height:32px;color:#263c32;font-size:0}
#ptStudio #ptPlay::before {content:"";border-block:6px solid transparent;border-left:9px solid currentColor;margin-left:2px}
#ptStudio #ptPlay[aria-pressed=true]::before {width:8px;height:12px;margin:0;border-block:0;border-inline:3px solid currentColor}
#ptStudio #ptScrub {display:block;width:100%;margin:3px 0 0;height:14px;accent-color:#cce1d3;cursor:pointer}
#ptStudio #ptNow {color:white;font:inherit}
#ptStudio .pr-media-name {max-width:92%;overflow:hidden}
#ptStudio #ptMediaLabel {white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font:inherit;color:inherit}
#ptStudio .pr-rail {display:block;height:calc(var(--lanes,1) * 31px)}
#ptStudio .pr-rail button {position:absolute;text-align:start;cursor:pointer;height:29px}
#ptStudio .pr-rail::after {content:"";top:-5px;bottom:0}
#ptStudio .pr-ruler-labels {position:relative}
#ptStudio .pr-ruler-labels span {position:absolute;transform:translateX(-50%);white-space:nowrap}
#ptStudio .pr-ruler-labels span:first-child {transform:none}
#ptStudio .pr-ruler-labels span:last-child {transform:translateX(-100%)}
#ptStudio #ptSeek {position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:ew-resize}
#ptStudio .pr-ruler:focus-within {outline:2px solid var(--accent)}
#ptStudio .pr-needle span {left:0;transform:translateX(var(--label-shift,-50%))}
#ptStudio .pr-good::before {content:'✓';font-size:11px;border:1px solid;border-radius:50%;width:15px;text-align:center;line-height:13px}
#ptStudio .pr-good[data-issue] {color:#91512c}
#ptStudio .pr-good[data-issue]::before {content:'!'}
#ptStudio .pr-dialog {margin:auto;inset:0;height:fit-content;color:var(--ink);text-align:left}
#ptStudio .pr-dialog::backdrop {background:#13232161;backdrop-filter:blur(3px)}
#ptStudio .pr-dialog form, #ptStudio label {margin:0}
#ptStudio .pr-layout-choice {margin-top:8px}
#ptStudio .pr-layout-choice {cursor:pointer;align-items:flex-start}
#ptStudio .pr-layout-choice input {width:16px;height:16px;accent-color:var(--accent);margin:2px 0}
#ptStudio .pr-layout-choice > span {margin:0}
#ptStudio .pr-layout-choice small {display:block;font-size:12px;color:#617067;margin-top:3px}
#ptStudio .pr-limit input {width:5em;color:inherit;background:white;padding:7px 9px}
#ptStudio .pr-dialog-foot {align-items:center;flex-wrap:wrap}
#ptStudio .pr-dialog-foot a {font-size:12px;margin-right:auto;color:var(--accent)}
#ptStudio #ptAutoReport {margin:0 var(--gutter) 16px;font-size:13px}
#ptStudio #ptReportList button {border:0;background:#f3f6f1;color:inherit;text-align:left;padding:7px;cursor:pointer}
#ptStudio #ptStatus {font-size:12px;color:var(--sub);margin:8px 0;min-height:1em}
#ptStudio #ptExportError {color:#963f26;font-size:13px;margin-top:10px}
#ptStudio .pr-project-left {min-width:0}
@media(max-width:700px) {
  #ptStudio .pr-target textarea {font-size:17px}
  #ptStudio .pr-source textarea {font-size:16px}
  #ptStudio .pr-rail {height:calc(var(--lanes,1) * 27px)}
  #ptStudio .pr-rail button {height:25px}
  #ptStudio .pr-project-left {flex:1}
  #ptStudio .pr-metadata {flex-wrap:wrap}
}
#ptStudio .pr-rail {--lane-height:31px}
@media(max-width:700px){#ptStudio .pr-rail {--lane-height:27px}}
#ptStudio #ptScrub {appearance:none;background:transparent;border:0;padding:0}
#ptStudio #ptScrub::-webkit-slider-runnable-track {height:3px;border-radius:3px;background:linear-gradient(to right,#d6e7dd var(--progress,0%),#53605a var(--progress,0%))}
#ptStudio #ptScrub::-webkit-slider-thumb {appearance:none;margin-top:-3px;background:#e8f3eb;border:0;border-radius:50%;width:9px;height:9px}
#ptStudio #ptScrub::-moz-range-track {height:3px;background:#53605a}
#ptStudio #ptScrub::-moz-range-progress {height:3px;background:#d6e7dd}
#ptStudio #ptScrub::-moz-range-thumb {width:9px;height:9px;border:0;background:#e8f3eb}
#ptStudio button:disabled {opacity:.5;cursor:default}
#ptStudio .pr-history button:disabled {opacity:1}
#ptStudio .pr-needle span:after {left:clamp(0px,calc(-1 * var(--label-shift,-50%) - 4px),calc(100% - 8px))}

#ptStudio .pr-length-summary, #ptStudio .pr-export-length {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:9px 14px;border:1px solid #e4c493;border-radius:8px;background:#fff8e9;color:#704712;font-size:13px;
}
#ptStudio .pr-length-summary {margin:0 0 12px}
#ptStudio .pr-length-summary button, #ptStudio .pr-export-length button {
  border:0;background:transparent;color:#714612;text-decoration:underline;text-underline-offset:3px;font:inherit;cursor:pointer;
}
#ptStudio .pr-export-length {margin-top:12px}
#ptStudio .pr-length-note {margin:4px 0 0;font-size:12px;color:#865016}
#ptStudio .pr-cue-text[data-too-long] {border-color:#b88238}
#ptStudio .pr-rail button[data-too-long] {box-shadow:inset 3px 0 #bc7926}
#ptStudio .pr-long-badge {padding:1px 4px;margin-inline-end:4px;background:#ffedc5;color:#754516;border-radius:3px;font-size:10px;font-weight:650}
#ptStudio .pr-cut-bar {display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:10px var(--gutter) 0}
#ptStudio #ptCutScope {font-size:13px;font-weight:600}
#ptStudio .pr-cut-bar .pr-tool-group {flex-wrap:wrap;gap:8px}
#ptStudio .pr-cut-bar .pr-timing {border:1px solid #d2dbd4;border-radius:5px;padding:5px;color:#395446;background:#fff}
#ptStudio .pr-edit-tools .pr-keys {display:block;margin:0}
#ptStudio [hidden], #ptConfirm [hidden] {display:none!important}
#ptConfirm {margin:auto;inset:0;height:fit-content;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:#fff;text-align:start;box-sizing:border-box}
#ptConfirm h3, #ptConfirm #ptOtherLabel {font-size:13px;font-weight:650;display:block;margin:14px 0 5px}
#ptConfirmNote, #ptBoundary {font-size:13px;color:#4c6256;margin:7px 0}
#ptConfirm .pt-cut-preview {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#ptConfirm .pt-cut-preview > div {border:1px solid #d5e0d7;border-radius:6px;padding:8px 10px;background:#f6f8f5}
#ptConfirm .pt-cut-preview small {display:block;color:#55715f;margin:0 0 4px;font-size:11px}
#ptConfirm .pt-cut-preview span {display:block;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
#ptConfirm #ptOther {box-sizing:border-box;cursor:text}
#ptConfirm .pt-tools {justify-content:flex-end;margin:16px 0 0}
@media (max-width:700px) {
  #ptStudio .pr-cut-bar {gap:4px 8px}
  #ptStudio .pr-cut-bar button {padding:7px 9px}
  #ptStudio .pr-edit-tools .pr-keys {font-size:11px}
}
#ptStudio #ptCutHelp {flex-basis:100%;color:#625c47;font-size:12px}

/* Export choices and the 9:16 format preview share the review workbench. */
#ptStudio .pr-desk {
  grid-template-areas:"monitor settings" "monitor styles" "monitor editor";
  grid-template-rows:auto auto 1fr;
  gap:12px 16px;
}
#ptStudio .pr-monitor {grid-area:monitor;align-self:start;min-width:0}
#ptStudio .pr-export-controls {grid-area:settings}
#ptStudio .pr-preset-panel {grid-area:styles}
#ptStudio .pr-editor {grid-area:editor}
#ptStudio .pr-export-controls .pr-panel-head,
#ptStudio .pr-preset-panel .pr-panel-head {padding:10px 16px;min-height:42px}
#ptStudio .pr-export-controls h2,#ptStudio .pr-preset-panel h2 {font-size:16px}
#ptStudio .pr-export-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:10px 15px 12px}
#ptStudio .pr-export-choices fieldset {border:0;margin:0;padding:0;min-width:0}
#ptStudio .pr-export-choices legend {padding:0 0 5px;font-size:13px;font-weight:680}
#ptStudio .pr-export-choices legend small,#ptStudio #ptStyleCount {font-size:11px;font-weight:500;color:#536a5f}
#ptStudio .pr-choice-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#ptStudio .pr-choice-row label {
  display:flex;align-items:center;justify-content:center;gap:4px;min-height:33px;padding:3px;
  color:#31443b;background:#f9fbf8;border:1px solid #d7dfd7;border-radius:5px;
  font-size:12px;font-weight:630;white-space:nowrap;cursor:pointer
}
#ptStudio .pr-choice-row label:has(:checked){background:#edf6ef;color:#155b4a;border-color:#63917c}
#ptStudio .pr-choice-row label:has(:disabled){opacity:.55;cursor:default}
#ptStudio .pr-choice-row input,#ptStudio .pr-mask-toggle input {width:13px;height:13px;margin:0;accent-color:var(--accent)}
#ptStudio .pr-setting-note {margin:5px 0 0;color:#566b60;font-size:11px;line-height:1.45;min-height:16px}
#ptStudio .pr-preset-panel>.pr-setting-note {margin:0;padding:9px 15px}
#ptStudio .pr-style-presets:not([hidden])+.pr-setting-note {padding-top:2px}
#ptStudio .pr-style-presets {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:9px 14px 7px}
#ptStudio button.pr-style {
  min-width:0;padding:3px;border:1px solid #dce3d9;border-radius:6px;background:#f9fbf7;text-align:center
}
#ptStudio .pr-style[aria-pressed=true] {border-color:#38775e;box-shadow:0 0 0 1px #38775e inset;background:#e8f4e9}
#ptStudio .pr-style-art {
  display:flex;flex-direction:column;gap:1px;align-items:center;justify-content:center;min-height:30px;
  background:linear-gradient(#1221192e,#12211972),url(/img/portrait-coffee.jpg) center 74%/cover;
  border-radius:3px;line-height:1.12;overflow:hidden;padding:2px;white-space:nowrap
}
#ptStudio .pr-style-art>span,#ptStudio .pr-caption span {paint-order:stroke fill}
#ptStudio .pr-style-art small {font-size:8px;line-height:1.1}
#ptStudio .pr-style strong {font-size:11px;font-weight:640;display:block;margin:4px 0 1px}
#ptStudio .pr-preview-format {background:#e4f1e6;color:#154636;border-radius:4px;padding:4px 7px;font-size:11px;font-weight:680}
#ptStudio .pr-film {width:min(100%,220px)}
#ptStudio .pr-film .pr-safe,#ptStudio .pr-film .pt-feed {display:none}
#ptStudio .pr-caption {
  display:flex;align-items:center;flex-direction:column;width:var(--pr-caption-width,90%);
  left:var(--pr-caption-x,50%);right:auto;bottom:var(--pr-caption-bottom,7%);
  z-index:2;transform:translateX(-50%);pointer-events:none;white-space:pre;line-height:1.24;
  font-weight:600;letter-spacing:normal;text-shadow:none
}
#ptStudio .pr-caption:empty {display:none}
#ptStudio .pr-caption span {display:block;width:max-content;unicode-bidi:isolate}
#ptStudio .pr-caption[data-vtt-pair] {top:0;bottom:0}
#ptStudio .pr-vtt-cue {position:absolute;inset-inline:0;display:flex;align-items:center;flex-direction:column}
#ptStudio .pr-vtt-cue[data-align=end] {transform:translateY(-100%)}
#ptStudio .pr-caption[data-format=srt]>span {padding:1px 4px;color:#fff;background:#171d18bf;font-size:5cqw}
#ptStudio .pr-platform-mask {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
#ptStudio .pr-platform-zone {
  position:absolute;inset:var(--pr-zone-top) var(--pr-zone-right) var(--pr-zone-bottom) var(--pr-zone-left);
  border:1px dashed #d6edd3;box-shadow:0 0 0 350px #101e17a9
}
#ptStudio .pr-platform-zone::before {content:'参考安全区';position:absolute;top:3px;left:4px;font-size:10px;color:#eff9e9}
#ptStudio .pr-platform-actions {position:absolute;right:3%;bottom:calc(var(--pr-zone-bottom) + 2%);display:grid;gap:6px}
#ptStudio .pr-platform-actions i {width:3.8cqw;aspect-ratio:1;border:1px solid #ffffff7a;background:#ffffff43;border-radius:50%}
#ptStudio .pr-platform-lines {position:absolute;left:8%;bottom:9%;width:44%;display:grid;gap:5px}
#ptStudio .pr-platform-lines i {height:3px;border-radius:3px;background:#edf5e666}
#ptStudio .pr-platform-lines i:first-child {width:42%;height:5px}
#ptStudio .pr-platform-lines i:last-child {width:64%}
#ptStudio .pr-monitor-controls {padding-bottom:10px}
#ptStudio .pr-monitor-foot {gap:8px;color:#d6e4da;font-size:11px;flex-wrap:wrap}
#ptStudio .pr-platform {padding:9px 13px 11px;background:#fff;color:var(--ink);border-top:1px solid var(--line);font-size:12px}
#ptStudio .pr-platform-row {display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center}
#ptStudio .pr-platform-row>label:first-child {white-space:nowrap}
#ptStudio .pr-platform-row select {width:100%;border:1px solid #d7dfd7;border-radius:5px;background:#f7f9f6;padding:5px 4px;font-size:11px}
#ptStudio .pr-mask-toggle {display:flex;align-items:center;white-space:nowrap;gap:4px;cursor:pointer}
#ptStudio .pr-platform-status {display:flex;align-items:center;gap:7px;margin-top:6px}
#ptStudio .pr-platform-status span {color:#246f56;font-weight:600;flex:1}
#ptStudio .pr-platform-status span.is-risk {color:#944419}
#ptStudio #ptExportSafety:not([hidden]) {padding:8px 10px;border:1px solid #e8c58d;border-radius:6px;background:#fff4df;color:#934d24}
@media(max-width:1050px){
  #ptStudio .pr-style-presets {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:850px) and (min-width:701px){
  #ptStudio .pr-export-choices {grid-template-columns:1fr;gap:6px}
  #ptStudio .pr-platform-row {grid-template-columns:minmax(0,1fr) auto}
  #ptStudio .pr-platform-row>label:first-child {grid-column:1/-1}
}
@media(max-width:700px){
  #ptStudio .pr-desk {grid-template-areas:"settings" "monitor" "styles" "editor";grid-template-rows:auto;gap:10px}
  #ptStudio .pr-monitor {display:grid;grid-template-columns:110px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:0 10px;padding:9px}
  #ptStudio .pr-stage {grid-column:1;grid-row:1/3;padding:0}
  #ptStudio .pr-monitor-head {grid-column:2;grid-row:1;height:auto}
  #ptStudio .pr-monitor-controls {grid-column:2;grid-row:2;padding:2px 0}
  #ptStudio .pr-platform {grid-column:1/-1;grid-row:3;margin:9px -9px -9px}
  #ptStudio .pr-film {width:100%}
  #ptStudio .pr-platform-zone::before {font-size:8px}
  #ptStudio .pr-export-choices {padding:8px 10px;gap:7px}
  #ptStudio .pr-choice-row label {font-size:11px;gap:2px}
  #ptStudio .pr-choice-row input {width:11px;height:11px}
  #ptStudio .pr-style-presets {padding-inline:9px;gap:5px}
}
@media(max-width:360px){
  #ptStudio .pr-export-choices {grid-template-columns:1fr}
}

/* The preset cards show the actual type, face and background before selection. */
#ptStudio .pr-style-presets {grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
#ptStudio .pr-style-art {
  container-type:inline-size;min-height:48px;gap:1px;padding:4px 2px;
  background:linear-gradient(0deg,#151b1680,#151b161a),url(/img/portrait-coffee.jpg) center 75%/cover
}
#ptStudio .pr-style-art>span {display:block;line-height:1.16}
#ptStudio .pr-style strong {font-size:11px}
#ptStudio .pr-pair-controls {
  border:0;border-top:1px solid var(--line);margin:2px 0 0;padding:6px 15px 5px;min-width:0
}
#ptStudio .pr-pair-controls legend {padding:0 6px 0 0;font-size:12px;font-weight:700}
#ptStudio .pr-pair-presets {display:flex;flex-wrap:wrap;gap:5px}
#ptStudio .pr-pair-presets button {
  display:inline-flex;align-items:center;gap:5px;background:#fafbf8;border:1px solid #d7ded6;
  border-radius:5px;padding:5px 7px;white-space:nowrap;font-size:11px;font-weight:600
}
#ptStudio .pr-pair-presets button[aria-pressed=true] {border-color:#548874;background:#e8f4eb;color:#155742}
#ptStudio .pr-pair-presets i {width:9px;height:9px;border:1px solid;border-radius:50%}
#ptStudio .pr-pair-controls:not([hidden])+.pr-setting-note {padding-top:2px}
@media(max-width:1000px){
  #ptStudio .pr-style-presets {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  #ptStudio .pr-style-presets {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  #ptStudio .pr-pair-controls {padding-inline:10px}
}

.pr-composition {position:absolute;left:50%;top:50%;width:100%;height:100%;transform:translate(-50%,-50%);pointer-events:none}
#ptStudio .pr-composition {container-type:size}
#ptStudio .pr-ass-canvas {position:absolute;inset:0;width:100%;height:100%;z-index:2}
#ptStudio .pr-native-ass {visibility:hidden}
#ptStudio #ptVideoExport {
  flex-basis:100%;padding:6px 8px;min-height:30px;background:#e7f4e8;color:#165b49;
  border:1px solid #528c73;border-radius:5px;font-size:12px;font-weight:680
}
#ptStudio #ptVideoExport:disabled {opacity:.58}
#ptStudio .pr-ass-status {margin:6px 0 0;font-size:11px;color:#d5e5d8}

#ptStudio .pr-sizing {margin:8px 14px 6px;padding:11px 13px 8px;border:1px solid #d5e3d7;border-radius:8px;background:#f4f8f2}
#ptStudio .pr-sizing-head,#ptStudio .pr-sizing-foot {display:flex;align-items:center;justify-content:space-between;gap:8px}
#ptStudio .pr-sizing-head h3 {font-size:13px;font-weight:700}
#ptStudio .pr-sizing-head button {border:0;background:none;color:#376454;padding:4px 0;font-size:11px;font-weight:600}
#ptStudio .pr-sizing-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:8px 0 2px}
#ptStudio .pr-sizing[data-bilingual-gap] .pr-sizing-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
#ptStudio .pr-sizing-range {display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 6px;color:#233b32;font-size:12px;font-weight:620}
#ptStudio .pr-sizing-range output {grid-area:1/2;padding:2px 7px;white-space:nowrap;border:1px solid #d5dfd5;background:#fff;border-radius:4px;text-align:center;color:#255847;font:11px var(--mono)}
#ptStudio .pr-sizing-range input {grid-area:2/1/3/3;appearance:none;width:100%;height:27px;margin:0;background:none;cursor:pointer}
#ptStudio .pr-sizing-range input:focus-visible {outline:2px solid #22735a;outline-offset:1px;border-radius:4px}
#ptStudio .pr-sizing-range input::-webkit-slider-runnable-track {height:5px;border-radius:6px;background:linear-gradient(to right,#287c63 var(--slider-fill),#d8e1d8 var(--slider-fill))}
#ptStudio .pr-sizing-range input::-webkit-slider-thumb {appearance:none;width:15px;height:15px;margin-top:-5px;border:2px solid #fff;border-radius:50%;background:#206950;box-shadow:0 0 0 1px #206950}
#ptStudio .pr-sizing-range input::-moz-range-track {height:5px;border-radius:6px;background:#d8e1d8}
#ptStudio .pr-sizing-range input::-moz-range-progress {height:5px;border-radius:6px;background:#287c63}
#ptStudio .pr-sizing-range input::-moz-range-thumb {width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#206950;box-shadow:0 0 0 1px #206950}
#ptStudio .pr-sizing-foot p {font-size:11px;color:#4d6658}
#ptStudio .pr-sizing-foot button {white-space:nowrap;border:1px solid #b9d2c2;border-radius:5px;background:#fff;color:#235f49;padding:5px 7px;font-size:11px;font-weight:650}
#ptStudio .pr-sizing-warning {display:flex;flex-wrap:wrap;gap:2px 8px;margin:8px 0 0;padding:7px 9px;border:1px solid #e8c58d;border-radius:6px;background:#fff4df;color:#814913;font-size:11px;line-height:1.45}
#ptStudio .pr-sizing+.pr-setting-note {padding-top:3px}
@media(min-width:1001px){
  #ptStudio[data-subtitle-format="ass"] .pr-monitor {align-self:stretch}
  #ptStudio .pr-film {width:min(100%,254px)}
  #ptStudio .pr-editor .pr-panel-head {min-height:46px;padding-block:8px}
  #ptStudio .pr-edit-body {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding-block:12px 10px}
  #ptStudio .pr-edit-body .pr-cue {min-width:0;margin-bottom:0}
  #ptStudio .pr-edit-body .pr-cue-text {min-height:67px;height:67px;padding:9px 12px}
  #ptStudio .pr-edit-body .pr-edit-tools {grid-column:1/-1}
}
@media(max-width:1000px){
  #ptStudio .pr-sizing[data-bilingual-gap] .pr-sizing-grid {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:5px}
  #ptStudio #ptBilingualGapRow {grid-column:1/-1}
}
@media(max-width:700px){
  #ptStudio .pr-sizing {margin-inline:10px;padding:10px}
  #ptStudio .pr-sizing-grid {gap:12px}
  #ptStudio .pr-monitor {grid-template-columns:clamp(105px,32vw,128px) minmax(0,1fr)}
}

/* SRT previews the usual bottom-aligned layout. Styled formats retain their own settings. */
#ptStudio[data-subtitle-format="srt"] .pr-desk {
  grid-template-areas:"monitor settings" "monitor editor";
  grid-template-rows:auto 1fr;
}
#ptStudio .pr-missing-summary {background:#fff3ed;border-color:#e6b5a2;color:#863c25}
#ptStudio .pr-missing-summary button {color:#863c25;white-space:nowrap}
#ptStudio .pr-missing-note {margin:5px 0 0;font-size:12px;color:#943d24}
#ptStudio textarea[data-missing] {border-color:#c17b62}
#ptStudio .pr-rail button[data-missing] {background:#fff1e9;border-color:#e3bba7;color:#883b24}
#ptStudio .pr-missing-badge {font-size:11px;font-weight:700;color:#883b24}
@media(max-width:700px){
  #ptStudio[data-subtitle-format="srt"] .pr-desk {
    grid-template-areas:"settings" "monitor" "editor";
    grid-template-rows:auto;
  }
}

/* Compact project header and clearer surfaces without moving the editor controls. */
html[data-portrait-workspace]:has(#ptStudio:not([hidden])),
html[data-portrait-workspace]:has(#ptStudio:not([hidden])) body.workspace-v1,
#ptStudio {
  background:#edf2ee;
}
#ptStudio .pr-mast {background:#20362e}
#ptStudio main {padding-top:12px}
#ptStudio .pr-project {
  gap:10px 16px;
  padding:10px 12px 10px 14px;
  margin-bottom:14px;
  background:#fff;
  border:1px solid #d9e5dc;
  border-radius:10px;
}
#ptStudio .pr-project-left {flex:1 1 0;min-width:0}
#ptStudio .pr-project-name {font-size:18px;line-height:25px;margin:0 0 3px;font-weight:640}
#ptStudio #ptProjectNameButton {
  display:flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  border:0;
  border-radius:3px;
  padding:0;
  background:transparent;
  color:#20362e;
  font-weight:inherit;
  line-height:inherit;
  text-align:start;
}
#ptStudio #ptProjectTitle {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#ptStudio #ptProjectNameButton i {
  display:flex;
  width:15px;
  flex:none;
  color:#577365;
}
#ptStudio #ptProjectNameButton svg {width:15px;height:15px}
#ptStudio #ptProjectNameButton:hover {color:#1b6e55}
#ptStudio #ptProjectFullName {
  margin-top:12px;
  padding:10px;
  background:#f3f7f4;
  border:1px solid #dce8df;
  border-radius:7px;
  overflow-wrap:anywhere;
}
#ptStudio #ptProjectNameDialog {width:min(470px,calc(100% - 24px))}
#ptStudio #ptProjectNameDialog .pr-dialog-head {margin-bottom:0}
.workspace-v1 #ptStudio .pr-project .pr-project-actions {
  flex:0 0 auto;
  flex-wrap:nowrap;
  gap:8px;
}
#ptStudio .pr-project .pr-project-actions :is(.term-translations-button,.pr-primary) {
  min-height:35px;
  white-space:nowrap;
}
#ptStudio .pr-project #ptOpenExport {padding-block:7px}
#ptStudio .pr-project #viewTermTranslations {
  color:#22523f;
  border-color:#d3e3d8;
  background:#f7faf7;
}
#ptStudio .pr-project #viewTermTranslations:hover {background:#e8f3eb}
#ptStudio .pr-panel {border-color:#d4e1d8;box-shadow:0 3px 12px #173d270a}
#ptStudio .pr-panel-head {background:#f8fbf8;border-color:#e1ebe3}
#ptStudio .pr-panel-head h2 {color:#233e33}
#ptStudio .pr-monitor {background:#22352f;border-color:#22352f}
#ptStudio .pr-monitor-head h2 {color:#eef7f0;font-weight:620}
#ptStudio .pr-source .pr-cue-text {background:#f4f7f5}
#ptStudio .pr-target .pr-cue-text:not([data-missing]) {background:#fbfefb;border-color:#8bb39f}
#ptStudio .pr-target .pr-cue-text:focus-visible {outline:2px solid #377c61;outline-offset:2px}
#ptStudio .pr-timeline .pr-panel-head {border-color:#dfebe2}
@media(min-width:1001px) {
  #ptStudio .pr-edit-body {align-content:start}
  #ptStudio .pr-edit-body .pr-cue-text {min-height:92px}
}
@media(max-width:900px) {
  #ptStudio .pr-project {flex-wrap:wrap}
  #ptStudio .pr-project-left {flex-basis:100%}
  .workspace-v1 #ptStudio .pr-project .pr-project-actions {
    flex:1 1 100%;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}
@media(max-width:700px) {
  #ptStudio main {padding-top:9px}
  #ptStudio .pr-project {padding:8px 9px;margin-bottom:10px;gap:7px}
  #ptStudio .pr-project-name {font-size:16px;line-height:23px}
}
@media(pointer:coarse) {
  #ptStudio #ptProjectNameButton,
  #ptStudio .pr-project .pr-project-actions :is(.term-translations-button,.pr-primary) {min-height:44px}
}
