/* 故事字数靠右显示在操作栏，超限时沿用 .error 标红。 */
.char-count{margin-left:auto;align-self:center;font-size:12px;color:#909bab}
/* 宫格成图核对结论：通过时低调显示，仍有问题时沿用 .error 标红。 */
.grid-review{margin:12px 0;padding:12px 14px;border:1px solid #343c49;border-radius:8px;font-size:13px}.grid-review p{margin:6px 0}.grid-review ul{margin:6px 0;padding-left:20px;line-height:1.8;max-height:220px;overflow:auto}
/* 外观参考变化是更新提示；完整显示原因、处理方式与影响，不截断长说明。 */
.asset-update-note{margin:12px 0;padding:12px;border:1px solid #7a6437;border-radius:8px;background:#241f17;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.asset-update-note>strong{display:block;color:#f1cc89;font-size:13px}
.asset-grid .asset-update-note p{margin:8px 0 0;max-height:none;overflow:visible;color:#d9c8a6}
/* 外观文字按参考图改写的记录：默认收起，展开看改动、改写前的文字与与新图矛盾的名下资产。 */
.asset-text-sync{margin:10px 0;font-size:12px;line-height:1.7;color:#c8b58f;overflow-wrap:anywhere}.asset-text-sync>summary{cursor:pointer;color:#c8b58f}.asset-text-sync ul{margin:6px 0;padding-left:20px}.asset-grid .asset-text-sync p{margin:6px 0;max-height:none;overflow:visible}.asset-text-sync pre{white-space:pre-wrap;max-height:200px;overflow:auto}
/* 资产外观依据与角色身份表。 */
.asset-relation{font-size:12px;color:#c8b58f}.identity-sheet{margin-top:14px;padding-top:12px;border-top:1px dashed #3a414d}.identity-sheet p{margin:0 0 8px;font-size:12px}.asset-grid .identity-sheet img{height:130px}
/* 剧本审核未通过的草稿提示，与人工确认区同一醒目色调。 */
.review-note{margin:16px 0 0;border-color:#7a6437;background:#241f17}.review-note h2{color:#f1cc89;font-size:16px}.review-note ul{color:#d9c8a6;line-height:1.8;padding-left:20px;max-height:260px;overflow:auto}
.asset-preview{position:relative}.asset-generating{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(10,14,20,.72);color:#ffda9f;font-weight:600;pointer-events:none}.asset-generating[hidden]{display:none}.asset-prompt-editor{width:min(850px,94vw);max-height:90vh;overflow:auto}.asset-prompt-editor textarea{min-height:320px}.asset-variant-editor{width:min(850px,94vw);max-height:90vh;overflow:auto}.asset-variant-editor [data-hint]{color:#aebbd0;line-height:1.6}.asset-variant-editor label{display:grid;gap:6px;margin:12px 0;font-weight:600}.asset-variant-editor label input{margin:0}.asset-variant-editor textarea{width:100%;min-height:110px;font-weight:400}
.video-prompt-editor{width:min(1000px,94vw);max-height:90vh;overflow:auto}.video-prompt-editor textarea{min-height:420px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.5}.video-prompt-editor [data-count]{margin:6px 0 0;font-size:12px}.prompt-status{align-self:center;font-size:12px;color:#9ba6b6}.prompt-history-list details{border-top:1px solid #2a3140;padding:8px 0}.prompt-history-list summary{cursor:pointer}.prompt-history-list textarea{width:100%;min-height:240px;margin:8px 0}
/* 「去旁白提示词」弹窗：按行对照正常版，删去的行划掉标「删」，改写或新加的行高亮标「改」。 */
.narration-prompt [hidden]{display:none}.narration-prompt-tools{margin-top:0}.narration-diff{max-height:60vh;overflow:auto;margin-top:10px;padding:10px 12px;border:1px solid #374151;border-radius:8px;background:#11151b;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,"Microsoft YaHei",monospace}.narration-diff .diff-line{display:flex;gap:8px;min-height:1.6em;color:#d7e0ed}.narration-diff .diff-mark{flex:0 0 22px;align-self:flex-start;border-radius:4px;font-size:11px;line-height:1.9;text-align:center}.narration-diff .diff-text{flex:1 1 auto;min-width:0;white-space:pre-wrap;word-break:break-word}.narration-diff .diff-removed .diff-text{text-decoration:line-through;color:#c79a9a}.narration-diff .diff-removed .diff-mark{background:#4a2327;color:#ffb3b3}.narration-diff .diff-changed{background:#1d2a1f}.narration-diff .diff-changed .diff-mark{background:#27472c;color:#b9f0c0}

/* 宫格上传随本段分析与任务状态显示可操作性，禁用时不再伪装为可点击入口。 */
.board .upload[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
/* 资产卡保留可点开放大的缩略图，常用操作紧跟图片；列宽与筛选见 layout-style.css。 */
#assets .asset-card-status{color:#b7c9dd;font-size:12px}
#assets .asset-card-details{border-top:1px solid #303743}
#assets .asset-card-details>summary{color:#e9bc77}
#assets .asset-card-details .remote-tasks{margin-top:4px}
/* 04 页段落卡的三栏布局见 layout-style.css；这里只保留时长控件与视频说明。 */
@media(max-width:900px){.board-head .board-duration{justify-content:flex-start}.board-duration small{text-align:left}}
.board-duration{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.board-duration label{display:flex;align-items:center;gap:6px;white-space:nowrap}.board-duration select{padding:8px;color:#e6eaf1;background:#11151b;border:1px solid #465161;border-radius:7px}.board-duration button{padding:8px 10px}.board-duration small{width:100%;text-align:right;color:#aebbd0}.duration-stale{color:#eec58a!important}.board-video-preview>p{font-size:12px;margin:4px 0 8px}.board-video-preview video{max-height:60vh}

/* 禁用入口在鼠标悬浮时显示当前原因，标签与原生禁用按钮使用同一说明。 */
[data-disabled-reason]:hover{position:relative;z-index:20}
[data-disabled-reason]:hover:is(button:disabled,.upload[aria-disabled="true"]){opacity:1;color:#aeb9c9;background:#20252e;border-color:#7a858f;cursor:not-allowed}
[data-disabled-reason]:hover::after{content:attr(data-disabled-reason);position:absolute;top:calc(100% + 6px);left:0;z-index:21;width:max-content;max-width:min(380px,80vw);padding:8px 10px;border:1px solid #8c7049;border-radius:6px;background:#262018;color:#ffe0ad;box-shadow:0 6px 20px #0008;font-size:12px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;pointer-events:none;opacity:1}
#compose-run[data-disabled-reason]:hover::after{left:auto;right:0}
/* 05 页标题区的“导出剪映草稿”与“开始合成”并排，不沿用按钮组的上边距；禁用提示同样向左展开。 */
.section-head>.actions{margin-top:0;flex-wrap:nowrap}
#jianying-export[data-disabled-reason]:hover::after{left:auto;right:0}
#jianying-result ol{padding-left:20px}#jianying-result small{color:#9aa4b2;word-break:break-all}
/* 01 页长篇分集：选项并排，预览表格可横向滚动，摘录用浅色小字。 */
.split-options label{display:flex;align-items:center;gap:6px}.split-options input[type=number]{width:90px}
#episode-split-draft{overflow-x:auto}.split-table{width:100%;border-collapse:collapse;margin-top:10px}
.split-table th,.split-table td{border-bottom:1px solid #2a2f38;padding:6px 8px;text-align:left;vertical-align:top}
.split-table small{color:#9aa4b2}
/* 助手记忆对话框：两份记忆上下排列，文本框占满宽度。 */
.memory-scope{margin-top:12px}.memory-scope h3{display:inline;margin-right:8px}.memory-scope small{color:#9aa4b2}
.memory-scope textarea{width:100%;min-height:120px;margin-top:6px}
/* 提示词补丁：草案与当前补丁的逐行差异（新增绿底、删去红底划线）、历史版本列表。 */
.patch-section{margin-top:12px}.patch-section h3{margin:0 0 6px}.patch-section textarea{width:100%;min-height:160px}
.patch-muted{color:#9aa4b2}.patch-diff{white-space:pre-wrap;max-height:40vh;overflow:auto;font-size:13px;padding:8px;border:1px solid #d0d7de;border-radius:6px;margin:6px 0}
.patch-diff span{display:block}.patch-diff .add{background:rgba(46,160,67,.18)}.patch-diff .del{background:rgba(248,81,73,.16);text-decoration:line-through}
.patch-history{padding-left:20px}.patch-history li{margin:8px 0}.patch-history details{margin:4px 0}
dialog [data-disabled-reason]:hover::after{top:auto;bottom:calc(100% + 6px)}
.disabled-hint-holder{display:inline-flex}
dialog .disabled-hint-holder button[data-disabled-reason]:hover::after{content:none}

/* 视频参考图选择使用可滚动缩略图列表，保留点击大图功能。 */
.video-reference-editor{width:min(1000px,94vw);max-height:90vh;min-width:0;overflow:auto}
/* 参考图弹窗里「添加本集其他资产」：折叠块，展开后与上面的候选同样排列。 */
.video-reference-editor .reference-more{margin:12px 0}.video-reference-editor .reference-more>summary{cursor:pointer;font-weight:600}
.reference-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.reference-options>div{border:1px solid #465161;border-radius:8px;padding:10px}
.reference-options input[type=checkbox]{display:inline-block;width:auto;margin:8px 6px 12px 0;padding:0}
.reference-options img{width:100%;height:180px;object-fit:contain}
/* 自由生成视频：小图按固定宽度排，图少时不被拉成整行宽；提示词框与渠道各占一行。 */
.free-video .reference-options{grid-template-columns:repeat(auto-fill,minmax(180px,220px))}
.free-video textarea{display:block;width:100%;box-sizing:border-box}
.free-video-upload{margin:12px 0;padding:10px 12px;border:1px dashed #465161;border-radius:8px}.free-video-upload legend{padding:0 6px;font-weight:600}
.free-video-upload label{display:inline-block;margin:4px 12px 4px 0}.free-video-upload input[name=upload_name]{width:12em}
/* 参考图弹窗里每张图的图号（按最后发送的顺序，随勾选更新）；没勾选或只用文字承接的写明不发送。 */
.reference-label{display:inline-block;margin-right:4px;padding:0 7px;border:1px solid var(--gold);border-radius:999px;font-size:12px;line-height:20px;color:var(--gold-hi);white-space:nowrap}
.reference-label.is-unused{border-style:dashed;border-color:var(--line-strong);color:var(--muted)}
.reference-label:empty{display:none}
/* 「按风格资产重画资产」弹窗里每类风格资产的缩略图与状态。 */
.style-base-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:8px 0}
.style-base-row strong{min-width:7em}
.style-base-row img{max-width:min(320px,80vw);max-height:150px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#0b0d10}
.style-base-row p{flex:1 1 220px;margin:0;font-size:13px;line-height:1.6;color:var(--muted)}
/* 02 画风确认：人物、场景、道具三张样张卡片，窄屏一列。 */
.style-sample-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:16px;margin-top:12px}
.style-sample-card{margin:0;padding:16px}
.style-sample-card .settings-note{margin:6px 0;font-size:13px;line-height:1.6}
.style-sample-image img{width:100%;height:240px;object-fit:contain;background:#0b0d10;border-radius:8px}
.style-sample-image .placeholder{min-height:200px}
.style-sample-subject{display:block;margin:10px 0 0;font-size:13px;color:var(--muted)}
.style-sample-subject textarea{min-height:0;margin-top:6px;padding:10px;font-size:13px;line-height:1.7}
.style-sample-history>div{display:flex;flex-wrap:wrap;gap:10px}
.style-sample-history figure{display:flex;flex-direction:column;gap:4px;margin:0;width:132px}
.style-sample-history img{width:132px;height:90px;object-fit:contain;background:#0b0d10;border-radius:6px}
.style-sample-history figcaption{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
/* 视频提交前参数确认：公共参数与每个段落的实际输入分开呈现，批量时表格可滚动。 */
.video-parameter-confirm{width:min(1100px,94vw);max-height:90vh;min-width:0;overflow:auto}
/* 成片去字幕弹窗：左边视频播放器与可拖拽的字幕框，右边选择区域、处理模式与费用。 */
.subtitle-remove-dialog{width:min(1000px,94vw);max-height:92vh;min-width:0;overflow:auto}
.subtitle-remove-body{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start}
.subtitle-remove-preview{flex:0 1 auto;min-width:0;max-width:min(400px,100%)}
.subtitle-remove-preview small{display:block;margin-top:6px;line-height:1.4;color:#c7cdd6}
.subtitle-remove-frame{position:relative;display:inline-block;max-width:100%;touch-action:none;user-select:none;cursor:crosshair;line-height:0}
.subtitle-remove-frame video{display:block;max-width:min(400px,100%);max-height:60vh;width:auto;height:auto;background:#000}
.subtitle-remove-box{position:absolute;border:2px solid #f5c542;background:rgba(245,197,66,.2);pointer-events:none;box-sizing:border-box}
.subtitle-remove-box.is-full{border-style:dashed}
.subtitle-remove-controls{flex:1 1 320px;min-width:0}
.subtitle-remove-controls fieldset{border:1px solid #465161;border-radius:8px;padding:8px 12px;margin:0 0 10px}
.subtitle-remove-controls fieldset label{display:block;margin:6px 0}
.subtitle-remove-controls fieldset label.is-disabled{opacity:.55}
.subtitle-remove-controls fieldset input[type="radio"]{display:inline;width:auto;margin:0 6px 0 0}
.subtitle-remove-playback-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:8px 0 4px}
.subtitle-remove-playback-controls button{padding:6px 10px}
.subtitle-remove-playback-controls input[type="range"]{width:100%;margin:0;accent-color:#e9bc77}
.subtitle-remove-preview [data-player-time]{display:block;margin-top:4px}
.subtitle-remove-time-actions{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.subtitle-remove-time-actions button{padding:6px 10px}
.subtitle-remove-preview [data-range-summary]{margin:6px 0}
.subtitle-remove-time-precision{margin:8px 0}
.subtitle-remove-time-precision summary{cursor:pointer}
.subtitle-remove-time-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:6px}
.subtitle-remove-time-range input{display:block;width:100%;box-sizing:border-box;margin:4px 0;padding:8px}
.subtitle-remove-coords{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px}
.subtitle-remove-coords input{margin:4px 0;padding:8px}
.subtitle-remove-controls select{display:block;margin:6px 0 12px;padding:8px;background:#11151b;color:#fff;border:1px solid #465161;border-radius:7px}
.subtitle-remove-candidates{list-style:none;margin:4px 0 10px;padding:0}
.subtitle-remove-candidates li{border:1px solid #465161;border-left-width:4px;border-radius:7px;padding:6px 10px;margin:0 0 6px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.subtitle-remove-candidates li[data-verdict="subtitle"]{border-left-color:#f5c542}
.subtitle-remove-candidates li[data-verdict="pending"]{border-left-color:#7aa2d6}
.subtitle-remove-candidates li button{padding:3px 8px;margin-left:4px}
.subtitle-remove-all .video-parameter-table td:last-child{white-space:normal;min-width:260px;max-width:420px}
.subtitle-remove-kept{margin:10px 0}
.subtitle-remove-kept summary{cursor:pointer}
.subtitle-remove-kept p{margin:8px 0 2px}
.video-parameter-confirm form>p{margin-top:0}
.video-parameter-scroll{overflow:auto;margin-top:16px;border:1px solid #303743;border-radius:8px}
.video-parameter-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.6}
.video-parameter-table th,.video-parameter-table td{padding:10px 12px;border-bottom:1px solid #303743;text-align:left;vertical-align:top;white-space:nowrap}
.video-parameter-table th{color:#e9bc77;background:#202630;font-weight:600}
.video-parameter-table td{color:#d7e0ed}
.video-parameter-table tr:last-child th,.video-parameter-table tr:last-child td{border-bottom:0}
.video-parameter-board-table thead th{position:sticky;top:0;z-index:1}
.video-parameter-board-table td:last-child{white-space:normal;min-width:210px}
/* 每段下面的「音色参考与旁白」一行（2026-10-10）：写明这次送哪些音色样本、谁用文字音色、旁白怎么出；横跨整表、就地换行。 */
.video-parameter-board-table tr.video-board-row th,.video-parameter-board-table tr.video-board-row td{border-bottom:0}
.video-parameter-board-table tr.video-audio-row td{white-space:normal;min-width:0;padding-top:0;color:#aab6c6}
.video-parameter-confirm [data-narration-resubmit] input{display:inline-block;width:auto;margin:0 6px 0 0;padding:0;vertical-align:middle}

/* 影视分镜导入：粘贴框、解析预览表、列含义修正与逐格分镜。 */
textarea.compact{min-height:150px}
#shotlist-card{margin-top:22px}#shotlist-mode{color:#e7c38a;background:#241f17;border:1px solid #7a6437;border-radius:8px;padding:12px 14px}#shotlist-mode button{margin-left:8px}
.shotlist-draft{margin:18px 0 0;border-color:#3d4a5c}.shotlist-warnings{color:#e7c38a;line-height:1.8;padding-left:20px;max-height:220px;overflow:auto;font-size:12px}
.reference-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;max-height:46vh;overflow:auto;margin-top:8px}.reference-pick{display:flex;flex-direction:column;gap:3px;border:1px solid #374151;border-radius:8px;padding:6px;cursor:pointer;min-width:0}.reference-pick input{align-self:flex-start;margin:0;width:auto;padding:0}.reference-pick img{width:100%;aspect-ratio:1;object-fit:contain;background:#0b0e13;border-radius:6px}.reference-pick span{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.reference-pick small{color:#8b97a8}.reference-pick:has(input:checked){border-color:#e8b86d;background:#1c1810}.reference-picked{margin:10px 0 0;color:#cbd5e1}.asset-reference-redraw textarea{min-height:0;height:auto}
/* 按完整提示词出图：已选参考图按顺序一行一张，可上移、下移、去掉；候选是按钮，点一下加到末尾。 */
.asset-raw-prompt textarea[data-prompt]{min-height:240px;font-family:inherit}.asset-raw-prompt h3{margin:14px 0 0;font-size:15px}
.raw-reference-upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 0}.raw-reference-upload small{color:#9ba6b6}
.raw-reference-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:34vh;overflow:auto}
.raw-reference-list li{display:flex;align-items:center;gap:8px;border:1px solid #374151;border-radius:8px;padding:6px;flex-wrap:wrap}
.raw-reference-list img{width:64px;height:64px;object-fit:contain;background:#0b0e13;border-radius:6px;flex:none}
.raw-reference-list span{flex:1 1 160px;min-width:0;overflow-wrap:anywhere;font-size:13px}
.asset-raw-prompt button.reference-pick{text-align:left;color:inherit;background:transparent}
.shotlist-hint{display:block;width:100%;margin-top:12px;background:#11151b;color:#d7e0ed;border:1px solid #374151;border-radius:8px;padding:10px 12px;font:inherit}
.shotlist-fix{display:grid;gap:6px;font-size:12px;color:#9ba6b6;margin-top:10px}.shotlist-fix .code{min-height:220px}
.shot-table-wrap{overflow:auto;max-height:560px;border:1px solid #303743;border-radius:8px;margin-top:14px}.shot-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.7}
.shot-table th,.shot-table td{border-bottom:1px solid #2a303a;padding:8px 10px;text-align:left;vertical-align:top;color:#c9d2df}.shot-table th{position:sticky;top:0;background:#1d222b;color:#e9bc77;white-space:nowrap;z-index:1}
.shot-table td.shot-episode{background:#171b22;color:#e9bc77;font-weight:600}.shot-table td.pre{white-space:pre-wrap;min-width:180px}.shot-table td.sketches{display:flex;gap:6px;min-width:110px}.shot-table img{width:104px;height:58px;object-fit:contain;background:#0d1015;border-radius:4px}
.shot-panels .panel img{width:100%;max-height:130px;object-fit:contain;margin-bottom:6px}

/* 状态条随页签一起吸顶（见 layout-style.css 的 .topbar）：滚动到下方段落时仍能看到进度和错误。 */
#status{background:#141821}
/* 开关式勾选项做成可点按的整块，和相邻按钮一样大，避免只能点中 13px 的小方框。 */
label:has(#screenplay-review-enabled),label:has(#grid-review-enabled),label:has(#neighbor-review-enabled),label:has(#h3-reference-fallback){display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #3a414d;border-radius:8px;cursor:pointer;color:#c9d2df}
label:has(#screenplay-review-enabled):hover,label:has(#grid-review-enabled):hover,label:has(#neighbor-review-enabled):hover,label:has(#h3-reference-fallback):hover{border-color:#eabf80;color:#ffda9f}
#screenplay-review-enabled,#grid-review-enabled,#neighbor-review-enabled,#h3-reference-fallback{width:16px;height:16px;margin:0;accent-color:#e9bc77;cursor:pointer}
/* 段落画面与资产参考图的历史版本、按一句话修改资产图。 */
.media-versions-line{margin-top:0}.media-version-list{display:grid;gap:14px}.media-version{margin:0;padding:16px}.media-version h3{font-size:14px;margin:0 0 10px;color:#e9bc77}.media-version-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.media-version-media img,.media-version-media video{width:100%;height:220px;object-fit:contain;background:#0d1015;border-radius:7px}.media-version-media .placeholder{min-height:120px}.media-version .actions{align-items:center;margin-top:10px}.media-version .actions a{color:#9fc3ff;font-size:12px}.media-version-ready{color:#9fd8a8}
.asset-edit-note{font-size:12px;color:#c8b58f;margin:4px 0}.asset-image-edit textarea{min-height:120px}.asset-image-edit-preview img{max-height:220px;width:auto;max-width:100%;object-fit:contain;background:#0d1015;border-radius:7px}.asset-image-edit label{display:grid;gap:6px;margin:12px 0;font-weight:600}.asset-image-edit .checkbox-line{display:flex;align-items:center;gap:8px;font-weight:400;color:#c7d0dc}.asset-image-edit .checkbox-line input{margin:0;width:auto;padding:0;flex:0 0 auto}
.asset-image-edit-sample{display:grid;gap:6px;margin:10px 0;padding:8px 10px;border:1px solid #2b3340;border-radius:8px}.asset-image-edit-sample label.checkbox-line{margin:0}.asset-image-edit-sample img{max-height:140px;width:auto;max-width:100%;object-fit:contain;background:#0d1015;border-radius:7px}.asset-image-edit-sample small{color:#9aa6b6}
/* 视频稿画面文字核对：段落卡「视频提示词」组的缺字提示与「补上缺的字」占整行，长句换行不撑宽卡片。 */
.op-group .video-text-check{flex:1 0 100%;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}.video-text-check .prompt-status{overflow-wrap:anywhere}
/* 批量绘制前的问题资产提示：列表过长时在框内滚动，窄屏不出横向滚动。 */
.draw-asset-issues{width:min(640px,calc(100vw - 24px))}.draw-asset-issues p{overflow-wrap:anywhere}.draw-asset-issue-list{max-height:min(50vh,420px);overflow:auto;margin:10px 0;padding-left:20px}.draw-asset-issue-list li{margin:0 0 10px;overflow-wrap:anywhere}.draw-asset-issue-list li span{display:block;font-size:13px;color:#c9d1dc}
/* 场景的反向视角图（2026-10-13）：卡片上与身份表同样的分隔与预览高度；挑场景的确认框里每项写明出场场次与模型理由，文字不截断。 */
.reverse-view{margin-top:14px;padding-top:12px;border-top:1px dashed #3a414d}.reverse-view p{margin:0 0 8px;font-size:12px;overflow-wrap:anywhere}.asset-grid .reverse-view img{height:130px}.reverse-view-notes{color:#c8b58f}
.reverse-suggest .reverse-suggest-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.reverse-suggest .reverse-suggest-reason{color:#c8b58f;white-space:normal;overflow-wrap:anywhere}
[data-reverse-for]{opacity:.95}[data-reverse-for] [data-reverse-reason]{color:#c8b58f}
#assets .reverse-view .actions{margin:0;gap:6px}#assets .reverse-view .actions button,#assets .reverse-view .upload{padding:6px 10px;font-size:12px}
.board-excerpt>button{margin-bottom:8px}
/* 紧凑卡片也保留片段修改入口与原文，其余折叠详情继续隐藏。 */
#boards.is-compact .board .board-details{display:block}
#boards.is-compact .board .board-details>:not(.board-excerpt){display:none}
.board-excerpt-editor{width:min(1300px,96vw)}
.board-excerpt-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.board-excerpt-columns label{display:block}
.board-excerpt-editor textarea{width:100%;box-sizing:border-box;min-height:320px;max-height:55vh;resize:vertical}
@media(max-width:760px){.board-excerpt-columns{grid-template-columns:1fr}.board-excerpt-editor textarea{min-height:200px}}
/* 当前计划没有分到段落的原文（plan_coverage_view）：01、04 页常显的醒目提示。 */
.plan-coverage-warning{margin:0 0 14px;padding:12px 16px;border:1px solid #c58b3c;border-left-width:6px;border-radius:8px;background:#2a2014;color:#ffd596;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.plan-coverage-warning strong{display:block;color:#ffe3b0;margin-bottom:4px;font-size:15px}.plan-coverage-warning .actions{margin-top:10px}.plan-coverage-warning button{border-color:#c58b3c;color:#ffe3b0;background:#3a2b17}#plan-coverage-script .plan-coverage-warning{margin-top:14px}

/* 页面显示名换好前不显示页面（web/display-names.js 设 data-names-ready），免得一闪而过供应商原名；
 * 脚本没能运行时 3 秒后照常显示。 */
html:not([data-names-ready]) body { visibility: hidden; animation: names-reveal 0s 3s forwards; }
@keyframes names-reveal { to { visibility: visible; } }

/* 弹窗内容超出一屏时只滚内容（2026-10-23 用户要求：原来关闭按钮和标题跟着内容一起滚走）：标题栏（标题＋关闭按钮）固定在弹窗上边，
 * 最后一排按钮（取消、保存、关闭）固定在下边；内容短时外观不变。各弹窗的内边距与底色不同，打开时由 ui.js 写进 --dialog-pad-*、--dialog-bg。 */
dialog:not(.image-viewer) > .section-head,
dialog:not(.image-viewer) > form > .section-head:first-child{position:sticky;top:calc(-1 * var(--dialog-pad-top,28px));z-index:5;
  margin-top:calc(-1 * var(--dialog-pad-top,28px));margin-left:calc(-1 * var(--dialog-pad-left,28px));margin-right:calc(-1 * var(--dialog-pad-right,28px));
  padding:var(--dialog-pad-top,28px) var(--dialog-pad-right,28px) 10px var(--dialog-pad-left,28px);background:var(--dialog-bg,#1b2029)}
dialog:not(.image-viewer):not(.grid-image-editor):not(.grid-cell-edit-dialog) > form > .actions:last-child,
dialog:not(.image-viewer) > .actions:last-child,
dialog:not(.image-viewer) > .review-actions:last-child{position:sticky;bottom:calc(-1 * var(--dialog-pad-bottom,28px));z-index:5;
  margin-bottom:calc(-1 * var(--dialog-pad-bottom,28px));margin-left:calc(-1 * var(--dialog-pad-left,28px));margin-right:calc(-1 * var(--dialog-pad-right,28px));
  padding:12px var(--dialog-pad-right,28px) var(--dialog-pad-bottom,28px) var(--dialog-pad-left,28px);background:var(--dialog-bg,#1b2029)}
/* 「LLM 规划宫格」置灰时常显的原因（还没有剧本、资产身份待确认）。 */
.plan-run-note{order:99;flex-basis:100%;color:#ffb4a3;font-size:12px;line-height:1.5}
.plan-revision:has(.plan-run-note:not([hidden])){flex-wrap:wrap}
/* 极限压缩的风险提示面板：风险项用黄色字。 */
.prompt-squeeze-dialog{width:min(620px,calc(100vw - 24px))}.prompt-squeeze-dialog p{overflow-wrap:anywhere;line-height:1.7}.prompt-squeeze-dialog .squeeze-risk-title{color:#facc15;font-weight:600;margin-bottom:4px}.prompt-squeeze-dialog .squeeze-risks{color:#facc15;margin:0 0 12px;padding-left:20px;line-height:1.7;overflow-wrap:anywhere}
