.workbench-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.workbench-back{display:inline-block;text-decoration:none;color:var(--muted);font-size:11px;padding:0 0 12px}.workbench-back:hover{color:var(--ink)}.workbench-top h2{font-size:23px;font-weight:700;letter-spacing:-.7px;margin:0 0 9px}.workbench-top p{font-size:10px;color:var(--muted);margin:0;line-height:1.7}.workbench-top p>span{margin-left:8px;color:var(--muted)}.workbench-guide{display:flex;align-items:center;gap:7px;border:0;border-radius:8px;padding:10px 12px;background:var(--surface);color:var(--secondary);font-size:11px;white-space:nowrap}.workbench-guide svg{width:14px;height:14px}.workbench-body{--viewer-height:calc(100dvh - 235px);display:grid;grid-template-columns:minmax(225px,.9fr) minmax(230px,1.15fr) minmax(260px,1fr);gap:22px;align-items:stretch;height:var(--viewer-height);min-height:440px}.video-rail{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface);border-radius:16px;padding:17px 12px 12px}.video-rail header{padding:2px 7px 15px}.video-rail h3{font-size:12px;font-weight:600;margin:0}.video-total{margin-left:6px;color:var(--muted);font-size:10px;font-weight:400}.video-rail-list{display:flex;flex-direction:column;gap:9px;overflow:auto;min-height:0;overscroll-behavior:contain}.video-list-card{position:relative;display:flex;gap:10px;align-items:center;flex:none;width:100%;padding:12px 10px;border:0;border-radius:11px;background:var(--inset);color:var(--ink);text-align:left}.video-list-card:hover{background:var(--hover)}.video-list-card.selected{background:var(--filter-selected)}.video-poster{position:relative;display:block;flex:none;width:45px;aspect-ratio:9/16;border-radius:6px;overflow:hidden;background:var(--video-bg)}.video-poster img{display:block;width:100%;height:100%;object-fit:cover}.video-poster small{position:absolute;right:2px;bottom:3px;background:var(--video-scrim);color:var(--on-video);border-radius:2px;padding:2px 3px;font-size:8px}.video-list-copy{flex:1;min-width:0;padding:0 0 6px}.video-list-copy strong{display:block;font-size:11px;font-weight:600;line-height:1.65;overflow-wrap:anywhere}.video-list-copy>span{display:block;margin-top:7px;font-size:9px;color:var(--muted)}.video-list-copy b{font-weight:400;margin-left:5px}.video-card-state{position:absolute;right:10px;top:10px;font-size:8px;color:var(--muted)}.video-stage{position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;height:100%;overflow:hidden}.video-frame{position:relative;border-radius:11px;overflow:hidden;background:var(--video-bg);max-width:100%;max-height:100%;flex:none}.video-frame video{display:block;width:100%;height:100%;object-fit:contain;border-radius:11px;background:var(--video-bg)}.video-expand{position:absolute;right:9px;top:9px;border:0;background:var(--video-scrim);color:var(--on-video);border-radius:7px;width:29px;height:29px;padding:6px;display:grid;place-items:center;opacity:0;transition:opacity .15s}.video-expand svg{width:17px;height:17px}.video-frame:hover .video-expand,.video-frame:focus-within .video-expand{opacity:1}.video-stage:fullscreen{width:100vw;height:100dvh;padding:20px;background:#202020}.video-stage:fullscreen .video-frame{max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px)}.video-stage:fullscreen .video-expand{opacity:1}.media-error{position:absolute;inset:0;background:var(--surface);align-items:center;justify-content:center;flex-direction:column;gap:12px;border-radius:11px;text-align:center;padding:20px;font-size:12px}.media-error:not([hidden]){display:flex}.media-error button,.media-retry{border:0;background:var(--inset);color:var(--ink);padding:9px 12px;border-radius:7px;font-size:11px}.player-message{position:absolute;bottom:8px;font-size:11px;background:var(--surface);color:var(--ink);border-radius:6px;max-width:100%}.player-message:empty{display:none}.video-inspector{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--surface);border-radius:16px;overflow:hidden}.inspector-scroll{overflow:auto;padding:22px 20px;flex:1;min-height:0}.inspector-title{position:relative;padding-top:23px}.local-state{position:absolute;right:0;top:0;font-size:9px;padding:4px 6px;border-radius:5px;background:var(--inset);color:var(--muted)}.inspector-title h3{font-size:18px;font-weight:650;line-height:1.6;white-space:pre-line;margin:13px 0 24px;overflow-wrap:anywhere}.inspector-tabs{display:flex;gap:3px;background:var(--inset);padding:4px;border-radius:8px;margin-bottom:20px}.inspector-tabs button{flex:1;border:0;border-radius:5px;padding:9px 3px;font-size:10px;background:transparent;color:var(--muted);white-space:nowrap}.inspector-tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);font-weight:600}.judge-card{background:var(--inset);border-radius:12px;padding:18px}.judge-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.judge-card h4,.video-file-info h4{font-size:12px;margin:0;font-weight:650}.judge-card>div>span{font-size:9px;color:var(--muted)}.judge-values{display:flex;gap:40px;margin:25px 0 20px}.judge-values small{display:block;font-size:10px;color:var(--muted)}.judge-values strong{display:block;font-size:28px;margin-top:7px;font-weight:600}.judge-card p{font-size:10px;color:var(--muted);line-height:1.9;margin:0}.video-file-info{margin-top:24px}.video-file-info dl{display:grid;grid-template-columns:50px 1fr;gap:13px;font-size:10px;margin:18px 0 0;line-height:1.8}.video-file-info dt{color:var(--muted)}.video-file-info dd{margin:0;overflow-wrap:anywhere;color:var(--secondary)}.inspector-bottom{padding:15px 18px;flex:none;text-align:center}.inspector-bottom button{width:100%;background:var(--solid);color:var(--on-solid);border:0;border-radius:8px;padding:12px;font-size:11px}.inspector-bottom button:disabled{cursor:not-allowed;opacity:.55}.inspector-bottom small{display:block;font-size:9px;color:var(--muted);margin-top:8px}.inspector-empty{padding:22px 7px;text-align:center}.inspector-empty svg{color:var(--muted);width:24px;height:24px}.inspector-empty h4{font-size:13px;margin:15px 0 9px}.inspector-empty p,.workbench-note{font-size:11px;line-height:1.9;color:var(--muted)}.workbench-note{padding:0 7px}.workbench-guide-dialog{width:min(740px,calc(100vw - 40px));max-height:85dvh;overflow:auto}.workbench-guide-content{font-size:13px;line-height:1.9;overflow-wrap:anywhere;margin-top:22px}.workbench-guide-content a{color:inherit;text-decoration:underline}.workbench-guide-content table{width:100%;border-collapse:collapse}.workbench-guide-content td,.workbench-guide-content th{padding:6px;vertical-align:top}
@media(min-width:1700px){.workbench-body{grid-template-columns:340px minmax(0,1fr) 370px}.video-list-copy strong{font-size:12px}.video-poster{width:52px}}
@media(max-width:1000px){.workbench-body{grid-template-columns:220px minmax(0,1fr);height:auto;min-height:0;align-items:start}.video-rail{height:auto;min-height:0;grid-row:1/3;align-self:stretch;position:static}.video-rail-list{overflow:visible;flex:none}.video-stage{height:var(--viewer-height);min-height:450px}.video-inspector{grid-column:2;height:auto;width:min(100%,520px);justify-self:center}.inspector-scroll{overflow:visible}}
@media(max-width:850px){.workbench-body{grid-template-columns:175px minmax(0,1fr);gap:15px;--viewer-height:500px}.video-rail{padding:15px 8px}.video-list-card{gap:7px;padding:10px 8px}.video-poster{width:35px}.video-list-copy strong{font-size:10px}.video-card-state{font-size:7px}.video-list-copy>span{font-size:8px}.workbench-top h2{font-size:20px}.workbench-top{align-items:flex-start;flex-wrap:wrap}.video-expand{opacity:1}.inspector-scroll{padding:17px}.inspector-title h3{font-size:16px}}
@media(max-width:600px){.workbench-body{display:flex;flex-direction:column}.video-rail{position:static;width:100%;height:auto;min-height:0;max-height:255px}.video-rail-list{max-height:195px}.video-stage{width:100%;height:450px;min-height:0}.video-inspector{width:100%}.video-list-copy{padding-top:0}.video-list-card{min-height:90px}.workbench-top h2{font-size:18px}.workbench-guide{font-size:10px}}
@media(prefers-reduced-motion:reduce){.video-expand{transition:none}}
.mobile-video-controls{display:none}.video-picker-dialog{inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:82dvh;height:auto;border:0;border-radius:20px 20px 0 0;padding:20px 12px max(14px,env(safe-area-inset-bottom));background:var(--surface);overflow:hidden}.video-picker-dialog[open]{display:flex;animation:video-picker-enter .24s cubic-bezier(.2,.8,.2,1)}.video-picker-close{position:absolute;right:13px;top:9px;z-index:1;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--secondary);font-size:24px}.video-picker-dialog .video-rail{position:static;width:100%;height:auto;max-height:calc(82dvh - 40px);min-height:0;padding:10px 0 0}.video-picker-dialog .video-rail header{padding:4px 12px 21px}.video-picker-dialog .video-rail h3{font-size:14px}.video-picker-dialog .video-rail-list{max-height:none;overflow:auto;flex:1}.video-picker-dialog .video-list-card{min-height:100px;padding:12px;gap:12px}.video-picker-dialog .video-poster{width:43px}.video-picker-dialog .video-list-copy strong{font-size:12px}.video-picker-dialog .video-list-copy>span{font-size:10px}.video-picker-dialog .video-card-state{font-size:9px}.video-picker-dialog .video-list-copy{padding:0 0 6px}
@keyframes video-picker-enter{from{transform:translateY(35px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:760px){.workbench-top{margin-bottom:14px;gap:10px;align-items:center}.workbench-top h2{font-size:20px}.workbench-top p{font-size:10px}.workbench-back{min-height:32px;padding:4px 0 10px}.workbench-guide{min-height:38px;font-size:11px}.workbench-body{display:flex;flex-direction:column;height:auto;min-height:0;gap:17px}.mobile-video-controls{display:flex;align-items:stretch;gap:8px;margin:0 0 14px}.mobile-video-controls>button{border:0;border-radius:11px;background:var(--surface);color:var(--ink);min-height:54px}.video-previous,.video-next{width:42px;flex:none;font-size:24px}.video-picker-open{flex:1;min-width:0;text-align:left;padding:11px 13px}.video-picker-label{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.mobile-current-title{display:block;font-size:12px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-stage{width:100%;height:min(66dvh,calc((100vw - 32px)*16/9));min-height:0;flex:none}.video-stage:fullscreen{height:100dvh}.video-inspector{width:100%;height:auto}.inspector-title h3{font-size:18px}.inspector-tabs button{min-height:42px;font-size:12px}.inspector-scroll{padding:20px}.video-expand{width:36px;height:36px}.workbench-guide-dialog{width:calc(100vw - 24px);padding:22px;max-height:88dvh}.video-rail{min-height:0}.video-previous:disabled,.video-next:disabled{cursor:default}}
@media(prefers-reduced-motion:reduce){.video-picker-dialog[open]{animation:none}}
/* Operational review actions use the same borderless Workspace controls. */
.workflow-policy{padding:14px;margin:8px 0 18px;background:var(--hover);border-radius:12px;font-size:12px;line-height:1.7}
.workflow-policy strong{font-size:13px}.workflow-policy p{margin:5px 0 8px;color:var(--secondary)}
.workflow-policy small,.workflow-policy a{display:block;font-size:11px;color:var(--secondary)}
.workflow-policy a{margin-top:6px;color:var(--text)}.workflow-policy .workflow-pending{margin-top:10px;opacity:.8}
.workbench-actions{display:flex;gap:8px;width:100%}.workbench-actions .open-editor{display:flex;align-items:center;justify-content:center;flex:1;height:40px;border-radius:10px;background:var(--text);color:var(--surface);font-size:13px;font-weight:600;text-decoration:none}
.workbench-actions .open-editor[aria-disabled=true]{opacity:.4;cursor:default}
.inspector-bottom .workbench-actions .reject-video{width:auto;min-width:64px;height:40px;background:var(--hover);color:var(--secondary);border:0;border-radius:10px}
.reject-dialog{width:min(440px,calc(100vw - 32px));padding:24px;border:0;border-radius:20px;background:var(--surface);color:var(--text)}
.reject-dialog::backdrop{background:var(--overlay)}.reject-dialog p{font-size:13px;line-height:1.7;color:var(--secondary)}
.reject-dialog label{display:grid;gap:8px;font-size:13px}.reject-dialog textarea{resize:vertical;border:0;border-radius:10px;padding:12px;background:var(--hover);color:var(--text);font:inherit}
.reject-dialog button.primary{margin-top:16px}.reject-error{color:var(--danger)!important}
.workflow-controls{padding:0 0 16px;font-size:12px;line-height:1.7}.workflow-controls p{color:var(--secondary);margin:0 0 10px}.workflow-controls div{display:flex;gap:8px;flex-wrap:wrap}.workflow-controls button{padding:9px 12px;border:0;border-radius:9px;font:inherit;cursor:pointer}.workflow-next{background:var(--text);color:var(--surface)}.workflow-refresh{background:var(--hover);color:var(--secondary)}.workflow-controls a,.workflow-controls small{display:block;margin-bottom:10px;color:var(--secondary)}.workflow-controls blockquote{margin:8px 0;padding:12px;background:var(--hover);border-radius:10px;white-space:pre-wrap}
.workflow-dialog{width:min(480px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:0;border-radius:20px;background:var(--surface);color:var(--text);padding:24px}.workflow-dialog::backdrop{background:var(--overlay)}.workflow-dialog h2{font-size:18px}.workflow-dialog label{display:grid;gap:8px;margin:18px 0;font-size:13px}.workflow-dialog input,.workflow-dialog select,.workflow-dialog textarea{min-width:0;width:100%;box-sizing:border-box;padding:12px;border:0;border-radius:10px;font:inherit;background:var(--hover);color:var(--text)}.workflow-dialog p{font-size:12px;line-height:1.8;color:var(--secondary)}.workflow-error{color:var(--danger)!important}.workflow-dialog label[hidden]{display:none}
/* In the two-column layout, keep the video list in view while the player/card scroll. */
@media(min-width:761px) and (max-width:1000px){
 .workbench-body>.video-rail{position:sticky;top:16px;align-self:start;grid-row:1/3;height:var(--rail-visible-height,calc(100dvh - 235px));max-height:calc(100dvh - 32px);min-height:0}
 .workbench-body>.video-rail .video-rail-list{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
}

/* 영상 목록 번호(그림 왼쪽) · 오른쪽 위 점(다시 렌더 중 노랑 · 다시 만든 영상 초록) — src/workbench.js cardMark */
.video-list-card .video-no{flex:none;width:14px;margin-right:-4px;text-align:center;font-size:12px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
/* 점 · 하트는 같은 높이 가운데(하트 14px 의 가운데 = 위에서 15px) */
.video-list-card .video-dot{position:absolute;right:10px;top:10px;width:10px;height:10px;border-radius:50%;box-sizing:border-box}
.video-list-card .video-dot.edited{background:#30d158}
/* '수정됨' 칩 — 편집을 반영해 다시 만든 영상(카드 둘째 줄 · 좁은 화면 영상 선택 줄) */
.video-edited{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);font-weight:600;font-size:9px;line-height:1.6;vertical-align:1px}
.mobile-current-title .video-edited{margin:0 0 0 6px;font-size:10px}
.video-skip{margin-left:8px;font-size:10px;font-weight:500;color:var(--secondary);background:var(--inset);border-radius:999px;padding:3px 8px;cursor:default}
/* 하트(0139) — 영상 왼쪽 위 동그란 버튼(누르면 핑크) · 목록 카드 오른쪽 위 작은 하트(초록 · 노란 점이 있으면 그 왼쪽). 제목과 겹치지 않게 카드 글 칸 오른쪽을 비운다 */
.video-heart-btn{position:absolute;left:9px;top:9px;z-index:2;width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;background:var(--video-scrim);color:var(--on-video);transition:transform .12s}
.video-heart-btn[hidden]{display:none}
.video-heart-btn:active{transform:scale(.9)}
.video-heart-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.video-heart-btn.on{background:#ff4f8b;color:#fff}.video-heart-btn.on svg{fill:currentColor}
.video-list-card .video-heart{position:absolute;right:9px;top:8px;color:#ff4f8b;line-height:0}
.video-list-card .video-heart svg{width:14px;height:14px;fill:currentColor}
.video-list-card .video-dot~.video-heart,.video-list-card .video-card-state~.video-heart{right:24px}
.video-list-card.has-heart .video-list-copy{padding-right:22px}
/* 카드 제목 두 줄(썸네일과 같게) — 줄마다 한 줄, 넘치면 … */
.video-list-copy strong .tl{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.heart-intro{position:absolute;left:8px;top:54px;z-index:3;width:min(232px,calc(100% - 16px));background:var(--surface);color:var(--ink);border-radius:16px;padding:12px 14px 12px;box-shadow:0 8px 24px rgba(0,0,0,.25);animation:heart-intro-in .18s ease-out;transform-origin:18px -8px}
/* 말풍선 꼬리 — 하트 버튼 가운데를 가리킨다 */
.heart-intro::before{content:'';position:absolute;left:14px;top:-7px;width:16px;height:16px;background:inherit;border-radius:3px;transform:rotate(45deg)}
.heart-intro p{position:relative;margin:0;font-size:12px;line-height:1.55;word-break:keep-all}
.heart-intro p b{color:#ff4f8b}
.heart-intro button{display:block;margin:10px 0 0 auto;border:0;border-radius:999px;background:#ff4f8b;color:#fff;font:inherit;font-size:12px;font-weight:600;padding:5px 14px;cursor:pointer}
@keyframes heart-intro-in{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
/* 엔진 검사 표시 배지(src/review-flags.js) — 주의 옅은 주황 · 정보 회색, 수정한 영상은 옅게 */
.rf-badges{display:inline-flex;gap:4px;margin-left:4px;vertical-align:1px}.rf-badges.stale{opacity:.45}
.rf-badge{display:inline-block;border-radius:999px;padding:1px 7px;font-size:9px;font-weight:700;line-height:1.6;font-style:normal}
.rf-badge.warn{background:#fff1d6;color:#b26a00}.rf-badge.info{background:var(--inset);color:var(--secondary)}
/* 유튜브에 올린 영상 — 왼쪽 목록 칩(예약됨 · 공개됨 · 일부공개) */
.video-pub{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:var(--dot-ok-bg);color:var(--dot-ok-text);font-weight:700;font-size:10px;line-height:1.6;vertical-align:1px}
.mobile-current-title .video-pub{margin:0 6px 0 0;vertical-align:1px}
.video-need{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:var(--danger-bg);color:var(--danger);font-weight:700;font-size:10px;line-height:1.6;vertical-align:1px}
/* 작업을 열 수 없을 때(src/job-missing.js) */
.job-missing{background:var(--surface);border-radius:24px;padding:56px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.job-missing .jm-laptop{width:48px;height:48px;margin-bottom:8px;fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.job-missing .node-robot{display:block;width:64px;height:64px;margin:0 0 8px}   /* z 는 머리 위 칸 밖에 그려져서 잘리지 않게 */
.job-missing .jm-sleep{position:relative;display:block;margin-top:26px}
.job-missing .robot-sleep-marks{display:none}   /* 원래 z 대신 jm-z(픽셀 칸에 맞춘 z) */
.job-missing .jm-z{position:absolute;left:56px;top:-24px;width:28px;height:28px;stroke:none}   /* 대시보드 공통 svg 규칙(19px · 검은 외곽선)을 끈다 — 이것 때문에 z 가 검고 두꺼워 보였다 */
/* 투명하게 하면 회색으로 보여서 진한 파랑 ↔ 연한 파랑(색을 직접 — 섞은 색은 SVG 에서 검게 그려지는 곳이 있다) */
.job-missing .jm-z{--z-on:#3D7BFF;--z-off:#A9C3FF}   /* 2px 선이라 대시보드 파랑(#2456E8)은 남색처럼 보여서 한 단계 밝게 */
:root[data-theme="dark"] .job-missing .jm-z{--z-on:#7FA2FF;--z-off:#3E5596}
.job-missing .jm-z g{fill:var(--z-off);animation:jm-z 1.6s steps(1,end) infinite}
.job-missing .jm-z .jm-z2{animation-delay:-.8s}   /* 위 animation 묶음 규칙보다 세게 — 같은 세기면 지연이 0 으로 덮여 둘이 같이 깜빡인다 */
@keyframes jm-z{0%,100%{fill:var(--z-off)}50%{fill:var(--z-on)}}
@media(prefers-reduced-motion:reduce){.job-missing .jm-z1,.job-missing .jm-z2{animation:none}}
.job-missing h3{margin:0;font-size:18px}
.job-missing p{margin:0;max-width:420px;font-size:13px;line-height:1.7;color:var(--secondary)}
.job-missing .jm-acts{display:flex;gap:8px;margin-top:12px}
.job-missing .jm-btn{border:0;border-radius:999px;padding:11px 18px;font:inherit;font-size:13px;font-weight:600;background:var(--inset);color:var(--ink);text-decoration:none;cursor:pointer}
.job-missing .jm-btn.pri{background:var(--solid);color:var(--on-solid)}
/* 방영 전 회차(0156) — 작업 폴더 맨 위 안내 */
.air-warn{display:flex;gap:12px;align-items:flex-start;margin:0 0 16px;padding:14px 16px;border-radius:14px;background:var(--danger-bg)}
.air-warn svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--status-error);stroke-width:1.8;stroke-linecap:round}
.air-warn b{display:block;font-size:14px;color:var(--status-error)}
.air-warn p{margin:3px 0 0;font-size:12px;line-height:1.6;color:var(--secondary)}
/* 작성한 대본(0157) — 왼쪽 목록 맨 위 두 칸 전환, 고르면 영상 · 검수 카드 자리에 대본 */
.rail-switch{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--inset);width:100%}
.rail-switch button{flex:1;border:0;border-radius:9px;padding:8px 6px;background:transparent;font:inherit;font-size:12px;color:var(--secondary);white-space:nowrap}
.rail-switch button span{color:var(--muted);margin-left:3px}
.rail-switch button[aria-selected=true]{background:var(--surface);color:var(--ink);font-weight:650}
.show-scripts .workbench-body .video-rail-list,.show-scripts .workbench-body>.video-column,.show-scripts .workbench-body>.video-inspector{display:none}
.show-scripts .workbench-body{grid-template-rows:auto}
.rail-switch i{font-style:normal}
.rail-switch.is-mobile,.script-pane-list{display:none}
@media(max-width:1000px){.rail-switch i{display:none}}
@media(max-width:760px){
 .rail-switch.is-mobile{display:flex;margin:0 0 12px}
 .show-scripts .mobile-video-controls{display:none}
 .show-scripts .script-pane-list{display:flex;flex-direction:column;gap:2px;margin:-6px -6px 14px;padding:6px;border-radius:14px;background:var(--inset);max-height:300px;overflow:auto}
 .script-pane{grid-column:1/-1}
 .script-pane{padding:18px}
}
.script-rail-list{overflow:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:2px;padding-top:8px}
.script-rail-list[hidden]{display:none}
.script-filter{display:flex;gap:6px;margin:0 4px 6px}
.script-filter button{border:0;border-radius:999px;padding:5px 10px;font:inherit;font-size:11px;background:var(--inset);color:var(--secondary)}
.script-filter button[aria-pressed=true]{background:var(--solid);color:var(--on-solid)}
.script-rank{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;background:var(--inset);color:var(--secondary)}
.script-row.done .script-rank{background:var(--solid);color:var(--on-solid)}
.script-copy{min-width:0}.script-copy strong{display:block;font-size:12px;line-height:1.45;font-weight:600}
.script-copy small{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:4px;font-size:11px;color:var(--muted)}
.script-chip{font-style:normal;font-size:10.5px;font-weight:650;padding:1px 7px;border-radius:999px;background:var(--inset);color:var(--secondary)}
.script-chip.ok{background:var(--dot-ok-bg);color:var(--status-ok)}
.script-chip.rend{background:var(--solid);color:var(--on-solid)}
.script-pane{grid-column:2/-1;background:var(--surface);border-radius:18px;padding:22px;min-width:0}
.script-pane[hidden]{display:none}
.script-memo{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:var(--inset);font-size:12px;line-height:1.6;color:var(--secondary);white-space:pre-wrap}
.script-memo b{color:var(--ink);margin-right:8px}
.script-pane h3{margin:0;font-size:18px;line-height:1.45}
.script-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:6px 0 0;font-size:12px;color:var(--muted)}
.script-why{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:var(--inset);font-size:12px;line-height:1.6}
.script-why b{display:block;font-size:11px;color:var(--muted);font-weight:600;margin:0 0 2px}
.script-why b+*,.script-why b:not(:first-child){margin-top:6px}
.script-lines{margin-top:14px;display:flex;flex-direction:column;gap:2px}
.script-line{display:grid;grid-template-columns:24px 1fr;gap:8px;padding:8px 10px;border-radius:10px;font-size:13px;line-height:1.55}
.script-line:nth-child(odd){background:var(--inset)}
.script-line i{font-style:normal;font-size:11px;font-weight:700;color:var(--muted);padding-top:2px}
.script-line em{font-style:normal;color:var(--muted);margin-right:6px}
.script-line.is-a span{color:var(--secondary)}
.script-foot{margin:12px 0 0;font-size:12px;color:var(--muted)}
@media(max-width:600px){.script-pane{grid-column:auto}}
@media(max-width:760px){.script-pane-list .script-row:hover,.script-pane-list .script-row[aria-pressed=true]{background:var(--surface)}}
/* 대본 골라 렌더(0158) — 체크 칸 · 아래 실행 줄 */
.script-row{display:flex;align-items:flex-start;gap:4px;border-radius:12px}
.script-row.on,.script-row:hover{background:var(--hover)}
.script-open{flex:1;min-width:0;display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;border:0;border-radius:12px;padding:10px 8px;background:transparent;text-align:left;font:inherit;color:var(--ink)}
.script-row.done .script-rank{background:var(--solid);color:var(--on-solid)}
.script-check{flex:none;display:grid;place-items:center;width:34px;height:42px;cursor:pointer}
.script-check input{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border-radius:5px;background:var(--inset);display:grid;place-items:center;cursor:pointer}
.script-check input:checked{background:var(--solid)}
.script-check input:checked::after{content:"";width:9px;height:5px;border:2px solid var(--on-solid);border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.script-chip.busy{display:inline-flex;align-items:center;gap:5px;background:var(--inset);color:var(--ink)}
.script-chip.busy::before{content:"";width:8px;height:8px;border-radius:50%;border:1.5px solid currentColor;border-top-color:transparent;animation:script-spin .9s linear infinite}
@keyframes script-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.script-chip.busy::before{animation:none}}
.script-act{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding:10px;border-radius:12px;background:var(--solid);color:var(--on-solid);font-size:12px}
.script-act button{border:0;border-radius:999px;padding:8px 12px;background:var(--on-solid);color:var(--solid);font:inherit;font-size:12px;font-weight:650;white-space:nowrap}
.script-acts{display:flex;justify-content:flex-end;margin-top:16px}
.script-acts .primary{width:auto;padding:11px 18px;border-radius:999px}
/* 대본 칸 높이를 영상 보기와 맞춘다 — 흰 판은 그대로 두고 안쪽만 스크롤, 흰 테두리(안쪽 여백) 안에서 잘린다 */
.script-pane{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:14px}
.script-pane-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 10px 10px;border-radius:12px}
@media(min-width:761px) and (max-width:1000px){
 .show-scripts .workbench-body>.script-pane{position:sticky;top:16px;align-self:start;height:var(--rail-visible-height,calc(100dvh - 235px));max-height:calc(100dvh - 32px)}
}
@media(max-width:760px){.script-pane{overflow:visible;padding:18px}.script-pane-body{overflow:visible;padding:0}}
.script-watch{border:0;border-radius:999px;padding:11px 18px;background:var(--inset);color:var(--ink);font:inherit;font-size:13px;font-weight:600}
.script-watch:hover{background:var(--hover)}

/* 방영 전 꼬리표 — 작품 이름 오른쪽, 마우스를 올리면 안내(2026-10-08 · 빨간 상자 대신) */
.air-chip{position:relative;display:inline-flex;align-items:center;gap:5px;margin-left:12px;height:24px;padding:0 10px;border-radius:999px;background:var(--danger-bg);color:var(--status-error);font-size:12px;font-weight:650;letter-spacing:0;vertical-align:middle;cursor:default;outline:0}
.air-chip svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.air-pop{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:40;width:360px;max-width:calc(100vw - 32px);padding:14px 16px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow-dialog,0 8px 28px #0000001f);color:var(--secondary);font-size:12px;font-weight:400;line-height:1.6;white-space:normal}
.air-pop b{display:block;margin-bottom:4px;color:var(--status-error);font-size:13px}
.air-chip:hover .air-pop,.air-chip:focus .air-pop{display:block}
/* 검사 표시 꼬리표 — 영상 위 하트 옆, 마우스를 올리면 '확인해 볼 곳'(2026-10-08 · 검수 카드 목록 창 대신) */
.video-flag-chip{position:absolute;top:9px;left:9px;z-index:6;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;background:rgba(0,0,0,.55);color:#FFC768;font-size:13px;font-weight:700;cursor:default;backdrop-filter:blur(6px);outline:0}
.video-heart-btn:not([hidden])+.video-flag-slot .video-flag-chip{left:51px}
.video-flag-chip.info,.video-flag-chip.stale{color:#d6d6d6}
.video-flag-chip>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.video-flag-chip small{font-size:11px;font-weight:500;opacity:.8}
.vf-pop{display:none;position:absolute;left:-42px;top:calc(100% + 8px);width:300px;max-width:calc(100vw - 48px);max-height:340px;overflow:auto;padding:14px 16px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow-dialog,0 8px 28px #0000003a);color:var(--ink);font-weight:400;cursor:auto}
.video-heart-btn[hidden]+.video-flag-slot .vf-pop{left:0}
.video-flag-chip:hover .vf-pop,.video-flag-chip:focus-within .vf-pop{display:block}
.vf-pop>b{display:block;margin:0 0 4px;font-size:13px}
.vf-pop>em{display:block;margin:0 0 6px;font-style:normal;font-size:11px;color:var(--muted);line-height:1.5}
.vf-row{display:flex;gap:10px;width:100%;padding:8px 0;border:0;background:none;text-align:left;font:inherit;font-size:12px;line-height:1.5;color:var(--secondary)}
button.vf-row{cursor:pointer}button.vf-row:hover span{color:var(--ink)}
.vf-row+.vf-row{box-shadow:0 -1px 0 var(--inset)}
.vf-row i{flex:none;min-width:44px;font-style:normal;color:var(--ink);font-weight:650}
/* 영상 목록 정리(2026-10-08) — 아래 줄은 검수 단계 꼬리표 하나 · 작은 ⚠ · 썸네일 아이콘, 모두 20px 한 줄 가운데. 단계 색은 상태 표시 규칙(status.css)과 같다 */
.video-list-copy>.vs-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:20px;min-height:20px}
.vs-stage:empty{display:none}
.vs-tag{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap}
.vs-tag i{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.vs-tag.rev{background:var(--st-info-bg);color:var(--accent)}
.vs-tag.fix{background:var(--dot-warn-bg);color:var(--status-warn)}
.vs-tag.ok{background:var(--dot-ok-bg);color:var(--status-ok)}
.vs-tag.bad{background:var(--danger-bg);color:var(--status-error)}
.vs-tag.re{background:color-mix(in srgb,#2FB6AC 15%,var(--surface));color:#1f8f87}
.vs-warn{display:inline-flex;align-items:center;gap:2px;font-size:11px;font-weight:650;color:var(--status-warn)}
.vs-warn svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.vs-warn.old{opacity:.45}
.vs-th{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;background:var(--surface);color:var(--secondary)}
.vs-th svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vs-th.run svg{animation:vs-pulse 1.4s ease-in-out infinite}@keyframes vs-pulse{50%{opacity:.35}}
.vs-th.pick{background:var(--dot-ok-bg);color:var(--status-ok)}
@media (prefers-reduced-motion:reduce){.vs-th.run svg{animation:none}}
.vs-sub{font-size:11px;color:var(--muted)}
/* '수정판' — 제목 둘째 줄 바로 옆, 글자 잉크 중앙을 제목 줄 중앙에(한글 잉크가 위로 몰려 1.4px 올린다) */
.video-list-copy strong .vs-lrow{display:flex!important;align-items:center;gap:5px;min-width:0}
.vs-lrow .vs-tx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vs-ed{flex:none;position:relative;top:-1.4px;padding:0 5px;border-radius:4px;background:var(--surface);font-size:10px;font-weight:650;line-height:16px;color:var(--secondary);white-space:nowrap}
/* 단계 고르기 — 한 줄(넘치면 옆으로 밀기) */
.vs-filter{display:flex;flex:none;gap:4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 12px}
.vs-filter::-webkit-scrollbar{display:none}
.vs-filter button{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 9px;border:0;border-radius:999px;background:var(--inset);color:var(--secondary);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.vs-filter button b{font-weight:650;color:var(--muted)}
.vs-filter button.on{background:var(--ink);color:var(--surface)}.vs-filter button.on b{color:inherit;opacity:.7}
.vs-filter .d{width:7px;height:7px;border-radius:50%;flex:none}.vs-filter .d.todo{background:var(--muted);opacity:.5}.vs-filter .d.rev{background:var(--accent)}.vs-filter .d.fix{background:var(--status-warn)}.vs-filter .d.ok{background:var(--status-ok)}
.video-list-card[hidden]{display:none!important}
/* 작업 이력 — 만들기 · 편집 기록과 검수 기록을 한 타임라인에(최근이 위). 수정 요청은 주황 점 + 받은 내용 전문 */
.vs-tl{list-style:none;margin:4px 0 8px;padding:0}
.vs-tl li{position:relative;padding:0 0 14px 22px;font-size:12px;line-height:1.6;color:var(--secondary)}
.vs-tl li::before{content:"";position:absolute;left:4px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--muted);opacity:.45}
.vs-tl li::after{content:"";position:absolute;left:7.5px;top:15px;bottom:-3px;width:1px;background:color-mix(in srgb,var(--ink) 12%,transparent)}
.vs-tl li:last-child::after{display:none}
.vs-tl li.rev::before{background:var(--accent);opacity:.8}.vs-tl li.fix::before{background:var(--status-warn);opacity:1}.vs-tl li.ok::before{background:var(--status-ok);opacity:1}
.vs-tl time{display:block;font-size:11px;color:var(--muted)}
.vs-tl b{color:var(--ink);font-weight:650}.vs-tl li.make b{font-weight:500;color:var(--secondary)}
.vs-tl .q{margin-top:4px;padding:8px 10px;border-radius:8px;background:var(--inset);white-space:pre-wrap;color:var(--ink)}

/* 별로예요(0204, 2026-10-23) — 하트 반대. 회색 계열(보라는 대표 색이라 쓰지 않는다) */
.video-down-btn{position:absolute;left:51px;top:9px;z-index:2;width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;background:var(--video-scrim);color:var(--on-video)}
.video-down-btn[hidden]{display:none}
.video-down-btn:active{transform:scale(.9)}
.video-down-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.video-down-btn.on{background:#9a9aa3;color:#fff}
.video-heart-btn:not([hidden])~.video-down-btn:not([hidden])+.video-flag-slot .video-flag-chip{left:93px}
.down-menu{position:absolute;left:9px;top:52px;z-index:5;width:min(268px,calc(100% - 18px));box-sizing:border-box;padding:12px;border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 10px 30px #0005}
.down-menu>b{display:block;font-size:13.5px;margin:0 2px}
.down-menu .dm-h{font-size:11.5px;color:var(--muted);margin:2px 2px 9px}
.down-menu .dm-rs{display:flex;flex-wrap:wrap;gap:6px}
.down-menu .dm-rs button{border:0;border-radius:999px;background:var(--inset);color:var(--ink);font:inherit;font-size:12px;font-weight:600;padding:6px 10px;cursor:pointer;white-space:nowrap}
.down-menu .dm-rs button[aria-pressed=true]{background:#4a4a52;color:#fff}
.down-menu .dm-etc{display:block;width:100%;box-sizing:border-box;margin-top:8px;border:0;border-radius:8px;background:var(--inset);padding:8px 10px;font:inherit;font-size:12px;font-weight:400;color:var(--ink)}
.down-menu .dm-etc:disabled{opacity:.55}
.down-menu .dm-fix{font-size:11.5px;color:var(--secondary);margin:10px 2px 0;word-break:keep-all;line-height:1.5}
.down-menu .dm-fix a{color:var(--ink);font-weight:700;text-decoration:none}
.down-menu .dm-err{font-size:11.5px;color:var(--danger);margin:6px 2px 0}.down-menu .dm-err:empty{display:none}
.down-menu .dm-acts{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}
.down-menu .dm-acts button{border:0;border-radius:999px;font:inherit;font-size:12.5px;font-weight:700;padding:7px 14px;cursor:pointer;background:var(--ink);color:var(--surface)}
.down-menu .dm-acts .dm-off{background:var(--inset);color:var(--secondary)}
.video-list-card.is-down{opacity:.45}
.video-list-card.is-down:hover,.video-list-card.is-down.selected{opacity:.8}
.video-list-card .video-down{position:absolute;right:9px;top:8px;color:var(--muted);line-height:0}
.video-list-card .video-down svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.video-list-card.is-down .video-list-copy{padding-right:22px}
.video-list-card .vs-down{display:inline-block;margin-top:4px;font-size:11px;font-weight:650;color:var(--muted);background:var(--inset);border-radius:999px;padding:2px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* '주의' 꼬리표 자리 — 하트 · 엄지 사이에 끼면서 예전 '하트 바로 뒤' 규칙이 안 맞아 다시 정한다. 창은 늘 영상 왼쪽 끝에 맞춘다 */
.video-flag-slot .vf-pop{left:0}
.video-heart-btn:not([hidden])~.video-down-btn[hidden]+.video-flag-slot .video-flag-chip{left:51px}
.video-heart-btn:not([hidden])~.video-down-btn[hidden]+.video-flag-slot .vf-pop{left:-42px}
.video-heart-btn:not([hidden])~.video-down-btn:not([hidden])+.video-flag-slot .vf-pop{left:-84px}
.video-flag-slot .vf-pop{max-width:calc(var(--fw,320px) - 18px);box-sizing:border-box}
/* 칩 줄 끝 별로예요 빼고 보기 — 빼고 볼 때 검정 + 엄지와 같은 굵기 빗금, 같이 볼 때 회색. 알약과 같은 높이(28) */
.vs-filter .vs-downtog{margin-left:auto;flex:none;width:28px;height:28px;padding:0;justify-content:center;background:var(--inset);color:var(--muted)}
.vs-filter .vs-downtog svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.vs-filter .vs-downtog svg .cut{stroke:var(--inset);stroke-width:4.6}
.vs-filter .vs-downtog.on{background:var(--ink);color:var(--surface)}
.vs-filter .vs-downtog.on svg .cut{stroke:var(--ink)}
/* 하트 ↔ 별로예요를 바꿨을 때 영상 아래 안내(대시보드 안내창, templates.css .ws-toast) — 재생 막대 위 */
.video-frame .ws-toast.frame-toast{bottom:58px;z-index:7;white-space:nowrap;max-width:calc(100% - 24px);border-radius:999px;padding:7px 7px 7px 16px}
.video-frame .ws-toast.frame-toast button{border-radius:999px}

/* 좁은 화면(1001~1400px)에서도 세 칸 가로 배열 — 왼쪽 목록은 좁게, 썸네일 없이 번호 · 제목만(2026-10-23 사용자: 영상이 작아져 위로 떠 보임) */
@media(min-width:1001px) and (max-width:1400px){
 .workbench-body{gap:18px}
 .video-rail{padding:14px 8px 8px}
 .video-poster{display:none}
 .video-list-card{gap:8px;padding:10px 9px}
 .video-list-copy{padding-bottom:2px}
 .rail-switch i{display:none}   /* '완성 영상 · 작성한 대본' → '영상 · 대본' */
 /* 칩 대신 '전체 10 ▾' 드롭다운, 오른쪽 끝에 별로예요 단추 */
 .vs-filter>button[data-g]{display:none}
 .vs-filter .vs-pickwrap{display:flex;flex:1;min-width:0}
 .vs-filter .vs-pickwrap .dropdown{flex:1;min-width:0!important}
 .vs-filter .vs-pickwrap .dropdown-trigger{min-height:30px;padding:0 10px 0 12px;border-radius:999px;background:var(--inset);font-size:12px;font-weight:600;gap:6px}
 .vs-filter .vs-downtog{margin-left:6px}
 /* 카드 — 제목 두 줄만, 높이 같게, 상태는 왼쪽 얇은 색 줄(검수 보라 · 수정 주황 · 승인 초록) */
 .video-list-card{height:58px;padding:8px 10px 8px 14px;box-sizing:border-box}
 .video-list-card .vs-line,.video-list-card .vs-ed,.video-list-card .vs-down{display:none}
 .video-list-card .video-list-copy strong .tl{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .video-list-card::before{content:"";position:absolute;left:5px;top:12px;bottom:12px;width:3px;border-radius:3px;background:transparent}
 .video-list-card[data-vg=review]::before{background:var(--accent)}
 .video-list-card[data-vg=fix]::before{background:var(--status-warn)}
 .video-list-card[data-vg=done]::before{background:var(--status-ok)}
}
@media not ((min-width:1001px) and (max-width:1400px)){.vs-filter .vs-pickwrap{display:none}}

/* 같이 보기 단추 안내 — 하트 안내와 같은 말풍선, 색만 VES 보라. 꼬리 가운데(--tx)가 단추 정가운데(2026-10-26) */
.share-intro{position:absolute;z-index:6;width:232px;background:var(--surface);color:var(--ink);border-radius:16px;padding:12px 14px;box-shadow:0 8px 24px rgba(0,0,0,.25);animation:heart-intro-in .18s ease-out;transform-origin:var(--tx,200px) -8px;text-align:left}
.share-intro::before{content:'';position:absolute;left:calc(var(--tx,200px) - 8px);top:-7px;width:16px;height:16px;background:inherit;border-radius:3px;transform:rotate(45deg)}
.share-intro p{position:relative;margin:0;font-size:12px;line-height:1.55;word-break:keep-all}
.share-intro p b{color:var(--accent)}
.share-intro button{display:block;margin:10px 0 0 auto;border:0;border-radius:999px;background:var(--accent);color:#fff;font:inherit;font-size:12px;font-weight:600;padding:5px 14px;cursor:pointer;height:auto;min-height:0}
