/* 速+视频复刻 · 共享样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #ff4d4f;
  --primary-dark: #e8326b;
  --primary-grad: linear-gradient(135deg, #ff7a3d, #ff4d4f 55%, #e8326b);
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #8f959e;
  --border: #e5e7eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --danger: #f5222d;
  --success: #18a058;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(31, 35, 41, 0.08);
}
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text); background: var(--bg); font-size: 14px;
}
a { color: var(--primary); text-decoration: none; }
img.logo { width: 40px; height: 40px; border-radius: 10px; display: block; object-fit: contain; background: transparent; }

/* ===== 登录页 ===== */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fff5f0 0%, #fff0f3 45%, #f6f7fb 100%);
  padding: 24px;
}
.auth-card {
  width: 400px; max-width: 100%; background: var(--card); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(232, 50, 107, 0.10); padding: 40px 36px;
}
.auth-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-card .brand img { width: 52px; height: 52px; border-radius: 0; object-fit: contain; background: transparent; }
.auth-card .brand .name { font-size: 20px; font-weight: 700; }
.auth-card .sub { color: var(--text-2); margin-bottom: 28px; font-size: 14px; }
.auth-card .switch-entry { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.auth-card .switch-entry.auth-card-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.auth-card .auth-home-link,
.auth-card .auth-register-link a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
}
.auth-card .auth-home-link:hover,
.auth-card .auth-register-link a:hover { text-decoration: underline; }
.auth-card .auth-register-link { color: var(--text-3); white-space: nowrap; }

/* ===== 表单 ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field label .req { color: var(--danger); margin-left: 2px; }
.input, .field input:not([type]), .field input[type="text"], .field input[type="password"],
.field input[type="number"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s; font-family: inherit;
}
.field textarea { min-height: 84px; resize: vertical; }
.input:focus, .field input:not([type]):focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
}
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-items: start;
}
.form-grid .field.span-2,
.form-grid .form-row,
.form-grid > .wm-form-section { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

/* 管理端 · 白模表单 */
.wm-admin-form .arm-usage-notice { margin-bottom: 18px; }
.wm-form-section {
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.wm-form-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.wm-form-section-hd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wm-form-section-hd .tag { font-weight: 500; }
.wm-prompt-area {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  min-height: 200px;
}
.wm-readonly {
  background: var(--panel, #fafafa);
  color: var(--text-2);
}
.wm-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.wm-ref-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel, #fafafa);
}
.wm-ref-card-hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.wm-mentioned-name {
  margin: 4px 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1.4;
}
.wm-mentioned-name.is-empty {
  background: var(--panel, #f5f5f5);
  border-color: var(--border);
}
.wm-mentioned-label {
  font-size: 12px;
  color: var(--text-2, #666);
  flex-shrink: 0;
}
.wm-mentioned-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.wm-test-slot-card .wm-mentioned-name {
  margin-top: 4px;
}
.wm-ref-card-hd strong { font-size: 14px; color: var(--text); }
.wm-kind-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
}
.wm-kind-tag.is-video { border-color: #91caff; color: #1677ff; background: #e6f4ff; }
.wm-kind-tag.is-image { border-color: #b7eb8f; color: #389e0d; background: #f6ffed; }
.wm-kind-tag.is-person { border-color: #ffccc7; color: #cf1322; background: #fff2f0; }
.wm-kind-tag.is-required { border-color: #ffd591; color: #d46b08; background: #fff7e6; }
/* 分段控件：内嵌滑块式选中（列表/区块、预设库/我的作品等） */
.seg-btn-group {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #eceff3;
  vertical-align: middle;
}
.seg-btn-group > .btn,
.seg-btn-group > .seg-btn,
.seg-btn-group > .lv-btn,
.seg-btn-group > .shot-tab {
  margin: 0 !important;
  border: none !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  transform: none;
}
.seg-btn-group > .btn:hover,
.seg-btn-group > .seg-btn:hover,
.seg-btn-group > .lv-btn:hover,
.seg-btn-group > .shot-tab:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}
.seg-btn-group > .is-active,
.seg-btn-group > .on,
.seg-btn-group > .active {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.12);
}
.seg-btn-group > .is-active:hover,
.seg-btn-group > .on:hover,
.seg-btn-group > .active:hover {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.12);
}
.seg-btn-group > .btn:active,
.seg-btn-group > .lv-btn:active {
  transform: none;
}
.seg-btn-group.lv-mode-group > .lv-btn {
  gap: 5px;
  padding: 6px 14px;
  font-size: 12px;
  min-height: 32px;
  line-height: 1.2;
}
.seg-btn-group.lv-mode-group > .lv-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.toolbar .seg-btn-group {
  margin-right: auto;
}
.wm-tab-bar.seg-btn-group {
  margin-bottom: 12px;
}
.wm-tab-bar.seg-btn-group > .btn {
  min-width: 7.5em;
  padding: 8px 18px;
}
.wm-parsed-edit .field { margin-bottom: 8px; }
.wm-ref-role { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.wm-ref-desc { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.wm-video-preview-bar {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: #fff;
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}
.wm-test-intro {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel, #fafafa);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.wm-test-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .wm-test-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .wm-test-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wm-test-slot-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.wm-test-slot-card.is-bound { border-color: #91caff; background: #fafcff; }
.wm-test-slot-card--video { grid-column: 1 / -1; }
.wm-test-slot-card .upload-dropzone { padding: 12px 10px; }
.wm-test-slot-card .upload-dropzone.has-file { padding: 10px; }
.wm-test-slot-card .upload-dropzone-sub { max-width: 100%; }
.wm-slot-img-preview { margin-top: 10px; }
.wm-slot-img-preview[hidden] { display: none !important; }
.wm-slot-img-preview-hd { margin-bottom: 6px; }
.wm-slot-thumb { width: 72px; height: 72px; object-fit: cover; }
.wm-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.wm-tests-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wm-tests-table th,
.wm-tests-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.wm-tests-table th { color: var(--text-2); font-weight: 600; background: var(--panel, #fafafa); }
.wm-test-error-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #fbcaca;
  background: #fff1f0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}
.remake-hint.wm-test-running { color: var(--text-2); }
.remake-hint.wm-test-failed { color: var(--danger); border-color: #fbcaca; background: #fff1f0; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 17px; cursor: pointer;
  transition: all .15s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary-grad); border: none; color: #fff; }
.btn-primary:hover { opacity: .92; color: #fff; }
.btn-danger { color: var(--danger); border-color: #fbcaca; }
.btn-danger:hover { background: #fff1f0; border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 5px 13px; font-size: 16px; border-radius: 7px; }
.btn-block { width: 100%; padding: 14px; font-size: 18px; }
.btn-lg { padding: 12px 26px; font-size: 18px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-link { border: none; background: none; color: var(--primary); padding: 3px 8px; font-size: 15px; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.lv-table tbody tr[data-id] { cursor: default; }
.lv-table tbody tr[data-id] .btn-link,
.lv-table tbody tr[data-id] a[href],
.lv-table tbody tr[data-id] .video-title-tip,
.lv-table tbody tr[data-id] .remake-thumb-btn,
.lv-table tbody tr[data-id] .remake-result-play {
  cursor: pointer;
}
label.switch { cursor: pointer; }

.grid th.th-sort,
table.ui-table-enhanced thead th.th-sort {
  cursor: pointer; user-select: none; white-space: nowrap; position: relative; padding-right: 14px;
}
.grid th.th-sort:hover,
table.ui-table-enhanced thead th.th-sort:hover { color: var(--primary); }
.grid th.th-sort.sorted,
table.ui-table-enhanced thead th.th-sort.sorted { color: var(--primary); font-weight: 600; }
.grid th.th-sort .sort-mark,
table.ui-table-enhanced thead th.th-sort .sort-mark { margin-left: 4px; font-size: 11px; color: var(--text-3); }
.grid th.th-sort.sorted .sort-mark,
table.ui-table-enhanced thead th.th-sort.sorted .sort-mark { color: var(--primary); }

/* 自动增强的数据表（弹窗内 remake-asset-table 等）：表头可点排序、右侧拖柄调列宽 */
table.ui-table-enhanced:not(.lv-table) { table-layout: fixed; }
table.ui-table-enhanced:not(.lv-table) thead th { position: relative; }
.remake-asset-table thead th.th-sort { padding-right: 14px; }

/* ===== 布局（工作台/管理端） ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 20;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar .brand .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sidebar .brand .tag { font-size: 11px; color: var(--text-3); }
.menu { flex: 1; overflow-y: auto; padding: 10px 8px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px; color: var(--text-2); cursor: pointer; font-size: 14px;
  transition: all .15s;
}
.menu-item svg { width: 17px; height: 17px; flex: none; }
.menu-item:hover { background: #f5f6f8; color: var(--text); }
.menu-item.active {
  background: linear-gradient(135deg, rgba(255, 122, 61, .12), rgba(232, 50, 107, .12));
  color: var(--primary-dark); font-weight: 600;
}
.menu-group { margin-bottom: 6px; }
.menu-group:not(.expanded) .menu-item.menu-sub { display: none; }
.menu-group-title {
  font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0.04em;
  padding: 8px 12px 4px; text-transform: none;
  cursor: pointer; user-select: none; border-radius: 8px;
}
.menu-group-title:hover { color: var(--text-2); background: #f5f6f8; }
body.tenant-app .menu-group-title:hover { background: #fff6ea; color: var(--text); }
.menu-item.menu-sub { padding-left: 22px; font-size: 13px; }
body.tenant-app .menu-item.menu-sub { font-size: inherit; }
.menu-item.menu-sub svg { width: 16px; height: 16px; opacity: 0.9; }
.content > .work-search-page { flex: 1; min-height: 0; }
.work-search-page {
  display: flex; flex-direction: column; gap: 14px; min-height: 0; height: 100%;
}
.work-search-page--idle {
  justify-content: center;
  align-items: center;
  height: 100%;
}
.work-search-page--idle .work-search-hero {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 820px; width: 100%;
  border: none; box-shadow: none; background: transparent;
}
.work-search-page--idle .work-search-hero .card-bd {
  padding: 12px 16px 24px; width: 100%;
}
.work-search-page--active { justify-content: flex-start; }
.work-search-page--active .work-search-hero {
  flex: none; width: 100%; box-shadow: var(--shadow);
}
.work-search-page--active .work-search-hero .card-bd {
  padding: 14px 18px 12px;
}
.work-search-page--active .work-search-brand,
.work-search-page--active .work-search-title { display: none; }
.work-search-page--active .work-search-kicker { display: none; }
.work-search-page--active .work-search-hint { display: none; }
.work-search-page--active .work-search-input {
  font-size: 15px; padding: 10px 16px; border-radius: var(--radius);
}
.work-search-page--active .work-search-input-row { max-width: none; }
.work-search-page--active #workSearchBtn { padding: 8px 18px; font-size: 14px; }
.work-search-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px;
}
.work-search-body[hidden] {
  display: none !important;
}
.work-search-hero .card-bd { padding: 28px 24px 22px; }
.work-search-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.work-search-brand { width: 72px; height: 72px; object-fit: contain; }
.work-search-title {
  margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; color: var(--text);
}
.work-search-kicker { font-size: 13px; margin: 0; color: var(--text-2); }
.work-search-input-row {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 720px;
}
.work-search-input {
  flex: 1; min-width: 0; font-size: 18px; line-height: 1.4;
  padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
}
.work-search-input:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-color: transparent; }
.work-search-hint { font-size: 12px; max-width: 640px; margin: 0; }
.work-search-results {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px 16px;
}
.work-search-pager {
  flex: none;
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.work-search-pager .pager-inner { display: flex; align-items: center; gap: 16px; }
.work-search-pager .pager-info { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.rank-board-page { display: flex; flex-direction: column; gap: 14px; min-height: 0; height: 100%; }
.rank-board-page .rank-table-host {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px 16px;
}
.rank-board-head.card { flex: none; box-shadow: var(--shadow); }
.rank-board-head .card-bd { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.rank-board-head-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.rank-board-intro { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rank-board-kicker { font-size: 13px; font-weight: 600; color: var(--text); }
.rank-board-last { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rank-board-settings {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  padding-top: 4px; border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .rank-board-settings { grid-template-columns: 1fr; }
}
.rank-setting-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.rank-setting-label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.rank-setting-hint { font-size: 12px; line-height: 1.5; color: var(--text-3); margin: 0; max-width: 320px; }
.rank-num-group {
  display: inline-flex; align-items: stretch; max-width: 100%;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.rank-num-group:focus-within {
  border-color: rgba(255, 77, 79, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.12);
}
.rank-hours-input {
  width: 88px; min-width: 64px; padding: 8px 10px; border: none; outline: none;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text);
  background: transparent;
}
.rank-hours-input::-webkit-outer-spin-button,
.rank-hours-input::-webkit-inner-spin-button { opacity: 1; }
.rank-num-suffix {
  display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--text-2);
  background: #f5f6f8; border-left: 1px solid var(--border); white-space: nowrap;
}
.rank-switch-row { display: flex; align-items: center; gap: 10px; }
.rank-status-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.rank-status-pill.off { color: var(--text-3); background: #f0f1f3; }
.rank-status-pill.on { color: var(--primary-dark); background: rgba(255, 77, 79, 0.1); }
.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow: hidden; }
.topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  position: sticky; top: 0; z-index: 15;
}
.topbar .page-title { font-size: 15px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.tenant-switch { position: relative; }
.tenant-switch .cur {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-size: 13px; background: #fff;
}
.tenant-switch .cur:hover { border-color: var(--primary); }
.tenant-switch .drop {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 180px; display: none; overflow: hidden;
}
.tenant-switch .drop.show { display: block; }
.tenant-switch .drop .opt { padding: 10px 14px; cursor: pointer; font-size: 13px; }
.tenant-switch .drop .opt:hover { background: #f5f6f8; }
.tenant-switch .drop .opt.active { color: var(--primary-dark); font-weight: 600; }
.balance-chip {
  font-size: 13px; color: var(--text-2); cursor: pointer; padding: 6px 10px;
  border-radius: 8px; border: 1px solid var(--border); margin-right: 8px;
  white-space: nowrap;
}
.balance-chip:hover { background: #f5f6f8; }
.balance-chip .bal-num { font-weight: 600; color: var(--text-1); }
.balance-chip .bal-go { margin-left: 6px; color: var(--primary); font-weight: 500; }
.balance-chip .bal-lock { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.bell { position: relative; cursor: pointer; padding: 6px; border-radius: 8px; }
.bell:hover { background: #f5f6f8; }
.bell svg { width: 18px; height: 18px; display: block; color: var(--text-2); }
.bell .badge {
  position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 15px; text-align: center;
  padding: 0 4px; display: none;
}
.bell .badge.show { display: block; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.user-chip.user-chip-btn {
  cursor: pointer; border: 1px solid transparent; border-radius: 999px; padding: 4px 8px 4px 4px;
  transition: background .15s, border-color .15s;
}
.user-chip.user-chip-btn:hover { background: #f5f6f8; border-color: var(--border); }
.user-chip .avatar,
.user-chip .avatar-img {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.user-chip .avatar {
  background: var(--primary-grad); color: #fff;
}
.user-chip .avatar-img { object-fit: cover; display: block; background: #eee; }
.user-chip-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--text-3); margin-left: 2px;
}
.profile-pop {
  position: fixed; z-index: 1200; min-width: 220px; max-width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12); padding: 8px 0;
}
.profile-pop:not(.show) { display: none; }
.profile-pop.show { display: block; }
.profile-pop-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.profile-pop-head .avatar,
.profile-pop-head .avatar-img {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.profile-pop-head .avatar { background: var(--primary-grad); color: #fff; }
.profile-pop-head .avatar-img { object-fit: cover; display: block; }
.profile-pop-name { font-size: 14px; font-weight: 600; color: var(--text); }
.profile-pop-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.profile-pop-item {
  display: block; width: 100%; text-align: left; border: none; background: transparent;
  padding: 10px 14px; font-size: 13px; color: var(--text); cursor: pointer;
}
.profile-pop-item:hover { background: #f5f6f8; }
.profile-pop-item.danger { color: var(--danger); }
.profile-form .profile-avatar-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.profile-avatar-preview .avatar,
.profile-avatar-preview .avatar-img {
  width: 64px; height: 64px; border-radius: 50%;
}
.profile-avatar-preview .avatar {
  display: flex; align-items: center; justify-content: center; background: var(--primary-grad); color: #fff; font-size: 22px;
}
.profile-avatar-preview .avatar-img { object-fit: cover; display: block; }
.profile-avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.profile-avatar-preview img.avatar-img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block;
}
.modal.profile-edit-modal { width: min(520px, 94vw); }
.modal.profile-edit-modal .m-bd { max-height: min(70vh, 640px); overflow-y: auto; }
.avatar-crop-hint { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.avatar-crop-viewport {
  position: relative; width: 240px; height: 240px; margin: 0 auto 12px;
  border-radius: 12px; overflow: hidden; background: #1a1a1a;
  cursor: grab; touch-action: none; user-select: none;
}
.avatar-crop-viewport.dragging { cursor: grabbing; }
.avatar-crop-viewport img.avatar-crop-img {
  position: absolute; top: 0; left: 0; max-width: none; max-height: none;
  pointer-events: none; transform-origin: 0 0;
}
.avatar-crop-mask {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 100px, rgba(0,0,0,.55) 101px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.avatar-crop-ring {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px;
  margin: -100px 0 0 -100px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35); pointer-events: none;
}
.avatar-crop-zoom {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  max-width: 320px; margin-left: auto; margin-right: auto;
}
.avatar-crop-zoom label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.avatar-crop-zoom input[type="range"] { flex: 1; min-width: 0; }
.profile-form-ft { display: flex; justify-content: flex-end; gap: 8px; width: 100%; }
.content { padding: 20px; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.content:has(> .rank-board-page),
.content:has(> .work-search-page),
.content:has(> .list-page) {
  overflow: hidden;
}
.content > .list-page {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.content > .rank-board-page,
.content > .work-search-page {
  flex: 1 1 auto; align-self: stretch; width: 100%;
  min-height: 0; max-height: 100%; height: 100%; overflow: hidden;
}
.rank-board-page > .rank-board-head { flex: none; }
.rank-board-page .rank-table-host > .tracked-v-panel,
.work-search-page .work-search-results > .tracked-v-panel {
  flex: 1; min-height: 0; height: 100%; width: 100%;
}
/* 列表页：工具栏固定顶部，表格区域撑满中间并滚动，分页固定底部 */
.list-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.list-page > .toolbar,
.list-page > .arm-usage-notice,
.list-page > .seg-btn-group,
.list-page > .wm-tab-bar {
  flex: none;
}
.list-page > .toolbar { margin-bottom: 0; padding: 16px 16px 12px; }
.list-page > .lv-host {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.list-page > .lv-host > .lv {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
/* 替换复刻等：预设库 / 我的作品子页签容器 */
.list-page > [id^="wmrTab"] {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.list-page > [id^="wmrTab"][hidden] {
  display: none !important;
}
.list-page > [id^="wmrTab"] > .toolbar {
  flex: none;
}
.list-page > [id^="wmrTab"] > .lv-host {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.list-page.pipeline-tasks-page > .pipeline-tasks-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pipeline-tasks-host .pipeline-tasks-lv-host,
.pipeline-tasks-host .pipeline-tasks-lv-host > .lv {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pipeline-tasks-host .lv-body {
  flex: 1 1 auto;
  min-height: 0;
}
.pipeline-task-progress-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pipeline-task-progress-cell .pipeline-task-pct {
  font-weight: 500;
  color: var(--text-1);
}
.pipeline-task-progress-cell .pipeline-task-step-ratio {
  font-size: 12px;
}
.pipeline-task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.pipeline-task-actions .btn { flex-shrink: 0; }
.pipeline-task-block-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}
.pipeline-task-block-card .bl-acts {
  margin-top: auto;
  padding-top: 8px;
}

/* ===== 卡片 / 表格 / 工具栏 ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-hd {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.card .card-hd .t { font-weight: 600; font-size: 14px; }
.card .card-bd { padding: 16px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.toolbar input[type="text"], .toolbar input[type="number"], .toolbar select {
  padding: 10px 12px; min-height: 42px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 9px; font-size: 15px; outline: none;
  line-height: 1.25;
}
.toolbar .toolbar-field--kw {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
}
.toolbar .toolbar-hint {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
}
.toolbar .btn:not(.btn-sm) {
  min-height: 42px; box-sizing: border-box;
}
.toolbar input[type="text"]:focus, .toolbar input[type="number"]:focus, .toolbar select:focus {
  border-color: var(--primary);
}
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.grid th { color: var(--text-2); font-weight: 600; background: #fafbfc; }
table.grid tbody tr:hover { background: #fafbfc; }
table.grid td.wrap { white-space: normal; word-break: break-all; min-width: 160px; }
.empty { text-align: center; color: var(--text-3); padding: 48px 0; font-size: 13px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px;
  background: #f2f3f5; color: var(--text-2);
}
.tag.on { background: #e8f7ef; color: var(--success); }
.tag.off { background: #f2f3f5; color: var(--text-3); }
.tag.hot { background: #fff1f0; color: var(--primary); }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.stat-card .label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-card .value.hot { background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .extra { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ===== 弹窗 ===== */
.mask {
  position: fixed; inset: 0; z-index: 100;
  display: none; pointer-events: none;
}
.mask.show { display: block; pointer-events: auto; }
.modal-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
  background: rgba(15, 18, 22, 0.45);
}
/* 下载/分析进度：叠在业务弹窗之上，关闭进度层不关下层列表/明细 */
.mask.async-job-overlay {
  z-index: 150;
  background: rgba(15, 18, 22, 0.28);
}
.mask.async-job-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.modal {
  background: #fff; border-radius: 14px; width: 60vw; max-width: 96vw;
  max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 12px 48px rgba(0,0,0,.18);
}
.modal.sm { width: 440px; }
.modal.lg { width: 72vw; }
.modal.xl { width: 84vw; }
.modal.list {
  width: 80vw;
  max-height: 85vh;
  height: auto;
}
.modal.list .m-bd {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 0 1 auto;
  overflow-y: auto;
}
.modal.list .m-bd:has(.tracked-v-panel) {
  overflow: hidden;
  flex: 1;
  min-height: 0;
  max-height: calc(85vh - 108px);
}
.tracked-v-panel {
  flex: 1; min-height: 0; height: 100%;
  display: flex; flex-direction: column; gap: 0;
}
.tracked-v-panel > .tracked-v-toolbar,
.tracked-v-panel > .hot-videos-meta { flex: none; }
.tracked-v-scroll-host {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
}
.tracked-v-scroll-host > .tracked-v-table-wrap,
.tracked-v-scroll-host > .table-wrap.tracked-v-table-wrap {
  flex: 1 1 auto; min-height: 0; height: 100%; max-height: 100%;
}
.modal.fit-content {
  height: auto;
}
.modal.fit-content .m-bd {
  flex: 0 1 auto;
  max-height: calc(90vh - 112px);
  overflow-y: auto;
}
.modal.h-80 {
  height: 80vh;
  max-height: 80vh;
}
.modal.h-80 .m-bd {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
/* 点击缩略图播放：弹窗 80% 视口宽 × 80% 视口高 */
.modal.video-play-modal {
  width: 80vw;
  max-width: 96vw;
  height: 80vh;
  max-height: 80vh;
}
.modal.video-play-modal .m-bd {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
/* 复刻任务：滚动只发生在表格区域，正文区撑满 80vh 弹窗剩余高度 */
.modal.remake-tasks-modal.h-80 .m-bd {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.osr-single {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
}
.osr-single .osr-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 4px 16px;
}
.osr-single .osr-body.osr-body-progress {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}
.osr-intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}
.remake-mode-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-1, #1a1a1a);
  background: var(--bg-2, #f5f7fa);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.osr-section {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2, #fafafa);
}
.osr-section-assets {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  padding: 16px 18px 18px;
}
.osr-section-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-1);
}
.osr-ignore-toolbar {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.osr-ignore-toolbar-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-1);
}
.osr-ignore-toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.osr-section-assets .osr-section-title { margin-bottom: 0; }
.osr-asset-hint { font-size: 12px; margin: 0; line-height: 1.55; color: var(--text-2); }
.osr-col-ignore { white-space: nowrap; vertical-align: middle; min-width: 96px; }
.osr-asset-table tr.osr-row-ignored td { opacity: 0.55; }
.osr-asset-table tr.osr-row-ignored .osr-pick-btns { pointer-events: none; }
.osr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  align-items: end;
}
.osr-form-grid .osr-video-model-field {
  grid-column: 1 / -1;
}
.choice-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.choice-btn-group .choice-btn {
  max-width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.35;
}
.choice-btn-group .choice-btn.is-selected {
  background: var(--primary-grad);
  border-color: transparent;
  color: #fff;
}
.choice-btn-group .choice-btn.is-selected:hover {
  opacity: 0.92;
  color: #fff;
}
@media (max-width: 720px) {
  .osr-form-grid { grid-template-columns: 1fr; }
}
.osr-modify-field { margin-top: 12px; margin-bottom: 0; }
.osr-suggest-row { margin-top: 10px; display: flex; justify-content: flex-end; }
.osr-modify-history-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e8eaed);
}
.osr-modify-history-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-1, #1a1a1a);
}
.osr-modify-history-empty { font-size: 12px; margin: 4px 0 0; line-height: 1.5; }
.osr-modify-history-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.osr-modify-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border, #e8eaed);
  border-radius: 8px;
  background: #fafbfc;
}
.osr-modify-history-main { flex: 1; min-width: 0; }
.osr-modify-history-preview {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-1, #333);
  cursor: pointer;
}
.osr-modify-history-preview:hover { color: var(--primary, #2563eb); text-decoration: underline; }
.osr-modify-history-at {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-2, #888);
}
.osr-modify-history-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.osr-progress-modify-wrap {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e8eaed);
  border-radius: 8px;
  background: #f8f9fb;
}
.osr-progress-modify-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.osr-progress-modify-title { font-size: 13px; font-weight: 600; }
.osr-progress-modify-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  color: var(--text-1, #333);
  font-family: inherit;
}
.osr-picker-layer { z-index: 8; }
.osr-section-assets .osr-asset-scroll {
  flex: 1;
  min-height: 140px;
  max-height: none;
  overflow: auto;
  margin-top: 4px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.osr-asset-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}
.osr-asset-table thead {
  background: #f7f8fa;
  position: sticky;
  top: 0;
  z-index: 0;
}
.osr-asset-table th,
.osr-asset-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}
.osr-asset-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: #f7f8fa;
}
.osr-asset-table tbody tr:hover td { background: #fafbfc; }
.osr-asset-table tbody tr:last-child td { border-bottom: none; }
.osr-asset-table td:first-child,
.osr-asset-table th:first-child { padding-left: 16px; }
.osr-asset-table td:last-child,
.osr-asset-table th:last-child { padding-right: 16px; }
.osr-col-kind { white-space: nowrap; vertical-align: middle; width: 88px; }
.osr-tag-product {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  margin-left: 6px;
  margin-top: 2px;
  vertical-align: middle;
  border-radius: 4px;
  background: #fff7e6;
  color: #d48806;
}
.osr-asset-table .osr-col-desc {
  min-width: 120px;
  max-width: 36vw;
  word-break: break-word;
  white-space: normal;
  color: var(--text);
}
.osr-asset-table .osr-col-img {
  width: 80px;
  text-align: center;
  vertical-align: middle;
}
.osr-asset-table .osr-col-img .remake-img-cell {
  justify-content: center;
}
.osr-asset-table .shot-ignore-row {
  margin-top: 0;
  gap: 6px;
}
.osr-pick-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.osr-pick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.osr-pick-btns .btn-sm {
  min-width: 80px;
  padding: 6px 12px;
}
.osr-asset-table .remake-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}
.osr-chosen {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.osr-chosen .mat-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.osr-chosen-name {
  font-size: 12px;
  color: var(--text-2);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osr-prod-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
}
.osr-prod-pick-item {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  text-align: center;
}
.osr-prod-pick-item.selected {
  border-color: var(--primary);
  background: #f0f5ff;
}
.osr-prod-pick-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}
.hot-v-title {
  text-align: left;
  max-width: 260px;
  white-space: normal;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
}
.hot-v-title:hover { color: var(--primary); text-decoration: underline; }
.modal .m-hd {
  display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal .m-hd .t { font-size: 15px; font-weight: 600; flex: 1; }
.modal .m-hd .x {
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3); font-size: 18px; line-height: 1;
}
.modal .m-hd .x:hover { background: #f2f3f5; color: var(--text); }
.modal .m-bd { padding: 20px; overflow-y: auto; flex: 1; }
.modal .m-ft {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
/* 页脚多按钮（确认框等）包一层时须 flex + gap，否则按钮贴在一起 */
.modal .m-ft .modal-ft-actions,
.modal .m-ft > div:not(.modal-ft-actions) {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px;
}
.modal .m-ft .modal-ft-actions { width: 100%; }

/* ===== Toast ===== */
.toast-box { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 18px; border-radius: 8px; background: rgba(31, 35, 41, 0.9); color: #fff;
  font-size: 13px; box-shadow: var(--shadow); animation: toastIn .2s ease;
}
.toast.err { background: rgba(245, 34, 45, 0.94); }
.toast.ok { background: rgba(24, 160, 88, 0.94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===== 分页 ===== */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 4px 2px; font-size: 13px; color: var(--text-2); }
.pager button {
  min-width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: var(--text-2); padding: 0 8px;
}
.pager button.cur { background: var(--primary-grad); border: none; color: #fff; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }

/* ===== Switch ===== */
.switch { position: relative; width: 38px; height: 20px; display: inline-block; cursor: pointer; vertical-align: middle; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: #d7dae0; border-radius: 10px; transition: background .2s; }
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { left: 20px; }

/* ===== 热点行浮窗 ===== */
.hover-pop {
  position: fixed; z-index: 280; width: 380px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.16); border: 1px solid var(--border);
  padding: 12px 14px; display: none; font-size: 12px;
}
.hover-pop .hp-t { font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.hover-pop .hp-item { padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.hover-pop .hp-item:last-child { border-bottom: none; }
.hover-pop .hp-item .tt { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hover-pop .hp-meta { color: var(--text-3); margin-top: 2px; }

.hover-pop.hp-mat-pop {
  width: min(420px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 24px));
  overflow-y: auto;
  padding: 12px;
}
.hover-pop.hp-mat-pop .hp-mat-img {
  margin: -4px -4px 10px; padding: 8px; background: #f5f6f8; border-radius: 10px;
  text-align: center; border: 1px solid var(--border);
}
.hover-pop.hp-mat-pop .hp-mat-img img {
  max-width: 100%; max-height: 240px; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; display: inline-block; vertical-align: middle;
}

.modal.mat-preview-lightbox .mat-preview-modal {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  min-height: 200px;
}
.mat-preview-caption {
  font-size: 14px; color: var(--text-2); word-break: break-word;
}
.mat-preview-frame {
  flex: 1; min-height: 280px; max-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  background: #0f0f12; border-radius: 12px; padding: 12px;
  overflow: auto;
}
.mat-preview-frame img {
  max-width: 100%; max-height: min(72vh, 900px); width: auto; height: auto;
  object-fit: contain; border-radius: 8px;
}

.video-preview-pop {
  position: fixed; z-index: 120; display: none; background: #111; border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
  padding: 6px 6px 8px; pointer-events: auto;
}
.video-preview-pop video {
  display: block; width: 280px; max-height: 420px; border-radius: 8px; background: #000;
}
.video-preview-pop .vpp-cap {
  margin-top: 6px; padding: 0 4px; font-size: 11px; line-height: 1.45;
  color: rgba(255,255,255,.82); text-align: left;
  white-space: pre-line; max-width: 280px; word-break: break-word;
}
.shot-seq-preview {
  cursor: pointer; font-weight: 600; color: var(--primary);
  text-decoration: underline dotted; text-underline-offset: 2px;
  padding: 0; border: none; background: none; font-size: inherit;
}
.shot-seq-preview:hover { opacity: .85; }
.shot-seq-preview[disabled] { color: var(--text-3); cursor: not-allowed; text-decoration: none; }

.dl-progress { padding: 4px 2px 2px; min-width: 320px; }
.dl-progress-stage {
  font-size: 14px; color: var(--text); margin-bottom: 14px; min-height: 44px; line-height: 1.55;
  white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}
.dl-progress-bar {
  height: 8px; background: #eef0f3; border-radius: 4px; overflow: hidden;
}
.dl-progress-fill {
  height: 100%; width: 0; border-radius: 4px;
  background: var(--primary-grad); transition: width .22s ease;
}
.dl-progress-meta { margin-top: 8px; font-size: 12px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.dl-progress-hint { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

.osr-progress {
  flex: 1;
  min-height: 0;
  height: 100%;
  min-width: min(520px, 72vw);
  display: flex;
  flex-direction: column;
  padding: 2px 4px;
}
.osr-progress-head { flex-shrink: 0; overflow-x: hidden; max-width: 100%; }
.osr-progress-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 4px;
  -webkit-overflow-scrolling: touch;
}
.osr-steps {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  align-items: stretch;
}
@media (max-width: 520px) {
  .osr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.osr-step {
  box-sizing: border-box;
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto minmax(2.35em, auto);
  gap: 4px 8px;
  align-content: start;
  padding: 7px 8px 8px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2, #fafbfc); font-size: 12px;
}
.osr-step-num {
  grid-column: 1; grid-row: 1;
  justify-self: start; align-self: center;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  background: #eef0f3;
}
.osr-step-label {
  grid-column: 1 / -1; grid-row: 2;
  min-width: 0; color: var(--text);
  font-size: 11px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}
.osr-step-badge {
  grid-column: 2; grid-row: 1;
  justify-self: end; align-self: center;
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  color: var(--text-3); background: #eef0f3;
  white-space: nowrap;
}
.osr-step-running { border-color: rgba(var(--primary-rgb, 59, 130, 246), .35); }
.osr-step-running .osr-step-num { background: var(--primary); color: #fff; }
.osr-step-running .osr-step-badge { color: var(--primary); background: rgba(var(--primary-rgb, 59, 130, 246), .12); }
.osr-step-done .osr-step-badge { color: #0d7a4a; background: rgba(13, 122, 74, .1); }
.osr-step-done .osr-step-num { background: rgba(13, 122, 74, .15); color: #0d7a4a; }
.osr-overall { margin-bottom: 8px; }
.osr-overall .dl-progress-stage { min-height: 0; margin-bottom: 10px; }
.osr-task-panel-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.osr-task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.osr-task {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff;
}
.osr-task-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.osr-task-label { font-size: 13px; color: var(--text); flex: 1; min-width: 0; }
.osr-task-meta { font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.osr-task-bar { height: 4px; background: #eef0f3; border-radius: 2px; overflow: hidden; }
.osr-task-fill { height: 100%; background: var(--primary-grad); transition: width .2s ease; border-radius: 2px; }
.osr-task-msg { margin-top: 6px; font-size: 11px; color: var(--text-3); line-height: 1.45; }
.osr-task-running { border-color: rgba(var(--primary-rgb, 59, 130, 246), .25); }
.osr-task-done .osr-task-fill { opacity: .85; }
.osr-task-empty { list-style: none; font-size: 12px; padding: 4px 2px; }

.wf-overlay-job {
  min-width: min(520px, 86vw);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.wf-job-modal .m-bd,
.modal.h-80.wf-job-modal .m-bd {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal.h-80.wf-job-modal .m-bd { flex: 1; }
/* 任务管理 · 查看进度：80% 视口宽高 */
.modal.pipeline-task-progress-modal {
  width: 80vw;
  max-width: 96vw;
  height: 80vh;
  max-height: 80vh;
}
.modal.pipeline-task-progress-modal .m-bd {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pipeline-task-progress {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pipeline-task-progress .wf-job-progress,
.pipeline-task-progress > .osr-progress {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: auto;
}
.modal.pipeline-task-progress-modal .osr-progress {
  min-width: 0;
}
.wf-progress-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.wf-prog-intra-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.wf-prog-intra-wrap .wf-progress-lbl-distributed {
  margin: 0;
  font-weight: 600;
}
.wf-prog-intra-pct { color: var(--primary, #3b82f6); font-weight: 600; }
.wf-overall .dl-progress-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}
.wf-prog-stage {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  min-height: 0;
}
.modal.pipeline-task-progress-modal .osr-steps {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  max-height: 28vh;
  overflow-y: auto;
}
.modal.pipeline-task-progress-modal .wf-progress-scroll {
  flex: 1;
  min-height: 120px;
}
.modal.pipeline-task-progress-modal .wf-io-pre {
  max-height: min(28vh, 360px);
}
.modal.pipeline-task-progress-modal .wf-io-output {
  max-height: min(36vh, 480px);
}
.pipeline-task-trace-host {
  flex: 0 1 auto;
  max-height: 24vh;
  min-height: 72px;
  overflow-y: auto;
}
.wf-job-progress.wf-overlay-inner {
  flex: 1;
  min-height: 200px;
  max-height: none;
  height: auto;
}
.wf-async-job-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.modal .m-ft > .wf-async-job-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}
.wf-async-job-ft-hint {
  margin: 0;
  width: 100%;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  text-align: left;
}
.wf-async-job-ft-btns {
  width: 100%;
  justify-content: flex-end;
}
.wf-progress-scroll { margin-top: 6px; }
.wf-step-desc { margin: 0 0 10px; font-size: 12px; line-height: 1.55; }
.wf-io-block { margin-bottom: 12px; }
.wf-io-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.wf-io-pre {
  margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #f8f9fb; font-size: 11px; line-height: 1.45; max-height: 160px;
  overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.wf-io-output { max-height: 200px; }
.bg-job-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.bg-job-detail .wf-job-progress {
  flex: 1;
  min-height: 200px;
  max-height: none;
}
.bg-jobs-panel { display: flex; flex-direction: column; gap: 12px; max-height: min(72vh, 640px); }
.bg-jobs-summary { margin: 0; font-size: 13px; line-height: 1.45; flex-shrink: 0; }
.bg-jobs-list {
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; flex: 1; min-height: 120px; padding-right: 4px;
}

.pipeline-tasks-table-wrap {
  overflow-x: auto;
  max-height: min(72vh, 640px);
  overflow-y: auto;
}
.pipeline-tasks-page .pipeline-tasks-table-wrap { max-height: none; }
table.pipeline-tasks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.pipeline-tasks-table thead th {
  position: sticky;
  top: 0;
  background: var(--bg, #fff);
  z-index: 1;
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.pipeline-tasks-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.pipeline-tasks-table tbody tr:hover { background: var(--bg-2, #f8f9fb); }
table.pipeline-tasks-table .col-time { width: 158px; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.pipeline-tasks-table .col-name { min-width: 100px; max-width: 180px; }
table.pipeline-tasks-table .col-type { width: 112px; }
table.pipeline-tasks-table .col-status { width: 92px; white-space: nowrap; }
table.pipeline-tasks-table .col-progress { width: 96px; white-space: nowrap; }
table.pipeline-tasks-table .col-msg {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
table.pipeline-tasks-table .col-act { width: 200px; }
table.pipeline-tasks-table .pipeline-task-step-ratio {
  font-size: 12px;
  margin-left: 6px;
}
table.pipeline-tasks-table .pipeline-task-pct {
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
table.pipeline-tasks-table .pipeline-task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
table.pipeline-tasks-table .pipeline-task-actions .btn { flex-shrink: 0; }
.pipeline-task-steps-row td { padding: 0 12px 12px !important; border-top: none !important; background: var(--bg-2, #f8f9fb); }
.pipeline-fine-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  line-height: 1.35;
}
.pipeline-fine-step {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--border, #e2e5eb);
  background: #fff;
  color: var(--text-muted, #5c6573);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pipeline-fine-step--done { border-color: #b7e4c7; background: #edf9f1; color: #1d6b3a; }
.pipeline-fine-step--rerun { cursor: context-menu; }
.osr-step-rerun-eligible { cursor: context-menu; }
.pipeline-step-ctx-menu {
  position: fixed;
  z-index: 10050;
  padding: 8px;
  background: var(--bg-1, #fff);
  border: 1px solid var(--border, #d8dce3);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.pipeline-step-ctx-menu[hidden] { display: none !important; }
.pipeline-fine-step--running { border-color: #9ec5fe; background: #eef4ff; color: #1a4fad; }
.pipeline-fine-step--failed { border-color: #f5b5b5; background: #fff0f0; color: #b42318; }
.pipeline-fine-step--waiting_async,
.pipeline-fine-step--retry_wait { border-color: #e6d49a; background: #fffbeb; color: #8a6400; }
.bg-job-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.bg-job-row--clickable {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.bg-job-row--clickable:hover { background: var(--bg-2, #f5f6f8); border-color: #d8dce3; }
.bg-job-row--clickable:focus { outline: 2px solid var(--primary, #2563eb); outline-offset: 2px; }
.bg-job-kv {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  align-items: start;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.bg-job-kv-lbl { color: var(--text-3); font-size: 12px; padding-top: 1px; }
.bg-job-kv-val { color: var(--text); min-width: 0; word-break: break-word; }
.bg-job-video-name { font-weight: 600; }
.bg-job-kv-overall .bg-job-overall-track {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.bg-job-kv-overall .dl-progress-bar { flex: 1; margin: 0; }
.bg-job-pct { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bg-job-pause-tag { margin-left: 8px; vertical-align: middle; }
.bg-job-kv-steps-hd { margin-bottom: 4px; }
.bg-job-steps-wrap { margin: 0 0 8px; max-height: 168px; overflow-y: auto; }
.bg-job-steps.osr-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .bg-job-steps.osr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bg-job-steps.osr-step { min-height: 48px; padding: 6px 7px 7px; }
.bg-job-steps-empty { margin: 4px 0 8px; font-size: 12px; }
.bg-job-cur-step { margin: 0 0 10px; font-size: 12px; line-height: 1.45; }
.bg-job-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== 走势图 ===== */
.trend-chart { width: 100%; display: block; }
.trend-chart .trend-chart-line { stroke-width: 2px; }
.trend-chart--compact .trend-chart-line { stroke-width: 1.5px; }
.trend-chart .trend-chart-gridline { stroke: #eef0f3; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.trend-chart-wrap { position: relative; cursor: crosshair; }
.trend-chart-wrap .trend-chart-tip {
  position: absolute; z-index: 24; pointer-events: none;
  min-width: 140px; max-width: 280px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,.97);
  box-shadow: 0 4px 16px rgba(0,0,0,.08); font-size: 12px; line-height: 1.45;
}
.trend-chart-tip-date { font-weight: 600; margin-bottom: 6px; color: var(--text); }
.trend-chart-tip-row { display: flex; align-items: center; gap: 6px; color: var(--text-2); margin-top: 2px; }
.trend-chart-tip-row .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.trend-chart-wrap--hover .trend-chart-dot { opacity: .35; }
.trend-chart-vline { stroke: var(--primary); stroke-width: 1px; stroke-dasharray: 4 3; opacity: .85; vector-effect: non-scaling-stroke; }
.dash-recent-remakes { margin-top: 16px; margin-bottom: 4px; }
.dash-recent-remakes .card-bd { padding-top: 14px; }
.dash-recent-remakes-grid.lv-blocks {
  margin: 0;
  padding: 0;
}
.dash-recent-remake-card {
  min-height: 0;
  cursor: default;
}
.dash-remake-work-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.dash-remake-work-card .bl-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.dash-remake-work-thumb-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 10px;
  min-height: 0;
}
.dash-remake-work-thumb-wrap .dash-recent-remake-vid {
  flex: none;
}
.dash-recent-remake-thumb {
  display: block;
}
.dash-remake-work-card .bl-row:last-child {
  margin-top: auto;
}
.dash-trends-section { margin-top: 16px; margin-bottom: 20px; }
.dash-trend-card .card-hd .t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dash-trend-bd { display: flex; flex-direction: column; gap: 0; }
.dash-trend-hint { margin: 0 0 12px; font-size: 12px; line-height: 1.45; }
.dash-trend-bd .trend-legend {
  display: flex; gap: 16px; font-size: 12px; color: var(--text-2);
  margin: 0 0 14px; flex-wrap: wrap;
}
.trend-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; flex-wrap: wrap; }
.trend-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dash-trend-bd .trend-chart-wrap { margin-top: 2px; }
.dash-trend-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.dash-trend-card--wide { grid-column: 1 / -1; }
.dash-trend-sub { font-size: 12px; color: var(--text-3); margin: 0; font-weight: 400; display: block; }
@media (max-width: 1100px) {
  .dash-trend-grid { grid-template-columns: 1fr; }
}

/* ===== 热点/账号 · 作品数据弹窗 ===== */
.tracked-data-modal { display: flex; flex-direction: column; gap: 20px; font-size: 13px; }
.tracked-data-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) {
  .tracked-data-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tracked-data-stat {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; text-align: center;
}
.tracked-data-stat .lbl { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.tracked-data-stat .val { font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tracked-data-trend-box {
  width: 50%; max-width: 420px; min-width: 260px;
  margin: 8px auto 12px; padding: 12px 14px 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fafbfc; box-sizing: border-box;
}
.tracked-data-trend-legend { margin-bottom: 6px; font-size: 11px; gap: 10px; justify-content: center; }
.tracked-data-trend-box .trend-chart { max-height: 152px; }
.tracked-data-trend-empty { padding: 12px 0; font-size: 12px; text-align: center; }
.tracked-data-trend-title { font-size: 13px; color: var(--text-2); margin-bottom: 8px; text-align: center; }
@media (max-width: 720px) {
  .tracked-data-trend-box { width: 100%; max-width: none; }
}
.tracked-data-section { border-top: 1px solid var(--border); padding-top: 16px; }
.tracked-data-hd { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.tracked-data-info { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tracked-data-cover { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; flex: none; }
.tracked-v-cover-td { width: 84px; vertical-align: middle; text-align: center; padding: 8px 6px; }
.tracked-v-cover-btn {
  border: none; background: transparent; padding: 0; margin: 0 auto; display: block;
  cursor: pointer; line-height: 0; border-radius: 8px;
}
.tracked-v-cover-btn:hover .tracked-v-cover,
.tracked-v-cover-btn:focus-visible .tracked-v-cover {
  border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.tracked-v-cover-btn.tracked-v-cover-ph:hover,
.tracked-v-cover-btn.tracked-v-cover-ph:focus-visible {
  border-color: var(--primary); color: var(--primary);
}
.tracked-v-cover {
  width: 72px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border);
  background: #0f172a; display: block; margin: 0 auto;
}
.tracked-v-cover-ph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 96px; border-radius: 8px; border: 1px dashed var(--border);
  color: var(--text-3); font-size: 12px; box-sizing: border-box;
}
.tracked-v-dur-td { font-size: 12px; color: var(--text-2); }
.hover-pop .hp-item-vid { display: flex; gap: 10px; align-items: flex-start; }
.hover-pop .hp-vid-cover-btn {
  flex: none; padding: 0; margin: 0; border: none; background: transparent;
  cursor: pointer; line-height: 0; border-radius: 8px;
}
.hover-pop .hp-vid-cover-btn:hover .hp-vid-cover,
.hover-pop .hp-vid-cover-btn:focus-visible .hp-vid-cover {
  border-color: var(--primary);
}
.hover-pop .hp-vid-cover {
  flex: none; width: 56px; height: 75px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); background: #0f172a; pointer-events: none;
}
.tracked-data-info .tracked-v-cover-btn .tracked-data-cover {
  width: 120px; height: 150px; display: block;
}
.hover-pop .hp-vid-body { flex: 1; min-width: 0; }
.tracked-data-meta { flex: 1; min-width: 200px; }
.tracked-data-title { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.tracked-data-lines { line-height: 1.85; }
.tracked-data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.tracked-data-remake { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.tracked-data-remake:last-child { border-bottom: none; }
.tracked-data-remake-hd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tracked-data-remake-title { font-weight: 600; }
.tracked-data-plan { margin-top: 8px; padding: 10px 12px; background: #f7f8fa; border-radius: 8px; line-height: 1.6; }
.tracked-data-plan .lbl { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }

/* ===== 音视智能体 ===== */
.agent-wrap { display: flex; gap: 16px; height: calc(100vh - 56px - 40px); }
.agent-side { width: 240px; flex: none; display: flex; flex-direction: column; }
.agent-side .chat-list { flex: 1; overflow-y: auto; padding: 8px; }
.chat-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.chat-item:hover { background: #f5f6f8; }
.chat-item.active { background: linear-gradient(135deg, rgba(255,122,61,.12), rgba(232,50,107,.12)); color: var(--primary-dark); font-weight: 600; }
.chat-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .del { color: var(--text-3); visibility: hidden; font-size: 15px; }
.chat-item:hover .del { visibility: visible; }
.chat-item .del:hover { color: var(--danger); }
.agent-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.msg-list { flex: 1; overflow-y: auto; padding: 20px; }
.msg { display: flex; margin-bottom: 16px; }
.msg.user { justify-content: flex-end; }
.msg .bubble {
  max-width: 72%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6;
  background: #f2f3f5; color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.msg.user .bubble { background: var(--primary-grad); color: #fff; }
.msg .bubble img, .msg .bubble video { max-width: 320px; border-radius: 8px; display: block; margin-top: 8px; }
.msg .bubble audio { margin-top: 8px; }
.msg .meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.agent-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.agent-input textarea {
  flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; resize: none; font-family: inherit; font-size: 14px; outline: none;
}
.agent-input textarea:focus { border-color: var(--primary); }

/* ===== 素材预览（列表/区块统一预览框：固定最大宽高，框内 contain） ===== */
.mat-thumb-btn {
  appearance: none; border: none; padding: 0; margin: 0; background: transparent;
  display: inline-block; cursor: zoom-in; border-radius: 8px; line-height: 0;
  vertical-align: middle;
}
.mat-thumb-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mat-thumb-cell { line-height: 0; }
.mat-block-card { min-width: 0; }
.mat-block-cover,
.mat-thumb-btn.mat-thumb-btn--box {
  --mat-frame-w: 132px;
  --mat-frame-h: 132px;
}
.mat-block-cover {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: calc(var(--mat-frame-h) + 16px); min-height: calc(var(--mat-frame-h) + 16px);
  margin-bottom: 10px; padding: 8px;
  background: #f5f6f8; border: 1px solid var(--border); border-radius: 10px;
  cursor: zoom-in; box-sizing: border-box;
}
.mat-block-cover .mat-block-img,
.mat-block-cover .bl-cover {
  width: var(--mat-frame-w); height: var(--mat-frame-h);
  max-width: var(--mat-frame-w); max-height: var(--mat-frame-h);
  object-fit: contain; display: block; border: none; border-radius: 6px;
}
.mat-thumb-btn.mat-thumb-btn--box {
  width: calc(var(--mat-frame-w) + 2px); height: calc(var(--mat-frame-h) + 2px);
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5f6f8; border: 1px solid var(--border);
  cursor: zoom-in; box-sizing: border-box;
}
.mat-thumb-btn.mat-thumb-btn--box .mat-thumb {
  width: var(--mat-frame-w); height: var(--mat-frame-h);
  max-width: var(--mat-frame-w); max-height: var(--mat-frame-h);
  object-fit: contain; border: none; border-radius: 4px; display: block;
}
.mat-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.mat-thumb-btn.mat-thumb-btn--box .mat-thumb { border: none; }
.mat-thumb-btn .mat-thumb { vertical-align: middle; }
.mat-prompt-hover { cursor: help; border-bottom: 1px dashed var(--border); }
.hover-pop.hp-mat-img-only {
  width: min(480px, calc(100vw - 24px));
  padding: 10px;
  z-index: 280;
  isolation: isolate;
}
.hover-pop.hp-mat-img-only .hp-mat-img {
  max-height: none;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hover-pop.hp-mat-img-only .hp-mat-img img { max-height: min(72vh, 640px); }
.hover-pop.hp-mat-prompt-pop {
  width: min(440px, calc(100vw - 24px)); max-height: min(420px, calc(100vh - 24px));
  overflow-y: auto; padding: 12px 14px;
}
.hp-mat-prompt-full {
  font-size: 13px; line-height: 1.55; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.upload-box {
  border: 1px dashed var(--border); border-radius: 8px; padding: 14px; text-align: center;
  color: var(--text-3); font-size: 13px; cursor: pointer;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); }
.upload-box img { max-width: 100%; max-height: 120px; border-radius: 6px; margin-top: 8px; }

.upload-dropzone {
  border: 1.5px dashed var(--border); border-radius: 12px; padding: 22px 16px;
  text-align: center; cursor: pointer; background: #fafbfc;
  transition: border-color .15s, background .15s, box-shadow .15s;
  outline: none;
}
.upload-dropzone:hover,
.upload-dropzone:focus-visible {
  border-color: var(--primary); background: #fff7f6;
}
.upload-dropzone.is-dragover {
  border-color: var(--primary); background: #fff1f0;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.12);
}
.upload-dropzone.has-file { cursor: default; padding: 16px 14px; }
.upload-dropzone-ico {
  width: 42px; height: 42px; color: var(--text-3); margin: 0 auto 10px; display: block;
}
.upload-dropzone:hover .upload-dropzone-ico,
.upload-dropzone.is-dragover .upload-dropzone-ico,
.upload-dropzone:focus-visible .upload-dropzone-ico { color: var(--primary); }
.upload-dropzone-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.upload-dropzone-sub { font-size: 12px; color: var(--text-3); line-height: 1.5; max-width: 320px; margin: 0 auto; }
.upload-dropzone-picked {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
}
.upload-dropzone-name {
  font-size: 14px; font-weight: 500; color: var(--text);
  max-width: min(100%, 280px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-dropzone-size { font-size: 12px; color: var(--text-3); }
.osr-dialogue-upload-field > label { margin-bottom: 8px; }
.osr-dialogue-upload-field .upload-dropzone { margin-top: 2px; }
.osr-dialogue-upload-field .upload-dropzone.is-full {
  opacity: 0.55; pointer-events: none; cursor: not-allowed;
}
.osr-dialogue-audio-list { margin-top: 12px; }
.osr-dialogue-audio-list-hd {
  font-size: 12px; color: var(--text-3); margin-bottom: 8px;
}
.osr-dialogue-audio-list-hd strong { color: var(--text); font-weight: 600; }
.osr-dialogue-audio-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.osr-dialogue-audio-row:last-child { margin-bottom: 0; }
.osr-dialogue-audio-seq {
  flex-shrink: 0; width: 22px; font-size: 12px; font-weight: 600;
  color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums;
}
.osr-dialogue-audio-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, #fff5f4 0%, #fff 100%);
  border: 1px solid rgba(255, 77, 79, 0.12);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.osr-dialogue-audio-ico svg { width: 20px; height: 20px; display: block; }
.osr-dialogue-audio-meta { flex: 1; min-width: 0; }
.osr-dialogue-audio-name {
  display: block; font-size: 13px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.osr-dialogue-audio-dur {
  display: block; font-size: 12px; color: var(--text-3); margin-top: 2px;
}
.osr-dialogue-audio-rm { flex-shrink: 0; }
.arm-usage-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 63, 63, 0.22);
  background: linear-gradient(135deg, #fff8f8 0%, #fff 55%);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.arm-usage-notice p { margin: 0; }
.arm-usage-notice p + p { margin-top: 8px; }
.arm-usage-notice strong { color: var(--text); font-weight: 600; }
.action-remake-form .arm-usage-notice { margin-bottom: 16px; }

.special-remake-form-source-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--panel, #fafafa);
}
.special-remake-form-source-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.special-remake-form-source-name {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.special-remake-form-source-badge { flex-shrink: 0; font-size: 11px; }
.special-remake-form-source-thumb-wrap { margin-bottom: 10px; }
.special-remake-form-source-local-vid {
  display: block;
  max-width: 220px;
  max-height: 124px;
  border-radius: 6px;
  background: #111;
}
.special-remake-form-source-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plot-wizard-nav {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #e8e8e8);
}
.plot-wizard-step {
  font-size: 13px;
  color: var(--muted, #888);
  padding: 4px 10px;
  border-radius: 6px;
}
.plot-wizard-step.is-active {
  color: var(--text, #222);
  font-weight: 600;
  background: var(--surface-2, #f5f5f5);
}
.plot-wizard-pane[hidden] { display: none !important; }
.face-talk-remake-form .ft-voice-radio {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}
.face-talk-remake-form .ft-voice-radio input { margin-right: 8px; }
.offscreen-talk-remake-form .ot-voice-radio {
  display: block;
  margin: 6px 0;
  cursor: pointer;
}
.offscreen-talk-remake-form .ot-voice-radio input { margin-right: 8px; }
.arm-attach-section .osr-field-hint { margin-bottom: 10px; }
.arm-attach-drop .upload-dropzone { margin-top: 0; }
.arm-attach-drop .upload-dropzone.is-full {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.arm-attach-list { margin-top: 14px; }
.arm-attach-list-hd {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.arm-attach-list-hd strong { color: var(--text); font-weight: 600; }
.arm-attach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .arm-attach-grid { grid-template-columns: 1fr; }
}
.arm-attach-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.arm-attach-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #fafafa 0%, #f3f4f6 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arm-attach-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.arm-attach-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arm-attach-cap {
  width: 100%;
  font-size: 13px;
  line-height: 1.45;
  min-height: 52px;
  resize: vertical;
  margin: 0;
}
.arm-attach-card-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.arm-attach-card-foot .arm-attach-del {
  color: var(--danger);
  border-color: rgba(245, 63, 63, 0.35);
}
.music-upload-form .field > label { margin-bottom: 8px; }
.remake-attach-bgm-form .field > label { margin-bottom: 8px; }
.remake-attach-bgm-kw-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.remake-attach-bgm-kw-row .input { flex: 1; min-width: 160px; }
.remake-attach-bgm-vol-row { display: flex; align-items: center; gap: 12px; }
.remake-attach-bgm-vol-row input[type="range"] { flex: 1; min-width: 120px; }
.remake-attach-bgm-vol-lbl { min-width: 40px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.remake-attach-bgm-form #bgmDlgPreviewVid { width: 100%; max-height: 42vh; background: #000; border-radius: 8px; }
.remake-recent-vid-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.remake-track-badge {
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.remake-track-badge--orig { color: #0958d9; background: #e6f4ff; border: 1px solid #91caff; }
.remake-track-badge--bgm { color: #531dab; background: #f9f0ff; border: 1px solid #d3adf7; }
.remake-track-badge--dub { color: #d46b08; background: #fff7e6; border: 1px solid #ffd591; }
.remake-track-badge--plain { color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); }
.remake-task-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.remake-task-source-lbl { font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remake-video-silent-bgm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}
.modal.remake-result-browser-modal {
  width: 80vw;
  max-width: 96vw;
  height: 80vh;
  max-height: 80vh;
}
.modal.remake-result-browser-modal .m-bd {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.remake-result-browser {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}
.remake-result-browser-list {
  width: 230px;
  flex-shrink: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding-right: 12px;
  box-sizing: border-box;
}
.remake-result-browser-list-hint { margin: 0 0 10px; font-size: 12px; flex-shrink: 0; }
.remake-result-browser-list-mount {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.remake-result-browser-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg);
  cursor: pointer;
}
.remake-result-browser-list-item:hover { border-color: var(--primary); }
.remake-result-browser-list-item.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.12);
}
.remake-result-browser-list-thumb-wrap { width: 100%; }
.remake-result-browser-list-thumb {
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  border-radius: 6px;
  background: #111;
}
.remake-result-browser-list-title { font-size: 12px; line-height: 1.35; }
.remake-result-browser-list-time { font-size: 11px; }
.remake-result-browser-detail {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.remake-result-browser-detail-head { flex-shrink: 0; }
.remake-result-browser-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.remake-result-browser-detail-label { font-size: 14px; line-height: 1.4; }
.remake-result-browser-video-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.remake-result-browser-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}
.remake-result-browser-detail-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.bgm-music-pick-list {
  max-height: 36vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bgm-music-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--border);
}
.bgm-music-pick-row:last-child { border-bottom: none; }
.bgm-music-pick-row [data-act="bgm-play"].is-playing,
.bgm-music-pick-row [data-arm-music-play].is-playing {
  border-color: var(--primary);
  color: var(--primary);
}
.bgm-music-pick-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.bgm-music-pick-radio input[type="radio"] {
  flex: none;
  margin: 0;
}
.bgm-music-pick-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgm-music-pick-dur { flex: none; font-size: 12px; }
.remake-video-silent-bgm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.remake-task-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* ===== 页签（下划线式；须重置 button 默认边框/背景） ===== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs .tab {
  appearance: none;
  padding: 10px 18px;
  margin: 0;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tabs .tab:hover { color: var(--text); background: rgba(0, 0, 0, 0.02); }
.tabs .tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  font-weight: 600;
  background: transparent;
}
.tabs .tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* 加载 */
.loading-box { text-align: center; padding: 40px; color: var(--text-3); font-size: 13px; }
.spinner {
  display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .sidebar { width: 64px; }
  .sidebar .brand .name, .sidebar .brand .tag, .menu-item .txt { display: none; }
  .main { margin-left: 64px; }
  .msg .bubble { max-width: 88%; }
  .modal, .modal.lg, .modal.xl { width: 94vw; }
}

/* ===== 对话框（alert / confirm） ===== */
.dlg { display: flex; gap: 14px; align-items: flex-start; }
.dlg-icon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.dlg-icon svg { width: 20px; height: 20px; }
.dlg-icon.info { background: #fff1f0; color: var(--primary); }
.dlg-icon.ok { background: #e8f7ef; color: var(--success); }
.dlg-icon.warn { background: #fffbe6; color: #faad14; }
.dlg-icon.danger { background: #fff1f0; color: var(--danger); }
.dlg-msg { font-size: 14px; line-height: 1.7; padding-top: 7px; word-break: break-word; flex: 1; }

/* ===== 自定义下拉 select ===== */
select.native-hidden { display: none !important; }
.ui-select { display: inline-block; position: relative; min-width: 140px; max-width: 100%; vertical-align: middle; }
.field .ui-select, form .ui-select { display: block; width: 100%; }
.ui-select.grow { flex: 1; display: block; width: 100%; }
.us-cur {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; min-height: 38px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  cursor: pointer; font-size: 14px; color: var(--text); transition: border-color .15s;
  user-select: none;
}
.us-cur:hover, .ui-select.open .us-cur { border-color: var(--primary); }
.us-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-empty .us-text { color: var(--text-3); }
.us-arrow { width: 14px; height: 14px; color: var(--text-3); flex: none; transition: transform .15s; }
.ui-select.open .us-arrow { transform: rotate(180deg); }
.ui-select.disabled .us-cur { background: #f5f6f8; cursor: not-allowed; color: var(--text-3); }
.toolbar .ui-select { min-width: 150px; }
.toolbar .us-cur {
  padding: 10px 12px;
  min-height: 42px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.25;
}
.us-panel {
  position: fixed; z-index: 500; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; overflow: hidden;
}
.us-search { padding: 8px; border-bottom: 1px solid var(--border); }
.us-search input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px;
  outline: none; font-size: 13px; font-family: inherit;
}
.us-search input:focus { border-color: var(--primary); }
.us-opts { max-height: 260px; overflow-y: auto; padding: 4px; }
.us-opt {
  padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.us-opt:hover { background: #f5f6f8; }
.us-opt.active {
  color: var(--primary-dark); font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 122, 61, .10), rgba(232, 50, 107, .10));
}
.us-none { padding: 18px; text-align: center; color: var(--text-3); font-size: 12px; }

/* ===== ListView 列表组件 ===== */
.lv { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.lv-bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-top: 1px solid #f0f1f3;
}
.lv-total { font-size: 12px; color: var(--text-3); }
.lv-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border: 1px solid var(--border); background: #fff; border-radius: 6px;
  font-size: 12px; color: var(--text-2); cursor: pointer; transition: all .15s;
}
.lv-btn:hover { border-color: var(--primary); color: var(--primary); }
.lv-btn svg { width: 14px; height: 14px; }
.lv-body { flex: 1; min-height: 0; overflow: auto; }
.lv-foot {
  flex: none;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  z-index: 4;
}
.lv-size { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.lv-size .ui-select { min-width: 96px; }
.lv-size .us-cur { padding: 4px 10px; min-height: 28px; font-size: 12px; }
.lv-pager { display: inline-flex; align-items: center; gap: 6px; }
.lv-pager button {
  min-width: 28px; height: 28px; border: 1px solid var(--border); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 12px; color: var(--text-2); padding: 0 8px;
}
.lv-pager button.cur { background: var(--primary-grad); border: none; color: #fff; }
.lv-pager button[disabled] { opacity: .4; cursor: not-allowed; }

/* 表格模式：固定表头 + 首列左冻结 + 操作列右冻结 */
.lv-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.lv-table th { position: sticky; top: 0; z-index: 6; background: #fafbfc; }
.lv-table th .th-t { display: block; overflow: hidden; text-overflow: ellipsis; }
.lv-table td { background: #fff; overflow: hidden; text-overflow: ellipsis; }
.lv-table tbody tr:hover td { background: #fafbfc; }
.lv-table .sticky-l { position: sticky; left: 0; z-index: 5; box-shadow: 1px 0 0 0 var(--border); }
.lv-table .sticky-r { position: sticky; z-index: 5; box-shadow: -1px 0 0 0 var(--border); }
.lv-table th.sticky-l, .lv-table th.sticky-r { z-index: 8; }
.col-rz {
  position: absolute; top: 0; right: 0; width: 12px; height: 100%;
  cursor: col-resize; z-index: 12; border-radius: 2px; touch-action: none;
}
.col-rz:hover { background: rgba(255, 77, 79, .28); }
.modal .col-rz { z-index: 24; }
body.ui-col-resizing { cursor: col-resize !important; user-select: none; }
body.ui-col-resizing * { cursor: col-resize !important; }
table.ui-table-enhanced:not(.lv-table) thead th { overflow: visible; }

/* 列设置面板 */
.lv-colpanel {
  position: absolute; top: 42px; right: 12px; z-index: 60; width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); overflow: hidden;
}
.lcp-t { padding: 10px 12px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.lcp-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.lcp-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px;
  border-radius: 6px; font-size: 13px; cursor: grab;
}
.lcp-item:hover { background: #f5f6f8; }
.lcp-item.dragging { opacity: .4; }
.lcp-grip { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.lcp-item label { display: flex; align-items: center; gap: 7px; cursor: pointer; flex: 1; }
.lcp-item input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; }

/* 区块模式：按卡片最小宽度 auto-fill，容器变宽则每行块数自动增减 */
.lv-block-body { padding: 14px 16px; }
.lv-blocks {
  --lv-block-min: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--lv-block-min)), 1fr));
  gap: 14px;
  align-items: stretch;
}
.lv-blocks > .lv-card {
  grid-column: auto;
  min-width: 0;
  width: 100%;
}
.lv-blocks.lv-block-span-12,
.lv-blocks.lv-block-span-1 {
  grid-template-columns: 1fr;
}
.lv-card {
  display: flex; flex-direction: column; height: 100%; min-height: 0; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  background: #fff; transition: box-shadow .15s;
}
.lv-card:hover { box-shadow: var(--shadow); }
.lv-block-body .lv-card.lv-card--block-hit { cursor: pointer; }
.lv-block-body .lv-card.lv-card--block-hit .bl-acts,
.lv-block-body .lv-card.lv-card--block-hit button,
.lv-block-body .lv-card.lv-card--block-hit a[href],
.lv-block-body .lv-card.lv-card--block-hit label.switch { cursor: default; }
.lv-block-body .lv-card.lv-card--block-hit .bl-acts button,
.lv-block-body .lv-card.lv-card--block-hit .bl-acts a[href],
.lv-block-body .lv-card.lv-card--block-hit button[data-act],
.lv-block-body .lv-card.lv-card--block-hit .btn-link,
.lv-block-body .lv-card.lv-card--block-hit .remake-recent-vid-btn,
.lv-block-body .lv-card.lv-card--block-hit .remake-recent-vid-more,
.lv-block-body .lv-card.lv-card--block-hit .remake-source-vid-btn { cursor: pointer; }
/* 自定义 block 模板：单层根节点撑满卡片，操作区贴底对齐 */
.lv-card > :only-child {
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%;
}
.lv-card .bl-acts,
.lv-card .remake-act-col {
  margin-top: auto; flex-shrink: 0;
  padding-top: 8px; border-top: 1px dashed var(--border);
}
.lv-card .bl-acts {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
}
.bl-title {
  font-weight: 700; font-size: 16px; line-height: 1.45; letter-spacing: 0.01em;
  color: var(--text); margin-bottom: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-card .bl-title {
  width: 100%; min-width: 0; max-width: 100%;
}
.lv-card .bl-title .btn-link,
.bl-title .btn-link {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: var(--text);
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.lv-card .bl-title .btn-link:hover,
.bl-title .btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.bl-title .tag {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  vertical-align: baseline;
}
.bl-row {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13px; padding: 6px 0;
}
/* 区块模式字段名（来源、模型、状态等），非卡片主标题 */
.lv-card .bl-k,
.bl-k {
  flex: none;
  width: 5.5em;
  min-width: 5.5em;
  max-width: 7.5em;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.lv-card .bl-v,
.bl-v {
  flex: 1; min-width: 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis;
}
.bl-acts { /* 间距与分隔线见 .lv-card .bl-acts */ }
.bl-cover { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; display: block; }
.bl-mime {
  display: flex; align-items: center; justify-content: center;
  background: #f5f6f8; color: var(--text-3); font-size: 14px;
}

/* 镜头列表：场景/人物/道具纵向排列，描述可折行 */
.shot-list-grid .shot-prompt-cell { max-width: 260px; font-size: 12px; line-height: 1.55; }
.shot-list-grid .shot-asset-td { vertical-align: top; min-width: 130px; max-width: 200px; }
.shot-asset-stack { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.shot-asset-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
.shot-asset-item .remake-thumb,
.video-asset-card .remake-thumb {
  width: 56px; height: 56px; object-fit: contain; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-2);
}
.shot-asset-stack .shot-asset-item:not(:first-child) {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border);
}
.shot-asset-desc {
  font-size: 12px; line-height: 1.55; color: var(--text-2);
  white-space: normal; word-break: break-word; width: 100%; max-width: 180px;
}
.shot-asset-from { font-size: 11px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.lv-act-col,
.pipeline-task-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
}
.lv-act-col .lv-act-btn,
.tracked-v-act-col .lv-act-btn,
.remake-act-col .lv-act-btn {
  flex: none; white-space: nowrap;
  padding: 4px 10px; font-size: 14px; line-height: 1.35;
}
.remake-act-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.remake-act-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.remake-act-primary { align-items: center; }
.remake-act-secondary { align-items: center; }
.remake-act-col .remake-act-btn,
.tracked-v-act-col .tracked-v-act-btn,
.bl-acts .tracked-v-act-btn,
.bl-acts .lv-act-btn {
  padding: 4px 10px; font-size: 14px; line-height: 1.35;
}
.remake-more-wrap { position: relative; display: inline-flex; align-items: center; }
.remake-more-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 132px; max-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  overflow-y: auto; overflow-x: hidden;
}
.remake-more-pop[hidden] { display: none !important; }
.remake-more-pop.row-more-pop-opening { pointer-events: none; }
.remake-more-pop.row-more-pop-portal {
  position: fixed !important;
  right: auto;
  z-index: 280;
}
.lv-table td.tracked-v-act-td,
.lv-table td:has(.remake-more-wrap) {
  overflow: visible;
}
.tracked-v-act-col,
.bl-acts.lv-act-col {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
}
.tracked-v-act-col .tracked-v-act-btn,
.tracked-v-act-col .lv-act-btn {
  flex: none; white-space: nowrap;
}
.lv-table td:has(.lv-act-col) {
  overflow: visible;
}
.tracked-more-toggle {
  min-width: 32px; padding-left: 6px; padding-right: 6px; font-size: 16px; line-height: 1;
}
.remake-more-pop .btn.remake-act-btn {
  justify-content: flex-start; width: 100%; text-align: left;
  padding: 7px 12px; font-size: 15px; white-space: nowrap;
}
.lv-block-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.lv-block-card .lv-block-section,
.lv-block-card .va-block-section,
.va-block-card .lv-block-section,
.va-block-card .va-block-section {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px dashed #e8eaee;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.018);
}
.lv-block-card .lv-block-section-title,
.lv-block-card .va-block-section-title,
.va-block-card .lv-block-section-title,
.va-block-card .va-block-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.lv-block-section .kw-trend-mini {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}
.lv-block-card .va-block-k,
.va-block-card .va-block-k {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
}
.lv-block-card .va-block-v,
.va-block-card .va-block-v {
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.lv-block-card .va-block-summary-grid,
.va-block-card .va-block-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.lv-block-card .va-block-summary-item--wide,
.va-block-card .va-block-summary-item--wide {
  grid-column: 1 / -1;
}
.lv-block-card .va-block-media-row,
.va-block-card .va-block-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}
.lv-block-card .va-block-media-col-h,
.va-block-card .va-block-media-col-h {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 8px;
}
.lv-block-card .va-block-media-col-v,
.va-block-card .va-block-media-col-v {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.lv-block-card .va-block-media-scroll.remake-recent-videos-scroll,
.va-block-card .va-block-media-scroll.remake-recent-videos-scroll {
  gap: 10px;
  padding: 2px 0 4px;
  min-height: 76px;
  align-items: flex-start;
  flex-wrap: wrap;
  overflow-x: auto;
  max-width: 100%;
}
.lv-block-card .remake-source-vid-thumb,
.lv-block-card .remake-recent-vid-thumb,
.lv-block-card .video-list-poster,
.va-block-card .remake-source-vid-thumb,
.va-block-card .remake-recent-vid-thumb,
.va-block-card .video-list-poster {
  height: 72px;
  width: auto;
}
.lv-block-card .remake-source-vid-btn,
.lv-block-card .remake-recent-vid-btn,
.va-block-card .remake-source-vid-btn,
.va-block-card .remake-recent-vid-btn {
  border-radius: 8px;
}
.lv-block-card .va-block-foot-meta,
.va-block-card .va-block-foot-meta {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.lv-block-card .bl-row,
.va-block-card .bl-row { padding: 5px 0; }
.lv-block-card .bl-row--acts,
.lv-block-card .bl-acts,
.va-block-card .bl-row--acts {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e8eaee;
}
@media (max-width: 560px) {
  .lv-block-card .va-block-media-row,
  .va-block-card .va-block-media-row {
    grid-template-columns: 1fr;
  }
  .lv-block-card .va-block-summary-grid,
  .va-block-card .va-block-summary-grid {
    grid-template-columns: 1fr;
  }
}
.remake-block-card .bl-title {
  margin-bottom: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.remake-list-title-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.remake-list-title-text,
.remake-list-title-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.lv-card .remake-list-title-btn.btn-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.lv-card .remake-list-title-btn.btn-link:hover {
  color: var(--primary-dark);
}
.remake-list-title-btn.hot-v-title {
  max-width: 100%;
  white-space: nowrap;
  font-weight: 600;
}
.lv-table td .remake-list-title-wrap {
  width: 100%;
  max-width: 100%;
}
.remake-block-card .remake-act-col { width: 100%; }
.remake-block-card .bl-row--task .bl-v {
  display: flex; justify-content: flex-start; align-items: center; text-align: left;
}
.remake-block-card .bl-row--acts { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.remake-block-card .bl-row--acts .bl-v { overflow: visible; }
.remake-block-card .bl-row--acts .remake-act-col { border-top: none; margin-top: 0; padding-top: 0; }
.remake-result-stack .btn-link { white-space: nowrap; font-size: 12px; }
.remake-result-stack .remake-task-link { padding-left: 0; padding-right: 0; letter-spacing: -0.02em; }
.shot-modal-wrap { display: flex; flex-direction: column; min-height: 0; max-height: min(72vh, 720px); }
.shot-modal-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.shot-modal-tabs .shot-list-copy-all { margin-left: auto; flex-shrink: 0; }
.shot-tab {
  padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.shot-modal-tabs .seg-btn-group > .shot-tab {
  padding: 8px 16px;
  font-size: 13px;
}
.shot-tab-panel { flex: 1; min-height: 0; overflow: auto; }
.shot-tab-panel[hidden] { display: none !important; }
.shot-list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 10px;
}
.shot-list-copy-hint { font-size: 12px; }
.video-assets-section { margin-bottom: 20px; }
.vas-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.video-assets-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.video-asset-card { max-width: none; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.video-asset-card .shot-asset-desc { max-width: none; }

.remake-wizard { position: relative; }
.remake-wizard-steps {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.remake-wizard-steps span {
  color: var(--text-3); padding: 4px 0; border-bottom: 2px solid transparent;
}
.remake-wizard-steps span.on {
  color: var(--primary); font-weight: 600; border-bottom-color: var(--primary);
}
.remake-hint { margin: 0 0 12px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.remake-textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px;
  line-height: 1.55; resize: vertical; min-height: 120px;
}
.remake-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.12); }
.remake-intent-panel .field label { font-weight: 600; margin-bottom: 8px; display: block; }
.remake-intent-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.remake-intent-summary {
  margin: 12px 0; padding: 10px 12px; background: #fafafa; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px;
}
.remake-intent-summary .label { font-weight: 600; color: var(--text-2); display: block; margin-bottom: 6px; }
.remake-intent-summary p { margin: 0; color: var(--text); line-height: 1.5; white-space: pre-wrap; }
.remake-step3-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.remake-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 12px;
}
.remake-toolbar-title { font-weight: 600; font-size: 14px; }
.remake-table-wrap {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff;
}
.remake-asset-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.remake-asset-table thead { background: #f7f8fa; position: sticky; top: 0; z-index: 1; }
.remake-asset-table th,
.remake-asset-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top;
  text-align: left;
}
.remake-asset-table tbody tr:hover { background: #fafafa; }
.remake-asset-table tbody tr:last-child td { border-bottom: none; }
.remake-asset-table .col-chk { width: 44px; }
.remake-asset-table .col-kind { width: 72px; white-space: nowrap; }
.remake-asset-table .col-desc { min-width: 160px; max-width: 240px; line-height: 1.45; word-break: break-word; }
.remake-asset-table .col-img { width: 80px; }
.remake-asset-table .col-prompt { min-width: 200px; max-width: 280px; }
.remake-asset-table .col-reason { min-width: 120px; max-width: 180px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.remake-asset-table .col-act { width: 108px; min-width: 108px; white-space: normal; }
.remake-asset-table .col-act .remake-act-col { gap: 4px; }
.remake-asset-table .col-act .btn-sm { padding: 5px 10px; font-size: 15px; width: 100%; justify-content: center; }
.remake-thumb-btn {
  display: inline-block; padding: 0; margin: 0; border: none; background: transparent;
  cursor: zoom-in; line-height: 0; border-radius: 6px;
}
.remake-thumb-btn:hover .remake-thumb { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.15); }
.remake-img-preview-wrap { text-align: center; padding: 8px 0; }
.remake-img-preview {
  max-width: 100%; max-height: min(72vh, 720px); object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2);
}
.remake-asset-table .rw-asset-prompt {
  width: 100%; box-sizing: border-box; min-height: 72px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 12px; line-height: 1.45; resize: vertical;
}
.remake-asset-table .rw-asset-prompt:focus { border-color: var(--primary); outline: none; }
.tag-scene { background: #e8f4ff; color: #1677ff; }
.tag-person { background: #f0f5ff; color: #2f54eb; }
.tag-prop { background: #fff7e6; color: #d48806; }
.remake-asset-table .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.remake-no-match { color: var(--text-3); font-size: 12px; }
.remake-img-cell { display: flex; align-items: center; justify-content: center; }
.remake-chk { display: inline-flex; align-items: center; cursor: pointer; }
.remake-chk input { margin: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.remake-prod-card-main { display: flex; align-items: center; gap: 14px; }
.remake-prod-thumb .remake-thumb { width: 64px; height: 64px; }
.remake-prod-name { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.remake-wizard-progress-overlay {
  position: absolute; inset: 0; z-index: 5; background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  border-radius: 8px;
}
.remake-wizard-progress-overlay .dl-progress { width: 100%; max-width: 420px; }
.remake-wizard-layer {
  position: absolute; inset: 0; z-index: 6; background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  display: flex; flex-direction: column; min-height: 0; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.remake-wizard-layer .rwl-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600;
}
.remake-wizard-layer .rwl-bd { flex: 1; overflow: auto; padding: 16px; min-height: 0; }
.remake-wizard-layer .rwl-ft {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}
.remake-wizard-body { min-height: 240px; }
.remake-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); vertical-align: middle; background: var(--bg-2);
}
.remake-asset-scroll, .remake-shots-scroll { max-height: 52vh; overflow: auto; }
.remake-prod-card {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fafafa; margin-bottom: 12px;
}
.remake-step4 .remake-shots-scroll { margin-top: 12px; }
.remake-shot-block {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
  background: #fff;
}
.remake-shot-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  font-weight: 600; margin-bottom: 12px; font-size: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.remake-shot-head-title { flex-shrink: 0; }
.remake-shot-video-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 400;
}
.remake-shot-vid-empty { font-size: 12px; color: var(--text-3); font-weight: 400; }
.remake-video-preview-wrap { display: flex; justify-content: center; padding: 8px 0; }
.remake-video-preview {
  max-width: 100%; max-height: 70vh; border-radius: 8px; background: #000;
}
.remake-shot-block .field label { font-weight: 600; font-size: 13px; }
.remake-shot-block .rw-shot-np {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px; line-height: 1.5;
}
.remake-shot-asset {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 10px; padding: 8px 10px; background: #fafafa; border-radius: 8px; font-size: 13px;
}
.remake-shot-prompt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 14px; }
@media (max-width: 720px) { .remake-shot-prompt-pair { grid-template-columns: 1fr; } }
.remake-shot-orig-prompt {
  font-size: 13px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; word-break: break-word;
  padding: 8px 10px; background: #fafafa; border: 1px solid var(--border); border-radius: 8px; min-height: 72px;
}
.remake-shot-assets-title { font-size: 13px; font-weight: 600; margin: 4px 0 10px; color: var(--text-2); }
.remake-shot-asset-v2 {
  margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fafafa;
}
.remake-shot-asset-v2 .remake-shot-asset-title { margin-bottom: 10px; }
.remake-shot-asset-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start;
}
@media (max-width: 720px) { .remake-shot-asset-cols { grid-template-columns: 1fr; } }
.remake-shot-asset-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 6px;
}
.remake-shot-asset-desc {
  margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--text); word-break: break-word;
}
.remake-shot-asset-img { margin-bottom: 8px; }
.remake-shot-asset-new .rw-shot-asset-prompt {
  width: 100%; box-sizing: border-box; min-height: 56px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 12px; line-height: 1.45; resize: vertical;
  margin-bottom: 8px;
}
.remake-shot-asset-new .remake-act-col { margin-top: 4px; }
.remake-shot-asset-new .remake-act-col .btn-sm { width: 100%; justify-content: center; }
.remake-mat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
.remake-mat-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.remake-mat-foot {
  display: flex; gap: 8px; justify-content: flex-end; width: 100%;
}
.remake-mat-pick {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px; cursor: pointer;
  text-align: center; font-size: 12px; transition: border-color .15s, box-shadow .15s;
}
.remake-mat-pick:hover { border-color: var(--primary); }
.remake-mat-pick.selected {
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.18);
  background: #fff7f6;
}
.remake-mat-pick .remake-thumb { width: 100%; height: 80px; display: block; margin: 0 auto 6px; }
.remake-mat-pick .remake-mat-name {
  display: block; margin-bottom: 4px; line-height: 1.4; word-break: break-word;
}
.remake-mat-pick .rw-mat-preview { font-size: 12px; padding: 0; }

.remake-result-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 2px 0;
}
.remake-result-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.remake-result-play {
  text-align: left;
  white-space: normal;
  line-height: 1.45;
  max-width: 100%;
}

.modal.hypit-chat-modal {
  width: 80vw;
  height: 80vh;
  max-height: 80vh;
}
.modal.hypit-chat-modal .m-bd {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hypit-chat-wrap {
  position: relative;
  display: flex; gap: 16px; width: 100%; flex: 1; min-height: 0;
}
.hypit-inline-panel {
  position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hypit-inline-panel-inner {
  width: min(420px, 100%); max-height: 100%; overflow: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column;
}
.hypit-inline-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px;
}
.hypit-inline-x {
  border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-3);
}
.hypit-inline-panel-bd { padding: 14px; }
.hypit-inline-panel-ft {
  padding: 10px 14px 14px; display: flex; justify-content: flex-end; gap: 8px;
  border-top: 1px solid var(--border);
}
.hypit-chat-left {
  flex: 0 0 280px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0;
  overflow-y: auto;
}
.hypit-chat-right {
  flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0;
}
.hypit-brand {
  font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em;
}
.hypit-video-box {
  background: var(--bg-2); border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden; aspect-ratio: 9 / 16; max-height: 320px; display: flex; align-items: center; justify-content: center;
}
.hypit-video-box video { width: 100%; height: 100%; object-fit: contain; }
.hypit-video-ph { font-size: 13px; color: var(--text-3); padding: 16px; text-align: center; }
.hypit-progress {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 12px; background: var(--bg-2);
}
.hypit-progress-head { margin-bottom: 6px; color: var(--text); font-size: 13px; line-height: 1.45; font-weight: 500; }
.hypit-progress-meta { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.hypit-progress-bar {
  height: 6px; border-radius: 3px; background: var(--border); overflow: hidden;
}
.hypit-progress-fill { height: 100%; background: var(--primary); transition: width 0.25s ease; }
.hypit-progress-failed { color: var(--danger, #c0392b); font-weight: 500; }
.hypit-log {
  margin: 8px 0 0; max-height: 120px; overflow: auto; font-size: 11px; line-height: 1.4;
  white-space: pre-wrap; color: var(--text-3);
}
.hypit-msg-list {
  flex: 1; min-height: 0; overflow-y: auto; padding: 8px 4px;
  border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px;
}
.hypit-msg-list .msg.hypit-trace .bubble {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.45; white-space: pre-wrap;
  background: var(--bg-2); color: var(--text-2); max-height: 280px; overflow-y: auto;
}
.hypit-msg-list .msg.hypit-trace .meta { font-size: 11px; color: var(--text-3); }
.hypit-chat-tools {
  flex-shrink: 0; display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.hypit-chat-input {
  flex-shrink: 0; display: flex; gap: 8px; align-items: flex-end; margin-top: auto;
}
.hypit-chat-input textarea {
  flex: 1; min-height: 56px; resize: vertical; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); font-size: 14px;
}
.hypit-mat-pick-wrap { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.hypit-mat-pick {
  text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-2); cursor: pointer; font-size: 13px;
}
.hypit-mat-pick:hover { border-color: var(--primary); }

.hypit-cfg-h {
  margin: 20px 0 10px; font-size: 14px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.hypit-cfg-h:first-of-type { margin-top: 0; }
@media (max-width: 860px) {
  .hypit-chat-wrap { flex-direction: column; max-height: none; }
  .hypit-chat-left { flex: none; width: 100%; }
}

.remake-video-preview-wrap { display: flex; flex-direction: column; gap: 12px; }
.remake-video-preview { width: 100%; max-height: 42vh; background: #000; border-radius: 8px; object-fit: contain; }
.remake-video-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}
.remake-video-usage-summary {
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2, #f5f6f8);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.remake-usage-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.remake-usage-summary-k {
  font-weight: 600;
  color: var(--text-1);
  min-width: 4.5em;
}
.remake-usage-summary-v { color: var(--text-2); }
.remake-usage-summary-loading { margin: 0; font-size: 12px; }
.remake-merge-segments-hint { font-size: 12px; line-height: 1.5; padding: 0 2px; }
.remake-preview-foot { width: 100%; }
.remake-remerge-progress {
  padding: 12px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--bg-2, #f5f6f8);
}
.remake-remerge-progress .dl-progress-stage { min-height: 0; margin-bottom: 10px; font-size: 13px; font-weight: 500; }
.remake-remerge-progress .dl-progress-bar { height: 10px; }
.remake-prompt-trace-section {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.remake-prompt-trace-heading { margin: 0; font-size: 14px; font-weight: 600; }
.remake-prompt-trace-mount { flex: 1; min-height: 120px; overflow-y: auto; }
.remake-prompt-trace-toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 8px;
}
.remake-prompt-trace-list { display: flex; flex-direction: column; gap: 8px; }
.remake-prompt-trace-item {
  border: 1px solid var(--border); border-radius: 8px; padding: 0 10px 8px; background: var(--bg-2);
}
.remake-prompt-trace-item summary {
  cursor: pointer; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.remake-prompt-trace-item summary .remake-prompt-trace-copy-item { margin-left: auto; font-size: 12px; }
.remake-prompt-trace-label-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.remake-prompt-trace-label-row .remake-prompt-trace-label { margin-bottom: 0; }
.remake-prompt-trace-item summary::-webkit-details-marker { display: none; }
.remake-prompt-trace-kind { font-size: 11px; }
.remake-prompt-trace-step { font-size: 11px; flex: 1 1 auto; min-width: 120px; }
.remake-prompt-trace-time { font-size: 11px; }
.remake-prompt-trace-body { display: flex; flex-direction: column; gap: 10px; }
.remake-prompt-trace-metrics {
  font-size: 12px; line-height: 1.45; color: var(--text-2); padding: 6px 8px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--bg);
}
.remake-prompt-trace-label { font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text-2); }
.remake-prompt-trace-pre {
  margin: 0; padding: 8px 10px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; max-height: 220px; overflow: auto;
}
.remake-prompt-trace-item--failed {
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.07);
}
.remake-prompt-trace-item--failed summary {
  color: #b91c1c;
  font-weight: 600;
}
.remake-prompt-trace-fail-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: #c0392b;
  border-radius: 4px;
}
.remake-prompt-trace-label--failed { color: #b91c1c; }
.remake-prompt-trace-pre--failed {
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(192, 57, 43, 0.06);
  color: #7f1d1d;
}
.remake-trace-failure-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.08);
}
.remake-trace-failure-banner-title {
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 6px;
}
.remake-trace-failure-banner-pre {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow: auto;
  color: #7f1d1d;
}
.remake-trace-media-strip-wrap { margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.remake-trace-media-strip-row { display: flex; flex-direction: column; gap: 6px; }
.remake-trace-media-strip-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }
.remake-trace-media-strip {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.remake-trace-media-strip--empty {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.remake-trace-media-cell {
  display: inline-flex; cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--bg);
}
.remake-trace-media-thumb {
  display: block; width: 72px; height: 72px; object-fit: cover;
}
.remake-trace-media-popover {
  position: fixed; z-index: 10060;
  max-width: min(420px, 92vw);
  max-height: min(360px, 80vh);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  pointer-events: none;
}
.remake-trace-media-popover img,
.remake-trace-media-popover video {
  display: block; max-width: 100%; max-height: 320px; object-fit: contain;
}
.remake-tasks-modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 10px;
}
.remake-tasks-modal-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 10px;
}
.remake-tasks-modal-meta { margin: 0; font-size: 12px; flex: none; }
.remake-tasks-loading,
.remake-tasks-empty { margin: 0; padding: 8px 0; font-size: 13px; }
.remake-task-table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.remake-tasks-modal.modal.list {
  width: 80vw;
  max-width: min(80vw, 1200px);
}
.remake-task-table {
  width: 100%;
  min-width: 1240px;
}
.remake-task-table th,
.remake-task-table td {
  vertical-align: top;
  font-size: 13px;
}
.remake-task-table th .th-t {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.remake-task-table .col-task-time {
  width: 144px;
  white-space: nowrap;
}
.remake-task-table .col-task-mode {
  width: 120px;
  max-width: 140px;
  word-break: break-word;
}
.remake-task-table .col-task-prompt {
  min-width: 140px;
  max-width: 220px;
}
.remake-task-table .col-task-usage-remake,
.remake-task-table .col-task-usage-analysis {
  width: 108px;
  min-width: 100px;
  font-size: 12px;
}
.remake-task-usage-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}
.remake-task-usage-dur { font-size: 11px; }
.remake-task-prompt-cell {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: default;
}
.remake-task-table .col-task-status {
  width: 88px;
  white-space: nowrap;
}
.remake-task-table .col-task-fail {
  min-width: 120px;
  max-width: 200px;
}
.remake-task-table .col-task-video-model {
  width: 140px;
  max-width: 200px;
  word-break: break-word;
  font-size: 12px;
  color: var(--text-2);
}
.remake-task-table .col-task-result {
  width: 120px;
}
.remake-task-table .col-task-act {
  width: 96px;
  min-width: 96px;
  text-align: right;
}
.remake-task-fail-cell { word-break: break-word; }
.remake-task-fail-step { font-weight: 600; color: var(--text-2); margin-bottom: 4px; font-size: 12px; }
.remake-task-fail-reason {
  font-size: 12px;
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.remake-task-result-cell { min-width: 0; }
.remake-task-result-preview {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.remake-task-list-thumb {
  width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #000;
}
.remake-recent-videos-scroll {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  overflow-x: auto; overflow-y: hidden; max-width: 100%;
  min-height: 58px; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.remake-recent-videos-scroll::-webkit-scrollbar { height: 5px; }
.remake-recent-videos-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18); border-radius: 4px;
}
.remake-recent-videos--empty { overflow: hidden; cursor: default; }
.remake-recent-vid-placeholder {
  flex: none; width: 44px; height: 58px; box-sizing: border-box;
  border: 1px dashed var(--border); border-radius: 6px;
  background: linear-gradient(145deg, #f8f9fb 0%, #eef0f4 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.remake-recent-vid-btn {
  flex: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; background: #0f172a; cursor: pointer; line-height: 0;
}
.remake-recent-vid-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.12); }
.remake-recent-vid-thumb {
  height: 58px;
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.remake-recent-vid-thumb.remake-vid-thumb--landscape {
  aspect-ratio: 16 / 9;
}
.remake-recent-vid-more {
  flex: none; white-space: nowrap; padding: 4px 10px; font-size: 12px;
  min-height: 36px; align-self: stretch; border-radius: 6px; cursor: pointer;
}
.remake-recent-videos-all-meta { margin: 0 0 12px; font-size: 13px; }
.remake-recent-videos-all-grid {
  display: flex; flex-wrap: wrap; gap: 10px; max-height: min(68vh, 560px);
  overflow-y: auto; padding: 4px 2px;
}
.remake-recent-videos-all-grid .remake-recent-vid-thumb {
  height: 96px;
  width: auto;
  aspect-ratio: 9 / 16;
}
.remake-recent-videos-all-grid .remake-recent-vid-thumb.remake-vid-thumb--landscape {
  aspect-ratio: 16 / 9;
}
.remake-block-card .remake-recent-videos-scroll { max-width: 100%; }
.remake-source-vid-btn {
  flex: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; background: #0f172a; cursor: pointer; line-height: 0; vertical-align: middle;
}
.remake-source-vid-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.12); }
.remake-source-vid-thumb {
  height: 48px;
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.remake-source-vid-thumb.remake-vid-thumb--landscape {
  aspect-ratio: 16 / 9;
}
.video-list-poster,
img.remake-source-vid-thumb,
img.remake-recent-vid-thumb,
img.remake-task-list-thumb,
img.remake-trace-media-thumb {
  object-fit: cover;
}
.video-list-poster--empty,
span.video-list-poster--empty {
  display: inline-block;
  min-width: 36px;
  min-height: 48px;
  background: linear-gradient(145deg, #e8eaef 0%, #d4d8e0 100%);
  border-radius: 4px;
}
.remake-recent-vid-btn .video-list-poster--empty {
  height: 58px;
  min-height: 58px;
  aspect-ratio: 9 / 16;
}
.special-remake-view-summary .special-remake-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}
.special-remake-view-summary .special-remake-dl dt {
  margin: 0;
  color: var(--text-3);
  font-weight: 500;
}
.special-remake-view-summary .special-remake-dl dd {
  margin: 0;
  word-break: break-word;
}
/* 子复刻列表成片列：方形容器 + 等比完整展示（16:9 不裁成竖条） */
.special-remake-vid-btn {
  flex: none;
  width: 72px;
  height: 72px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
}
.special-remake-vid-btn .special-remake-vid-thumb,
.special-remake-vid-btn img.special-remake-vid-thumb,
.special-remake-vid-btn .video-list-poster {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: unset;
  object-fit: contain;
  border-radius: 4px;
  background: #0f172a;
}
.special-remake-vid-btn .video-list-poster--empty,
.special-remake-vid-btn span.video-list-poster--empty {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 4px;
}
.special-remake-result-strip {
  max-width: 156px;
  gap: 6px;
  align-items: center;
}
.special-remake-result-strip--one {
  max-width: 80px;
}
.special-remake-view-summary .special-remake-vid-btn {
  width: 120px;
  height: 68px;
}
.remake-source-vid-btn .video-list-poster--empty {
  height: 48px;
  min-height: 48px;
  aspect-ratio: 9 / 16;
}
.remake-task-list-thumb--poster {
  cursor: pointer;
  max-width: 120px;
  max-height: 72px;
  border-radius: 4px;
}
.remake-block-card .bl-row .bl-v .remake-source-vid-btn { vertical-align: top; }
/* 原视频弹窗：视频在 80vh 弹窗内等比缩放，宽、高均不超出正文区，无需滚动才能看全 */
.remake-source-vid-modal .remake-source-vid-pop-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.remake-source-vid-modal .remake-source-vid-pop {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  background: #000;
  border-radius: 8px;
  object-fit: contain;
}
.modal.video-play-modal.remake-source-vid-modal .m-bd {
  overflow: hidden;
  align-items: stretch;
}
/* 成片/任务预览：播放器最多占弹窗正文高度一半，下方追溯区滚动 */
.modal.video-play-modal .remake-video-preview-wrap {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal.video-play-modal .remake-video-preview {
  flex: 0 0 auto;
  width: 100%;
  max-height: 50%;
  height: auto;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}
.modal.video-play-modal.admin-task-vid-modal .m-bd {
  overflow: hidden;
}
.modal.video-play-modal.admin-task-vid-modal .remake-video-preview {
  flex: 1 1 auto;
  max-height: calc(80vh - 120px);
  height: auto;
}
.tracked-row-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; color: var(--text-2); cursor: text; user-select: all;
}
.tracked-v-id-td .tracked-row-id { display: inline-block; min-width: 3ch; }
.remake-task-list-thumb--play {
  cursor: pointer;
  outline: none;
}
.remake-task-list-thumb--play:focus-visible {
  box-shadow: 0 0 0 2px var(--primary, #2563eb);
}
.admin-task-vid-cell { display: flex; align-items: center; }
.admin-task-vid-thumb { cursor: pointer; }
/* 管理端 · 租户作品列表：原片/成片缩略图完整等比展示，不裁切 */
.admin-tenant-work-vid-btn {
  flex: none;
  width: 54px;
  height: 72px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}
.admin-tenant-work-vid-btn:hover {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.admin-tenant-work-vid-btn img.admin-tenant-work-thumb,
.admin-tenant-work-vid-btn .video-list-poster {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: unset;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
}
.admin-tenant-work-vid-btn .video-list-poster--empty,
.admin-tenant-work-vid-btn span.video-list-poster--empty {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 4px;
}
.lv-table td:has(.admin-tenant-work-vid-btn),
.lv-table td:has(.special-remake-vid-btn) {
  overflow: visible;
  vertical-align: middle;
}
.admin-task-vid-modal .remake-video-preview {
  width: 100%; max-height: 72vh; display: block; background: #000;
  border-radius: 8px;
}
.remake-task-trace-detail-body { max-height: 75vh; overflow: auto; }

.product-img-sort-hint { margin: 0 0 12px; font-size: 13px; }
.product-img-sort-list { display: flex; flex-direction: column; gap: 10px; }
.product-img-sort-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card, #fff);
}
.product-img-sort-item.dragging { opacity: 0.55; }
.product-img-sort-item.drag-over { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 1px var(--primary, #2563eb); }
.product-img-drag {
  flex: 0 0 14px; width: 14px; height: 28px; cursor: grab;
  background: linear-gradient(to bottom, var(--text-3, #94a3b8) 0, var(--text-3, #94a3b8) 2px, transparent 2px, transparent 6px,
    var(--text-3, #94a3b8) 6px, var(--text-3, #94a3b8) 8px, transparent 8px, transparent 12px,
    var(--text-3, #94a3b8) 12px, var(--text-3, #94a3b8) 14px, transparent 14px);
  background-size: 14px 16px; background-repeat: no-repeat; background-position: center;
}
.product-img-thumb {
  flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 8px;
}
.product-img-strip {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  overflow: hidden; width: 100%; margin-top: 10px; min-height: 40px;
}
.product-img-strip--list { margin-top: 0; max-width: 100%; min-height: 36px; }
.product-img-interact {
  flex: none; display: block; padding: 0; margin: 0; border: none; background: transparent;
  cursor: pointer; border-radius: 6px; line-height: 0;
}
.product-img-interact:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.product-img-strip .product-img-interact img {
  display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--border); background: #f5f6f8;
}
.product-img-strip--list .product-img-interact img { width: 36px; height: 36px; }
.product-img-strip--block {
  margin-top: 0; flex-wrap: wrap; overflow: visible; gap: 8px;
}
.product-img-strip--block .product-img-interact img {
  width: 72px; height: 72px; border-radius: 8px;
}
.product-bl-v-imgs {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  overflow: visible;
}
.bl-row--product-imgs .bl-v { overflow: visible; text-overflow: unset; }
.product-img-thumb-btn { flex-shrink: 0; }
.product-img-thumb-btn .product-img-thumb { display: block; }
.product-block-card .bl-title { margin-bottom: 4px; }

/* 热点关键词 · 列表/区块内嵌走势 */
.kw-trend-mini { margin-top: 8px; width: 100%; min-width: 0; }
.kw-trend-mini--cell { margin-top: 0; }
.kw-trend-legend { gap: 10px; margin-bottom: 4px; font-size: 11px; }
.kw-trend-mini .trend-chart--compact { max-height: 100px; }
.kw-trend-mini.empty-trend {
  font-size: 12px; color: var(--text-3); padding: 12px 0; text-align: center;
  border: 1px dashed var(--border); border-radius: 8px; background: #fafbfc;
}
.kw-block-card .lv-block-section {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.kw-block-card .bl-row {
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}
.kw-block-card .bl-v {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.kw-block-card .lv-block-section > .kw-trend-mini {
  overflow: hidden;
}
.kw-block-card .bl-row:has(label.switch) .bl-v {
  overflow: visible;
  text-overflow: unset;
}
.kw-block-card .bl-row--acts .kw-block-act-v {
  overflow: visible;
  text-overflow: unset;
}
.kw-block-card .bl-row--acts .tracked-v-act-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  max-width: 100%;
}
.kw-block-card .bl-row--acts .tracked-v-act-btn,
.kw-block-card .bl-row--acts .lv-act-btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.kw-block-card .kw-profile-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}
.kw-block-card .kw-trend-mini {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.kw-block-card .kw-trend-mini--block {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.kw-block-card .kw-trend-mini .trend-chart-wrap {
  max-width: 100%;
  overflow: hidden;
}
.kw-block-card .kw-trend-mini .kw-trend-legend {
  flex-wrap: wrap;
}
.kw-monitor-content-media {
  width: 100%;
  min-width: 0;
}
.kw-monitor-content-media .monitor-latest-vid-btn {
  max-width: 100%;
}
.kw-monitor-content-media .monitor-latest-vid-thumb,
.kw-monitor-content-media .tracked-v-cover {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.kw-monitor-no-vid {
  margin: 0;
  font-size: 12px;
}
.monitor-latest-vid-btn {
  border: none; background: transparent; padding: 0; margin: 0 auto; display: block;
  cursor: pointer; line-height: 0; border-radius: 8px;
}
.monitor-latest-vid-btn:hover .monitor-latest-vid-thumb,
.monitor-latest-vid-btn:focus-visible .monitor-latest-vid-thumb {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.monitor-latest-vid-empty { font-size: 12px; }
.tracked-title-link {
  font-weight: inherit; font-size: inherit; text-align: left; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit;
}
.tracked-title-link:hover {
  color: var(--primary-dark);
}
.tracked-title-link .tag { vertical-align: middle; }
.bl-title .tracked-title-link { display: block; width: 100%; }
.tracked-v-table-wrap {
  flex: 1; min-height: 0; width: 100%; max-width: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tracked-v-table-split { height: 100%; }
.tracked-v-head-scroller {
  flex: none; overflow: hidden; width: 100%;
  background: #fafbfc; border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tracked-v-body-scroller {
  flex: 1; min-height: 0; overflow: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.tracked-v-table-head { margin: 0; background: #fafbfc; }
.tracked-v-table-body { margin: 0; }
.tracked-v-table-head thead th {
  position: static;
  background: #fafbfc;
  z-index: 1;
  box-shadow: none;
}
.tracked-v-table thead th.sticky-l,
.tracked-v-table tbody td.sticky-l { position: sticky; left: 0; z-index: 4; }
.tracked-v-table thead th.sticky-r,
.tracked-v-table tbody td.sticky-r { position: sticky; right: 0; z-index: 4; }
.tracked-v-table thead th.sticky-l,
.tracked-v-table thead th.sticky-r { position: static; }
.tracked-v-table { table-layout: fixed; min-width: 1180px; }
.tracked-v-table .col-title { width: 220px; }
.tracked-v-table .col-category { width: 88px; }
.tracked-v-table .col-published { width: 150px; }
.tracked-v-table .col-engagement { width: 148px; }
.tracked-v-table .col-trend { width: 248px; }
.tracked-v-table .col-file { width: 92px; }
.tracked-v-table .col-act { width: 380px; }
.tracked-v-table .tracked-v-title-td,
.tracked-v-table .tracked-v-title-th { width: 220px; max-width: 220px; }
.tracked-v-table .tracked-v-act-td,
.tracked-v-table .tracked-v-act-th {
  width: 400px; min-width: 360px; right: 0; white-space: normal;
}
.tracked-v-table .tracked-v-title-td .hot-v-title,
.tracked-v-table .tracked-v-title-td .btn-link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hover-pop.hp-title-pop { max-width: min(420px, 92vw); }
.hover-pop.hp-title-pop .hp-title-full {
  font-size: 13px; line-height: 1.55; color: var(--text); word-break: break-word; white-space: normal;
}
.tracked-v-engagement { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.tracked-v-engagement .lbl { display: inline-block; color: var(--text-3); margin-right: 2px; }
.tracked-v-engagement--inline {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; white-space: nowrap;
}
.tracked-v-engagement--inline .eng-sep { color: var(--text-3); user-select: none; }
.tracked-v-engagement-td { vertical-align: middle; }
.tracked-v-trend-td { vertical-align: top; min-width: 200px; max-width: 280px; }
.tracked-v-trend-td .kw-trend-mini { margin-top: 0; }
.tracked-v-trend-td .kw-trend-legend { font-size: 10px; margin-bottom: 2px; }
.product-img-meta { flex: 1; min-width: 0; }
.product-img-name { font-weight: 600; line-height: 1.35; }
.product-img-desc { font-size: 12px; color: var(--text-3); margin-top: 4px; word-break: break-word; }
.product-img-main-toggle {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap;
  cursor: pointer; user-select: none;
}
.product-img-actions { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }

.shot-modal-tabs-hint {
  font-size: 12px;
  color: var(--text-3, #64748b);
  margin: 0 0 10px;
  line-height: 1.45;
}
.shot-ignore-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.shot-ignore-tag { font-size: 11px; background: var(--text-3, #94a3b8); color: #fff; }
.shot-asset-ignored { opacity: 0.55; }
.shot-tag-product { font-size: 11px; margin-top: 4px; display: inline-block; }

.video-crop-panel { display: flex; flex-direction: column; gap: 12px; max-height: 78vh; overflow: auto; }
.video-crop-player-wrap { background: #0f172a; border-radius: 8px; overflow: hidden; }
.video-crop-player { width: 100%; max-height: 42vh; display: block; background: #000; }
.video-crop-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.video-crop-track-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: 8px 8px 12px; background: var(--bg-2, #f8fafc); }
.video-crop-track-inner { position: relative; min-width: 100%; }
.video-crop-ruler { position: relative; height: 22px; margin-bottom: 4px; }
.video-crop-tick { position: absolute; top: 0; font-size: 10px; color: var(--text-3); border-left: 1px solid #cbd5e1; padding-left: 4px; white-space: nowrap; }
.video-crop-track { position: relative; height: 36px; background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%); border-radius: 6px; cursor: crosshair; }
.video-crop-marker { position: absolute; top: -4px; width: 2px; height: 44px; background: var(--primary, #2563eb); transform: translateX(-1px); cursor: ew-resize; z-index: 2; }
.video-crop-marker-time { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; background: var(--primary, #2563eb); color: #fff; padding: 1px 4px; border-radius: 4px; white-space: nowrap; }
.video-crop-node-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.video-crop-node-card { width: 120px; flex: 0 0 auto; }
.video-crop-node-thumb { position: relative; width: 120px; height: 68px; border-radius: 6px; overflow: hidden; background: #0f172a; display: flex; align-items: center; justify-content: center; }
.video-crop-node-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-crop-node-del { position: absolute; right: 4px; top: 4px; padding: 2px 6px; font-size: 11px; }
.video-crop-node-time { font-size: 12px; margin-top: 4px; text-align: center; color: var(--text-2); }
.video-crop-seg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.video-crop-segments { display: flex; flex-direction: column; gap: 4px; }

.va-report-modal { font-size: 15px; line-height: 1.55; }
.va-report-modal--pro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.va-report-source-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.va-report-source-thumb { flex: 0 0 auto; }
.va-report-source-links { flex: 1 1 220px; min-width: 0; }
.va-report-link-field { display: block; }
.va-report-link-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 8px;
}
.va-report-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.va-report-link-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--text-2);
}
.va-report-modal .btn,
.va-report-modal .btn.btn-sm,
.va-report-modal a.btn.btn-sm {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.va-report-modal .btn:hover,
.va-report-modal a.btn.btn-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.va-report-modal .va-report-toolbar .btn { background: #fff; }
.va-report-hero {
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.12) 0%, rgba(232, 50, 107, 0.08) 55%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(255, 171, 61, 0.28);
}
.va-report-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.va-report-modal .va-report-toolbar { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.va-report-modal .va-report-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 0.01em;
}
.va-report-hero-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.va-report-hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.va-report-hero-score-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.va-report-hero-score-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}
.va-score-tier--high .va-report-hero-score-num { color: #15803d; }
.va-score-tier--high { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff); }
.va-score-tier--mid .va-report-hero-score-num { color: #c2410c; }
.va-score-tier--mid { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed, #fff); }
.va-score-tier--low .va-report-hero-score-num { color: #94a3b8; }
.va-score-tier--low { border-color: #e2e8f0; background: #f8fafc; }
.va-score-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.va-score-tier--high.va-score-pill { color: #166534; background: #dcfce7; border-color: #86efac; }
.va-score-tier--mid.va-score-pill { color: #c2410c; background: #ffedd5; border-color: #fdba74; }
.va-score-tier--low.va-score-pill { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }
.va-report-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.va-report-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(255, 171, 61, 0.35);
}
.va-report-tag--mode {
  color: #9a3412;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.25), rgba(255, 122, 61, 0.15));
}
.va-report-tag--soft {
  font-weight: 500;
  font-size: 12px;
  padding: 3px 9px;
  background: #f8fafc;
  border-color: var(--border);
  color: var(--text-2);
}
.va-report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.va-report-chip {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 0;
}
.va-report-chip-k {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.va-report-chip-v {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}
.va-report-modal .va-dy-link { font-size: 13px; }
.va-report-panels { display: flex; flex-direction: column; gap: 12px; }
.va-report-panel {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.va-report-panel--highlight {
  border-color: rgba(255, 122, 61, 0.45);
  background: linear-gradient(180deg, rgba(255, 235, 200, 0.35), #fff);
}
.va-report-panel-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}
.va-report-panel-mark {
  width: 4px;
  align-self: stretch;
  min-height: 18px;
  border-radius: 4px;
  background: var(--primary, #e87b1a);
  flex-shrink: 0;
}
.va-report-panel--0 .va-report-panel-mark { background: #2563eb; }
.va-report-panel--1 .va-report-panel-mark { background: #7c3aed; }
.va-report-panel--2 .va-report-panel-mark { background: #0d9488; }
.va-report-panel--3 .va-report-panel-mark { background: #e87b1a; }
.va-report-panel--4 .va-report-panel-mark { background: #db2777; }
.va-report-panel--5 .va-report-panel-mark { background: #64748b; }
.va-report-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.va-report-panel-bd { padding: 12px 14px 14px; }
.va-report-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.va-report-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  border: 1px solid transparent;
}
.va-report-line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.va-report-line--a { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.12); }
.va-report-line--a .va-report-line-dot { background: #2563eb; }
.va-report-line--b { background: rgba(124, 58, 237, 0.06); border-color: rgba(124, 58, 237, 0.12); }
.va-report-line--b .va-report-line-dot { background: #7c3aed; }
.va-report-line--c { background: rgba(13, 148, 136, 0.06); border-color: rgba(13, 148, 136, 0.12); }
.va-report-line--c .va-report-line-dot { background: #0d9488; }
.va-report-line--d { background: rgba(232, 123, 26, 0.08); border-color: rgba(232, 123, 26, 0.18); }
.va-report-line--d .va-report-line-dot { background: #e87b1a; }
.va-report-line--e { background: rgba(219, 39, 119, 0.06); border-color: rgba(219, 39, 119, 0.12); }
.va-report-line--e .va-report-line-dot { background: #db2777; }
.va-report-line--pos { background: rgba(22, 163, 74, 0.07); border-color: rgba(22, 163, 74, 0.16); }
.va-report-line--pos .va-report-line-dot { background: #16a34a; }
.va-report-line--warn { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.14); color: #991b1b; }
.va-report-line--warn .va-report-line-dot { background: #dc2626; }
.va-report-modal .eng-inline { font-size: 13px; }
.va-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 0;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.va-radar-svg { width: 300px; max-width: 100%; height: auto; }
.va-radar-grid { fill: none; stroke: var(--border, #e2e8f0); stroke-width: 1; }
.va-radar-spoke { stroke: var(--border, #e2e8f0); stroke-width: 1; }
.va-radar-fill { fill: rgba(232, 123, 26, 0.18); stroke: var(--primary, #e87b1a); stroke-width: 1.5; }
.va-radar-label { font-size: 12px; font-weight: 600; }
.va-radar-score--high { fill: #15803d; }
.va-radar-score--mid { fill: #c2410c; }
.va-radar-score--low { fill: #94a3b8; }
.va-rec-products { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.va-rec-prod-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.va-rec-prod-card.va-score-tier--high { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4, #fff); }
.va-rec-prod-card.va-score-tier--mid { border-color: #fdba74; background: linear-gradient(135deg, #fff7ed, #fff); }
.va-rec-prod-card.va-score-tier--low { border-color: #e2e8f0; background: #f8fafc; }
.va-rec-prod-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.va-rec-prod-rank {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  min-width: 28px;
}
.va-rec-prod-name { font-weight: 700; font-size: 15px; color: var(--text); flex: 1 1 auto; min-width: 0; }
.va-rec-prod-reason { margin: 0 0 8px; }
.va-rec-prod-reason .va-report-lines { gap: 6px; }
.va-rec-prod-reason .va-report-line { padding: 8px 10px; font-size: 13px; }
.va-rec-prod-imgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.va-rec-prod-thumb-btn { padding: 0; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; overflow: hidden; background: #fff; cursor: pointer; width: 80px; height: 80px; }
.va-rec-prod-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.va-rec-prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #e2e8f0);
}
.va-report-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 8px; }
.va-report-frames--one { grid-template-columns: 1fr; max-width: 220px; }
.va-report-frame { margin: 0; text-align: center; }
.va-report-frame-btn { padding: 0; border: none; background: none; cursor: pointer; width: 100%; display: block; border-radius: 6px; overflow: hidden; }
.va-report-frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #0f172a; border-radius: 6px; }
.va-report-frame figcaption { font-size: 12px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 560px) {
  .va-report-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.frp-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2, #475569);
}
.frp-status.is-busy { opacity: 0.85; }
.frp-status.is-error { background: #fff5f5; border-color: #fecaca; color: #b42318; }
.frp-status.is-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.recharge-pkg-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  align-items: stretch;
}
.recharge-pkg-card {
  flex: 0 0 auto;
  width: min(320px, 82vw);
  min-height: 340px;
  text-align: left;
  padding: 20px 20px 18px;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: var(--card, #fff);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.recharge-pkg-card:hover {
  border-color: var(--primary, #6366f1);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.14);
  transform: translateY(-3px);
}
.recharge-pkg-card .pkg-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.recharge-pkg-card .pkg-fields {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.recharge-pkg-card .pkg-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.recharge-pkg-card .pkg-field:last-child { border-bottom: none; }
.recharge-pkg-card .pkg-field dt {
  margin: 0;
  font-weight: 500;
  color: var(--text-2, #64748b);
  flex: none;
}
.recharge-pkg-card .pkg-field dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--text, #0f172a);
  word-break: break-word;
}
.recharge-pkg-card .pkg-sell-block {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2, #64748b);
}
.recharge-pkg-card .pkg-pay-btn {
  width: 100%;
  margin-top: 16px;
}
.recharge-pkg-card .pkg-feat-tag { margin-left: 8px; vertical-align: middle; }
.recharge-pkg-card.is-featured {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), var(--card, #fff) 45%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
}
.recharge-pkg-card.is-featured:hover {
  border-color: #ea580c;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.recharge-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.recharge-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.recharge-balance-only .stat-card {
  padding: 12px 18px;
  min-width: 200px;
}
.recharge-balance-only .value {
  font-size: 28px;
}
.recharge-pay-modal-wrap { min-height: 120px; }
.recharge-pay-mount { min-height: 80px; }
.recharge-pay-qr-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 0;
}
.recharge-qr-img {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  display: block;
  background: #fff;
}

/* 管理端 · 官网页尾联系配置 */
.sc-showcase-settings-card .sc-showcase-settings-hint { margin: 0 0 16px; line-height: 1.55; }
.sc-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.sc-shot-hint { margin: 0 0 10px; font-size: 12px; line-height: 1.45; }
.sc-shot-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 300px);
  gap: 14px;
  align-items: stretch;
}
.sc-shot-upload-wrap { min-width: 0; }
.sc-shot-field .upload-dropzone { margin-top: 0; }
.sc-shot-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8f9fb, #f2f4f8);
  min-height: 172px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.sc-shot-preview-img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sc-shot-preview-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}
.sc-shot-preview.has-image .sc-shot-preview-empty { display: none; }
.sc-shot-preview-cap {
  margin: 0;
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
}
@media (max-width: 900px) {
  .sc-shot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sc-shot-row { grid-template-columns: 1fr; }
}
.sc-showcase-settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}
.sc-settings-form { max-width: none; }
.sc-showcase-settings-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sc-showcase-footer-preview {
  border-radius: var(--radius);
  border: 1px solid #eaeaea;
  background: radial-gradient(at 0 30%, rgba(220, 230, 255, 0.45), transparent 42%),
    linear-gradient(100deg, #eef1ff, #faf8ff 32%, #f0efff 58%, #e5e0ff);
  padding: 28px 20px 32px;
  text-align: center;
  min-height: 280px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.sc-sfp-cta h2 {
  margin: 0 0 14px;
  color: #172d37;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  max-width: 14em;
  margin-left: auto;
  margin-right: auto;
}
.sc-sfp-cta h2 span { color: #6e00ff; }
.sc-sfp-cta > p {
  margin: 0 0 18px;
  color: #a7a7a7;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  max-width: 26em;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
}
.sc-sfp-extra {
  margin: 6px 0;
  color: #a7a7a7;
  font-size: 13px;
}
.sc-sfp-extra[hidden] { display: none; }
.sc-sfp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(110deg, #e87b1a 38%, #ffb84d 68%, #f59a2e 100%);
  box-shadow: inset 0 0 8px rgba(201, 111, 15, 0.42);
}
.sc-sfp-btn-label { font-weight: 500; }
.sc-sfp-qr { margin-top: 16px; }
.sc-sfp-qr img {
  width: 108px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .sc-showcase-settings-grid { grid-template-columns: 1fr; }
}

/* 管理端 · 官网作品对比编辑弹窗 */
.modal.sc-showcase-work-modal {
  width: min(920px, 92vw);
  max-height: min(90vh, 880px);
}
.modal.sc-showcase-work-modal .m-hd {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.modal.sc-showcase-work-modal .m-bd {
  max-height: min(72vh, 720px);
  overflow-y: auto;
  background: var(--card);
}
.modal.sc-showcase-work-modal .m-ft {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  justify-content: flex-end;
}
.sc-work-form-hint {
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 13px;
}
.sc-work-form-grid .field { margin-bottom: 12px; }
.sc-work-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.sc-work-media-pair > .sc-work-media-col > label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.sc-work-media-pair .upload-dropzone { margin-top: 0; }
.sc-upload-kept-thumb {
  display: block;
  max-width: 100%;
  max-height: 96px;
  margin: 0 auto 8px;
  border-radius: 6px;
  object-fit: contain;
  background: #f5f6f8;
}
@media (max-width: 720px) {
  .sc-work-media-pair { grid-template-columns: 1fr; }
}
