/* 影游配音：布局与文生音效一致，类名沿用 txt2sfx-* 以便复用样式习惯 */
.fd-load-older-wrap {
  flex-shrink: 0;
  padding: 0 0 8px;
  text-align: center;
}
.fd-load-older-wrap .btn {
  min-height: 32px;
}
html.page-film-dub-root {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.page-film-dub {
  height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: manipulation;
}
body.page-film-dub.film-dub-modal-open,
body.page-film-dub.fd-guest-preview-modal-open {
  overflow: hidden;
}
/* 全站 body 锁滚动见 static/css/app.css 中 .qsy-body-scroll-locked（由 mobile-modal-scroll-lock.js 统一管理） */
/* 未登录：顶栏「登录」提示 + 试听按钮 */
.film-dub-login-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.film-dub-login-alert .film-dub-guest-open-preview {
  flex-shrink: 0;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
@media (max-width: 480px) {
  .film-dub-login-alert {
    flex-direction: column;
    align-items: stretch;
  }
  .film-dub-login-alert .film-dub-guest-open-preview {
    width: 100%;
  }
}
/* 未登录：试听模态 + 波浪播放器 */
.film-dub-guest-preview-modal {
  z-index: 340;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.film-dub-guest-preview-dialog {
  max-width: min(520px, 100%);
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  background: var(--surface);
  padding: 0 0 20px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(96vh, 900px);
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}
.film-dub-guest-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 6px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
}
.film-dub-guest-preview-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.film-dub-guest-preview-sub {
  margin: 0 18px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.fd-guest-demo-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 18px 12px;
}
.fd-guest-demo-tab {
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.fd-guest-demo-tab:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.06);
}
.fd-guest-demo-tab.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0.06) 100%);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}
:root[data-theme="gray"] .fd-guest-demo-tab {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text, #e5e7eb);
}
:root[data-theme="gray"] .fd-guest-demo-tab.is-active {
  border-color: #60a5fa;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.25);
}
.film-dub-guest-preview-card {
  margin: 0 18px 12px;
  padding: 14px 14px 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.04) 0%, rgba(37, 99, 235, 0.07) 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  min-width: 0;
  box-sizing: border-box;
}
.film-dub-guest-preview-canvas-outer {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.fd-guest-trim-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
}
.fd-guest-trim-overlay:not([hidden]) {
  pointer-events: auto;
}
.fd-guest-trim-dim {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: auto;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.fd-guest-trim-dim--l {
  left: 0;
}
.fd-guest-trim-dim--r {
  right: 0;
}
.fd-guest-trim-mid {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 1.5px solid rgba(37, 99, 235, 0.95);
  border-radius: 4px;
  box-sizing: border-box;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
}
.fd-guest-trim-pan {
  position: absolute;
  top: 3px;
  z-index: 4;
  width: 22px;
  height: 16px;
  min-width: 20px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.88);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.fd-guest-trim-pan:hover {
  background: #fff;
  border-color: #2563eb;
}
.fd-guest-trim-pan:active {
  cursor: grabbing;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35) inset;
}
.fd-guest-trim-pan-ic {
  display: block;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}
.fd-guest-trim-handle {
  position: absolute;
  width: 20px;
  height: 40px;
  min-height: 32px;
  max-height: 52px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.fd-guest-trim-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: #2563eb;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
.fd-guest-trim-handle:hover::before,
.fd-guest-trim-handle:focus-visible::before {
  background: #1d4ed8;
  width: 3.5px;
}
.fd-guest-trim-handle--r {
  /* same as L; class kept for a11y / hooks */
}
.fd-guest-crop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
  min-width: 0;
}
#fd-guest-trim-apply[hidden],
#fd-guest-crop-list-btn[hidden] {
  display: none !important;
}
#fd-guest-crop-list-btn[hidden] .fd-guest-crop-count {
  display: none;
}
.fd-guest-crop-count {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}
.fd-guest-crop-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
body.fd-crop-drawer-open .fd-guest-crop-drawer-backdrop {
  display: block;
}
.fd-guest-crop-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 410;
  width: min(100%, 340px);
  max-width: 100vw;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  transform: translateX(-100%);
  transition: transform 0.22s ease, visibility 0.22s;
  visibility: hidden;
  pointer-events: none;
}
body.fd-crop-drawer-open .fd-guest-crop-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.fd-guest-crop-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.fd-guest-crop-drawer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.fd-guest-crop-player {
  flex-shrink: 0;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
}
.fd-guest-crop-player[hidden] {
  display: none !important;
}
.fd-guest-crop-player-title {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 8px;
  min-width: 0;
  word-break: break-word;
}
.fd-guest-crop-player-transport {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 6px;
  min-width: 0;
}
.fd-guest-crop-player-play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s;
}
.fd-guest-crop-player-play:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 3px 14px rgba(37, 99, 235, 0.5);
}
.fd-guest-crop-player-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.fd-guest-crop-player-time {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}
.fd-guest-crop-player-range {
  display: block;
  width: 100%;
  margin: 0;
}
.fd-guest-crop-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fd-guest-crop-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--surface-2, var(--surface));
  font-size: 13px;
}
.fd-guest-crop-item-name {
  flex: 1 1 100px;
  min-width: 0;
  font-weight: 500;
  word-break: break-all;
}
.fd-guest-crop-item-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
  flex: 0 0 auto;
  margin-left: auto;
}
.fd-guest-crop-item-actions .btn {
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.fd-guest-crop-item-actions .fd-guest-crop-item-del:hover,
.fd-guest-crop-item-actions .fd-guest-crop-item-del:focus-visible {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.3);
  background: rgba(254, 226, 226, 0.35);
}
.fd-guest-crop-drawer-foot {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}
#fd-guest-crop-list-empty {
  padding: 8px 16px 0;
  flex-shrink: 0;
}
#fd-guest-crop-list-empty[hidden] {
  display: none;
}
body.fd-crop-drawer-open {
  overflow: hidden;
}
.fd-guest-preview-wave {
  display: block;
  width: 100%;
  height: 140px;
  vertical-align: top;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.film-dub-guest-preview-transport {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.fd-guest-preview-play {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
  margin: 0;
}
.fd-guest-preview-play:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}
.fd-guest-preview-play:active {
  transform: scale(0.98);
}
.fd-guest-preview-play .fd-guest-ic-pause,
.fd-guest-preview-play .fd-guest-ic-play {
  display: block;
  margin: 0 auto;
}
.fd-guest-preview-time {
  flex: 0 0 auto;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.fd-guest-time-sep {
  color: var(--muted);
  font-weight: 500;
}
.fd-guest-preview-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 100px;
  min-width: 0;
  max-width: 220px;
}
.fd-guest-vol-ic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.9;
}
.fd-guest-preview-vol-range {
  flex: 1;
  min-width: 72px;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.fd-guest-preview-vol-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
}
.fd-guest-preview-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  margin-top: -4.5px;
}
.fd-guest-preview-vol-range::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
}
.fd-guest-preview-vol-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
:root[data-theme="gray"] .fd-guest-preview-vol-range::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
}
:root[data-theme="gray"] .fd-guest-preview-vol-range::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
}
.fd-guest-preview-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.fd-guest-preview-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.fd-guest-preview-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  margin-top: -5px;
}
.fd-guest-preview-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.fd-guest-preview-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.film-dub-preview-dl {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.film-dub-preview-dl-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}
.film-dub-preview-dl-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 0;
  height: 40px;
  padding: 0 10px;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.film-dub-preview-dl-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
  border-color: var(--accent, #2563eb);
}
.film-dub-preview-dl-fmt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  column-gap: 16px;
  border: 0;
  margin: 0;
  padding: 2px 0 0;
  min-width: 0;
}
.film-dub-preview-dl-fmt-legend {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.film-dub-preview-dl-fmt-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}
.film-dub-preview-dl-fmt-label input {
  margin: 0;
  flex-shrink: 0;
}
.film-dub-preview-dl-hint {
  font-size: 12px;
  margin: 0;
  min-height: 2.6em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  padding-right: 2px;
  box-sizing: border-box;
}
.film-dub-preview-dl-btn {
  align-self: flex-start;
  margin-top: 0;
}
.film-dub-guest-preview-foot {
  margin: 0 18px !important;
}
:root[data-theme="gray"] .film-dub-guest-preview-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
:root[data-theme="gray"] .film-dub-guest-preview-canvas-outer {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}
:root[data-theme="gray"] .fd-guest-preview-range::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
}
body.page-film-dub .app-shell {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
body.page-film-dub .app-main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
}
body.page-film-dub .app-main > .page-title,
body.page-film-dub .app-main > .page-desc,
body.page-film-dub .app-main > .alert {
  flex-shrink: 0;
}
body.page-film-dub .txt2sfx-shell {
  flex: 1;
  min-height: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.txt2sfx-shell.is-disabled {
  pointer-events: none;
  opacity: 0.65;
}
.txt2sfx-drawer-backdrop {
  display: none;
}
.txt2sfx-mobile-bar {
  display: none;
}
.txt2sfx-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  max-height: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.txt2sfx-panel-left {
  flex: 0 0 280px;
  max-width: 36vw;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-2);
}
.txt2sfx-panel-head {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.txt2sfx-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
:root[data-theme="gray"] .txt2sfx-panel-left .txt2sfx-panel-head-row > span {
  color: #ffffff;
  text-shadow: none;
}
.txt2sfx-new-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
}
.txt2sfx-gen-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0;
  box-sizing: border-box;
}
.txt2sfx-session-row {
  position: relative;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.txt2sfx-session-row .txt2sfx-gen-item {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}
.txt2sfx-gen-item {
  padding: 10px 40px 10px 12px;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  box-sizing: border-box;
  border-radius: 0;
}
.txt2sfx-session-row:hover .txt2sfx-gen-item {
  background: rgba(0, 0, 0, 0.04);
}
:root[data-theme="gray"] .txt2sfx-session-row:hover .txt2sfx-gen-item {
  background: rgba(255, 255, 255, 0.06);
}
.txt2sfx-session-row.is-active .txt2sfx-gen-item {
  background: var(--surface);
}
.txt2sfx-panel-left .txt2sfx-gen-item {
  color: var(--text);
}
.txt2sfx-session-del {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, background 0.15s ease;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--muted);
}
.txt2sfx-session-row:hover .txt2sfx-session-del,
.txt2sfx-session-row:focus-within .txt2sfx-session-del {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.05);
}
.txt2sfx-session-del:hover {
  color: #b42318;
  background: #fef3f2;
}
.txt2sfx-session-del svg {
  display: block;
}
.txt2sfx-panel-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.txt2sfx-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.txt2sfx-time-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 8px;
  box-sizing: border-box;
  align-self: stretch;
}
.txt2sfx-chat-hint + .txt2sfx-time-sep {
  margin-top: 4px;
}
.txt2sfx-time-sep-line {
  flex: 1;
  min-width: 8px;
  height: 0;
  border: none;
  border-top: 1px dashed var(--border);
  opacity: 0.45;
}
.txt2sfx-time-sep-text {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
  opacity: 0.9;
}
.txt2sfx-bubble {
  max-width: min(92%, 560px);
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  border: 1px solid var(--border);
}
.txt2sfx-bubble.user {
  align-self: flex-end;
  background: var(--surface-2);
  position: relative;
}
.txt2sfx-bubble.user .txt2sfx-bubble-text {
  display: block;
}
.txt2sfx-bubble-user-actions {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
  padding: 2px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.txt2sfx-bubble.user:hover .txt2sfx-bubble-user-actions,
.txt2sfx-bubble.user:focus-within .txt2sfx-bubble-user-actions {
  opacity: 1;
  pointer-events: auto;
}
.txt2sfx-user-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.txt2sfx-user-action:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}
:root[data-theme="gray"] .txt2sfx-user-action:hover {
  background: rgba(255, 255, 255, 0.08);
}
.txt2sfx-user-action svg {
  display: block;
  flex-shrink: 0;
}
@media (hover: none) and (pointer: coarse) {
  .txt2sfx-bubble-user-actions {
    opacity: 0.92;
    pointer-events: auto;
  }
}
.txt2sfx-bubble.assistant {
  align-self: flex-start;
  background: var(--surface);
}
.txt2sfx-bubble.assistant.film-dub-bubble--active {
  box-shadow: 0 0 0 2px var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
}
.txt2sfx-bubble .film-dub-sfx-result {
  margin-top: 8px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.film-dub-sfx-result--failrow {
  width: 100%;
  justify-content: space-between;
}
.film-dub-listened-badge {
  font-size: 12px;
  line-height: 1.35;
  color: #dc2626;
  font-weight: 500;
  margin-left: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
:root[data-theme="gray"] .film-dub-listened-badge {
  color: #f87171;
}
.film-dub-sfx-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.film-dub-sfx-play svg {
  flex-shrink: 0;
}
.film-dub-sfx-play.is-playing {
  border-color: var(--accent, #2563eb);
  color: var(--accent, #2563eb);
  background: rgba(37, 99, 235, 0.08);
}
p.film-dub-pending {
  margin: 0;
  line-height: 1.5;
  animation: film-dub-pending-dots 1.2s ease-in-out infinite;
}
@keyframes film-dub-pending-dots {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
.film-dub-settings-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.film-dub-open-settings {
  flex-shrink: 0;
  min-height: 40px;
  touch-action: manipulation;
}
.film-dub-settings-summary {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fd-msg-modal.modal-backdrop {
  z-index: 320;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.fd-msg-modal .modal-body-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
body.page-film-dub.fd-msg-modal-open {
  overflow: hidden;
}
.film-dub-dl-modal {
  z-index: 315;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.film-dub-dl-dialog {
  max-width: min(420px, 100%);
}
.film-dub-dl-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}
.film-dub-dl-fmt-group {
  border: 0;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.film-dub-dl-fmt-legend {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  width: 100%;
  margin: 0 0 2px;
}
.film-dub-dl-fmt-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}
.film-dub-settings-modal {
  z-index: 300;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.film-dub-tutorial-modal {
  z-index: 310;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0));
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.film-dub-tutorial-dialog {
  max-width: min(720px, 100%);
  width: 100%;
  max-height: min(92dvh, 100vh);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius, 10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.film-dub-tutorial-body {
  max-height: min(80dvh, 100vh);
}
.film-dub-tutorial-prose {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.film-dub-tutorial-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.1em 0 0.5em;
  color: var(--text);
}
.film-dub-tutorial-prose h3:first-child {
  margin-top: 0;
}
.film-dub-tutorial-prose h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.9em 0 0.4em;
  color: var(--text);
}
.film-dub-tutorial-prose p {
  margin: 0.5em 0;
}
.film-dub-tutorial-prose ul {
  margin: 0.4em 0 0.6em;
  padding-left: 1.3em;
}
.film-dub-tutorial-prose li {
  margin: 0.25em 0;
}
.film-dub-tutorial-prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-2, #f1f5f9);
  color: var(--text);
  word-break: break-all;
}
.film-dub-tutorial-blockquote {
  margin: 0.75em 0;
  padding: 0.75em 0.9em;
  border-left: 3px solid var(--accent, #2563eb);
  background: var(--surface-2, #f8fafc);
  border-radius: 0 8px 8px 0;
}
.film-dub-tutorial-blockquote p {
  margin: 0.4em 0;
}
.film-dub-tutorial-table-wrap {
  overflow-x: auto;
  margin: 0.6em 0 1em;
  -webkit-overflow-scrolling: touch;
}
.film-dub-tutorial-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 13px;
}
.film-dub-tutorial-table th,
.film-dub-tutorial-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.film-dub-tutorial-table th {
  background: var(--surface-2, #f1f5f9);
  font-weight: 600;
}
.film-dub-open-tutorial {
  flex-shrink: 0;
  min-height: 40px;
  touch-action: manipulation;
}
.film-dub-settings-dialog {
  max-width: min(520px, 100%);
  width: 100%;
  max-height: min(90dvh, 100vh);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.film-dub-settings-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.film-dub-settings-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.film-dub-settings-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--surface);
  padding: 0 16px 16px;
  box-sizing: border-box;
}
.film-dub-controls {
  flex-shrink: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.film-dub-controls--modal {
  border-top: none;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
  gap: 10px;
}
.film-dub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}
.film-dub-row .film-dub-preset-voice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.film-dub-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
}
.film-dub-row select,
.film-dub-row input[type="text"] {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  min-width: 8rem;
  max-width: 100%;
}
/* 仅两档 mp3/wav，不必与长文案同宽 */
.film-dub-row label.film-dub-col-format {
  flex: 0 0 auto;
  width: auto;
  max-width: 6.5rem;
}
.film-dub-select-compact,
.film-dub-col-format .film-dub-select-compact {
  width: 5.75rem;
  min-width: 0;
  max-width: 6.5rem;
  box-sizing: border-box;
}
.fd-voice-desc-builtin {
  margin-top: 10px;
}
.fd-vd-builtin-lead {
  font-size: 11px;
  margin: 8px 0 6px;
  color: var(--muted);
}
.fd-vd-builtin-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fd-vd-builtin-btn {
  flex: 0 1 auto;
}
.fd-vd-builtin-btn.is-selected {
  border-color: var(--accent, #2563eb);
  color: var(--accent, #1d4ed8);
  background: rgba(37, 99, 235, 0.1);
  font-weight: 600;
}
:root[data-theme="gray"] .fd-vd-builtin-btn.is-selected {
  border-color: #94a3b8;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.15);
}
.film-dub-voice-desc {
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  resize: vertical;
  font-family: inherit;
}
/* 声音设计：本机声音描述预设 */
.fd-vd-presets {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}
:root[data-theme="gray"] .fd-vd-presets {
  background: rgba(255, 255, 255, 0.03);
}
.fd-vd-preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.fd-vd-preset-row:last-of-type {
  margin-bottom: 0;
}
.fd-vd-preset-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  flex: 1 1 12rem;
  min-width: 0;
}
.fd-vd-preset-label select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  max-width: 100%;
}
.fd-vd-preset-name-input {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.fd-vd-preset-io {
  margin-top: 4px;
  align-items: center;
}
.fd-vd-preset-list {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  max-height: 12rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.fd-vd-preset-list:empty {
  display: none;
}
.fd-vd-preset-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.fd-vd-preset-list li:last-child {
  margin-bottom: 0;
}
.fd-vd-preset-list .fd-vd-pname {
  min-width: 0;
  flex: 1;
  color: var(--text);
  word-break: break-word;
}
.fd-vd-preset-list .fd-vd-ptext {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  max-height: 2.6em;
  overflow: hidden;
}
.fd-vd-preset-del {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.fd-vd-preset-del:hover {
  color: #b42318;
  background: #fef3f2;
}
.txt2sfx-input-wrap {
  flex-shrink: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.film-dub-input-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.txt2sfx-char-count {
  font-size: 12px;
  margin: 4px 0 0;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.txt2sfx-char-count.is-over {
  color: #b42318;
  font-weight: 600;
}
.txt2sfx-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.film-dub-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 5.5rem;
}
.film-dub-actions-col .btn {
  width: 100%;
  box-sizing: border-box;
}
.txt2sfx-prompt {
  flex: 1;
  min-height: 72px;
  max-height: 200px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
@media (max-width: 768px) {
  body.page-film-dub .app-main {
    padding: 8px 12px 12px;
  }
  body.page-film-dub .page-title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }
  body.page-film-dub .page-desc {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 0.5rem;
  }
  body.page-film-dub .txt2sfx-shell {
    margin-top: 4px;
  }
  .txt2sfx-layout {
    flex-direction: column;
    max-height: none;
    min-height: 0;
    flex: 1;
  }
  .txt2sfx-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0f172a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  :root[data-theme="gray"] .txt2sfx-drawer-backdrop {
    background: #0a0a0b;
  }
  .txt2sfx-shell.is-drawer-open .txt2sfx-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .txt2sfx-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 6px 2px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  .txt2sfx-sessions-toggle {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 15px;
    touch-action: manipulation;
  }
  .txt2sfx-panel-left {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 300px);
    max-width: none;
    flex: 0 0 auto;
    max-height: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 2px 0 0 0 var(--border), 8px 0 20px #64748b;
    z-index: 101;
    background: var(--surface-2, #f1f5f9);
    opacity: 1;
    isolation: isolate;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    pointer-events: none;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
  }
  .txt2sfx-shell.is-drawer-open .txt2sfx-panel-left {
    transform: translateX(0);
    pointer-events: auto;
  }
  .txt2sfx-panel-right {
    flex: 1;
    min-height: 0;
    min-width: 0;
  }
  .txt2sfx-chat {
    padding: 12px 12px;
  }
  .txt2sfx-bubble {
    font-size: 15px;
    max-width: min(96%, 560px);
  }
  .txt2sfx-input-wrap {
    padding: 12px 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  }
  .txt2sfx-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .txt2sfx-input-row .btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    touch-action: manipulation;
  }
  /* 移动端：清空 + 生成配音 并排 */
  .txt2sfx-input-row .film-dub-actions-col {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    width: 100%;
  }
  .txt2sfx-input-row .film-dub-actions-col .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .txt2sfx-prompt {
    font-size: 16px;
    min-height: 96px;
    max-height: 200px;
    line-height: 1.5;
    padding: 12px 14px;
    touch-action: manipulation;
  }
  .film-dub-settings-bar {
    padding: 8px 12px;
  }
  .film-dub-open-settings {
    min-height: 44px;
  }
  .film-dub-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .film-dub-row .film-dub-preset-voice-wrap {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }
  .film-dub-row label {
    width: 100%;
    max-width: 100%;
  }
  .film-dub-row label.film-dub-col-format {
    max-width: 100%;
  }
  .film-dub-select-compact,
  .film-dub-col-format .film-dub-select-compact {
    max-width: 100%;
    width: 100%;
  }
  .film-dub-row select,
  .film-dub-row input[type="text"] {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
    box-sizing: border-box;
  }
  .film-dub-voice-desc {
    font-size: 16px;
  }
  textarea#fd-voice-desc {
    min-height: 88px;
  }
  #fd-context {
    min-height: 44px;
  }
  .txt2sfx-new-btn {
    min-height: 40px;
    touch-action: manipulation;
  }
  .txt2sfx-gen-item {
    min-height: 44px;
    padding: 12px 40px 12px 14px;
  }
  .txt2sfx-session-del {
    opacity: 0.88;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.04);
  }
  :root[data-theme="gray"] .txt2sfx-session-del {
    background: rgba(255, 255, 255, 0.06);
  }
  .film-dub-settings-modal {
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0));
  }
  .film-dub-settings-dialog {
    max-height: min(92dvh, 100vh);
  }
}
/* 声音克隆：参考样本 — 上传文件 / 麦克风二选一 */
.fd-clone-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
  align-items: center;
}
.fd-clone-mode-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}
.fd-clone-mode-opt input {
  margin: 0;
}
.fd-clone-panel {
  margin-top: 2px;
}
.fd-clone-mic-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.fd-clone-mic-timer {
  font-variant-numeric: tabular-nums;
  min-width: 5.5em;
}
.fd-clone-mic-after {
  margin-top: 8px;
}
.fd-clone-mic-preview-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.fd-clone-mic-preview-label {
  font-size: 12px;
}
.fd-clone-mic-preview-audio {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  vertical-align: middle;
}
.fd-clone-mic-after-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* 声音克隆：上传区域 — 点击或拖入 */
.fd-clone-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 18px;
  min-height: 128px;
  box-sizing: border-box;
  border: 1.5px dashed var(--border, #c8d0dd);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.06) 0%, rgba(15, 23, 42, 0.02) 50%, transparent 100%);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  outline: none;
}
.fd-clone-dropzone:hover {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.03) 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}
.fd-clone-dropzone:focus-visible {
  box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 4px var(--link, #2563eb);
}
.fd-clone-dropzone.is-dragover {
  border-color: #2563eb;
  border-style: solid;
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.fd-clone-dz-ic {
  color: #2563eb;
  opacity: 0.92;
  line-height: 0;
}
.fd-clone-dz-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #0f172a);
  letter-spacing: 0.01em;
}
.fd-clone-dz-hint {
  font-size: 12px;
  line-height: 1.45;
  max-width: 26em;
  margin: 0;
}
.fd-clone-file-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 10px 0 0;
  font-size: 12px;
}
.fd-clone-file-line[hidden] {
  display: none !important;
}
.fd-clone-file-name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  color: var(--text-muted, #64748b);
}
:root[data-theme="gray"] .fd-clone-dropzone {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, rgba(96, 165, 250, 0.08) 0%, transparent 100%);
}
:root[data-theme="gray"] .fd-clone-dropzone:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
:root[data-theme="gray"] .fd-clone-dz-ic {
  color: #93c5fd;
}
:root[data-theme="gray"] .fd-clone-dz-text {
  color: var(--text, #e5e7eb);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
