.creation-batch{padding:24px;margin:24px 0;border:1px solid #0b67ff;border-radius:12px;background:linear-gradient(125deg,#eaf2ff,#f5f6f8)}.creation-batch h2{margin:0 0 8px;font-size:20px}.creation-batch p,.creation-batch small{color:#667085;line-height:1.7}.creation-batch .creation-actions{margin:16px 0}.creation-batch .creation-fields strong{padding:12px 0;color:#0b67ff}

.shotboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:20px 0}.shotboard-grid article{background:#f5f6f8;padding:12px;border-radius:9px}.shotboard-grid img{width:100%;max-height:320px;object-fit:contain;background:#ffffff;border-radius:6px}.shotboard-grid strong{display:block;margin:12px 0}.shotboard-grid p{font-size:13px}
.creation-batch button:disabled{opacity:.45;cursor:not-allowed}

.shotboard-full{margin:16px 0}.shotboard-full img{width:100%;max-height:520px;object-fit:contain;background:#ffffff;border-radius:9px}.shotboard-full figcaption{font-size:13px;color:#4b5160;margin-top:6px}

.creation-prompt{white-space:pre-wrap;font-size:13px;line-height:1.9;background:#f5f6f8;color:#20242b;border:1px solid #d7dbe2;border-radius:8px;padding:12px 14px;max-height:360px;overflow:auto;font:inherit;font-size:13px;line-height:1.9;color-scheme:light;width:100%;box-sizing:border-box;resize:vertical}
.creation-single{border:1px solid #b9d3ff}

.single-frames{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12px;margin:8px 0}.single-frames label{display:flex;gap:4px;align-items:center}

/* 套路模板面板 */
.tpl-panel{margin-bottom:18px}.tpl-tools{display:flex;gap:8px;margin-left:auto}.tpl-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tpl-chip{border:1px solid #b9d3ff;background:#eaf2ff;color:#0b67ff;border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer;font-family:inherit}
.tpl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-top:12px}.tpl-card{text-align:left;background:#ffffff;border:1px solid #e6e8ec;border-radius:12px;padding:12px;color:inherit;cursor:pointer;font-family:inherit;display:flex;flex-direction:column;gap:4px}.tpl-card.on{border-color:#0b67ff}.tpl-card strong{font-size:14px}.tpl-card span,.tpl-card small,.tpl-card em{font-size:11.5px;color:#4b5160;font-style:normal}
.tpl-form{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:16px}.tpl-shots ol{padding-left:18px;font-size:12.5px;line-height:1.7}.tpl-shots i{display:block;color:#175cd3;font-style:normal}.tpl-rules{font-size:12px;color:#0b67ff}.tpl-fill{display:flex;flex-direction:column;gap:10px}.tpl-fill label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#4b5160}.tpl-fill select,.tpl-fill input{background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;padding:8px 10px;font-size:13px}
.tpl-result{margin-top:16px;border-top:1px solid #e6e8ec;padding-top:12px}.tpl-result ol{padding-left:18px;font-size:12.5px;line-height:1.7}.tpl-result i{display:block;color:#175cd3;font-style:normal}
@media(max-width:900px){.tpl-form{grid-template-columns:1fr}}

.tpl-slot{display:flex;flex-direction:column;gap:6px}.tpl-slot-h{font-size:12.5px;color:#20242b}.tpl-slot-h small{color:#7a8190;margin-left:6px;font-size:11px}
.tpl-tiles{display:flex;flex-wrap:wrap;gap:8px}.tpl-tile{width:88px;padding:4px;border:2px solid #e6e8ec;border-radius:10px;background:#fafafb;cursor:pointer;color:inherit;font-family:inherit;display:flex;flex-direction:column;gap:4px}.tpl-tile:hover{border-color:#c2c8d1}.tpl-tile.on{border-color:#0b67ff;box-shadow:0 0 0 1px rgba(11,103,255,0.28)}
.tpl-tile-img{display:block;width:100%;border-radius:6px;background-size:cover;background-position:center}.tpl-tile-img.r34{aspect-ratio:3/4}.tpl-tile-img.r169{aspect-ratio:16/9}.tpl-tile-img.r11{aspect-ratio:1;background-color:#fff;background-size:contain;background-repeat:no-repeat}
.tpl-tile-nm{font-size:11px;color:#4b5160;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tpl-tile.on .tpl-tile-nm{color:#0b67ff}

/* 工作台模式切换 + 套版四步 */
.studio-mode{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 18px}.studio-mode-btn{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;padding:12px 14px;border:1px solid #e6e8ec;border-radius:12px;background:#ffffff;color:#4b5160;cursor:pointer;font-family:inherit}.studio-mode-btn svg{grid-row:span 2;width:22px;height:22px}.studio-mode-btn span{font-size:14px;font-weight:700;color:#20242b}.studio-mode-btn small{font-size:11.5px}.studio-mode-btn.on{border-color:#0b67ff;background:#eaf2ff}.studio-mode-btn.on span{color:#0b67ff}
.tpl-step{margin-bottom:16px}.tpl-step.done .stepno{background:#ecfdf3;color:#067647}
.tpl-card-import{border:1.5px dashed #c2c8d1!important;align-items:center;justify-content:center;text-align:center;cursor:pointer}.tpl-import-plus{font-size:28px;color:#0b67ff;line-height:1}
.tpl-origin{margin:6px 0 14px;font-size:12.5px}.tpl-origin summary{cursor:pointer;color:#4b5160}.tpl-origin ol{padding-left:18px;line-height:1.7}.tpl-origin i{display:block;color:#175cd3;font-style:normal}
.tpl-slots{display:flex;flex-direction:column;gap:14px}.tpl-slot.ok .tpl-slot-h::after{content:" ✓";color:#067647}
.tpl-fill-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}.tpl-fill-row label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#4b5160}.tpl-fill-row select,.tpl-fill-row input{background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;padding:9px 10px;font-size:13px}.tpl-static{font-size:13px;color:#20242b;padding:9px 0}
.tpl-title{margin:0 0 10px;font-size:16px}.tpl-seg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.tpl-seg{background:#fafafb;border:1px solid #e6e8ec;border-radius:10px;padding:12px}.tpl-seg header{display:flex;justify-content:space-between;font-weight:700;margin-bottom:6px}.tpl-seg header span{color:#0b67ff;font-weight:500;font-size:12px}.tpl-seg p{font-size:12.5px;line-height:1.7;margin:0}.tpl-seg blockquote{margin:8px 0 0;padding:8px 10px;border-left:2px solid #175cd3;background:#ffffff;font-size:12.5px;color:#4b5160}.tpl-seg blockquote small{display:block;color:#7a8190;margin-top:2px}
.tpl-prompt-box{margin-top:12px}.tpl-prompt-box summary{cursor:pointer;font-size:12.5px;color:#4b5160}.tpl-prompt-box textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px}.tpl-prompt-box small{display:block;color:#7a8190;margin-top:4px}
.tpl-progress{margin-top:12px}.tpl-bar{height:6px;background:#f5f6f8;border-radius:3px;overflow:hidden}.tpl-bar i{display:block;height:100%;background:#0b67ff}

.tpl-card.fw{border-style:dashed}.tpl-card.fw span{color:#0b67ff}

/* 样片预览 + 套版/临摹路线 */
.tpl-sample-h{margin:16px 0 8px;font-weight:600;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.tpl-sample-h small{font-weight:400;color:#667085}
.tpl-samples{display:flex;flex-wrap:wrap;gap:12px}
.tpl-sample{margin:0;width:150px;display:flex;flex-direction:column;gap:6px;border:2px solid #e6e8ec;border-radius:12px;padding:6px;background:#fafafb}
.tpl-sample.on{border-color:#0b67ff}
.tpl-sample video{width:100%;aspect-ratio:9/16;border-radius:8px;background:#000;object-fit:cover;display:block}
.tpl-sample figcaption{font-size:12px;color:#4b5160;text-align:center;line-height:1.3}
.tpl-sample-add{align-items:center;justify-content:center;text-align:center;cursor:pointer;border-style:dashed;border-color:#c2c8d1;min-height:200px}.tpl-sample-add span{font-size:12px;color:#667085}
.tpl-route{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.tpl-route-btn{text-align:left;padding:14px 16px;border:1px solid #e6e8ec;border-radius:12px;background:#ffffff;color:#4b5160;cursor:pointer;font-family:inherit;display:flex;flex-direction:column;gap:6px}
.tpl-route-btn strong{color:#20242b;font-size:15px}.tpl-route-btn span{font-size:12px;line-height:1.5}
.tpl-route-btn.on{border-color:#0b67ff;background:#eaf2ff}.tpl-route-btn.on strong{color:#0b67ff}
.tpl-route-btn.off{opacity:.5;cursor:not-allowed}
.tpl-tile-img.r916{aspect-ratio:9/16;object-fit:cover;background:#000}
.tpl-clone-grid{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:start}
.tpl-clone-grid video{width:100%;aspect-ratio:9/16;border-radius:10px;background:#000;object-fit:cover}
.tpl-clone-grid>div{min-width:0}.tpl-clone-grid textarea{width:100%;box-sizing:border-box;min-height:260px}
.tpl-dl{margin:10px 0 0;padding-left:18px;font-size:13px;color:#4b5160}.tpl-dl b{color:#0b67ff;font-weight:600;margin-right:4px}
@media (max-width:720px){.tpl-route,.tpl-clone-grid{grid-template-columns:1fr}}

.tpl-step .btn-primary:disabled,.tpl-step .btn:disabled{opacity:.35;filter:grayscale(.7);cursor:not-allowed}

.tpl-tile-gen{border-style:dashed;border-color:#c2c8d1}
.tpl-tile-gen .tpl-tile-img{display:flex;align-items:center;justify-content:center;font-size:22px;background:#eaf2ff;color:#0b67ff}
.tpl-tile-gen .tpl-tile-nm{color:#0b67ff}
.tpl-tile-gen.busy{opacity:.85;cursor:progress}
.tpl-spin{width:18px;height:18px;border:2px solid #d7dbe2;border-top-color:#0b67ff;border-radius:50%;animation:tplspin 1s linear infinite}
@keyframes tplspin{to{transform:rotate(360deg)}}

.tpl-seg-redo{margin-left:10px;padding:2px 10px;font-size:11px;vertical-align:middle}
.tpl-seg-edit{margin-top:12px;border:1px dashed #c2c8d1;border-radius:10px;padding:12px}
.tpl-seg-edit h4{margin:0 0 8px;color:#0b67ff;font-size:13px}
.tpl-seg-edit textarea{width:100%;box-sizing:border-box}

.tpl-seg-note{margin:0 0 8px;font-size:12px;color:#667085;line-height:1.6}
.tpl-seg-note.warn{color:#0b67ff;background:#eaf2ff;border:1px solid #b9d3ff;border-radius:8px;padding:8px 10px}
.tpl-seg-edit .creation-prompt{font-size:13px;line-height:1.9;padding:14px 16px;max-height:420px;color:#4b5160}

.tpl-clip-strip{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
.tpl-clip{margin:0;width:150px;display:flex;flex-direction:column;gap:6px}
.tpl-clip video{width:100%;aspect-ratio:9/16;border-radius:10px;background:#000;border:1px solid #e6e8ec}
.tpl-clip.full{width:210px}.tpl-clip.full video{border-color:#0b67ff}
.tpl-clip figcaption{font-size:12px;color:#4b5160;text-align:center}
.tpl-clip.full figcaption{color:#0b67ff}

#tpl-resume-chip{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:900;background:#0b67ff;color:#ffffff;border:0;border-radius:999px;padding:9px 18px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;box-shadow:0 4px 18px rgba(11,103,255,0.28)}
#tpl-resume-chip:hover{filter:brightness(1.05)}

.tpl-busy{color:#0b67ff;font-size:12px;margin-right:6px}

.asset-recog{margin:0 0 10px;font-size:12px;color:#0b67ff;background:#eaf2ff;border:1px solid #b9d3ff;border-radius:8px;padding:8px 10px}

.fw-cases{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.fw-case{border:1px solid #e6e8ec;border-radius:8px;background:#fafafb;padding:3px;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:#4b5160;font-size:10px;font-family:inherit}
.fw-case-img{display:block;width:56px;aspect-ratio:9/16;border-radius:5px;background:#000 center/cover no-repeat}
.fw-btns{display:flex;flex-direction:column;gap:8px}
.fw-form{display:flex;flex-direction:column;gap:12px;max-width:860px}
.fw-form .inp,.fw-form .ta{width:100%;box-sizing:border-box}

/* ---- 队列按工程分组（queue-projects.js）---- */
.qp-card{border:1px solid var(--line,#e6e8ec);border-radius:12px;background:var(--surface,#ffffff);margin-bottom:10px;overflow:hidden}
.qp-card>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer}
.qp-card>summary::-webkit-details-marker{display:none}
.qp-card>summary:hover{background:var(--surface-hi,#f5f6f8)}
.qp-pill{flex:none;font-size:11px;padding:3px 10px;border-radius:999px;background:var(--surface-hi,#eef0f3);color:var(--ink-2,#4b5160)}
.qp-pill.busy{background:var(--tag-amber-bg,#eaf2ff);color:var(--accent,#0b67ff)}
.qp-pill.done{background:var(--tag-green-bg,#ecfdf3);color:var(--tag-green,#067647)}
.qp-pill.fail{background:#fef3f2;color:#b42318}
.qp-pill.hold{background:#eef0f3;color:#175cd3}
.qp-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.qp-t{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qp-sub{font-size:12px;color:var(--ink-3,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qp-bar{flex:none;width:120px;height:5px;border-radius:99px;background:var(--surface-hi,#eef0f3);overflow:hidden}
.qp-bar i{display:block;height:100%;background:var(--accent,#0b67ff);border-radius:99px}
.qp-bar i.done{background:var(--tag-green,#ecfdf3)}
.qp-actions{flex:none;display:flex;gap:8px}
.qp-btn{padding:5px 12px;font-size:12px;white-space:nowrap}
.qp-enter{color:var(--accent,#0b67ff);border-color:var(--accent,#0b67ff)}
.qp-rows{padding:6px 12px 12px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line,#e6e8ec)}
.qp-rows .q-row{grid-template-columns:52px minmax(0,1fr) 220px 110px;padding:10px 14px}
.qp-rows .q-row .no{font-size:12px;font-weight:600}
.qp-flat-h{font-size:12px;color:var(--ink-3,#667085);margin:14px 0 8px}

/* ---- 产品图详情浮层（product-detail.js）---- */
.prod-card-open{cursor:pointer}
.prod-card-open:hover .ph{outline:1px solid var(--accent,#0b67ff)}
.prod-count{position:absolute;left:6px;bottom:6px;font-size:10px;padding:2px 8px;border-radius:999px;background:rgba(8,8,10,0.78);color:#fff}
#pd-overlay{position:fixed;inset:0;z-index:960}
#pd-overlay .pd-mask{position:absolute;inset:0;background:rgba(0,0,0,.62)}
#pd-overlay .pd-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(880px,92vw);max-height:calc(86vh / var(--ui-zoom));overflow:auto;background:#ffffff;border:1px solid #e6e8ec;border-radius:14px;padding:18px}
.pd-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.pd-title{font-size:16px;font-weight:600}
.pd-sub{font-size:12px;color:#667085;line-height:1.6;margin-top:4px;max-width:640px}
.pd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.pd-cell{margin:0;display:flex;flex-direction:column;gap:8px}
.pd-cell img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:10px;border:1px solid #e6e8ec;display:block}
.pd-cell figcaption{font-size:12px;color:#0b67ff}
.pd-label{display:flex;gap:6px}
.pd-label input{flex:1;min-width:0;background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;font-size:12px;padding:7px 10px;font-family:inherit}
.pd-label input:focus{outline:none;border-color:#0b67ff}
.pd-save{padding:6px 10px;font-size:12px;white-space:nowrap}

/* ---- 界面对齐修整（09-17）：套版页头部 / 参考位瓷片 / 案例播放浮层 / 产品角标 ---- */
.tpl-head{display:block}
.tpl-head-bar{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.tpl-head .mode-tabs{margin-left:0}
.tpl-head-main .creation-sub{max-width:760px;margin-top:6px}
.tpl-slot{background:#ffffff;border:1px solid #e6e8ec;border-radius:12px;padding:12px 14px}
.tpl-slot-h{font-size:13px}
.tpl-tiles{gap:10px}
.tpl-tile{width:112px;padding:5px;border-radius:12px;transition:transform .12s ease,border-color .12s ease}
.tpl-tile:hover{transform:translateY(-2px)}
.tpl-tile-img{border-radius:8px}
.tpl-tile-nm{font-size:11.5px;text-align:center}
.tpl-fill-row label{display:flex;flex-direction:column;gap:6px}
/* 播放浮层的尺寸/布局统一在 style.css（固定 1120×800、左 360 视频列、右栏自滚）；这里只留间距 */
.playbox .pmeta{display:flex;flex-direction:column;gap:12px}
.prod-count{position:absolute;right:6px;top:6px;left:auto;bottom:auto;font-size:10px;padding:2px 7px;border-radius:999px;background:rgba(8,8,10,0.72);color:#fff;pointer-events:none}

/* ---- 产品卡 v2：上图下文，全卡等高对齐（product-detail.js）---- */
.grid-products{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;align-items:stretch}
.prod-card-v2{display:flex;flex-direction:column;padding:0;overflow:hidden;cursor:pointer;transition:transform .12s ease,border-color .12s ease}
.prod-card-v2:hover{transform:translateY(-2px);border-color:var(--accent,#0b67ff)}
.pv2-ph{position:relative;width:100%;aspect-ratio:1/1;border-bottom:1px solid var(--line,#e6e8ec)}
.pv2-body{display:flex;flex-direction:column;gap:8px;padding:12px 14px 13px;flex:1;min-width:0}
.pv2-name-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;min-height:2.7em}
.pv2-name{font-weight:600;font-size:13.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv2-brand{flex:none;font-size:11px;color:var(--ink-3,#667085);max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:2px}
.pv2-sell{font-size:12px;color:var(--ink-2,#4b5160);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.1em}
.pv2-chips{gap:4px;flex-wrap:wrap}
.pv2-chips .pill{background:var(--surface-hi,#f5f6f8);border:1px solid var(--line,#e6e8ec);color:var(--ink-2,#4b5160);font-size:10.5px}
.pv2-foot{margin-top:auto;display:flex;justify-content:space-between;font-size:11px;color:var(--ink-3,#667085);padding-top:9px;border-top:1px dashed var(--line,#e6e8ec)}

/* ---- 样片反推：原始分镜里的原片关键帧缩略图 ---- */
.tpl-origin li{margin-bottom:8px}
.tpl-shot-frame{display:block;width:132px;border-radius:8px;border:1px solid #e6e8ec;margin:6px 0 2px;background:#000}

/* ---- 样片反推 · 选段浮层 ---- */
#rev-overlay{position:fixed;inset:0;z-index:960}
#rev-overlay .pd-mask{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.rev-box{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,94vw);max-height:calc(88vh / var(--ui-zoom));overflow:auto;background:#ffffff;border:1px solid #e6e8ec;border-radius:14px;padding:18px}
.rev-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.rev-main{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}
#rev-video{width:100%;aspect-ratio:9/16;background:#000;border-radius:10px;border:1px solid #e6e8ec}
.rev-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.rev-bar{position:relative;height:14px;border-radius:99px;background:#fafafb;border:1px solid #e6e8ec;overflow:hidden}
.rev-bar i{position:absolute;top:0;bottom:0;background:#0b67ff;opacity:.85;border-radius:99px}
.rev-bar.drop i{background:#e07a5f}
.rev-mode{display:flex;gap:8px}
.rev-mode-btn.on{border-color:#0b67ff;color:#0b67ff}
.rev-rows{display:flex;flex-direction:column;gap:8px}
.rev-row{display:flex;align-items:center;gap:8px;font-size:12.5px;flex-wrap:wrap}
.rev-row b{color:#0b67ff;font-size:12px;width:34px}
.rev-row input[type=number]{width:76px;background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;font-size:12.5px;padding:6px 8px;font-family:inherit}
.rev-row input[type=number]:focus{outline:none;border-color:#0b67ff}
.rev-row .btn{padding:4px 10px;font-size:11.5px}
.rev-foot{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:6px;border-top:1px dashed #e6e8ec;padding-top:12px}

/* ---- 拖拽上传高亮 ---- */
.tpl-card-import.dragover,.tpl-sample-add.dragover,.asset-upload.dragover{border-color:#0b67ff;background:rgba(11,103,255,0.08);box-shadow:0 0 0 2px rgba(11,103,255,0.28) inset}

/* ---- 编辑替换 · 拆段方案卡 ---- */
.tpl-seg-edit-card .tpl-seg-clip{width:100%;aspect-ratio:9/16;max-height:220px;object-fit:contain;background:#000;border-radius:8px;border:1px solid #e6e8ec;margin:6px 0}
.tpl-pre{white-space:pre-wrap;font-size:12.5px;line-height:1.8;color:#4b5160;background:#fafafb;border:1px solid #e6e8ec;border-radius:10px;padding:12px 14px;max-height:360px;overflow:auto;font-family:inherit}

/* ---- 整片局部修改 ---- */
.tpl-patch{margin-top:16px;border:1px dashed #c2c8d1;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.tpl-patch h4{margin:0;color:#0b67ff;font-size:13.5px}
.tpl-patch .creation-prompt{width:100%;box-sizing:border-box}
.pd-facts{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border:1px dashed #b9d3ff;border-radius:10px;background:#ffffff}
.pd-facts-t{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:#0b67ff;min-width:200px;flex:1}
.pd-facts-t small{color:#667085;font-size:11px;line-height:1.5}
.pd-facts label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:#4b5160}
.pd-facts select,.pd-facts input[data-pd-color]{background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;font-size:12px;padding:6px 8px;font-family:inherit}.pd-facts input[data-pd-color]{width:150px}
.pd-facts-save{padding:6px 14px;font-size:12px}

/* ---- 粘贴链接取样片 ---- */
.tpl-link{margin:12px 0 4px;border:1px dashed #c2c8d1;border-radius:12px;padding:12px 14px}
.tpl-link-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpl-link-t{display:flex;flex-direction:column;gap:2px;font-size:13px;color:#0b67ff;min-width:220px}
.tpl-link-t small{color:#667085;font-size:11px;line-height:1.5}
.tpl-link input{flex:1;min-width:260px;background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;font-size:12.5px;padding:8px 10px;font-family:inherit}
.tpl-link input:focus{outline:none;border-color:#0b67ff}
.pd-facts-h{flex:1 1 100%;min-width:0}
.pd-facts-h textarea{width:100%;box-sizing:border-box;background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;font-size:12.5px;line-height:1.7;padding:8px 10px;font-family:inherit;resize:vertical}
.pd-facts-h textarea:focus{outline:none;border-color:#0b67ff}

/* ---- 工程选择（新建视频入口） ---- */
.tpl-projects{padding:12px 16px}
.tpl-proj-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpl-proj-cur{font-size:13px;color:#4b5160}.tpl-proj-cur b{color:#0b67ff;font-weight:600}
.tpl-proj-list{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.tpl-proj{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#ffffff;border:1px solid #e6e8ec;border-radius:10px;padding:9px 12px;color:inherit;font-family:inherit;cursor:pointer}
.tpl-proj:hover{border-color:#c2c8d1}.tpl-proj.on{border-color:#0b67ff;box-shadow:0 0 0 1px rgba(11,103,255,0.28)}
.tpl-proj-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tpl-proj-main b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-proj-main small{font-size:11.5px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-proj-go{flex:none;font-size:12px;color:#0b67ff}
.tpl-proj-del{flex:none;padding:3px 9px;font-size:11px;color:#b42318;border-color:#fecdca}
.tpl-proj-del:hover{background:#fef3f2}
.qp-del{color:#b42318;border-color:#fecdca}
.tpl-busy .tpl-spin{display:inline-block;width:12px;height:12px;border-width:2px;vertical-align:-2px;margin-right:6px}

.tpl-adapt{margin:12px 0 0;border:1px solid #e6e8ec;border-radius:10px;background:#fafafb;padding:8px 12px}.tpl-adapt>summary{cursor:pointer;font-weight:600;color:#20242b}.tpl-adapt>summary small{font-weight:400;color:#7a8190;margin-left:6px}.tpl-adapt-overall{margin:8px 0 4px;color:#4b5160;line-height:1.55;font-size:13px}.tpl-adapt-list{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:6px}.tpl-adapt-list li{display:grid;grid-template-columns:auto auto 1fr;gap:2px 10px;align-items:baseline;padding:8px 10px;border-radius:8px;background:#f5f6f8;border:1px solid #e6e8ec;line-height:1.5;font-size:13px}.tpl-adapt-list li b{color:#20242b}.tpl-adapt-list li span{color:#0b67ff;font-size:12px}.tpl-adapt-list li em,.tpl-adapt-list li strong,.tpl-adapt-list li i{grid-column:1/-1;font-style:normal}.tpl-adapt-list li em{color:#7a8190;text-decoration:line-through;text-decoration-color:#ffffff}.tpl-adapt-list li strong{color:#067647;font-weight:600}.tpl-adapt-list li i{color:#667085;font-size:12px}.tpl-adapt-rest{margin:8px 0 2px;color:#667085;font-size:12px}
.tpl-shotimg{margin:12px 0 0;border:1px solid #e6e8ec;border-radius:10px;background:#fafafb;padding:8px 12px}.tpl-shotimg>summary{cursor:pointer;font-weight:600;color:#20242b}.tpl-shotimg>summary small{display:block;font-weight:400;color:#7a8190;font-size:12px;margin-top:2px}.tpl-shotimg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;margin-top:10px}.tpl-shotimg-card{background:#f5f6f8;border:1px solid #e6e8ec;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.tpl-shotimg-card.done{border-color:#abefc6}.tpl-shotimg-card.failed{border-color:#fecdca}.tpl-shotimg-card header{display:flex;align-items:center;gap:8px;font-size:13px}.tpl-shotimg-card header span{color:#0b67ff;font-size:12px}.tpl-shotimg-card header em{margin-left:auto;font-style:normal;color:#067647}.tpl-shotimg-card header em.bad{color:#b42318}.tpl-shotimg-card header .tpl-spin{margin-left:auto}.tpl-shotimg-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tpl-shotimg-pair figure{margin:0;display:flex;flex-direction:column;gap:4px}.tpl-shotimg-pair img{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:8px;background:#000;display:block}.tpl-shotimg-pair figure.empty{aspect-ratio:9/16;border:1px dashed #d7dbe2;border-radius:8px;align-items:center;justify-content:center}.tpl-shotimg-pair figcaption{font-size:11.5px;color:#667085;text-align:center}.tpl-shotimg-adapt{margin:0;font-size:12px;color:#4b5160;line-height:1.5}.tpl-shotimg-redo{display:flex;gap:6px}.tpl-shotimg-redo input{flex:1;min-width:0;background:#fafafb;border:1px solid #e6e8ec;border-radius:8px;color:#20242b;padding:6px 8px;font-size:12px}
.tpl-source-note{margin:8px 0 0;font-size:12px;color:#667085}.tpl-source-note a{color:#4b5160;margin-left:8px}
.tpl-fill-row label small{color:#667085;font-size:11px;line-height:1.4}
.tpl-verify{margin-left:8px;font-size:11px;padding:1px 6px;border-radius:999px}.tpl-verify.ok{color:#067647;background:#ecfdf3}.tpl-verify.bad{color:#0b67ff;background:#eaf2ff}
/* ---- 成片自检 ---- */
.tpl-audit{margin-top:16px;border:1px dashed #c2c8d1;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.tpl-audit h4{margin:0;color:#0b67ff;font-size:13.5px}
.tpl-audit-list{display:flex;flex-direction:column;gap:8px}
.tpl-audit-seg{border:1px solid #e6e8ec;border-radius:10px;padding:10px 12px;background:#ffffff}
.tpl-audit-seg.bad{border-color:#fecdca;background:#fef3f2}
.tpl-audit-h{display:flex;align-items:center;gap:10px;font-size:12.5px}.tpl-audit-h small{color:#667085}
.tpl-audit-frames{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.tpl-audit-frames img{width:84px;aspect-ratio:9/16;object-fit:cover;border-radius:6px;border:1px solid #e6e8ec;background:#000}
.tpl-audit-issues{margin:8px 0 0;padding-left:18px;font-size:12px;color:#b42318;line-height:1.6}
