﻿/** OneTab Upload Queue - page-specific styles */


* { box-sizing: border-box; margin: 0; padding: 0; }































/* Autopilot toggle */
.ap-toggle { display:flex; align-items:center; gap:8px; cursor:pointer; user-select:none; padding:5px 10px; border:1px solid var(--border); border-radius:8px; background:var(--bg2,#212124); }
.ap-toggle .ap-toggle-label { font-size:12px; font-weight:700; letter-spacing:.02em; color:var(--text-2,#c0c0c5); text-transform:uppercase; }
.ap-switch { position:relative; display:inline-block; width:38px; height:20px; }
.ap-switch input { opacity:0; width:0; height:0; }
.ap-slider { position:absolute; inset:0; background:var(--border-strong,#4a4a52); border-radius:20px; transition:background .18s; }
.ap-slider::before { content:''; position:absolute; height:14px; width:14px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .18s; }
.ap-switch input:checked + .ap-slider { background:var(--green,#6ccb5f); }
.ap-switch input:checked + .ap-slider::before { transform:translateX(18px); }
.ap-state { font-size:11px; font-weight:700; color:var(--text-3,#90909a); min-width:22px; }
.ap-toggle.on { border-color:var(--green,#6ccb5f); }
.ap-toggle.on .ap-state { color:var(--green,#6ccb5f); }
.ap-toggle.busy { opacity:.6; pointer-events:none; }
/* Delete math-captcha modal */
.del-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:200; }
.del-overlay.show { display:flex; }
.del-box { background:var(--bg3,#2a2a2e); border:1px solid var(--border2,#3f3f46); border-radius:12px; padding:22px; width:min(380px,92vw); box-shadow:0 8px 30px rgba(0,0,0,.5); }
.del-box h3 { font-size:16px; margin-bottom:6px; color:var(--text,#f3f3f3); display:flex; align-items:center; gap:8px; }
.del-box .del-warn { font-size:12.5px; color:var(--text-2,#c0c0c5); margin-bottom:14px; line-height:1.5; }
.del-box .del-target { font-weight:700; color:var(--red,#ef4444); }
.del-box .del-q { font-size:13px; color:var(--text-2,#c0c0c5); margin-bottom:6px; }
.del-box .del-q strong { color:var(--text,#f3f3f3); font-size:15px; }
.del-box input.del-input { width:100%; padding:9px 11px; font-size:15px; border:1px solid var(--border2,#3f3f46); border-radius:8px; background:var(--bg,#1a1a1c); color:var(--text,#f3f3f3); margin-bottom:6px; }
.del-box input.del-input.err { border-color:var(--red,#ef4444); animation:delShake .25s; }
@keyframes delShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.del-box .del-err { font-size:11.5px; color:var(--red,#ef4444); min-height:15px; margin-bottom:10px; }
.del-box .del-actions { display:flex; gap:8px; justify-content:flex-end; }
.del-box 
.del-box 



































/* CHANNEL CARD */
.channel-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: border-color .15s; }
.channel-card.has-file { border-color: rgba(96,165,250,.3); }
.channel-card.ready { border-color: rgba(74,222,128,.3); }
.channel-card.uploading { border-color: rgba(96,165,250,.5); }
.channel-card.success { border-color: rgba(74,222,128,.5); }
.channel-card.failed { border-color: rgba(239,68,68,.5); }

.channel-row {
  display: grid;
  grid-template-columns: 42px 1fr auto auto auto;
  gap: 14px; align-items: center;
  padding: 14px 18px; cursor: pointer;
  transition: background .12s;
}
.channel-row:hover { background: var(--bg-hover); }
.channel-thumb { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-subtle); border: 1px solid var(--border); object-fit: cover; flex-shrink: 0; }
.channel-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-2); font-weight: 700; font-size: 15px; }
.channel-info { min-width: 0; }
.channel-name { font-size: 14px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.channel-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; font-family: 'Roboto Mono', monospace; }
.channel-meta .src-badge { background: var(--brand-soft); color: var(--brand); padding: 1px 6px; border-radius: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.channel-meta .src-badge.manual { background: var(--blue-soft); color: var(--blue); }
.channel-meta .vtype-badge { padding: 1px 6px; border-radius: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--border2); color: var(--text-2); }
.channel-meta .vtype-badge.vt-long   { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.channel-meta .vtype-badge.vt-short  { background: var(--blue-soft);  color: var(--blue);  border-color: transparent; }
.channel-meta .vtype-badge.vt-short2 { background: var(--purple-soft, rgba(167,139,250,.14)); color: var(--purple, #a78bfa); border-color: transparent; }

.row-status-mini { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px; }
.row-status-mini.waiting { background: var(--bg-subtle); color: var(--text-3); }
.row-status-mini.has-file { background: var(--blue-soft); color: var(--blue); }
.row-status-mini.ready { background: var(--green-soft); color: var(--green); }
.row-status-mini.missing { background: var(--red-soft); color: var(--red); }
.row-status-mini.uploading { background: var(--blue-soft); color: var(--blue); }
.row-status-mini.success { background: var(--green-soft); color: var(--green); }
.row-status-mini.failed { background: var(--red-soft); color: var(--red); }

.row-progress { width: 80px; font-size: 11px; color: var(--text-3); font-family: 'Roboto Mono', monospace; text-align: right; }

.expand-icon { width: 18px; height: 18px; color: var(--text-3); transition: transform .15s; }
.expand-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.channel-card.expanded .expand-icon { transform: rotate(180deg); }

.channel-
.channel-card.expanded .channel-

/* DROP ZONE (per channel) */
.drop-zone { background: var(--bg-elevated); border: 2px dashed var(--border-strong); border-radius: 10px; padding: 26px 18px; text-align: center; cursor: pointer; transition: all .15s; margin: 12px 0 14px; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background: var(--brand-bg); }
.drop-zone svg { width: 32px; height: 32px; stroke: var(--text-3); fill: none; stroke-width: 1.5; margin-bottom: 8px; }
.drop-zone.dragover svg { stroke: var(--brand); }
.drop-zone h4 { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 3px; }
.drop-zone p { font-size: 11.5px; color: var(--text-3); }
.drop-zone input[type=file] { display: none; }

.file-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; margin: 10px 0 14px; }
.file-pill-icon { width: 30px; height: 30px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-pill-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.file-pill-info { flex: 1; min-width: 0; }
.file-pill-name { font-size: 12.5px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill-meta { font-size: 10.5px; color: var(--text-3); margin-top: 1px; font-family: 'Roboto Mono', monospace; }
.file-pill-remove { padding: 4px 8px; font-size: 10.5px; }

/* FORM */
.row-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
.field label .required { color: var(--red); }
.field label .char-count { font-size: 10px; color: var(--text-4); font-family: 'Roboto Mono', monospace; font-weight: 500; }
.field input, .field select, .field textarea { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 7px; padding: 8px 11px; font-size: 12.5px; color: var(--text-1); font-family: inherit; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-dim); box-shadow: 0 0 0 3px rgba(228,181,61,.08); }
.field textarea { min-height: 70px; resize: vertical; }
.field .help { font-size: 10.5px; color: var(--text-3); }

/* THUMBNAIL DROP */
.thumb-zone { background: var(--bg-subtle); border: 1.5px dashed var(--border-strong); border-radius: 8px; padding: 14px; text-align: center; cursor: pointer; transition: all .15s; min-height: 96px; display: flex; align-items: center; justify-content: center; }
.thumb-zone:hover, .thumb-zone.dragover { border-color: var(--brand); background: var(--brand-bg); }
.thumb-zone svg { width: 24px; height: 24px; stroke: var(--text-3); fill: none; stroke-width: 1.5; margin-right: 8px; }
.thumb-zone p { font-size: 11px; color: var(--text-3); }
.thumb-zone input[type=file] { display: none; }
.thumb-preview { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 8px; }
.thumb-preview img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; background: #000; }
.thumb-preview .info { flex: 1; min-width: 0; }
.thumb-preview .name { font-size: 11.5px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-preview .size { font-size: 10.5px; color: var(--text-3); font-family: 'Roboto Mono', monospace; }
.thumb-preview .remove { padding: 3px 8px; font-size: 10px; }

/* ACTIONS BAR */
.row-actions { display: flex; gap: 8px; margin-top: 4px; align-items: center; }
.row-actions .badges { display: flex; gap: 5px; flex-wrap: wrap; margin-right: auto; }
.warn-badge { padding: 2px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.warn-badge.missing { background: var(--red-soft); color: var(--red); }
.warn-badge.warn { background: var(--amber-soft); color: var(--amber); }

/* PROGRESS BAR (in expanded view) */
.row-progress-bar { margin-top: 12px; padding: 12px 14px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 8px; }
.row-progress-bar.success { border-color: rgba(74,222,128,.4); }
.row-progress-bar.failed { border-color: rgba(239,68,68,.4); }
.row-progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; }
.row-progress-bar .bar-wrap { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.row-progress-bar .bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-dim)); border-radius: 99px; transition: width .3s; }
.row-progress-bar .bar-fill.success { background: var(--green); }
.row-progress-bar .bar-fill.failed { background: var(--red); }
.row-progress-bar .stats { font-size: 10.5px; color: var(--text-3); font-family: 'Roboto Mono', monospace; display: flex; gap: 12px; }
.row-progress-bar .msg { margin-top: 6px; font-size: 11px; color: var(--text-3); }
.row-progress-bar .msg a { color: var(--brand); }

/* TOP STICKY UPLOAD ALL BAR */
.upload-all-bar {
  position: sticky; top: 50px; z-index: 25;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.upload-all-summary { flex: 1; font-size: 12.5px; color: var(--text-2); }
.upload-all-summary strong { color: var(--text-1); }
.upload-all-summary .ready-cnt { color: var(--green); }
.upload-all-summary .skip-cnt { color: var(--amber); }

/* ADD CHANNEL */
.add-channel-row {
  background: var(--bg-elevated); border: 1.5px dashed var(--border-strong);
  border-radius: 10px; padding: 16px; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; color: var(--text-3); font-size: 12.5px; font-weight: 600;
  transition: all .15s;
}
.add-channel-row:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.add-channel-row svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* MODAL */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 100; display: none; align-items: center; justify-content: center;  padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 14px; width: 100%; max-width: 600px; max-height: 85vh; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.modal-head { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 16px; font-weight: 700; }
.modal-head .sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.modal-
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { background: transparent; border: none; color: var(--text-3); cursor: pointer; font-size: 22px; line-height: 1; padding: 0 8px; }
.modal-close:hover { color: var(--text-1); }
.modal-head-flex { display: flex; align-items: center; justify-content: space-between; }

.modal-search { padding: 10px 22px; border-bottom: 1px solid var(--border); }
.modal-search input { width: 100%; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 7px; padding: 8px 11px; font-size: 12.5px; color: var(--text-1); font-family: inherit; }

.confirm-summary-list { display: flex; flex-direction: column; gap: 6px; }
.confirm-summary-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; padding: 8px 12px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 7px; align-items: center; }
.confirm-dot { width: 8px; height: 8px; border-radius: 50%; }
.confirm-dot.ok { background: var(--green); }
.confirm-dot.skip { background: var(--amber); }
.confirm-name { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.confirm-sub { font-size: 10.5px; color: var(--text-3); font-family: 'Roboto Mono', monospace; margin-top: 2px; }
.confirm-reason { font-size: 10.5px; color: var(--amber); font-family: 'Roboto Mono', monospace; }

.modal-list { padding: 8px; overflow-y: auto; flex: 1; }
.modal-channel { display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; padding: 10px 12px; border-radius: 7px; cursor: pointer; align-items: center; }
.modal-channel:hover { background: var(--bg-hover); }
.modal-channel.disabled { opacity: .4; cursor: not-allowed; }
.modal-channel .mc-thumb { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-subtle); }
.modal-channel .mc-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--text-2); }
.modal-channel .mc-info { min-width: 0; }
.modal-channel .mc-name { font-size: 12.5px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-channel .mc-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.modal-channel .mc-badge { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.modal-channel .mc-badge.added { background: var(--brand-soft); color: var(--brand); }
.modal-channel .mc-badge.connected { background: var(--green-soft); color: var(--green); }
.modal-channel .mc-badge.notconnected { background: var(--bg-subtle); color: var(--text-3); border: 1px solid var(--border); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 70px 30px; color: var(--text-3); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; }
.empty-state svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: .4; margin-bottom: 16px; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: 12.5px; max-width: 440px; margin: 0 auto 14px; line-height: 1.55; }

/* TOAST */
.toast-stack { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 16px; font-size: 12.5px; min-width: 280px; max-width: 380px; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: slidein .25s ease-out; }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }
@keyframes slidein { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 900px) { .row-form { grid-template-columns: 1fr; }  }
@media (max-width: 760px) {    .channel-row { grid-template-columns: 36px 1fr auto; gap: 10px; padding: 12px; } .row-progress { display: none; } }

