:root {
  --bg: #09090c;
  --bg-soft: #101118;
  --card: rgba(20, 22, 30, 0.88);
  --card-strong: #131722;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #9ea7bb;
  --primary: #7c5cff;
  --primary-2: #44d7ff;
  --success: #17c964;
  --warning: #ffb020;
  --danger: #ff4d67;
  --info: #3aa8ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(68, 215, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #08090d 0%, #0b0c11 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}
img { max-width: 100%; height: auto; }
a { color: #c9d2ff; text-decoration: none; }
a:hover { color: #fff; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
  background: rgba(255,255,255,0.05);
}
button { cursor: pointer; border: 0; }
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0; }
legend { padding: 0 8px; color: var(--muted); }

.dt-shell { position: relative; z-index: 1; }
.dt-auth-page, .dt-generic-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.dt-auth-hero { width: min(480px, 100%); display: block;}
.dt-auth-copy, .dt-auth-card, .dt-panel-card, .dt-stat-card, .dt-sidebar, .dt-page-header, .dt-job-card {
  backdrop-filter: blur(18px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dt-auth-copy { border-radius: 32px; padding: 48px; display:flex; flex-direction:column; justify-content:center; min-height:640px; }
.dt-auth-copy h1 { font-size: clamp(2.6rem, 4vw, 4.8rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.04em; }
.dt-auth-copy p { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 720px; }
.dt-auth-card { border-radius: 28px; padding: 28px; display:flex; flex-direction:column; justify-content:center; }
.dt-auth-help { margin-top: 16px; text-align: center; }
.dt-hero-pills { display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.dt-pill { border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); color:#d7def5; border-radius:999px; padding:8px 12px; font-size:.88rem; }
.dt-eyebrow {
  display:inline-flex; align-items:center; width:fit-content; padding:8px 14px; border-radius:999px;
  background:rgba(124,92,255,.12); color:#cabeff; border:1px solid rgba(124,92,255,.2);
  font-size:12px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:18px;
}
.dt-feature-list, .dt-bullet-list { margin: 24px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.dt-card-head { margin-bottom: 20px; }
.dt-card-head h2, .dt-panel-card h1, .dt-panel-card h2 { margin: 0 0 10px; font-size: 1.35rem; }
.dt-card-head p, .dt-panel-card p, .dt-stat-card p, .dt-sidebar-footer span, .dt-list-item span, .dt-list-item small, .dt-job-card small { color: var(--muted); }
.dt-login-form, .dt-form-grid { display: grid; gap: 16px; }
.dt-login-form label, .dt-form-grid label, .dt-form-grid fieldset { display: grid; gap: 8px; }
.dt-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dt-form-span-2 { grid-column: 1 / -1; }
.dt-checkbox { grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; }
.dt-checkbox input { width: 18px; height: 18px; }
.dt-button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 18px;
  border-radius:14px; font-weight:600; transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease, background .16s ease;
}
.dt-button:hover { transform: translateY(-1px); }
.dt-button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.dt-button-primary { color:#fff; background:linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); box-shadow:0 14px 30px rgba(124,92,255,.25); }
.dt-button-ghost { color:var(--text); background:rgba(255,255,255,.05); border:1px solid var(--line); }
.dt-button-danger { color:#fff; background:linear-gradient(135deg, #9b1631 0%, var(--danger) 100%); }
.dt-button-block { width:100%; }
.dt-alert {
  border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid transparent;
}
.dt-alert.is-success { background: rgba(23,201,100,.12); border-color: rgba(23,201,100,.22); }
.dt-alert.is-error { background: rgba(255,77,103,.12); border-color: rgba(255,77,103,.22); }
.dt-alert.is-warning { background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.22); }

.dt-dashboard-page { min-height: 100vh; padding: 24px; }
.dt-dashboard-shell { display:grid; grid-template-columns: 280px 1fr; gap: 24px; max-width: 1440px; margin: 0 auto; }
.dt-sidebar { border-radius: 28px; padding: 22px; position: sticky; top: 24px; height: fit-content; }
.dt-sidebar-brand h2 { margin: 0; }
.dt-sidebar-nav { display:grid; gap: 10px; margin: 28px 0; }
.dt-sidebar-nav a {
  display:flex; align-items:center; min-height: 52px; border-radius: 16px; padding: 0 16px;
  color: var(--text); background: rgba(255,255,255,.03); border: 1px solid transparent;
}
.dt-sidebar-nav a.is-active { background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(68,215,255,.14)); border-color: rgba(124,92,255,.24); }
.dt-sidebar-footer { display:grid; gap:8px; }
.dt-dashboard-content { display:grid; gap: 20px; }
.dt-page-header { border-radius: 28px; padding: 28px; display:flex; justify-content:space-between; align-items:end; gap: 20px; }
.dt-page-header h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -0.03em; }
.dt-page-header p { margin: 0; color: var(--muted); max-width: 860px; }
.dt-header-actions { display:flex; gap: 12px; flex-wrap:wrap; }
.dt-stats-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dt-stat-card { border-radius: 24px; padding: 22px; }
.dt-stat-card span { display:block; color: var(--muted); font-size: .92rem; }
.dt-stat-card strong { display:block; font-size: clamp(2rem, 3vw, 2.8rem); margin: 8px 0 10px; }
.dt-panel-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dt-panel-card { border-radius: 24px; padding: 24px; min-width: 0; }
.dt-panel-card-highlight { background: linear-gradient(180deg, rgba(124,92,255,.12), rgba(68,215,255,.07)); }
.dt-simple-list, .dt-job-stack, .dt-target-list { display:grid; gap: 12px; }
.dt-list-item, .dt-target-item {
  display:flex; justify-content:space-between; gap: 16px; align-items:center;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.dt-list-item strong, .dt-target-item strong { display:block; }
.dt-list-item small, .dt-target-item small { display:block; margin-top: 4px; }
.dt-empty-state { color: var(--muted); }
.dt-badge { display:inline-flex; align-items:center; border-radius:999px; padding: 7px 12px; font-size:.82rem; font-weight:700; }
.dt-badge.is-success { background: rgba(23,201,100,.14); color: #8bf3b4; }
.dt-badge.is-warning { background: rgba(255,176,32,.14); color: #ffd27c; }
.dt-badge.is-danger { background: rgba(255,77,103,.14); color: #ff93a3; }
.dt-badge.is-muted { background: rgba(255,255,255,.08); color: #ced4e4; }
.dt-badge.is-info { background: rgba(58,168,255,.14); color: #8bc7ff; }
.dt-callout-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.dt-callout {
  border:1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 18px; padding: 16px;
  display:grid; gap: 6px;
}
.dt-table-wrap { overflow:auto; }
.dt-table { width:100%; border-collapse: collapse; min-width: 760px; }
.dt-table th, .dt-table td { padding: 14px 12px; text-align:left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dt-table th { color: var(--muted); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dt-inline-actions { display:flex; gap: 10px; flex-wrap: wrap; }
.dt-channel-row { display:flex; align-items:center; gap: 12px; }
.dt-channel-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.dt-channel-row span, .dt-channel-row small { display:block; color: var(--muted); }
.dt-channel-picker { display:grid; gap: 14px; }
.dt-chip-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.dt-chip { position: relative; display:block; }
.dt-chip input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.dt-chip span {
  display:grid; gap:4px; padding: 16px; border-radius: 18px; border:1px solid var(--line); background: rgba(255,255,255,.04);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dt-chip.is-checked span, .dt-chip input:checked + span { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.12); transform: translateY(-1px); }
.dt-chip small { color: var(--muted); }
.dt-channel-select-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.dt-channel-choice { position: relative; display:block; }
.dt-channel-choice input { position:absolute; opacity:0; pointer-events:none; }
.dt-channel-choice-card {
  display:grid; gap: 8px; padding: 16px; border-radius: 18px; border:1px solid var(--line); background: rgba(255,255,255,.04);
  min-height: 100%; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dt-channel-choice input:checked + .dt-channel-choice-card { border-color: rgba(68,215,255,.5); background: rgba(68,215,255,.12); transform: translateY(-1px); }
.dt-channel-choice-card img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.dt-channel-choice-avatar { width:54px; height:54px; border-radius:50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.dt-job-card { border-radius: 22px; padding: 20px; }
.dt-job-head { display:flex; justify-content:space-between; gap: 16px; align-items:flex-start; }
.dt-job-head h3 { margin: 0 0 6px; }
.dt-job-head p { margin: 0 0 4px; color: var(--muted); }
.dt-job-statuses { display:flex; gap: 8px; flex-wrap:wrap; justify-content:flex-end; }
.dt-job-meta { display:flex; flex-wrap:wrap; gap: 10px; color: var(--muted); font-size: .92rem; margin: 14px 0; }
.dt-target-side { display:grid; justify-items:end; gap: 4px; }
.dt-job-actions { margin-top: 16px; }
.narrow { width: min(900px, 100%); }

@media (max-width: 1180px) {
  .dt-dashboard-shell, .dt-panel-grid, .dt-stats-grid { grid-template-columns: 1fr; }
  .dt-sidebar { position: static; }
  .dt-auth-copy { min-height: auto; }
}

@media (max-width: 720px) {
  .dt-auth-page, .dt-dashboard-page, .dt-generic-page { padding: 18px; }
  .dt-page-header, .dt-auth-copy, .dt-auth-card, .dt-panel-card, .dt-stat-card, .dt-sidebar, .dt-job-card { padding: 18px; border-radius: 22px; }
  .dt-form-grid, .dt-chip-grid, .dt-callout-grid, .dt-channel-select-grid { grid-template-columns: 1fr; }
  .dt-page-header, .dt-job-head, .dt-list-item, .dt-target-item { flex-direction: column; align-items: flex-start; }
  .dt-job-statuses, .dt-target-side { justify-items: start; }
}

.dt-settings-grid small { color: var(--muted); }
.dt-list-item-stack { align-items: flex-start; }
.settings-layout.is-admin { margin-top: 18px; }


.dt-panel-span-2 { grid-column: 1 / -1; }
.dt-channel-card-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dt-channel-analytics-card {
  position: relative;
  display:grid;
  gap: 18px;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(15,17,24,.92), rgba(18,24,34,.88));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 20px 40px rgba(0,0,0,.28);
}
.dt-channel-card-top { display:grid; justify-items:center; text-align:center; gap: 10px; }
.dt-channel-card-status {
  position:absolute;
  top: 14px;
  right: 14px;
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .75rem;
  font-weight: 700;
}
.dt-channel-card-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.dt-channel-card-avatar-fallback {
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.dt-channel-card-name { font-size: 1.2rem; }
.dt-channel-card-email {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  line-height: 1.45;
  word-break: break-word;
}
.dt-channel-card-handle { color: var(--muted); font-size: .95rem; }
.dt-channel-card-metrics {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(7,10,16,.55);
}
.dt-channel-card-metric {
  display:grid;
  justify-items:center;
  gap: 6px;
  padding: 14px 10px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.dt-channel-card-metric:last-child { border-right: 0; }
.dt-channel-card-metric span {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dt-channel-card-metric strong { font-size: 1.35rem; }
.dt-channel-card-meta {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dt-channel-card-meta div {
  display:grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  min-width: 0;
}
.dt-channel-card-meta small { color: var(--muted); }
.dt-channel-card-meta strong {
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.dt-channel-card-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.dt-channel-card-actions small { color: var(--muted); }

@media (max-width: 1180px) {
  .dt-channel-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .dt-channel-card-grid, .dt-channel-card-meta, .dt-channel-card-metrics { grid-template-columns: 1fr; }
  .dt-channel-card-metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dt-channel-card-metric:last-child { border-bottom: 0; }
  .dt-channel-card-actions { flex-direction: column; align-items: flex-start; }
}


.dt-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
}

.dt-inline-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.dt-upload-hero {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 24px;
  align-items: center;
  border-radius: 30px;
  padding: 30px;
  background:
    radial-gradient(circle at left top, rgba(124,92,255,.18), transparent 38%),
    radial-gradient(circle at right bottom, rgba(68,215,255,.12), transparent 32%),
    rgba(20, 22, 30, 0.92);
}
.dt-upload-hero-title { margin: 0 0 12px; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.02; letter-spacing: -.04em; }
.dt-upload-hero-copy { margin: 0; color: var(--muted); max-width: 800px; line-height: 1.75; }
.dt-upload-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.uploads-layout-futuristic { align-items: start; }
.dt-upload-form-card, .dt-upload-history-card { min-height: 100%; }
.dt-upload-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.dt-upload-info-box {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.dt-upload-info-box strong { font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; color: #dfe6fb; }
.dt-upload-info-box span { color: var(--muted); }
.dt-upload-form-futuristic { gap: 18px; }
.dt-file-dropzone {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(124,92,255,.35);
  background: linear-gradient(180deg, rgba(124,92,255,.09), rgba(68,215,255,.06));
}
.dt-file-dropzone input[type="file"] {
  padding: 22px 16px;
  border-radius: 16px;
  background: rgba(8,10,16,.65);
}
.dt-chip-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.dt-chip-channel span { min-height: 112px; align-content: start; }
.dt-chip-channel em { color: #c6d0e7; font-size: .84rem; font-style: normal; margin-top: 6px; }
.dt-upload-note {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.dt-button-xl { min-height: 58px; font-size: 1rem; letter-spacing: .02em; }
.dt-job-card-futuristic {
  background: linear-gradient(180deg, rgba(16,19,27,.96), rgba(18,24,34,.9));
  border: 1px solid rgba(255,255,255,.08);
}
.dt-job-card-futuristic .dt-target-item { background: rgba(8,10,16,.62); }

@media (max-width: 1180px) {
  .dt-upload-hero, .dt-upload-info-grid, .dt-chip-grid-3 { grid-template-columns: 1fr; }
  .dt-upload-hero-pills { justify-content: flex-start; }
}

/* v4.1 minimalist production refresh */
.dt-panel-grid-tight { gap: 16px; }
.dt-panel-card-compact { padding: 20px; }
.dt-card-head-tight { margin-bottom: 14px; }
.dt-card-head-tight h1,
.dt-card-head-tight h2 { margin-bottom: 0; }
.dt-inline-actions-wrap { align-items: center; justify-content: space-between; }

.dt-upload-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 380px;
  gap: 18px;
  align-items: start;
}
.dt-panel-card-upload-clean {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(68,215,255,.12), transparent 34%),
    radial-gradient(circle at top left, rgba(124,92,255,.16), transparent 28%),
    rgba(14,16,24,.94);
}
.dt-upload-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dt-upload-clean-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.dt-upload-clean-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.dt-upload-form-clean {
  gap: 18px;
}
.dt-file-dropzone-clean {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed rgba(124,92,255,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(124,92,255,.06));
}
.dt-file-dropzone-clean input[type="file"] {
  min-height: 140px;
  border-radius: 18px;
  background: rgba(8,10,16,.72);
}
.dt-file-dropzone-clean small {
  font-size: .92rem;
}
.dt-channel-picker-clean {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}
.dt-chip-grid-clean {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.dt-chip-channel-clean span {
  min-height: 88px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}
.dt-chip-channel-clean strong {
  font-size: 1rem;
}
.dt-chip-channel-clean small {
  font-size: .88rem;
}
.dt-upload-history-clean {
  position: sticky;
  top: 24px;
}
.dt-job-stack-clean {
  gap: 14px;
}
.dt-job-card-clean {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: none;
}
.dt-job-head-clean h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.dt-job-head-clean p {
  font-size: .9rem;
  margin: 0;
}
.dt-job-meta-clean {
  margin: 10px 0 12px;
  font-size: .84rem;
}
.dt-target-list-clean {
  gap: 10px;
}
.dt-target-item-clean {
  padding: 12px 14px;
  background: rgba(255,255,255,.025);
}
.dt-target-item-clean strong {
  font-size: .94rem;
}
.dt-target-item-clean small {
  font-size: .82rem;
}
.dt-channel-analytics-card-clean {
  gap: 16px;
}
.dt-channel-analytics-card-clean .dt-channel-card-actions {
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .dt-upload-center-grid { grid-template-columns: 1fr; }
  .dt-upload-history-clean { position: static; }
  .dt-chip-grid-clean { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .dt-upload-card-head,
  .dt-inline-actions-wrap { flex-direction: column; align-items: flex-start; }
  .dt-chip-grid-clean { grid-template-columns: 1fr; }
  .dt-panel-card-upload-clean,
  .dt-panel-card-compact { padding: 18px; }
}

/* v4.2 upload center */
.dt-upload-center-grid-v42 { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
.dt-upload-panel-v42 { padding: 28px; min-height: 620px; display: grid; }
.dt-upload-form-v42 { display: grid; gap: 22px; align-content: start; }
.dt-file-dropzone-v42 {
  position: relative; min-height: 340px; border-radius: 30px; border: 1px dashed rgba(124,92,255,.28);
  background: linear-gradient(180deg, rgba(17,19,28,.9), rgba(10,12,18,.96));
  display: grid; place-items: center; text-align: center; gap: 10px; padding: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 24px 60px rgba(0,0,0,.25);
}
.dt-file-dropzone-v42 input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dt-file-dropzone-icon {
  width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(68,215,255,.18));
  border: 1px solid rgba(124,92,255,.28); font-size: 2rem;
}
.dt-file-dropzone-v42 strong { font-size: 1.6rem; letter-spacing: -.02em; }
.dt-file-dropzone-v42 small { color: var(--muted); font-size: 1rem; }
.dt-upload-fields-v42 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.dt-upload-fields-v42.is-hidden { display: none; }
.dt-upload-submit-wrap { display: flex; justify-content: flex-end; }
.dt-upload-submit-wrap .dt-button { min-width: 180px; }

.dt-modal[hidden] { display: none; }
.dt-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; }
.dt-modal-backdrop { position: absolute; inset: 0; background: rgba(6,8,14,.72); backdrop-filter: blur(8px); }
.dt-modal-dialog {
  position: relative; width: min(720px, 100%); border-radius: 30px; background: linear-gradient(180deg, rgba(15,17,24,.98), rgba(10,12,18,.98));
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 90px rgba(0,0,0,.45); overflow: hidden;
}
.dt-modal-body { padding: 26px; }
.dt-modal-open { overflow: hidden; }
.dt-modal-head { margin-bottom: 18px; }
.dt-modal-head h3 { margin: 0; font-size: 1.6rem; }
.dt-modal-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dt-check-inline { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: #dce6ff; }
.dt-check-inline input { width: 16px; height: 16px; accent-color: var(--primary); }
.dt-check-inline-soft { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dt-channel-select-wrap { display: grid; gap: 12px; }
.dt-channel-multiselect {
  width: 100%; min-height: 300px; padding: 12px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,18,28,.98), rgba(11,13,20,.98)); color: #f5f7fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.dt-channel-multiselect option {
  margin-bottom: 8px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); color: #f5f7fb;
}
.dt-channel-multiselect option:checked {
  background: linear-gradient(135deg, rgba(124,92,255,.34), rgba(68,215,255,.24)); color: #ffffff;
}
.dt-channel-multiselect:focus { outline: none; border-color: rgba(124,92,255,.5); box-shadow: 0 0 0 4px rgba(124,92,255,.12); }
.dt-channel-plain-list { display: grid; gap: 12px; max-height: 340px; overflow: auto; }
.dt-channel-plain-item {
  display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 0 16px; border-radius: 18px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); cursor: pointer;
}
.dt-channel-plain-item input { width: 18px; height: 18px; accent-color: var(--primary); }
.dt-channel-plain-item span { font-weight: 600; }
.dt-step-feedback { margin-top: 14px; min-height: 24px; color: var(--muted); }
.dt-step-feedback ul { margin: 0; padding-left: 18px; }
.dt-step-feedback.is-error { color: #ff9baa; }
.dt-step-feedback.is-info { color: #8bc7ff; }
.dt-modal-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.dt-confirm-box {
  display: grid; gap: 8px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.dt-confirm-box strong { font-size: 1.05rem; }
.dt-confirm-box small { color: var(--muted); line-height: 1.7; }

.dt-progress-timeline { position: relative; display: grid; gap: 18px; }
.dt-progress-timeline::before {
  content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.08);
}
.dt-progress-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.dt-progress-dot {
  width: 36px; height: 36px; border-radius: 999px; border: 2px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(255,255,255,.02);
}
.dt-progress-copy {
  min-height: 86px; padding: 18px 18px 18px 0; border-radius: 20px; display: grid; align-content: center;
}
.dt-progress-copy strong { font-size: 1.08rem; }
.dt-progress-copy small { margin-top: 6px; color: var(--muted); }
.dt-progress-step.is-active .dt-progress-dot,
.dt-progress-step.is-done .dt-progress-dot { border-color: rgba(124,92,255,.7); background: rgba(124,92,255,.2); }
.dt-progress-step.is-active .dt-progress-dot::after,
.dt-progress-step.is-done .dt-progress-dot::after {
  content: ''; position: absolute; inset: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.dt-progress-step.is-error .dt-progress-dot { border-color: rgba(255,77,103,.6); background: rgba(255,77,103,.18); }
.dt-progress-step.is-error .dt-progress-dot::after { content: ''; position: absolute; inset: 8px; border-radius: 999px; background: var(--danger); }

.dt-upload-history-clean .dt-card-head h2 { margin-bottom: 0; }
.dt-job-card-clean h3 { font-size: 1.1rem; }
.dt-job-card-clean .dt-job-meta { margin-top: 10px; }

@media (max-width: 1180px) {
  .dt-upload-center-grid-v42 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dt-upload-fields-v42 { grid-template-columns: 1fr; }
  .dt-modal { padding: 14px; }
  .dt-modal-body { padding: 18px; }
  .dt-modal-actions { flex-direction: column; }
  .dt-progress-copy { min-height: 72px; }
}


/* v4.2.1 cleanup */
.dt-upload-center-grid-v42{grid-template-columns:minmax(0,1fr);max-width:980px;}
.dt-upload-panel-v42{min-height:auto;}
.dt-upload-step.is-hidden{display:none!important;}
.dt-modal-dialog{width:min(640px,100%);}
.dt-step-feedback:empty{display:none;}
.dt-settings-inline{display:grid;gap:8px;align-content:start;}
.dt-settings-inline code{display:block;overflow:auto;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid var(--line);color:#dfe6fb;}


/* v4.2.4 select polish */
.dt-upload-fields-v42 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(17, 20, 30, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, #cfd7f8 50%),
    linear-gradient(135deg, #cfd7f8 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.02));
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.dt-upload-fields-v42 select option,
.dt-upload-fields-v42 select optgroup {
  background: #111522;
  color: #f5f7fb;
}

.dt-upload-fields-v42 label {
  align-content: start;
}


/* v4.2.5 video preview */
.dt-file-dropzone-v42 {
  position: relative;
  overflow: hidden;
}

.dt-dropzone-empty.is-hidden {
  display: none;
}

.dt-video-preview-wrap {
  display: grid;
  gap: 14px;
  width: 100%;
  justify-items: center;
}

.dt-video-preview-wrap.is-hidden {
  display: none;
}

.dt-video-preview {
  width: min(100%, 760px);
  max-height: 420px;
  display: block;
  border-radius: 24px;
  background: #060915;
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.48);
}

.dt-video-preview-meta {
  display: grid;
  gap: 4px;
  text-align: center;
}

.dt-video-preview-meta strong {
  font-size: 1rem;
  color: #f5f7fb;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-video-preview-meta small {
  color: rgba(223, 230, 251, 0.72);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .dt-video-preview {
    max-height: 280px;
    border-radius: 18px;
  }

  .dt-video-preview-meta strong {
    white-space: normal;
    word-break: break-word;
  }
}


/* v4.2.6 layout tidy */
.dt-dropzone-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  width: 100%;
}

.dt-dropzone-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 420px;
}

.dt-file-dropzone-v42 strong {
  display: block;
  margin: 0;
  line-height: 1.1;
}

.dt-file-dropzone-v42 small {
  display: block;
  margin: 0;
}

.dt-settings-shell {
  display: grid;
  gap: 18px;
}

.settings-layout-v43 {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.dt-settings-card {
  min-width: 0;
}

.dt-settings-grid-left,
.dt-settings-grid-right {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dt-settings-grid-left .dt-form-span-2,
.dt-settings-grid-right .dt-form-span-2 {
  grid-column: 1 / -1;
}

.dt-settings-side-card code {
  white-space: nowrap;
}

.dt-settings-inline-compact {
  gap: 10px;
}

.dt-settings-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 1180px) {
  .settings-layout-v43 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dt-dropzone-copy {
    max-width: 100%;
  }

  .dt-file-dropzone-v42 {
    min-height: 300px;
    padding: 24px 18px;
  }

  .dt-settings-grid-left,
  .dt-settings-grid-right {
    grid-template-columns: 1fr;
  }
}


.dt-turnstile-gate {
  margin: 0 0 18px;
}
.dt-turnstile-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.dt-turnstile-card strong {
  font-size: 1rem;
}
.dt-turnstile-card p {
  margin: 0;
  color: var(--muted);
}
.dt-turnstile-gate.is-complete {
  display: none;
}
.dt-login-form.is-locked {
  opacity: .45;
  pointer-events: none;
  filter: saturate(.85);
}

@media (max-width: 720px) {
  .dt-modal-head-inline { align-items: flex-start; flex-direction: column; }
  .dt-check-inline-soft { width: 100%; justify-content: flex-start; }
  .dt-channel-multiselect { min-height: 240px; }
}


/* v4.4.0 schedule per channel */
.dt-schedule-wrap{margin-top:14px;padding:14px;border-radius:20px;background:rgba(255,255,255,.03);border:1px solid var(--line);}
.dt-schedule-wrap.is-hidden{display:none;}
.dt-schedule-list{display:grid;gap:12px;}
.dt-schedule-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(220px,260px);gap:12px;align-items:center;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);}
.dt-schedule-name{font-weight:600;color:#f5f7fb;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dt-schedule-toggle{white-space:nowrap;}
.dt-schedule-input{width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(17,20,30,.96);color:#f5f7fb;}
.dt-schedule-input:disabled{opacity:.45;cursor:not-allowed;}
@media (max-width: 720px){.dt-schedule-row{grid-template-columns:1fr;}}


/* v4.4.1 modal scroll fix */
.dt-modal-dialog{max-height:calc(100vh - 48px);display:flex;flex-direction:column;}
.dt-modal-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.dt-modal-actions{position:sticky;bottom:0;padding-top:16px;background:linear-gradient(180deg, rgba(8,10,18,0), rgba(8,10,18,.92) 28%, rgba(8,10,18,.98));}
@media (max-width: 720px){.dt-modal-dialog{max-height:calc(100vh - 24px);}}
