/* Sliced from style.css for redesign compose bridge */

/* style.css L1330-1419 */
.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent-dim);
  color: #fff;
}
.btn.danger {
  border-color: rgba(232, 93, 93, 0.55);
  color: #ffb4b4;
  background: rgba(40, 18, 18, 0.45);
}
.btn.danger:hover {
  border-color: #e85d5d;
  color: #fff;
  background: rgba(180, 50, 50, 0.35);
}

.btn.secondary {
  opacity: 0.92;
}
.upload-label {
  display: inline-block;
  cursor: pointer;
  margin: 0;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.78rem;
  line-height: 1.35;
}

/** �?classList.toggle("hidden") 配合；单独使�?.hidden 的元素依赖此规则（如 LLM 侧栏内的图片尺寸区） */
.hidden {
  display: none !important;
}

.modal.hidden {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
  box-sizing: border-box;
}
#modal.modal--stack-above-compose {
  z-index: 62;
}
/* 参考图预览/管理：默认高于叠在创作队列上的卡片模态（59）；打开�?JS 会再 raiseModalToTop */
#modalRefPreview.modal,
#modalRefEditor.modal {
  z-index: 61;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal-panel {
  position: relative;
  margin: 0;
  flex-shrink: 0;
  max-width: 1200px;
  width: min(96vw, 1200px);
  max-height: 94vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* style.css L2553-3460 */
.compose-bar {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(215, 247, 42, 0.08);
}
.compose-bar.hidden {
  display: none !important;
}
.compose-summary {
  margin: 0 0 0.4rem;
}
.compose-preview-lbl {
  margin: 0.35rem 0 0.25rem;
}
.compose-bar .compose-result-preview {
  width: 100%;
  min-height: 72px;
  max-height: 28vh;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font: inherit;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}
.compose-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.main.compose-mode .card {
  cursor: pointer;
}
.main.compose-mode .card .chk {
  opacity: 1;
}

.marquee.hidden {
  display: none;
}
.marquee {
  position: fixed;
  z-index: 40;
  border: 1px solid var(--accent);
  background: rgba(215, 247, 42, 0.12);
  pointer-events: none;
  box-sizing: border-box;
}

.modal-panel.modal-panel--wide {
  max-width: min(98vw, 1480px);
  width: min(98vw, 1480px);
  max-height: 92vh;
  min-height: 72vh;
}
#composeQueueModal .modal-panel.modal-panel--wide {
  max-width: min(98vw, 1760px);
  width: min(98vw, 1760px);
}
#composeQueueModal.modal {
  z-index: 54;
}
#composeQueuePromptModal.modal {
  z-index: 56;
}
#composeQueueGenModal.modal {
  z-index: 58;
}
#composeQueuePolishModal.modal {
  z-index: 57;
}
.compose-queue-panel {
  padding: 1rem 1.15rem 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.98), rgba(14, 18, 26, 0.98));
  border: 1px solid rgba(125, 147, 180, 0.18);
}
.compose-queue-prompt-panel {
  padding: 1rem 1.35rem 1.2rem;
  max-height: 88vh;
}
.compose-queue-prompt-view {
  width: 100%;
  min-height: 50vh;
  max-height: calc(88vh - 7rem);
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font: inherit;
  line-height: 1.45;
  margin: 0.5rem 0 0.75rem;
  box-sizing: border-box;
}
.compose-queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.55rem 0 0.75rem;
}
.compose-queue-toolbar .btn {
  min-height: 2rem;
}
.compose-queue-toolbar .compose-queue-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.25rem;
  cursor: pointer;
  user-select: none;
}
.compose-queue-row--selected {
  outline: 1px solid rgba(215, 247, 42, 0.45);
  background: rgba(215, 247, 42, 0.06);
}
.compose-queue-row-chk {
  margin: 0 0 0.15rem;
}
.compose-queue-row-polished {
  font-size: 0.68rem;
  line-height: 1.2;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(72, 187, 120, 0.18);
  color: #8ae6a8;
  text-align: center;
}
.compose-queue-row-run-status {
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  text-align: center;
  border: 1px solid rgba(125, 147, 180, 0.18);
  font-variant-numeric: tabular-nums;
}
.compose-queue-row-run-status--queued {
  color: #b9c6d8;
  background: rgba(148, 163, 184, 0.11);
}
.compose-queue-row-run-status--running {
  color: #8fb7ff;
  border-color: rgba(215, 247, 42, 0.42);
  background: rgba(215, 247, 42, 0.16);
}
.compose-queue-row-run-status--success {
  color: #94e5ad;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
}
.compose-queue-row-run-status--failed {
  color: #ffb4b4;
  border-color: rgba(232, 93, 93, 0.45);
  background: rgba(232, 93, 93, 0.12);
}
.compose-queue-polish-panel {
  padding: 1rem 1.25rem 1.15rem;
  max-height: 90vh;
  overflow: auto;
}
.compose-queue-polish-tpl-picker {
  max-height: 28vh;
  overflow: auto;
  margin-bottom: 0.55rem;
}
.compose-queue-polish-image-fields {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem 0.55rem;
  margin: 0 0 0.55rem;
}
.compose-queue-polish-image-legend {
  padding: 0 0.25rem;
  margin-bottom: 0.15rem;
}
.compose-queue-polish-image-hint {
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
.compose-queue-polish-image-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.compose-queue-polish-image-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}
.compose-queue-polish-image-checks label.is-empty-hint {
  cursor: default;
  opacity: 0.75;
}
.compose-queue-polish-rules {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font: inherit;
  line-height: 1.45;
  margin-bottom: 0.45rem;
  resize: vertical;
}
.compose-queue-polish-status {
  min-height: 1.2rem;
  margin: 0.25rem 0 0.5rem;
}
.compose-queue-head {
  padding-right: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.compose-queue-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.compose-queue-title {
  margin-bottom: 0;
}
.compose-queue-desc {
  margin: 0.35rem 0 0;
}
.compose-queue-count-pill,
.compose-queue-view-pill,
.compose-queue-row-slot-count,
.compose-queue-expand-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(125, 147, 180, 0.18);
  border-radius: 999px;
  background: rgba(215, 247, 42, 0.1);
  color: #d7e2f4;
  font-size: 0.76rem;
  line-height: 1;
  white-space: nowrap;
}
.compose-queue-view-pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}
.compose-queue-empty {
  margin: 0.7rem 0 1rem;
}
.compose-queue-list-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  max-height: calc(92vh - 7.5rem);
  padding: 0.15rem 0.35rem 0.3rem 0;
  scrollbar-width: thin;
}
.compose-queue-list-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.compose-queue-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
}
.compose-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.compose-queue-row {
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr) 5.8rem 6.8rem;
  gap: 0.95rem;
  align-items: start;
  padding: 0.82rem 0.8rem;
  border: 1px solid rgba(125, 147, 180, 0.16);
  border-radius: 8px;
  background: rgba(7, 13, 22, 0.64);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}
.compose-queue-row:hover {
  border-color: rgba(215, 247, 42, 0.32);
  background: rgba(11, 17, 27, 0.72);
}
.compose-queue-row-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(125, 147, 180, 0.12);
}
.compose-queue-row-no {
  color: #eef4ff;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.compose-queue-row-time {
  color: #aeb9ca;
  font-size: 0.78rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.compose-queue-row-slot-count {
  align-self: flex-start;
  min-height: 1.35rem;
  background: rgba(34, 197, 94, 0.08);
  color: #b8e3c6;
}
.compose-queue-row-main {
  min-width: 0;
}
.compose-queue-table .col-idx { width: 2.5rem; }
.compose-queue-table .col-time { width: 9.5rem; white-space: nowrap; }
.compose-queue-table .col-slots { width: auto; min-width: 16rem; }
.compose-queue-table .col-action { width: 7.5rem; white-space: nowrap; vertical-align: middle; }
.compose-queue-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, 6.55rem);
  gap: 0.65rem;
  align-items: start;
}
.compose-queue-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: stretch;
}
.compose-queue-slot-tag {
  display: block;
  min-height: 1.05rem;
  overflow: hidden;
  color: #aeb9ca;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 0.05rem;
}
.compose-queue-slot-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(125, 147, 180, 0.18);
  background: #0b1018;
}
.compose-queue-slot-del {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.88;
}
.compose-queue-slot-del:hover {
  background: rgba(220, 70, 70, 0.92);
  opacity: 1;
}
.compose-queue-slot--add .compose-queue-slot-thumb--empty {
  border-style: dashed;
  border-color: rgba(125, 147, 180, 0.35);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compose-queue-slot-thumb--missing {
  border-style: dashed;
  border-color: rgba(220, 120, 80, 0.45);
  background: rgba(220, 80, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compose-queue-slot-missing-hint {
  font-size: 0.72rem;
  color: #c98a72;
  user-select: none;
}
.compose-queue-slot-add-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(125, 147, 180, 0.28);
  border-radius: 999px;
  background: rgba(13, 19, 29, 0.75);
  color: #aeb9ca;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.compose-queue-slot-add-btn:hover {
  color: #fff;
  border-color: rgba(215, 247, 42, 0.55);
  background: rgba(215, 247, 42, 0.22);
}
.compose-queue-slot-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  font-size: 0;
  color: transparent;
  border: none;
  border-radius: 0;
}
.compose-queue-slot-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(125, 147, 180, 0.16);
  border-radius: 0 0 6px 6px;
  background: rgba(125, 147, 180, 0.16);
}
.compose-queue-slot-tool {
  min-width: 0;
  height: 1.3rem;
  padding: 0;
  border: 0;
  background: rgba(13, 19, 29, 0.92);
  color: #aeb9ca;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
}
.compose-queue-slot-tool:hover {
  color: #ffffff;
  background: rgba(215, 247, 42, 0.28);
}
.compose-queue-slot-tool:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.compose-queue-expand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.48rem;
  min-height: 1.6rem;
}
.compose-queue-expand-chip--extra {
  border-style: dashed;
  opacity: 0.92;
}
.compose-queue-expand-empty {
  line-height: 1.35;
}
.compose-queue-expand-chip {
  min-width: 0;
  max-width: 7rem;
  height: 1.55rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(125, 147, 180, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d7e2f4;
  font-size: 0.74rem;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compose-queue-expand-chip:hover {
  border-color: rgba(215, 247, 42, 0.45);
  background: rgba(215, 247, 42, 0.14);
}
.compose-queue-actions {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  align-items: stretch;
}
.compose-queue-action-btn {
  width: 100%;
  min-height: 1.65rem;
}
#composeQueueImageModal.modal {
  z-index: 57;
}
.compose-queue-image-panel {
  max-width: min(96vw, 920px);
  width: min(96vw, 920px);
  padding: 1rem 1.2rem;
  text-align: center;
}
.compose-queue-image-preview {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 720px);
  margin: 0.5rem auto;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg);
}
.compose-queue-image-meta {
  margin: 0.35rem 0 0;
}
.compose-queue-tabs {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.compose-queue-tab {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.compose-queue-tab--active {
  color: var(--text);
  border-color: rgba(215, 247, 42, 0.5);
  background: rgba(215, 247, 42, 0.14);
}
.compose-queue-toolbar--gen {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}
.compose-queue-gen-lbl {
  margin: 0;
  font-size: 0.82rem;
}
.compose-queue-gen-select {
  min-width: 8rem;
  max-width: 14rem;
}
.compose-queue-gen-select-sm {
  min-width: 4.2rem;
  max-width: 5.5rem;
}
.compose-queue-panel-gallery,
.compose-queue-panel-queue {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.compose-gallery-scroll {
  flex: 1;
  overflow: auto;
  min-height: 12rem;
  padding-right: 0.15rem;
}
.compose-gallery-day {
  margin-bottom: 1rem;
}
.compose-gallery-day-title {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.compose-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.45rem;
}
.compose-gallery-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg);
}
.compose-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compose-gallery-item-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.15rem 0.3rem;
  font-size: 0.62rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #e8ecf1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compose-queue-row-outputs-col {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0 0.35rem;
  border-left: 1px solid rgba(125, 147, 180, 0.12);
  border-right: 1px solid rgba(125, 147, 180, 0.12);
}
.compose-queue-row-outputs-label {
  font-size: 0.68rem;
  color: #7a8799;
  letter-spacing: 0.04em;
}
.compose-queue-row-outputs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-top: 0;
  align-items: stretch;
  flex: 1;
}
.compose-queue-output-thumb {
  position: relative;
  width: 100%;
  max-width: 72px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}
.compose-queue-gen-hint {
  margin-left: 0.35rem;
  white-space: nowrap;
}
.compose-queue-gen-modal-hint {
  margin: 0.35rem 0 0.65rem;
  line-height: 1.45;
}
.compose-queue-output-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compose-queue-output-thumb--fav {
  border-color: #c9a227;
  box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.45);
}
.compose-queue-output-thumb--fav::after {
  content: "�?;
  position: absolute;
  top: 0.12rem;
  right: 0.14rem;
  z-index: 2;
  font-size: 0.62rem;
  line-height: 1;
  color: #f5c842;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.compose-queue-gen-status {
  font-size: 0.72rem;
  color: var(--muted);
}
#composeGalleryLightbox.modal {
  z-index: 59;
  padding: 1vh 1vw;
}
.compose-gallery-lightbox-panel {
  max-width: min(98vw, 1320px);
  width: min(98vw, 1320px);
  max-height: 96vh;
  padding: 0.85rem 2.75rem;
  text-align: center;
  position: relative;
}
.compose-gallery-lightbox-img {
  max-width: 100%;
  max-height: min(86vh, 920px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
}
.compose-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.compose-gallery-nav--prev {
  left: 0.35rem;
}
.compose-gallery-nav--next {
  right: 0.35rem;
}
.compose-gallery-lightbox-meta {
  margin: 0.5rem 0;
}
.compose-queue-slot-id {
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.2;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compose-queue-table .col-action .btn {
  display: block;
  width: 100%;
  margin-bottom: 0.22rem;
}
.compose-queue-table .col-action .btn:last-child {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .compose-queue-row {
    grid-template-columns: 1fr;
  }
  .compose-queue-row-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 147, 180, 0.12);
    padding: 0 0 0.55rem;
  }
  .compose-queue-row-outputs-col {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(125, 147, 180, 0.12);
    padding: 0.55rem 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .compose-queue-row-outputs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .compose-queue-actions {
    flex-direction: row;
  }
  .compose-queue-slots {
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  }
}
.btn-tiny {
  padding: 0.15rem 0.35rem;
  font-size: 0.72rem;
}
.compose-queue-pick-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--accent);
  background: rgba(20, 24, 32, 0.96);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.compose-queue-pick-bar.hidden {
  display: none !important;
}
.compose-queue-pick-hint {
  flex: 1;
  min-width: 12rem;
  font-size: 0.9rem;
}
.compose-queue-pick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
body.compose-queue-pick-active .main-grid-scroll .card {
  cursor: pointer;
}
body.compose-queue-pick-active .grid.grid-marquee {
  cursor: crosshair;
}
body.compose-queue-pick-active .card.expand-pick-selected {
  border-color: #ef4444;
  box-shadow:
    0 0 0 3px #ef4444,
    0 6px 20px rgba(239, 68, 68, 0.55);
}
body.compose-queue-pick-active .card.expand-pick-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(220, 38, 38, 0.48);
  pointer-events: none;
  z-index: 1;
}
body.compose-queue-pick-active .card.expand-pick-selected img,
body.compose-queue-pick-active .card.expand-pick-selected video,
body.compose-queue-pick-active .card.expand-pick-selected .card-media img,
body.compose-queue-pick-active .card.expand-pick-selected .card-media video {
  filter: saturate(0.75) brightness(0.88);
}

.bulk-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(4px);
}
.bulk-progress-overlay.hidden {
  display: none !important;
}
.bulk-progress-card {
  width: min(420px, 100%);
  padding: 22px 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.bulk-progress-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}
.bulk-progress-text {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.bulk-progress-shell {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #11161f;
}
.bulk-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.18s ease;
}
.bulk-progress-detail {
  margin: 12px 0 0;
  min-height: 1.2em;
}

.compose-queue-slot-tools--5 {
  grid-template-columns: repeat(5, 1fr);
}
.compose-queue-slot-tool--complement {
  color: #ffb89a;
  font-weight: 600;
}
.compose-queue-slot-tool--complement:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 120, 90, 0.35);
}

/* 预览模态框裁切 */
.modal-crop {

