/* ============================================
   Dataset Upload V2 — AI-First Dataset Intake
   Scoped: body.ui-shell .dataset-upload-v2
   Flag:   __UI_FLAGS.datasetUploadV2
   ============================================ */

body.ui-shell .dataset-upload-v2 {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--ui-s-5, 24px);
  align-items: start;
}

@media (max-width: 900px) {
  body.ui-shell .dataset-upload-v2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Upload Card (left column) ---- */
body.ui-shell .duv2-upload-card {
  background: var(--ui-surface, #fff);
  border: 1px solid var(--ui-border, rgba(15,23,42,.08));
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  overflow: hidden;
}

body.ui-shell .duv2-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ui-border, rgba(255,255,255,.08));
}

body.ui-shell .duv2-card-header-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ui-text, #0f172a);
  line-height: 1.2;
  letter-spacing: -.01em;
}

body.ui-shell .duv2-card-header-text p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ui-muted, rgba(15,23,42,.55));
}

body.ui-shell .duv2-card-header-text .duv2-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(109,74,255,.10), rgba(109,74,255,.10));
  color: var(--ui-accent, #6D4AFF);
  vertical-align: middle;
}

body.ui-shell .duv2-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: all .25s ease;
  text-transform: uppercase;
}

body.ui-shell .duv2-status-badge[data-status="ready"] {
  background: rgba(109,74,255,.10);
  color: var(--ui-accent, #6D4AFF);
}
body.ui-shell .duv2-status-badge[data-status="uploading"] {
  background: rgba(242,182,90,.12);
  color: #F2B65A;
  animation: duv2-pulse-badge 1.5s ease-in-out infinite;
}
body.ui-shell .duv2-status-badge[data-status="loaded"] {
  background: rgba(52,211,153,.12);
  color: #34D399;
}
body.ui-shell .duv2-status-badge[data-status="error"] {
  background: rgba(248,113,106,.12);
  color: #F8716A;
}

@keyframes duv2-pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

body.ui-shell .duv2-card-body {
  padding: 24px;
}

/* ---- Premium Dropzone ---- */
body.ui-shell .duv2-dropzone-wrap {
  position: relative;
}

body.ui-shell .duv2-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 40px 24px;
  border: 2px dashed rgba(109,74,255,.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(109,74,255,.04) 0%, rgba(109,74,255,.02) 100%);
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.ui-shell .duv2-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(109,74,255,.10) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

body.ui-shell .duv2-dropzone:hover {
  border-color: rgba(109,74,255,.45);
  background: linear-gradient(180deg, rgba(109,74,255,.07) 0%, rgba(109,74,255,.04) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

body.ui-shell .duv2-dropzone:hover::before {
  opacity: 1;
}

body.ui-shell .duv2-dropzone.duv2-drag-over {
  border-color: var(--ui-accent, #6D4AFF);
  border-style: solid;
  background: linear-gradient(180deg, rgba(109,74,255,.10) 0%, rgba(109,74,255,.06) 100%);
  box-shadow: 0 0 0 4px rgba(109,74,255,.35), 0 8px 24px rgba(0,0,0,.35);
  transform: translateY(-2px);
}

body.ui-shell .duv2-dropzone.duv2-drag-over::before {
  opacity: 1;
}

body.ui-shell .duv2-dropzone-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--ui-accent, #6D4AFF);
  opacity: .65;
  transition: transform .25s, opacity .25s;
}

body.ui-shell .duv2-dropzone:hover .duv2-dropzone-icon {
  transform: translateY(-3px);
  opacity: .85;
}

body.ui-shell .duv2-dropzone-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ui-text, #0f172a);
  margin: 0 0 4px;
}

body.ui-shell .duv2-dropzone-subtitle {
  font-size: 13px;
  color: var(--ui-muted, rgba(15,23,42,.55));
  margin: 0 0 14px;
}

body.ui-shell .duv2-dropzone-hint {
  font-size: 11px;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  margin: 0;
  padding: 4px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
}

/* ---- Uploading state ---- */
body.ui-shell .duv2-uploading {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
}

body.ui-shell .duv2-uploading.active {
  display: flex;
}

body.ui-shell .duv2-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(109,74,255,.20);
  border-top-color: var(--ui-accent, #6D4AFF);
  border-radius: 50%;
  animation: duv2-spin .7s linear infinite;
  margin-bottom: 16px;
}

@keyframes duv2-spin {
  to { transform: rotate(360deg); }
}

body.ui-shell .duv2-uploading-text {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--ui-text, #0f172a);
}

body.ui-shell .duv2-uploading-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ui-muted, rgba(15,23,42,.55));
}

body.ui-shell .duv2-progress-bar {
  width: 100%;
  max-width: 280px;
  height: 4px;
  background: var(--ui-bg, #0A0A0A);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}

body.ui-shell .duv2-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6D4AFF, #9B8CFF);
  border-radius: 2px;
  width: 0%;
  transition: width .3s ease;
}

/* ---- File Card (loaded state) ---- */
body.ui-shell .duv2-file-card {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 12px;
  margin-bottom: 20px;
}

body.ui-shell .duv2-file-card.active {
  display: flex;
}

body.ui-shell .duv2-file-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(52,211,153,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #34D399;
}

body.ui-shell .duv2-file-meta {
  flex: 1;
  min-width: 0;
}

body.ui-shell .duv2-file-name {
  font-weight: 600;
  font-size: 14px;
  color: #34D399;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.ui-shell .duv2-file-details {
  font-size: 12px;
  color: #34D399;
  margin: 2px 0 0;
  opacity: .85;
}

body.ui-shell .duv2-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

body.ui-shell .duv2-file-action-btn {
  padding: 5px 12px;
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 7px;
  background: var(--ui-surface-2, #111111);
  color: #34D399;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

body.ui-shell .duv2-file-action-btn:hover {
  background: rgba(52,211,153,.12);
  border-color: rgba(52,211,153,.25);
}

body.ui-shell .duv2-file-action-btn.danger {
  color: #F8716A;
  border-color: rgba(248,113,106,.25);
}

body.ui-shell .duv2-file-action-btn.danger:hover {
  background: rgba(248,113,106,.12);
  border-color: rgba(248,113,106,.25);
}

/* ---- Column Selector ---- */
body.ui-shell .duv2-column-section {
  margin-top: 20px;
  display: none;
}

body.ui-shell .duv2-column-section.active {
  display: block;
}

body.ui-shell .duv2-column-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ui-text, #0f172a);
  margin-bottom: 8px;
}

body.ui-shell .duv2-column-label .duv2-auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(109,74,255,.10), rgba(109,74,255,.10));
  color: #9B8CFF;
}

body.ui-shell .duv2-column-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ui-border, rgba(255,255,255,.08));
  border-radius: 10px;
  font-size: 14px;
  background: var(--ui-surface-2, #111111);
  color: var(--ui-text, #0f172a);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

body.ui-shell .duv2-column-select:focus {
  outline: none;
  border-color: var(--ui-accent, #6D4AFF);
  box-shadow: 0 0 0 3px rgba(109,74,255,.35);
}

body.ui-shell .duv2-column-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  font-style: italic;
}

body.ui-shell .duv2-column-warning {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(242,182,90,.12);
  border: 1px solid rgba(242,182,90,.25);
  border-radius: 8px;
  font-size: 12px;
  color: #F2B65A;
}

body.ui-shell .duv2-column-warning.active {
  display: flex;
}

/* ---- Preview Table ---- */
body.ui-shell .duv2-preview-section {
  margin-top: 20px;
  display: none;
}

body.ui-shell .duv2-preview-section.active {
  display: block;
}

body.ui-shell .duv2-preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}

body.ui-shell .duv2-preview-label .duv2-preview-count {
  font-weight: 600;
  font-size: 11px;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: none;
  letter-spacing: normal;
}

body.ui-shell .duv2-preview-wrap {
  overflow-x: auto;
  border: 1px solid var(--ui-border, rgba(255,255,255,.08));
  border-radius: 10px;
  max-height: 340px;
  overflow-y: auto;
}

body.ui-shell .duv2-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.ui-shell .duv2-preview-table th {
  padding: 8px 12px;
  text-align: left;
  background: var(--ui-surface-2, #111111);
  border-bottom: 1px solid var(--ui-border, rgba(255,255,255,.08));
  font-weight: 700;
  font-size: 11px;
  color: var(--ui-muted, rgba(255,255,255,.66));
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: .03em;
}

body.ui-shell .duv2-preview-table th.duv2-col-active {
  background: rgba(109,74,255,.10);
  color: var(--ui-accent, #6D4AFF);
  border-bottom-color: rgba(109,74,255,.28);
}

body.ui-shell .duv2-preview-table th .duv2-null-count {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: none;
  letter-spacing: normal;
  margin-top: 1px;
}

body.ui-shell .duv2-preview-table th .duv2-null-count.warn {
  color: #F2B65A;
}

body.ui-shell .duv2-preview-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--ui-border, rgba(255,255,255,.08));
  color: var(--ui-muted, rgba(255,255,255,.66));
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ui-shell .duv2-preview-table td.duv2-col-active {
  background: rgba(109,74,255,.10);
  color: var(--ui-text, #0f172a);
  font-weight: 500;
}

body.ui-shell .duv2-preview-table td.duv2-cell-empty {
  color: rgba(248,113,106,.55);
  font-style: italic;
  font-size: 11px;
}

body.ui-shell .duv2-preview-table tr:hover td {
  background: rgba(255,255,255,.05);
}

body.ui-shell .duv2-preview-table tr:hover td.duv2-col-active {
  background: rgba(109,74,255,.10);
}

body.ui-shell .duv2-preview-table tr:last-child td {
  border-bottom: none;
}

/* ---- AI Readiness Panel (right column, sticky) ---- */
body.ui-shell .duv2-quality-panel {
  position: sticky;
  top: 24px;
  background: var(--ui-surface, #fff);
  border: 1px solid var(--ui-border, rgba(255,255,255,.08));
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  overflow: hidden;
}

body.ui-shell .duv2-quality-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ui-border, rgba(255,255,255,.08));
  background: linear-gradient(135deg, rgba(109,74,255,.10) 0%, rgba(109,74,255,.06) 100%);
}

body.ui-shell .duv2-quality-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ui-text, #0f172a);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}

body.ui-shell .duv2-quality-header h4 svg {
  color: var(--ui-accent, #6D4AFF);
}

body.ui-shell .duv2-quality-body {
  padding: 16px 20px;
}

/* ---- Readiness Score ---- */
body.ui-shell .duv2-readiness-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--ui-surface-2, #111111) 0%, var(--ui-surface, #141414) 100%);
  border-radius: 12px;
  border: 1px solid var(--ui-border, rgba(255,255,255,.08));
}

body.ui-shell .duv2-score-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

body.ui-shell .duv2-score-ring svg {
  transform: rotate(-90deg);
  width: 52px;
  height: 52px;
}

body.ui-shell .duv2-score-ring .duv2-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 4;
}

body.ui-shell .duv2-score-ring .duv2-ring-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease, stroke .3s;
}

body.ui-shell .duv2-score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--ui-text, #0f172a);
  letter-spacing: -.02em;
}

body.ui-shell .duv2-score-info {
  flex: 1;
  min-width: 0;
}

body.ui-shell .duv2-score-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 2px;
}

body.ui-shell .duv2-score-desc {
  font-size: 12px;
  color: var(--ui-muted, rgba(255,255,255,.66));
  margin: 0;
  line-height: 1.4;
}

/* ---- Checklist ---- */
body.ui-shell .duv2-checklist {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

body.ui-shell .duv2-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ui-border, rgba(255,255,255,.08));
  font-size: 13px;
  color: var(--ui-muted, rgba(255,255,255,.66));
  transition: color .25s;
}

body.ui-shell .duv2-checklist li:last-child {
  border-bottom: none;
}

body.ui-shell .duv2-checklist li.done {
  color: #34D399;
}

body.ui-shell .duv2-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ui-border, rgba(255,255,255,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s;
  color: transparent;
}

body.ui-shell .duv2-checklist li.done .duv2-check-icon {
  border-color: #34D399;
  background: rgba(52,211,153,.12);
  color: #34D399;
}

body.ui-shell .duv2-checklist li.warn .duv2-check-icon {
  border-color: #F2B65A;
  background: rgba(242,182,90,.12);
  color: #F2B65A;
}

/* ---- Quick Validation Stats ---- */
body.ui-shell .duv2-validation {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ui-border, rgba(255,255,255,.08));
  display: none;
}

body.ui-shell .duv2-validation.active {
  display: block;
}

body.ui-shell .duv2-validation-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
}

body.ui-shell .duv2-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
}

body.ui-shell .duv2-stat-label {
  color: var(--ui-muted, rgba(255,255,255,.66));
}

body.ui-shell .duv2-stat-value {
  font-weight: 700;
  color: var(--ui-text, #0f172a);
}

body.ui-shell .duv2-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

body.ui-shell .duv2-risk-badge[data-risk="low"] {
  background: rgba(52,211,153,.12);
  color: #34D399;
}
body.ui-shell .duv2-risk-badge[data-risk="medium"] {
  background: rgba(242,182,90,.12);
  color: #F2B65A;
}
body.ui-shell .duv2-risk-badge[data-risk="high"] {
  background: rgba(248,113,106,.12);
  color: #F8716A;
}

/* ---- Warnings Section ---- */
body.ui-shell .duv2-warnings {
  margin-top: 12px;
  display: none;
}

body.ui-shell .duv2-warnings.active {
  display: block;
}

body.ui-shell .duv2-warnings-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.ui-shell .duv2-warnings-title .duv2-warn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  background: rgba(242,182,90,.12);
  color: #F2B65A;
}

body.ui-shell .duv2-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ui-muted, rgba(255,255,255,.66));
  transition: background .15s;
}

body.ui-shell .duv2-warning-item:last-child {
  margin-bottom: 0;
}

body.ui-shell .duv2-warning-item[data-severity="high"] {
  background: rgba(248,113,106,.12);
  border: 1px solid rgba(248,113,106,.25);
}

body.ui-shell .duv2-warning-item[data-severity="medium"] {
  background: rgba(242,182,90,.12);
  border: 1px solid rgba(242,182,90,.25);
}

body.ui-shell .duv2-warning-item[data-severity="low"] {
  background: rgba(109,74,255,.10);
  border: 1px solid rgba(109,74,255,.28);
}

body.ui-shell .duv2-warning-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

body.ui-shell .duv2-warning-item[data-severity="high"] .duv2-warning-icon {
  color: #F8716A;
}

body.ui-shell .duv2-warning-item[data-severity="medium"] .duv2-warning-icon {
  color: #F2B65A;
}

body.ui-shell .duv2-warning-item[data-severity="low"] .duv2-warning-icon {
  color: var(--ui-accent, #6D4AFF);
}

body.ui-shell .duv2-warning-more {
  display: none;
  padding: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ui-accent, #6D4AFF);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
}

body.ui-shell .duv2-warning-more:hover {
  text-decoration: underline;
}

body.ui-shell .duv2-warning-more.active {
  display: block;
}

/* ---- Suggestions Section ---- */
body.ui-shell .duv2-suggestions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ui-border, rgba(255,255,255,.08));
  display: none;
}

body.ui-shell .duv2-suggestions.active {
  display: block;
}

body.ui-shell .duv2-suggestions-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-muted-2, rgba(255,255,255,.45));
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.ui-shell .duv2-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ui-muted, rgba(255,255,255,.66));
}

body.ui-shell .duv2-suggestion-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--ui-accent, #6D4AFF);
  opacity: .6;
}

/* ---- CTA Guidance ---- */
body.ui-shell .duv2-cta-guidance {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s ease;
  text-align: center;
}

body.ui-shell .duv2-cta-guidance.pending {
  background: rgba(109,74,255,.10);
  color: var(--ui-accent, #6D4AFF);
}

body.ui-shell .duv2-cta-guidance.ready {
  background: rgba(52,211,153,.12);
  color: #34D399;
}

/* ---- Keyboard focus ---- */
body.ui-shell .duv2-dropzone:focus-visible,
body.ui-shell .duv2-file-action-btn:focus-visible,
body.ui-shell .duv2-column-select:focus-visible {
  outline: 2px solid var(--ui-accent, #6D4AFF);
  outline-offset: 2px;
}

/* ---- Hidden legacy elements when V2 active ---- */
body.ui-shell .duv2-legacy-hidden {
  display: none !important;
}

/* ---- Wizard V2 layout override ----
   When V2 flags are active, the outer ui-grid-2 becomes single-column
   because each V2 step provides its own sidebar (quality panel / checklist).
   The legacy RESUMEN sidebar is hidden to prevent overlap. */
.wizard-v2-active .ui-grid-2 {
  grid-template-columns: 1fr !important;
}
.wizard-v2-active #wizard-summary-sidebar {
  display: none !important;
}
