/* ─────────────────────────────────────────────
   RESET & VARIABLES
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0b0d;
  --surface:   #111114;
  --raised:    #18181c;
  --raised2:   #202025;
  --border:    #232326;
  --border2:   #303035;
  --text:      #e8e8ea;
  --text2:     #86868e;
  --text3:     #484850;
  --blue:      #8C14A0;
  --blue-dim:  rgba(140,20,160,0.12);
  --blue-line: rgba(140,20,160,0.28);
  --green:     #2ecb71;
  --green-dim: rgba(46,203,113,0.1);
  --green-line:rgba(46,203,113,0.25);
  --red:       #f06060;
  --red-dim:   rgba(240,96,96,0.1);
  --red-line:  rgba(240,96,96,0.25);
  --yellow:    #f0a830;
  --yellow-dim:rgba(240,168,48,0.1);
  --yellow-line:rgba(240,168,48,0.25);
  --r:         10px;
  --rsm:       6px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  height: 21px;
  width: auto;
  display: block;
}
.brand-sep {
  display: block;
  width: 1px;
  height: 16px;
  background: var(--border2);
}
.brand-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   STEP NAVIGATION
───────────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--border2);
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-item.active .step-num  { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-item.active             { color: var(--text); }
.step-item.done .step-num    { background: var(--green-dim); border-color: var(--green-line); color: var(--green); }
.step-label { display: none; }
@media (min-width: 680px) { .step-label { display: inline; } }
.step-sep { color: var(--border2); font-size: 11px; margin: 0 6px; }

/* ─────────────────────────────────────────────
   MAIN / LAYOUT
───────────────────────────────────────────── */
main {
  max-width: 1040px;
  margin: 36px auto;
  padding: 0 24px 80px;
}
.hidden { display: none !important; }

/* ─────────────────────────────────────────────
   PANEL
───────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 40px;
}
.panel-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.panel-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
input[type=text], input[type=password], select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border2);
  border-radius: var(--rsm);
  font-size: 15px;
  font-family: inherit;
  background: var(--raised);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input[type=text]:focus, input[type=password]:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77,135,246,0.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2386868e' d='M5 7L0.67 2h8.66z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
select option { background: #1a1a1e; color: #e8e8ea; }

.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row input { flex: 1; }

/* ─────────────────────────────────────────────
   INFO BOX (Disclaimer / Privacy)
───────────────────────────────────────────── */
.info-box {
  display: flex;
  gap: 12px;
  background: rgba(77,135,246,0.06);
  border: 1px solid rgba(77,135,246,0.22);
  border-radius: var(--rsm);
  padding: 14px 16px;
  margin-bottom: 24px;
}
.info-box-icon  { color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.info-box-body  { font-size: 13px; color: var(--text); line-height: 1.55; }
.info-box-body strong { color: var(--text); font-weight: 600; }
.info-link {
  display: inline-block;
  margin-left: 6px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.info-link:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────
   ENV BADGE (Dev/Live Indicator)
───────────────────────────────────────────── */
.env-badge { display: inline-flex; align-items: center; gap: 8px; }
.env-switch-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin: 0;
}
.env-badge .env-switch {
  width: auto;
  padding: 4px 26px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background-color: #fef3c7;
  color: #b54708;
  border: 1px solid #fde68a;
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23b54708' d='M5 7L0.67 2h8.66z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
.env-badge .env-switch:focus { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.env-badge .env-switch option { background: #fef3c7; color: #b54708; }

/* ─────────────────────────────────────────────
   CONNECTION STATUS
───────────────────────────────────────────── */
.conn-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--rsm);
  font-size: 13px;
  line-height: 1.4;
}
.conn-status.conn-ok      { background: rgba(43,202,114,0.08); color: var(--green); border: 1px solid rgba(43,202,114,0.25); }
.conn-status.conn-err     { background: rgba(255,69,58,0.08);  color: var(--red);   border: 1px solid rgba(255,69,58,0.25); }
.conn-status.conn-pending { background: var(--raised); color: var(--text2); border: 1px solid var(--border2); }
.conn-muted { color: var(--text2); font-weight: 400; }

/* ─────────────────────────────────────────────
   ANLEITUNG MODAL
───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--rsm);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--raised); color: var(--text); }
.modal-card video {
  display: block;
  width: 100%;
  background: #000;
}
.modal-body {
  padding: 16px 22px 22px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}
.modal-muted { color: var(--text2); font-size: 12px; }
.modal-body code {
  background: var(--raised);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--rsm);
  border: 1px solid transparent;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover:not(:disabled) { background: #BD1FD8; border-color: #BD1FD8; }
.btn-ghost   { background: transparent; color: var(--text2); border-color: var(--border2); }
.btn-ghost:hover:not(:disabled)   { background: var(--raised); color: var(--text); }
.btn-green   { background: var(--green); color: #000; border-color: var(--green); }
.btn-green:hover:not(:disabled)   { background: #25b462; border-color: #25b462; }
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: var(--rsm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.alert-info { background: var(--blue-dim);   border: 1px solid var(--blue-line);   color: #8ab4fb; }
.alert-ok   { background: var(--green-dim);  border: 1px solid var(--green-line);  color: var(--green); }
.alert-warn { background: var(--yellow-dim); border: 1px solid var(--yellow-line); color: var(--yellow); }
.alert-err  { background: var(--red-dim);    border: 1px solid var(--red-line);    color: var(--red); }

/* ─────────────────────────────────────────────
   DROP ZONE
───────────────────────────────────────────── */
.dropzone {
  border: 1px dashed var(--border2);
  border-radius: var(--r);
  padding: 52px 24px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text2);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--blue);
}
.dropzone input[type=file] { display: none; }
.dz-icon { margin-bottom: 12px; color: currentColor; }
.dz-icon svg { display: block; }
.dz-text { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.dz-sub  { font-size: 12px; color: var(--text3); }

.file-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 12px;
  background: var(--green-dim);
  border: 1px solid var(--green-line);
  border-radius: var(--rsm);
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}

/* ─────────────────────────────────────────────
   TABLE
───────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  margin-top: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  background: var(--raised);
  padding: 7px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text2);
}
td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text2);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--raised); color: var(--text); }

/* ─────────────────────────────────────────────
   MAPPING
───────────────────────────────────────────── */
.map-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--raised);
  border: 1px solid var(--border2);
  color: var(--text2);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}
.map-badge.done { background: var(--green-dim); border-color: var(--green-line); color: var(--green); }

.req { color: var(--red); margin-left: 2px; }

/* Mapping table */
.map-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  overflow: hidden;
}
.map-table {
  width: 100%;
  border-collapse: collapse;
}
.map-table thead th {
  padding: 10px 16px;
  background: var(--raised);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border2);
  text-align: left;
}
.map-table thead th:nth-child(2) { width: 32px; padding: 10px 4px; }
.map-table thead th:nth-child(4),
.map-table thead th:nth-child(5) { width: 40px; }
.map-section-row td {
  padding: 7px 16px;
  background: var(--raised);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.map-section-row:first-child td { border-top: none; }
.map-table tbody tr { border-bottom: 1px solid var(--border); }
.map-table tbody tr:last-child { border-bottom: none; }
.map-table tbody tr:not(.map-section-row):not(.vmap-row):hover td { background: var(--raised); }
.map-field-cell {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  width: 220px;
}
.map-arrow-cell {
  width: 32px;
  text-align: center;
  color: var(--text3);
  font-size: 14px;
  padding: 0 4px;
  white-space: nowrap;
}
.map-select-cell { padding: 8px 16px 8px 0; }
.map-select-cell select { width: 100%; }
.map-val-cell {
  padding: 8px 4px;
  width: 36px;
  text-align: center;
}
.map-eye-cell {
  padding: 8px 12px 8px 0;
  width: 36px;
  text-align: center;
  color: var(--text3);
  cursor: default;
  transition: color 0.15s;
}
.map-eye-cell:hover { color: var(--text2); }

/* Value mapping sub-rows */
.vmap-cell { padding: 0; background: var(--raised); }
.vmap-inner {
  padding: 10px 16px 12px;
  border-top: 1px dashed var(--border2);
}
.vmap-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 8px;
}
.vmap-items { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vmap-item  { display: flex; align-items: center; gap: 6px; }
.vmap-src-val {
  font-size: 12px;
  font-family: 'Menlo', 'Monaco', monospace;
  color: var(--text);
  background: var(--raised2);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  white-space: nowrap;
}
.vmap-arr { color: var(--text3); font-size: 12px; }
.vmap-sel { font-size: 12px; padding: 5px 10px; min-width: 160px; }
.vmap-txt {
  font-size: 12px;
  padding: 5px 10px;
  width: 80px;
  text-align: center;
  font-family: 'Menlo', 'Monaco', monospace;
  letter-spacing: 0.05em;
}

/* Validation badge */
.val-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vbadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.vb-ok   { color: var(--green);  background: var(--green-dim); }
.vb-err  { color: var(--red);    background: var(--red-dim); }
.vb-warn { color: var(--yellow); background: var(--yellow-dim); }

/* Tooltip */
.map-tooltip {
  position: fixed;
  z-index: 2000;
  background: var(--raised2);
  border: 1px solid var(--border2);
  border-radius: var(--rsm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  pointer-events: none;
  min-width: 160px;
  max-width: 260px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.tt-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 7px;
}
.tt-row {
  padding: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 11px;
}
.tt-empty { color: var(--text3); font-style: italic; }

/* ─────────────────────────────────────────────
   VALIDATION PREVIEW
───────────────────────────────────────────── */
.val-preview {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.val-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.val-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--rsm);
  flex: 1;
  min-width: 140px;
}
.val-stat-ok  { background: var(--green-dim); border: 1px solid var(--green-line); }
.val-stat-err { background: var(--red-dim);   border: 1px solid var(--red-line); }
.vst-num { font-size: 24px; font-weight: 700; line-height: 1; }
.val-stat-ok  .vst-num { color: var(--green); }
.val-stat-err .vst-num { color: var(--red); }
.vst-lbl { font-size: 12px; color: var(--text2); line-height: 1.3; }

.err-scroll {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border2);
  border-radius: var(--rsm);
  background: var(--raised);
}
.err-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.err-row:last-child { border-bottom: none; }
.er-num  { color: var(--red); font-weight: 700; white-space: nowrap; min-width: 48px; }
.er-field{ font-weight: 600; color: var(--text2); white-space: nowrap; min-width: 130px; }
.er-why  { color: var(--text3); }

/* ─────────────────────────────────────────────
   SELECTION CARDS (mode + options)
───────────────────────────────────────────── */
.card-grid { display: grid; gap: 10px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) {
  .card-grid.cols-3,
  .card-grid.cols-2 { grid-template-columns: 1fr; }
}
.sel-card {
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  background: var(--raised);
}
.sel-card:hover   { border-color: var(--blue); background: var(--blue-dim); }
.sel-card.selected{ border-color: var(--blue); background: var(--blue-dim); }
.sel-card.selected .sel-title { color: var(--blue); }
.sel-icon  { width: 20px; height: 20px; margin-bottom: 10px; color: var(--text2); transition: color 0.15s; }
.sel-icon svg { display: block; }
.sel-card.selected .sel-icon { color: var(--blue); }
.sel-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; transition: color 0.15s; }
.sel-desc  { font-size: 11px; color: var(--text2); line-height: 1.5; }

.sel-card.disabled { opacity: 0.45; cursor: not-allowed; position: relative; }
.sel-card.disabled:hover { border-color: var(--border2); background: var(--raised); }
.sel-badge-todo {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  color: #b54708; background: #fef3c7; border: 1px solid #fde68a;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   PROGRESS + CONSOLE
───────────────────────────────────────────── */
.progress-wrap { margin-bottom: 16px; }
.progress-track {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  height: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
  transition: width 0.25s ease;
}
.progress-label { font-size: 12px; color: var(--text2); }

.console {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  max-height: 380px;
  overflow-y: auto;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1;
}
.con-line {
  display: flex;
  gap: 10px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: baseline;
}
.con-line:last-child { border-bottom: none; }
.con-time { color: #35353e; white-space: nowrap; flex-shrink: 0; }
.con-icon { width: 14px; flex-shrink: 0; }
.con-ok   { color: var(--green); }
.con-err  { color: var(--red); }
.con-warn { color: var(--yellow); }
.con-info { color: var(--text3); }
.con-row  { color: #404048; white-space: nowrap; flex-shrink: 0; min-width: 40px; }
.con-msg  { color: #707080; flex: 1; }
.con-em   { color: var(--text2); }
.con-muted{ color: #46464e; }

/* ─────────────────────────────────────────────
   RESULTS
───────────────────────────────────────────── */
.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (max-width: 600px) { .result-stats { grid-template-columns: repeat(2, 1fr); } }
.res-stat {
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--raised);
}
.res-num { font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.res-lbl { font-size: 11px; color: var(--text2); }
.rs-new  .res-num { color: var(--blue); }
.rs-upd  .res-num { color: var(--green); }
.rs-skip .res-num { color: var(--yellow); }
.rs-err  .res-num { color: var(--red); }
.rs-new  { border-color: var(--blue-line);   background: var(--blue-dim); }
.rs-upd  { border-color: var(--green-line);  background: var(--green-dim); }
.rs-skip { border-color: var(--yellow-line); background: var(--yellow-dim); }
.rs-err  { border-color: var(--red-line);    background: var(--red-dim); }

.dl-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 600px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border2);
  border-radius: var(--rsm);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--raised);
  user-select: none;
}
.dl-card:hover { border-color: var(--blue); background: var(--blue-dim); }
.dl-card.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.dl-left  { display: flex; align-items: center; gap: 10px; }
.dl-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dl-name  { font-size: 13px; font-weight: 500; color: var(--text); }
.dl-count { font-size: 12px; color: var(--text2); }
.dl-icon  { font-size: 14px; color: var(--text3); }
.dl-card:hover .dl-icon { color: var(--blue); }
