/* ── Manual Workbench — Recoil Production Console ── */

/* Override body for scrollable single-column layout */
body {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Top Bar ── */
.mw-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.mw-topbar-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mw-topbar-brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.mw-topbar-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-amber);
}

.mw-topbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mw-topbar-back {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mw-topbar-back:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mw-topbar-stats {
  display: flex;
  gap: 16px;
}

.mw-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.mw-stat-value {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 4px;
}

.mw-stat-alert .mw-stat-value {
  color: var(--accent-amber);
}

/* ── Shared Controls ── */
.mw-select {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  outline: none;
}

.mw-select:focus {
  border-color: var(--accent-cyan);
}

.mw-select-sm {
  font-size: 10px;
  padding: 3px 6px;
}

.mw-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.mw-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mw-btn-action {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mw-btn-action:hover:not(:disabled) {
  background: var(--accent-cyan);
  color: #000;
}

.mw-btn-back {
  color: var(--text-dim);
}

.mw-btn-back:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.mw-btn-enhance {
  background: linear-gradient(135deg, var(--accent-cyan-dim), var(--bg-tertiary));
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mw-btn-enhance:hover:not(:disabled) {
  background: var(--accent-cyan);
  color: #000;
}

.mw-btn-retry {
  background: var(--bg-tertiary);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.mw-btn-retry:hover:not(:disabled) {
  background: var(--accent-green);
  color: #000;
}

.mw-btn-save {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.mw-btn-save:hover:not(:disabled) {
  background: var(--accent-green);
  color: #000;
}

.mw-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-label);
  text-transform: uppercase;
}

.mw-textarea {
  width: 100%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.mw-textarea:focus {
  border-color: var(--accent-cyan);
}

.mw-textarea-sm {
  font-size: 12px;
  padding: 6px 8px;
}

.mw-word-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

/* ── Main Content ── */
.mw-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* ── Sections ── */
.mw-section {
  margin-bottom: 32px;
}

.mw-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dim);
}

.mw-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.mw-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mw-section-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ── Triage Grid ── */
.mw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.mw-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
}

.mw-empty-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mw-empty-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0;
  line-height: 1.6;
}

.mw-empty-hint strong {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 5px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
}

.mw-filter-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.mw-section-divider {
  width: 1px;
  height: 18px;
  background: var(--border-default);
  margin: 0 4px;
}

.mw-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.mw-card.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.mw-card.resolved {
  opacity: 0.5;
}

.mw-card-thumb {
  width: 100%;
  aspect-ratio: var(--project-ar, 9 / 16);
  background: var(--bg-primary);
  overflow: hidden;
}

.mw-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-card-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.mw-card-info {
  padding: 8px 10px;
}

.mw-card-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.mw-card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.mw-card-status {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 2px;
}

.mw-card-status.unresolved {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

.mw-card-status.resolved {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.mw-card-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-bright);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-card-check.checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.mw-card-check.checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Failure Type Badge on Triage Cards ── */
.mw-card-failure-type {
  position: absolute;
  top: 26px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}

.mw-card-failure-type.ft-composition { background: #1e3a5f; color: #60a5fa; }
.mw-card-failure-type.ft-artifacts { background: #5a1a1a; color: #f87171; }
.mw-card-failure-type.ft-motion { background: #5a3d00; color: #fbbf24; }
.mw-card-failure-type.ft-safety_filter { background: #4a3d00; color: #facc15; }
.mw-card-failure-type.ft-character { background: #3b1a5a; color: #c084fc; }

/* ── Detail Overlay (full-viewport takeover) ── */
.mw-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-primary);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mw-detail-nav {
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 151;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-dim);
}

.mw-detail-nav-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.mw-detail-nav-id {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.mw-detail-nav-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.mw-detail-nav-arrows {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.mw-detail-prev,
.mw-detail-next {
  /* inherits .mw-btn base */
}

.mw-detail-prev:hover:not(:disabled),
.mw-detail-next:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.mw-detail-body {
  flex: 1;
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ── Detail View Inline Pills ── */
.mw-detail-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mw-detail-pills .mw-label {
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── Resolve Button ── */
.mw-btn-resolve {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.mw-btn-resolve:hover:not(:disabled) {
  background: var(--accent-green);
  color: #000;
}

/* ── Detail View ── */
.mw-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mw-detail-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mw-detail-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mw-detail-frame-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-label);
  padding: 6px 10px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-dim);
}

.mw-detail-frame-img {
  aspect-ratio: var(--project-ar, 9 / 16);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-detail-frame-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mw-detail-frame-img .mw-no-frame {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.mw-detail-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mw-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mw-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  min-width: 80px;
  flex-shrink: 0;
}

.mw-meta-input {
  flex: 1;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.mw-meta-input:focus {
  border-color: var(--accent-cyan);
}

.mw-meta-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.mw-meta-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.mw-detail-prompt-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mw-detail-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mw-detail-prompt-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.mw-detail-model-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mw-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mw-model-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-dim);
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
}

.mw-model-style {
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  margin-right: 6px;
}

.mw-model-warn {
  color: var(--accent-amber);
  font-size: 9px;
}

/* ── Reconciliation Collapse ── */
.mw-reconcile-collapse {
  max-height: 600px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 300ms ease, opacity 200ms ease;
}

.mw-reconcile-collapse.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── Reconciliation ── */
.mw-reconcile-layout {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 16px;
  min-height: 200px;
}

.mw-drop-zone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
  min-height: 200px;
}

.mw-drop-zone.drag-over {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.mw-drop-zone-content {
  text-align: center;
}

.mw-drop-zone-icon {
  font-size: 32px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.mw-drop-zone-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.mw-drop-zone-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 4px;
}

.mw-dropped-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.mw-dropped-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-dropped-file:hover {
  border-color: var(--accent-cyan);
}

.mw-dropped-file.selected {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.mw-dropped-file-thumb {
  width: 36px;
  height: 64px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-primary);
}

.mw-dropped-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-dropped-file-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-primary);
  word-break: break-all;
}

.mw-dropped-file-linked {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-green);
  margin-left: auto;
}

.mw-reconcile-shots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.mw-reconcile-shot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-reconcile-shot:hover {
  border-color: var(--accent-amber);
}

.mw-reconcile-shot.linked {
  border-color: var(--accent-green);
  opacity: 0.6;
}

.mw-reconcile-shot-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.mw-reconcile-shot-status {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  margin-left: auto;
}

.mw-reconcile-link-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 8px;
  border: 1px solid var(--accent-green);
  border-radius: 2px;
  background: var(--accent-green-dim);
  color: var(--accent-green);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-reconcile-link-btn:hover {
  background: var(--accent-green);
  color: #000;
}

/* ── Failure Tag Modal ── */
.mw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.mw-modal-overlay.active {
  display: flex;
}

.mw-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 520px;
  width: 100%;
}

.mw-modal-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.mw-modal-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.mw-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mw-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-tertiary);
  color: var(--text-dim);
}

.mw-pill:hover {
  color: var(--text-primary);
}

.mw-pill.selected {
  transform: scale(1.05);
}

/* Pill colors */
.mw-pill-composition { border-color: #2563eb; }
.mw-pill-composition.selected { background: #1e3a5f; color: #60a5fa; border-color: #3b82f6; }

.mw-pill-artifacts { border-color: #dc2626; }
.mw-pill-artifacts.selected { background: #5a1a1a; color: #f87171; border-color: #ef4444; }

.mw-pill-motion { border-color: #d97706; }
.mw-pill-motion.selected { background: #5a3d00; color: #fbbf24; border-color: #f59e0b; }

.mw-pill-safety { border-color: #ca8a04; }
.mw-pill-safety.selected { background: #4a3d00; color: #facc15; border-color: #eab308; }

.mw-pill-character { border-color: #9333ea; }
.mw-pill-character.selected { background: #3b1a5a; color: #c084fc; border-color: #a855f7; }

.mw-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* ── Verifying State ── */
@keyframes mw-pulse-border {
  0%, 100% { border-color: var(--accent-cyan); }
  50% { border-color: var(--border-dim); }
}

.mw-card.verifying {
  opacity: 0.4;
  animation: mw-pulse-border 2s infinite;
}

.mw-card.verifying .mw-card-status.verifying {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

/* === Compare Cards (ALL Mode) === */

.mw-grid.mw-grid-compare {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.mw-compare-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-compare-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.mw-compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--bg-primary);
}

.mw-compare-side {
  position: relative;
  aspect-ratio: var(--project-ar, 9 / 16);
  background: var(--bg-primary);
  overflow: hidden;
}

.mw-compare-side img,
.mw-compare-side video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-compare-label {
  position: absolute;
  top: 4px;
  left: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-dim);
}

.mw-compare-info {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mw-compare-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.mw-compare-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}

.mw-compare-flagged {
  position: absolute;
  top: 4px;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  z-index: 2;
}

/* === Mode Toggle === */

.mw-mode-toggle {
  display: flex;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mw-mode-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mw-mode-btn.active {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

.mw-mode-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* === A/R Buttons === */

.mw-detail-ar {
  display: flex;
  gap: 6px;
}

.mw-btn-approve {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.mw-btn-approve:hover:not(:disabled) {
  background: var(--accent-green);
  color: #000;
}

.mw-btn-reject {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.mw-btn-reject:hover:not(:disabled) {
  background: var(--accent-red);
  color: #000;
}

/* === Flash Animations === */

@keyframes mw-flash-approve {
  0% { box-shadow: inset 0 0 0 3px var(--accent-green); }
  100% { box-shadow: inset 0 0 0 3px transparent; opacity: 0; transform: scale(0.95); }
}

@keyframes mw-flash-reject {
  0% { box-shadow: inset 0 0 0 3px var(--accent-red); }
  100% { box-shadow: inset 0 0 0 3px transparent; opacity: 0; transform: scale(0.95); }
}

.mw-compare-card.flash-approve,
.mw-card.flash-approve {
  animation: mw-flash-approve 300ms ease-out forwards;
  pointer-events: none;
}

.mw-compare-card.flash-reject,
.mw-card.flash-reject {
  animation: mw-flash-reject 300ms ease-out forwards;
  pointer-events: none;
}

/* === Shortcut Legend === */

.mw-shortcut-legend {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  display: flex;
  gap: 12px;
}

.mw-shortcut-key {
  font-weight: 600;
  color: var(--accent-amber);
  padding: 0 3px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-dim);
  border-radius: 2px;
  margin-right: 2px;
}

/* ── Take Browsing Strip ── */
.mw-take-strip {
  margin-top: 16px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
}

.mw-take-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mw-take-strip-header:hover {
  background: var(--bg-tertiary);
}

.mw-take-strip-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.mw-take-strip-chevron {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.mw-take-strip-chevron.open {
  transform: rotate(180deg);
}

.mw-take-strip-body {
  border-top: 1px solid var(--border-dim);
  padding: 12px;
}

.mw-take-strip-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mw-take-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-take-group-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.mw-take-group-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mw-take-thumb {
  position: relative;
  width: 48px;
  height: 85px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  background: var(--bg-primary);
}

.mw-take-thumb:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.mw-take-thumb.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.mw-take-thumb.rejected {
  opacity: 0.4;
}

.mw-take-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-take-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
}

.mw-take-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.mw-take-indicator-hero {
  color: var(--accent-amber);
}

.mw-take-indicator-approved {
  color: var(--accent-green);
}

.mw-take-indicator-rejected {
  color: var(--accent-red);
}

.mw-take-num {
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.7);
  padding: 0 3px;
  border-radius: 2px;
}

/* ── Take Preview UI ── */
.mw-take-prompt-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.mw-btn-link {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.mw-btn-link:hover {
  color: var(--accent-cyan);
}

.mw-btn-hero {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.mw-btn-hero:hover:not(:disabled) {
  background: var(--accent-amber);
  color: #000;
}

/* ── Video Source Label ── */
.mw-video-source {
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
}

.mw-video-source-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.mw-video-source-text:hover {
  color: var(--accent-cyan);
}
