.hongyuan-asset-transfer { width:min(780px,calc(100vw - 48px)); max-height:85vh; overflow:auto; box-sizing:border-box; background:#181b22; color:#e5e7eb; border:1px solid #525967; border-radius:12px; padding:22px; font:14px/1.65 system-ui,"Microsoft YaHei",sans-serif; }
.comic-production .comic-episode-list-toolbar {
  position:sticky; top:0; z-index:12; flex:none;
  background:var(--comic-theme-bg,#0d1015);
  padding:14px 0; min-height:60px;
  border-bottom:1px solid var(--comic-theme-border,#303640);
}
.comic-production .comic-episode-list-toolbar > .comic-toolbar { flex-wrap:wrap; }
.comic-production label.comic-episode-select-all {
  display:inline-flex; flex-direction:row; align-items:center; gap:8px;
  min-height:32px; padding:4px 12px; box-sizing:border-box;
  border:1px solid var(--comic-theme-border,#354052); border-radius:18px;
  background:var(--comic-theme-surface,#161b24); color:var(--comic-theme-text,#e2e8f0);
  font-size:12px; font-weight:500; line-height:1.2; white-space:nowrap;
  cursor:pointer; user-select:none;
}
.comic-production label.comic-episode-select-all:hover {
  border-color:var(--comic-theme-accent-border,#e9a317);
}
.comic-production label.comic-episode-select-all:has(input:checked) {
  border-color:var(--comic-theme-accent-border,#e9a317);
  background:var(--comic-theme-accent-soft,#302719);
}
.comic-production label.comic-episode-select-all:has(input:disabled) {
  opacity:.5; cursor:not-allowed;
}
.comic-production label.comic-episode-select-all > input { margin:0; cursor:inherit; }
.comic-production .comic-episode-video-scope-group {
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px;
}
.comic-production .comic-episode-video-scope-btn {
  display:inline-flex; align-items:center; gap:4px;
  min-height:30px; padding:4px 11px; box-sizing:border-box;
  border:1px solid var(--comic-theme-border,#354052); border-radius:16px;
  background:var(--comic-theme-surface,#161b24); color:var(--comic-theme-text,#e2e8f0);
  font-size:12px; font-weight:500; line-height:1.2; white-space:nowrap;
  cursor:pointer; transition:border-color .15s ease, background-color .15s ease, color .15s ease;
}
.comic-production .comic-episode-video-scope-btn:hover:not(:disabled) {
  border-color:var(--comic-theme-accent-border,#e9a317);
}
.comic-production .comic-episode-video-scope-btn.is-active {
  border-color:var(--comic-theme-accent-border,#e9a317);
  background:var(--comic-theme-accent-soft,#302719);
  color:var(--comic-theme-accent-text,inherit);
  font-weight:600;
}
.comic-production .comic-episode-video-scope-btn:disabled {
  opacity:.48; cursor:not-allowed;
}
.comic-production .comic-episode-video-failed {
  color:#dc2626; font-weight:600;
}
[data-theme="dark"] .comic-production .comic-episode-video-failed {
  color:#f87171;
}
.comic-production .comic-episode-checkbox { width:18px!important; height:18px; margin:0; cursor:pointer; z-index:3; }
@media(max-width:760px) {
  .comic-production .comic-episode-list-toolbar { gap:10px; padding:12px 0; }
  .comic-production .comic-episode-list-toolbar > .comic-toolbar { width:100%; margin-left:0; }
  .comic-production .comic-episode-list-toolbar > .comic-episode-search { flex:1; min-width:140px; }
}
.hongyuan-asset-transfer::backdrop { background:#0009; }
.hongyuan-asset-transfer h2 { font-size:18px; margin:0 0 10px; }
.hongyuan-asset-transfer p { overflow-wrap:anywhere; }
.hongyuan-transfer-actions { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.hongyuan-transfer-actions button { background:#243d40; color:inherit; border:1px solid #64767b; border-radius:6px; padding:8px 12px; cursor:pointer; }
.hongyuan-transfer-actions button:disabled { opacity:.45; cursor:default; }
.hongyuan-transfer-actions button:focus-visible { outline:2px solid #e8a72c; outline-offset:3px; }
.hongyuan-asset-transfer pre { max-height:38vh; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#101217; padding:12px; border-radius:6px; }
:root[data-theme="light"] .hongyuan-asset-transfer { background:#fff; color:#18202c; }
:root[data-theme="light"] .hongyuan-asset-transfer pre { background:#f2f4f7; }
:root[data-theme="light"] .hongyuan-transfer-actions button { background:#e7f0ed; }

.comic-image-style-trigger { display:inline-flex; align-items:center; gap:6px; max-width:270px; min-width:0; }
.comic-image-style-trigger > span:nth-child(2) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.comic-image-style-trigger > small { color:#e8b64f; flex-shrink:0; font-size:10px; }
.comic-image-style-dialog { width:min(880px,calc(100vw - 36px)); max-height:88vh; box-sizing:border-box; overflow:auto; padding:24px; border:1px solid #454950; border-radius:14px; background:#181b20; color:#e5e7eb; font:14px/1.65 system-ui,"Microsoft YaHei",sans-serif; }
.comic-image-style-dialog::backdrop { background:#000a; }
.comic-image-style-dialog header,.comic-image-style-dialog footer { display:flex; align-items:center; gap:12px; }
.comic-image-style-dialog header { justify-content:space-between; margin-bottom:8px; }
.comic-image-style-dialog h2 { margin:0; font-size:18px; }
.comic-image-style-dialog h3 { margin:8px 0 12px; font-size:17px; }
.comic-image-style-dialog p { overflow-wrap:anywhere; }
.comic-image-style-hint { color:#a6abb5; font-size:12px; }
.comic-image-style-dialog input,.comic-image-style-dialog select { box-sizing:border-box; width:100%; border:1px solid #454950; border-radius:8px; background:#101318; color:inherit; font:inherit; }
.comic-image-style-dialog input { padding:9px 12px; margin:8px 0 16px; }
.comic-image-style-grid { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,1fr); gap:20px; }
.comic-image-style-list { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:12px; }
.comic-image-style-list select { height:330px; padding:5px; font-size:12px; }
.comic-image-style-list optgroup { color:#e1b457; font-style:normal; }
.comic-image-style-list option { padding:6px 8px; color:#e5e7eb; white-space:normal; }
.comic-image-style-list option:checked { background:#584422; color:#fff0c6; }
.comic-image-style-detail { min-width:0; padding:16px; border:1px solid #353941; border-radius:10px; background:#14171c; }
.comic-image-style-detail > small { color:#e1b457; }
.comic-image-style-subjects { padding-top:12px; border-top:1px solid #353941; font-size:13px; }
.comic-image-style-dialog footer { flex-wrap:wrap; justify-content:flex-end; margin-top:20px; }
.comic-image-style-dialog footer > span { margin-right:auto; }
.comic-image-style-dialog button { padding:8px 13px; border:1px solid #454950; border-radius:8px; background:#24282f; color:inherit; font:inherit; cursor:pointer; }
.comic-image-style-dialog button.comic-primary { background:#e8a418; border-color:#e8a418; color:#191408; font-weight:600; }
.comic-image-style-dialog button.comic-image-style-close { padding:0 10px; font-size:24px; }
.comic-image-style-dialog button:disabled { opacity:.5; cursor:default; }
.comic-image-style-dialog :is(input,select,button):focus-visible { outline:2px solid #e8b64f; outline-offset:3px; }
.comic-image-style-error { color:#ff9a93; }
:root[data-theme="light"] .comic-image-style-dialog { background:#fff; color:#18202c; border-color:#c8cbd0; }
:root[data-theme="light"] .comic-image-style-dialog :is(input,select),:root[data-theme="light"] .comic-image-style-detail { background:#f6f7f9; border-color:#d8dbe0; }
:root[data-theme="light"] .comic-image-style-list option { color:#18202c; }
:root[data-theme="light"] .comic-image-style-list option:checked { background:#ffe7ae; color:#493100; }
:root[data-theme="light"] .comic-image-style-dialog button:not(.comic-primary) { background:#f0f1f3; border-color:#c8cbd0; }
:root[data-theme="light"] .comic-image-style-hint { color:#626b78; }
:root[data-theme="light"] .comic-image-style-error { color:#a82922; }
@media(max-width:640px) { .comic-image-style-dialog { padding:16px; } .comic-image-style-grid { grid-template-columns:minmax(0,1fr); gap:14px; } .comic-image-style-list select { height:230px; } .comic-image-style-dialog footer > span { width:100%; } .comic-image-style-trigger { max-width:220px; } }

.comic-visual-style-field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.comic-visual-style-field > label,.comic-image-custom-style { display:flex; flex-direction:column; gap:6px; min-width:0; }
.comic-visual-style-field :is(select,textarea),.comic-image-custom-style textarea { box-sizing:border-box; width:100%; min-width:0; padding:9px 12px; border:1px solid #454950; border-radius:8px; background:#101318; color:#e5e7eb; font:inherit; }
.comic-visual-style-field textarea,.comic-image-custom-style textarea { resize:vertical; line-height:1.65; min-height:100px; }
.comic-image-custom-style textarea { min-height:180px; }
.comic-visual-style-field :is(select,textarea):focus-visible,.comic-image-custom-style textarea:focus-visible { outline:2px solid #e8b64f; outline-offset:2px; }
.comic-visual-style-field :is(select,textarea):disabled,.comic-image-custom-style textarea:disabled { opacity:.6; }
.comic-visual-style-description { margin:0; max-height:90px; overflow:auto; overflow-wrap:anywhere; color:#a6abb5; font-size:12px; line-height:1.65; }
.comic-visual-style-hint { color:#a6abb5; font-size:11px; line-height:1.55; }
:root[data-theme="light"] .comic-visual-style-field :is(select,textarea),:root[data-theme="light"] .comic-image-custom-style textarea { color:#18202c; background:#f6f7f9; border-color:#d8dbe0; }
:root[data-theme="light"] :is(.comic-visual-style-description,.comic-visual-style-hint) { color:#626b78; }

.comic-asset-preparation .comic-asset-preparation-status { width:min(900px,100%); }
.comic-asset-progress-problems .comic-hint { margin:12px 0; text-align:left; line-height:1.7; overflow-wrap:anywhere; }
.comic-asset-repair-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.comic-text-transport-timing { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:6px; line-height:1.6; color:var(--comic-theme-muted,#a3aebd); font-variant-numeric:tabular-nums; }
.comic-asset-preparation-status .comic-text-transport-timing { justify-content:center; }
.comic-asset-preparation-status .comic-text-transport-timing small { color:inherit; }
.comic-text-retry-notice { margin:12px 0; padding:12px 14px; border:1px solid #82602d; border-radius:8px; background:rgba(230,163,32,.08); color:inherit; }
.comic-text-retry-notice p { margin:0 0 10px; line-height:1.7; }
.comic-text-retry-notice label { display:flex; align-items:flex-start; gap:8px; cursor:pointer; line-height:1.6; }
.comic-text-retry-notice input[type="checkbox"] { width:16px; height:16px; flex:0 0 16px; margin:4px 0 0; accent-color:#e9a91e; }
@media(max-width:640px) {
  .comic-asset-preparation .comic-asset-preparation-status { grid-template-columns:minmax(0,1fr); gap:24px; }
}

/* 大资料量列表渲染隔离：跳过视口外卡片的布局与绘制，显著降低点击按钮与滚动时的主线程重排耗时 */
.comic-asset-card,
.comic-episode-card,
.comic-segment-asset-item,
.hy-skill-group {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}
.comic-segment-asset-item {
  contain-intrinsic-size: auto 156px;
}
.comic-episode-card {
  contain-intrinsic-size: auto 190px;
}
.comic-segment-cell {
  contain: layout style;
}
.hy-skill-group {
  contain-intrinsic-size: auto 96px;
}
