body:has(.resource-list) { min-width: 0; }
.resource-list { position: relative; min-width: 0; }
.resource-list .toolbar { flex-wrap: wrap; }
.resource-list__top-actions { position: absolute; top: 32px; right: 24px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.resource-list__copyright-btn { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; font-size: 12px; color: var(--df-color-text-strong); }
.card-list__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: calc(100vh - 223px); }
.story-detail .card-list__empty { padding-right: 28px; }
.card-list__empty img { width: 100px; height: 100px; object-fit: contain; }
.card-list__empty-text { margin: 12px 0 0; font-size: 14px; line-height: 22px; color: var(--df-color-text-subtle); }
.card-list__empty-btn { height: 22px; font-size: 14px; color: var(--df-color-accent); }
.resource-search { position: relative; display: inline-flex; align-items: center; }
.resource-search input { padding-right: 32px; }
.resource-search svg { position: absolute; right: 10px; pointer-events: none; color: var(--df-color-text-muted); fill: currentColor; }
.resource-list__copyright-btn svg { fill: currentColor; }
.story-detail__header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.story-detail__header a { text-decoration: none; }
.story-detail__header h1 { margin: 0; font-size: 18px; }
.story-detail .toolbar { flex-wrap: wrap; }
.story-detail .toolbar > label { white-space: nowrap; }
.story-detail .toolbar .refresh { flex: 0 0 32px; }
.story-detail input[type="checkbox"] { color-scheme: dark; accent-color: var(--df-color-primary-bright); }
#export-dialog {
  position: relative;
  top: 5px;
  width: min(800px, 94vw);
  padding: 0;
  color: var(--df-color-text);
  background: var(--df-color-surface);
  border: 1px solid var(--df-color-divider);
  border-radius: 8px;
}
#export-dialog::backdrop { background: var(--df-color-mask); }
#export-dialog .df-dialog__head { padding: 20px 24px 0; border-bottom: 0; }
#export-dialog .df-dialog__title { font-size: 16px; font-weight: 600; }
#export-dialog .df-dialog__close { display: grid; width: 32px; height: 32px; place-items: center; color: var(--df-color-text); font-size: 0; }
#export-dialog .df-dialog__close .df-icon { width: 16px; height: 16px; }
#export-dialog .df-dialog__body { gap: 20px; padding: 20px 24px 24px; }
.export-tip { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--df-color-text-body); font-size: 14px; line-height: 22px; }
.export-refresh { display: grid; flex: none; width: 32px; height: 32px; padding: 0; place-items: center; border: 1px solid var(--df-color-border); border-radius: 6px; background: transparent; color: var(--df-color-text); cursor: pointer; }
.export-refresh:hover { background: var(--df-color-surface-hover); }
.export-refresh .df-icon { width: 16px; height: 16px; }
.export-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.export-table th { height: 40px; padding: 0 16px; background: var(--df-color-surface-raised); color: var(--df-color-text); font-weight: 500; text-align: left; }
.export-table th:nth-child(1) { width: 50%; }
.export-table th:nth-child(2) { width: 16%; }
.export-table th:nth-child(3) { width: 24%; }
.export-table th:nth-child(4) { width: 10%; }
.export-table th:first-child { border-radius: 4px 0 0 4px; }
.export-table th:last-child { border-radius: 0 4px 4px 0; }
.export-table .export-empty td { height: 366px; background: var(--df-color-surface-sunken); color: var(--df-color-text-muted); font-size: 14px; text-align: center; border-radius: 0 0 4px 4px; }
.export-table .export-empty .df-empty--table { width: 100%; }
.story-detail .toolbar input[type="search"] { width: 160px; }
.story-detail .toolbar input[type="radio"], .story-detail input[type="checkbox"] { width: auto; height: auto; }
.story-detail .toolbar__radio-group { display: inline-flex; background: var(--df-color-surface-media); border-radius: 4px; overflow: hidden; }
.story-detail .toolbar__radio-group label { position: relative; padding: 8px 12px; cursor: pointer; }
.story-detail .toolbar__radio-group label:has(:checked) { background: var(--df-color-surface-active); color: var(--df-color-text-strong); }
.story-detail .toolbar__radio-group input { position: absolute; opacity: 0; }
.story-detail .toolbar__radio-group label:has(:focus-visible) { outline: 2px solid var(--df-color-accent); outline-offset: -2px; }
.asset-date-range { display: flex; align-items: center; gap: 8px; }
.story-detail .asset-date-range input { width: 132px; color-scheme: dark; }
.real-assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.real-assets-grid figure, .real-assets-add { margin: 0; border: 1px solid var(--df-color-surface-active); border-radius: 8px; overflow: hidden; background: var(--df-color-surface-raised); }
.real-assets-grid img { display: block; width: 100%; height: 140px; object-fit: cover; }
.real-assets-grid figcaption { padding: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.real-assets-add { display: grid; align-content: center; justify-items: center; gap: 8px; min-height: 174px; }
.real-assets-add span { font-size: 28px; }
.real-assets-grid > .real-assets-add > .df-icon { width: 20px; height: 20px; }
.real-assets-grid[hidden] { display: none; }
.person-group-card.card-list__card { position: relative; height: 300px; padding: 0; overflow: hidden; border-radius: 8px; background: var(--df-color-surface-raised); cursor: default; }
.card-list__verify-overlay { position: absolute; z-index: 2; top: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; background: color-mix(in srgb, var(--df-color-warning) 20%, transparent); }
.card-list__verify-text { margin: 0; color: var(--df-color-text-strong); font-size: 12px; line-height: 18px; }
.card-list__verify-btn { height: 18px; padding: 0; border: 0; background: transparent; color: var(--df-color-text-strong); font-size: 12px; }
.card-list__image { position: relative; display: flex; align-items: center; justify-content: center; height: 236px; background: var(--df-color-surface-raised); }
.card-list__folder-bg { position: absolute; width: 164px; height: 164px; object-fit: contain; opacity: .5; }
.card-list__thumbs { position: relative; z-index: 1; width: 178px; height: 90px; margin-top: 18px; }
.card-list__thumb { position: absolute; overflow: hidden; border-radius: 8px; background: var(--df-color-surface-active); }
.card-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-list__thumb--top { z-index: 3; top: 0; left: 50%; width: 84px; height: 84px; transform: translateX(-50%); box-shadow: var(--df-shadow-popover); }
.card-list__thumb--left { z-index: 1; top: 10px; left: 18px; width: 72px; height: 72px; transform: rotate(-15deg); }
.card-list__thumb--right { z-index: 2; top: 9px; left: 88px; width: 72px; height: 72px; transform: rotate(15deg); }
.person-group-card .card-list__info { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 64px; padding: 11px 12px; box-sizing: border-box; }
.person-group-card .card-list__title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; }
.person-group-card .card-list__desc { margin: 0; color: var(--df-color-text-muted); font-size: 12px; line-height: 18px; }
.face-info-authorization-dialog { width: min(520px, 90vw); max-height: 80vh; padding: 0; border: 1px solid var(--df-color-border); border-radius: 8px; background: var(--df-color-surface); color: var(--df-color-text); }
.face-info-authorization-dialog::backdrop { background: var(--df-color-mask); }
.face-info-authorization-dialog .df-dialog__head { padding: 20px 24px 0; }
.face-info-authorization-dialog .dialog-body { padding: 8px 24px 40px; }
.liveness-verify { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; text-align: center; }
.avatar-face { width: 60px; height: 60px; }
.liveness-verify .verify-title { margin: 24px 0 8px; font-size: 14px; line-height: 18px; }
.liveness-verify .verify-desc { margin: 0 0 16px; color: var(--df-color-text-muted); font-size: 12px; line-height: 18px; }
.privacy-tip { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 36px; margin: 12px 0 24px; border-radius: 4px; background: var(--df-color-surface-raised); color: var(--df-color-text-muted); font-size: 12px; line-height: 18px; box-sizing: border-box; }
.footer-buttons { display: flex; justify-content: center; gap: 12px; }
.footer-buttons a { text-decoration: none; }
a.real-assets-add { text-decoration: none; }
.card-list__empty[hidden] { display: none; }
#copyright-dialog { width: min(738px, 92vw); max-height: 80vh; padding: 0; overflow: auto; color: var(--df-color-text); background: var(--df-color-surface); border: 1px solid var(--df-color-surface-active); border-radius: 8px; }
#copyright-dialog::backdrop { background: var(--df-color-mask); }
.authorization-management { padding: 0 24px 24px; }
.authorization-management__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; }
#copyright-dialog h2 { margin: 0; font-size: 16px; line-height: 22px; }
#copyright-dialog .notice-box { margin: 24px 0 20px; color: var(--df-color-text-strong); font-size: 12px; line-height: 18px; }
#copyright-dialog .upload-area { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 16px 0; border: 1px dashed var(--df-color-border-strong); border-radius: 8px; background: var(--df-color-surface-raised); color: var(--df-color-text-strong); }
#copyright-dialog .upload-area.is-hover, #copyright-dialog .upload-area:hover { border-color: var(--df-color-primary); }
#copyright-dialog .upload-area img { width: 40px; height: 40px; }
.upload-main-text { margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 24px; }
.upload-sub-text { margin-top: 4px; color: var(--df-color-text-muted); font-size: 12px; line-height: 16px; }
#copyright-status { margin: 12px 0 0; color: var(--df-color-danger); font-size: 12px; }
.uploaded-section { padding-top: 20px; }
.uploaded-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.uploaded-title { margin: 0; font-size: 14px; line-height: 24px; }
#copyright-dialog .search-input { position: relative; width: 200px; }
#copyright-dialog .search-input input { width: 100%; height: 32px; padding: 4px 30px 4px 11px; border: 1px solid var(--df-color-control-edge); border-radius: var(--df-radius-md); background: var(--df-color-surface-raised); color: var(--df-color-text); font: inherit; font-size: 12px; box-sizing: border-box; }
#copyright-dialog .search-input .df-icon { position: absolute; top: 9px; right: 10px; pointer-events: none; }
.file-list { max-height: 260px; margin: 0; padding: 0; overflow-y: auto; border-radius: 8px; list-style: none; }
.file-item { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--df-color-border-divider); box-sizing: border-box; }
.file-item:last-child { border-bottom: 0; }
.file-item-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-type-icon { flex: none; width: 24px; height: 24px; }
.file-info { min-width: 0; }
.file-name { display: block; max-width: 440px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 18px; }
.file-meta { color: var(--df-color-text-muted); font-size: 12px; line-height: 18px; }
.file-actions { display: flex; gap: 16px; padding-left: 12px; }
.file-actions button { padding: 0; border: 0; background: transparent; color: var(--df-color-text-muted); }
.file-actions button:hover { color: var(--df-color-primary); }
.file-actions .delete-icon:hover { color: var(--df-color-danger); }
.file-empty { padding: 32px 0; color: var(--df-color-text-faint); text-align: center; font-size: 12px; }
.copyright-delete-popconfirm { position: fixed; z-index: var(--df-z-popover); width: 220px; padding: 12px; border: 1px solid var(--df-color-border); border-radius: var(--df-radius-lg); background: var(--df-color-panel); box-shadow: var(--df-shadow-popover); box-sizing: border-box; }
.copyright-delete-popconfirm[hidden] { display: none; }
.copyright-delete-popconfirm p { margin: 0 0 16px; font-size: 14px; line-height: 24px; }
.copyright-delete-popconfirm div { display: flex; justify-content: flex-end; gap: 8px; }

.console-top-links { display: flex; align-items: center; gap: 24px; }
.console-top-links a { color: inherit; text-decoration: none; }
.resource-list { padding: 41px 44px 24px 24px; }
.resource-list .task-tabs { gap: 40px; }
.resource-list__top-actions { top: 44px; right: 24px; }
.resource-list .toolbar { flex-wrap: nowrap; gap: 12px; }
.asset-kinds { display: flex; flex: none; width: 228px; height: 32px; }
.asset-kinds button { flex: 1; border: 1px solid var(--df-color-border-subtle); border-right: 0; background: var(--df-color-surface-media); color: var(--df-color-text-body); font-size: 12px; }
.asset-kinds button:first-child { border-radius: 4px 0 0 4px; }
.asset-kinds button:last-child { border-right: 1px solid var(--df-color-border-subtle); border-radius: 0 4px 4px 0; }
.asset-kinds button[aria-pressed="true"] { background: var(--df-color-primary); border-color: var(--df-color-primary); color: var(--df-color-primary-text); }
.asset-date-range { display: flex; flex: none; align-items: center; gap: 8px; width: 240px; height: 32px; padding: 0 12px; border: 1px solid var(--df-color-border-divider); background: var(--df-color-surface-media); border-radius: 4px; color: var(--df-color-text-faint); }
.asset-date-range input {
  box-sizing: border-box;
  width: 86px;
  min-width: 0;
  flex: 1 1 0;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--df-color-text-secondary);
  font: inherit;
  font-size: 12px;
}
.asset-date-range__icon { width: 14px; height: 14px; flex: none; fill: currentColor; }
.resource-list .resource-search input { width: 200px; }
.asset-mine { display: flex; flex: none; align-items: center; gap: 6px; color: var(--df-color-text-body); font-size: 12px; white-space: nowrap; }
.resource-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.resource-actions button { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 16px; border: 1px solid var(--df-color-border-divider); border-radius: 4px; background: var(--df-color-surface-panel-2); color: var(--df-color-text-body); font-size: 12px; white-space: nowrap; }
.resource-actions button.square { justify-content: center; width: 32px; height: 32px; padding: 0; }
.resource-actions button svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
/* 线上资源库四个页签都不显示页脚声明（四份原站基线 840..888 行内均无该文本），此处整块隐藏 */
.resource-disclaimer { display: none; }
@media (max-width: 1250px) { .resource-list .toolbar { flex-wrap: wrap; } .resource-actions { margin-left: 0; } }

.resource-list .asset-mine input,
.task-list.resource-list .asset-mine input[type="checkbox"] {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--df-color-primary);
  cursor: pointer;
}

.story-detail { padding: 40px 44px 40px 40px; }
.story-detail .toolbar { flex-wrap: wrap; gap: 12px; }
.story-detail .toolbar__radio-group { flex: none; width: 228px; height: 32px; }
.story-detail .toolbar__radio-group label { flex: 1; padding: 6px 12px; text-align: center; }
.story-detail .toolbar > label { display: flex; align-items: center; gap: 8px; }
.story-detail .toolbar > label select { min-width: 72px; }
.story-detail .toolbar input[type="search"] { width: 180px; }
.story-detail .mine { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.story-detail .mine input { width: 13px; height: 13px; padding: 0; }
.story-detail .toolbar > button:not(.refresh) { height: 32px; padding: 0 12px; border: 1px solid var(--df-color-border-subtle); border-radius: 4px; background: var(--df-color-surface-panel); white-space: nowrap; }
.story-detail .toolbar > #upload-assets { margin-left: 0; }
.story-detail .toolbar .refresh { margin-left: 0; }
.story-disclaimer { display: none; }
@media (max-width: 1250px) { .story-detail .toolbar { flex-wrap: wrap; } }

.story-detail__header a { display: flex; align-items: center; justify-content: center; width: 56px; height: 32px; border-radius: 8px; background: var(--df-color-surface-raised); }
.story-detail .toolbar > label:not(.mine) { width: 120px; height: 32px; padding-left: 12px; border: 1px solid var(--df-color-border); border-radius: 4px; }
.story-detail .toolbar > label:not(.mine) select { flex: 1; min-width: 0; border: 0; background: transparent; }
.story-detail #batch-toggle { min-width: 100px; }
.story-detail #export-history { min-width: 100px; }
.story-detail #upload-assets { min-width: 80px; }
.story-detail #sort-assets { min-width: 80px; }

/* 线上「真人资产」页签只保留搜索框 + 最右侧的方形刷新钮（基线 1395..1425） */
.resource-list.is-person .asset-kinds, .resource-list.is-person .asset-date-range, .resource-list.is-person .asset-mine { display: none; }
.resource-list.is-person .resource-actions > :not(.square) { display: none; }
.resource-list.is-person .resource-search input { width: 240px; }
.resource-list.is-person .real-assets-add { display: flex; flex-direction: column; width: 246px; height: 300px; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--df-color-surface-card); }
.resource-list.is-person .real-assets-add::before { content: ""; position: absolute; top: 0; left: 0; display: block; width: 100%; height: 236px; background: var(--df-color-surface-raised); }
.resource-list.is-person .real-assets-add span { margin-top: 16px; font-size: 32px; line-height: 24px; }
.resource-list.is-person .card-list__empty { height: calc(100vh - 520px); min-height: 180px; }

.resource-list.is-person .toolbar .refresh { margin-left: auto; }
.resource-list.is-person .real-assets-add { position: relative; align-items: flex-start; padding: 244px 12px 0; }
.resource-list.is-person .real-assets-add span { position: absolute; top: 100px; left: 50%; margin: 0; transform: translateX(-50%); }
.resource-list.is-person .card-list__empty { position: absolute; top: 170px; right: 0; bottom: 40px; left: 0; height: auto; min-height: 0; pointer-events: none; }
.resource-list.is-person .resource-disclaimer { display: none; }

.resource-list.is-person { min-height: calc(100vh - 48px); }
.resource-list.is-person .real-assets-add { font-size: 0; }
.resource-list.is-person .real-assets-add > .df-icon { position: absolute; top: 100px; left: 50%; width: 32px; height: 32px; transform: translateX(-50%); }
.resource-list.is-person .real-assets-add::after { content: "新建真人组"; position: absolute; bottom: 14px; left: 12px; font-size: 14px; }

.resource-list.is-person .real-assets-add::after { bottom: 40px; }
.resource-list.is-person .card-list__empty { bottom: 56px; }

.person-group-card { width: 246px; height: 300px; overflow: hidden; border-radius: 8px; background: var(--df-color-surface-sunken); }
.person-group-icon { position: relative; height: 236px; background: var(--df-color-surface-raised); }
.person-group-icon::before { content: ""; position: absolute; top: 68px; left: 40px; width: 164px; height: 116px; border-radius: 8px; background: var(--df-color-folder-blue); }
.person-group-icon::after { content: ""; position: absolute; top: 52px; left: 40px; width: 70px; height: 30px; border-radius: 8px 8px 0 0; background: var(--df-color-folder-blue); }
.person-group-name { position: relative; margin: 4px 12px 0; height: 24px; color: var(--df-color-text-secondary); font-size: 12px; line-height: 24px; }
.person-group-name input { width: 100%; height: 24px; padding: 0 52px 0 4px; border: 1px solid var(--df-color-primary); border-radius: 2px; background: var(--df-color-bg-console); color: var(--df-color-text-on-card); }
.person-group-name span { position: absolute; top: 0; right: 4px; color: var(--df-color-text-faint); pointer-events: none; }

.resource-list--creative .toolbar,
.resource-list--creative .resource-actions { flex-wrap: wrap; }

@media (max-width: 850px) {
  .resource-list--creative .task-tabs { flex-wrap: wrap; gap: 4px 16px; }
  .resource-list--creative .resource-list__top-actions {
    position: static;
    justify-content: flex-end;
    margin-bottom: 12px;
  }
}

.person-asset-actions { display: flex; gap: var(--df-space-2); padding: var(--df-space-2) var(--df-space-3) 0; }

/* 真人组沿用线上246×300卡片及16px间隔，避免卡片溢出180px网格列。 */
.resource-list.is-person .real-assets-grid { grid-template-columns: repeat(auto-fill, 246px); gap: var(--df-space-4); align-items: start; }
.person-group-name input { color: var(--df-color-text-strong); }
.resource-list.is-person .real-assets-add::after { bottom: 40px; }
.resource-list.is-person:has(.person-group-card) .card-list__empty { display: none; }
