

/* ============================================================
   Auto — bulk queue
   ============================================================ */

.drop-bulk {
  padding: 34px 18px;
  font-size: 15px;
  color: var(--text-soft);
  border-width: 2px;
}
button.drop-bulk {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  background: transparent;
  font-family: inherit;
}
.drop-bulk b { color: var(--text); }
.drop-bulk span { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }
.drop-bulk-ic {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--signal-lo);
  border: 1px solid var(--signal-mid);
  color: var(--signal);
}

.auto-opts {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px 20px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.auto-opts .trait { margin: 0; }
.auto-opts .trait-wide { grid-column: 1 / -1; }
.auto-opts select {
  width: 100%;
  padding: 9px 11px;
  background: var(--panel-in);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
}
.sub-styles-sm { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-bottom: 8px; }
.sub-styles-sm .sub-swatch { padding: 7px 6px 6px; }
.sub-styles-sm .sub-sample { font-size: 14px; }
.sub-styles-sm .sub-swatch i { font-size: 10px; margin-top: 4px; }

.auto-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}
.auto-bar .go { padding: 12px 26px; font-size: 15.5px; }
.auto-bar .btn-quiet { padding: 10px 16px; flex: 0 0 auto; }   /* base .btn-quiet is flex:1 */
.auto-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

.queue { display: flex; flex-direction: column; gap: 8px; }
.qrow {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: border-color 0.2s;
}
.qrow.is-done { border-color: rgba(74, 222, 128, 0.35); }
.qrow.is-error { border-color: rgba(255, 107, 107, 0.4); }
.qrow.is-active { border-color: var(--signal-mid); }
.qthumb {
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  background: var(--panel-in);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}
.qthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qbody { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qname {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qmeta { font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 400; margin-left: 8px; }
.qprog { height: 5px; border-radius: 99px; background: var(--panel-hi); overflow: hidden; }
.qfill { height: 100%; width: 0; background: var(--signal); border-radius: 99px; transition: width 0.5s ease; }
.is-done .qfill { background: var(--ok); }
.is-error .qfill { background: var(--err); }
.qmsg { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.qmsg b { color: var(--text-soft); font-weight: 500; }
.qmsg .qerr { color: var(--err); }
.qacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.qacts .btn-quiet, .qacts a.btn-quiet { padding: 6px 11px; font-size: 12.5px; flex: 0 0 auto; text-decoration: none; }
.qacts .qx { margin-left: auto; color: var(--dim); background: none; border: 0; cursor: pointer; font-size: 13px; }
.qacts .qx:hover { color: var(--err); }
.qpreview { grid-column: 1 / -1; }
.qpreview video { width: 100%; max-height: 460px; border-radius: var(--r); background: #000; display: block; }
.qscript {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--panel-in);
  border: 1px solid var(--line);
}

.history-cut-outputs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.history-cut-output { padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel-in); min-width: 0; }
.history-cut-output > b { font-size: 12.5px; }
.history-cut-output .qmsg { margin-top: 4px; line-height: 1.45; }
.history-preview { margin-top: 8px; }
.history-preview summary { cursor: pointer; color: var(--signal); font-size: 12.5px; }
.history-preview video { display: block; width: 100%; max-height: 460px; margin-top: 8px; border-radius: var(--r-sm); background: #000; }

@media (max-width: 760px) {
  .auto-opts { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 72px minmax(0, 1fr); }
  .qthumb { width: 72px; height: 72px; }
}


/* ============================================================
   Ai Autocute — input chips, voice chips, segment recipe
   ============================================================ */

.cinputs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.cinput, .cvoice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel);
  font-size: 12.5px;
  color: var(--text-soft);
}
.cinput b, .cvoice b {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 99px;
  background: var(--panel-hi);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.cinput i, .cvoice i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.cinput .cx { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 12px; padding: 0 2px; }
.cinput .cx:hover { color: var(--err); }
.ccap { width: 100%; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ccap b { color: var(--signal); }
.cvoices { display: flex; flex-wrap: wrap; gap: 6px; }
.cvoice { border-color: var(--signal-mid); background: var(--signal-lo); color: var(--text); }
.cvoice b { background: var(--signal); color: #1a1206; }
.cvoice-warn { border-color: rgba(255, 107, 107, 0.4); background: transparent; color: var(--err); }
.qrecipe {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qname .vbadge { margin: 0 6px 0 4px; vertical-align: 1px; }

/* Shared subtitle size control. Manual values use source-video ASS units. */
.subtitle-size { min-width: 0; }
.subtitle-size-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.subtitle-size-heading label { font-size: 12px; letter-spacing: 0; color: var(--text-soft); }
.subtitle-size-heading output { flex-shrink: 0; font-size: 13px; color: var(--signal); }
.trait .subtitle-size-auto {
  display: flex; align-items: center; gap: 9px; margin: 5px 0 9px;
  font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-soft);
}
.subtitle-size-auto input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--signal); }
.subtitle-size-inputs { display: flex; align-items: center; gap: 10px; max-width: 640px; min-width: 0; }
.subtitle-size-inputs .range-full { flex: 1; min-width: 48px; width: auto; margin: 0; }
.subtitle-size-inputs input[type="number"] {
  width: 82px; flex: 0 0 82px; min-height: 36px; padding: 7px 8px;
  font-family: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel-in); color: var(--text);
}
.subtitle-size-inputs span { font-size: 12px; color: var(--muted); }
.subtitle-size input:disabled { opacity: .5; cursor: not-allowed; }
.subtitle-size input:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.subtitle-size input[type="number"]:invalid { border-color: var(--err); }
.subtitle-size-hint, .subtitle-batch-note {
  margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere;
}
.subtitle-batch-note { color: var(--signal); }
.subtitle-size.is-unavailable .subtitle-size-heading output { color: var(--muted); }
