.step-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.step-card.active { border-color: #2196f3; box-shadow: 0 0 0 1px #2196f3; }
.step-card.done { border-color: #4caf50; }
.step-card.locked { opacity: .5; pointer-events: none; }

.step-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: #e0e0e0; color: #fff;
  flex-shrink: 0;
}
.step-num.active { background: #2196f3; }
.step-num.done { background: #4caf50; }
.step-title { font-size: 13px; font-weight: 600; color: #333; }
.step-desc { font-size: 11px; color: #888; margin-bottom: 8px; }

.info-grid { display: grid; grid-template-columns: 80px 1fr; gap: 2px 8px; font-size: 12px; }
.info-grid dt { color: #888; }
.info-grid dd { color: #333; }

.sel-info {
  background: #f5f5f5; padding: 8px;
  border-radius: 4px; font-size: 11px; font-family: monospace;
  min-height: 24px; line-height: 1.5;
}

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px; margin-bottom: 8px;
}
.stat-box { background: #f3e5f5; padding: 6px; border-radius: 4px; text-align: center; }
.stat-box .val { font-size: 14px; font-weight: 600; color: #6a1b9a; }
.stat-box .lbl { font-size: 9px; color: #888; text-transform: uppercase; }

#histogram { width: 100%; height: 80px; background: #fafafa; border-radius: 4px; }

.status { font-size: 12px; padding: 6px 8px; border-radius: 4px; margin-bottom: 8px; }
.status.ok { background: #e8f5e9; color: #2e7d32; }
.status.err { background: #ffebee; color: #c62828; }
.status.info { background: #e3f2fd; color: #1565c0; }

.net-bar {
  font-size: 11px; color: #666;
  background: #f0f7ff; border: 1px solid #bbdefb;
  padding: 6px 8px; border-radius: 4px; margin-bottom: 8px;
}
.net-bar b { color: #2196f3; }

.pixel-bar {
  background: #f5f5f5; padding: 6px 8px;
  border-radius: 4px; font-size: 11px; font-family: monospace;
  min-height: 20px;
}
.hover-label {
  font-size: 11px; font-weight: 600;
  color: #666; text-transform: uppercase; margin-bottom: 4px;
}

/* Band / palette controls */
.ctrl-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.ctrl-label {
  flex-shrink: 0; width: 70px;
  font-size: 11px; font-weight: 600;
  color: #666; text-transform: uppercase;
  margin: 0;
}
.ctrl-row select, .ctrl-row input { flex: 1; margin: 0; }
.ctrl-row .radio {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: normal; color: #333;
  text-transform: none; margin: 0;
}
.ctrl-row .radio input { width: auto; flex: 0; margin: 0; }
.rgb-pickers { display: flex; gap: 4px; flex: 1; }
.rgb-pickers select { flex: 1; }
.palette-swatch {
  display: inline-block;
  width: 60px; height: 14px;
  background-size: 100% 100%;
  border-radius: 2px; border: 1px solid #ccc;
  flex-shrink: 0;
}

/* IFD inspector */
.ifd-toggle {
  background: transparent; border: none;
  font-size: 12px; color: #555; padding: 4px 0; text-align: left;
  cursor: pointer; width: 100%;
}
.ifd-toggle:hover { color: #2196f3; }
.ifd-content {
  display: none;
  margin-top: 6px;
  font-size: 11px;
  color: #333;
}
.ifd-content.open { display: block; }
.ifd-content h4 {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  margin: 10px 0 4px;
  font-weight: 700;
}
.ifd-content .badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.ifd-content .badge.ok { background: #e8f5e9; color: #2e7d32; }
.ifd-content .badge.err { background: #fff3e0; color: #ef6c00; }
.check-list {
  list-style: none;
  margin: 6px 0 8px;
  padding: 0;
}
.check-list li { padding: 2px 0; font-size: 11px; }
.check-list .ok { color: #2e7d32; font-weight: bold; }
.check-list .err { color: #c62828; font-weight: bold; }
.check-list .muted { color: #888; }
.ifd-table {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
}
.ifd-table th, .ifd-table td {
  padding: 3px 4px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
.ifd-table th {
  color: #888; font-weight: 600;
  text-transform: uppercase; font-size: 9px;
}
.kv-list {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1px 8px;
  font-size: 11px;
  font-family: monospace;
  max-height: 160px;
  overflow-y: auto;
  background: #fafafa;
  border-radius: 3px;
  padding: 4px 6px;
}
.kv-list dt { color: #888; }
.kv-list dd { color: #333; word-break: break-word; }
