
/* =========================================================
   PrePress Studio — extends app.css (IV / QR dashboard patterns)
========================================================= */

.prepress-dropzone {
  border: 2px dashed rgba(255, 170, 60, 0.35);
  border-radius: var(--radius, 14px);
  padding: 36px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.prepress-dropzone:hover,
.prepress-dropzone.prepress-dropzone--active {
  border-color: rgba(255, 170, 60, 0.55);
  background: rgba(0, 0, 0, 0.28);
}

.prepress-dropzone p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.prepress-preview-badge {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 138, 31, 0.12);
  border: 1px solid rgba(255, 170, 60, 0.28);
  color: rgba(245, 230, 207, 0.95);
}

.prepress-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.prepress-bottom-actions .bw-dashboard-btn-primary,
.prepress-bottom-actions .bw-dashboard-btn-secondary {
  flex: 1 1 auto;
  min-width: 140px;
}

.save-panel {
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trace-modal-project-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 170, 60, 0.15);
}

.trace-modal-project-input,
.trace-modal-project-notes {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
  font-family: inherit;
}

.trace-modal-project-notes {
  min-height: 52px;
  resize: vertical;
}

.prepress-paper-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.prepress-paper-controls label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.prepress-preview-frame {
  position: relative;
  min-height: 200px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 60, 0.12);
  overflow: auto;
}

.prepress-processing-banner {
  padding: 10px 14px;
  margin: 0 0 10px;
  border-radius: 10px;
  background: rgba(255, 138, 31, 0.12);
  border: 1px solid rgba(255, 170, 60, 0.28);
  color: rgba(245, 230, 207, 0.95);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.prepress-canvas-container {
  flex: 1;
  min-height: 180px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.prepress-preview-viewport {
  width: 100%;
  min-height: 220px;
  flex: 1;
  overflow: hidden;
  position: relative;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prepress-preview-viewport.prepress-preview-viewport--dragging {
  cursor: grabbing;
}

#previewInner {
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

/* Section wizard + stacked preview (see prepress.html) */
.workflow-step {
  display: none;
}

.workflow-step.active {
  display: block;
}

.sidebar-step {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  color: #aaa;
  margin-bottom: 6px;
}

.sidebar-step .step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-step .step-title {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-step .edit-icon {
  font-size: 14px;
  opacity: 0.65;
}

.sidebar-step .step-summary {
  font-size: 12px;
  color: var(--muted, rgba(200, 190, 175, 0.65));
  margin-top: 6px;
  line-height: 1.35;
}

.sidebar-step.active {
  border: 1px solid rgba(255, 140, 0, 0.8);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
  background: rgba(255, 140, 0, 0.08);
}

.sidebar-step.active .step-title {
  font-weight: 700;
  color: #fff;
}

.sidebar-step-substeps {
  margin-top: 8px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, rgba(200, 190, 175, 0.7));
}

.preview-processed-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.prepress-stack-canvas {
  display: block;
  width: 100%;
  max-height: 260px;
  height: auto;
  background: #222;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.12);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}

#preview-original,
#preview-processed {
  pointer-events: none;
}

#previewInner.prepress-preview-inner-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.015;
}

.prepress-expand-preview-btn {
  margin-left: 6px;
}

/* Fullscreen preview modal */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.preview-modal.hidden {
  display: none;
}

.preview-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.preview-modal .modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  margin: auto;
  top: 5%;
  background: #111;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.preview-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.preview-modal .modal-preview {
  display: flex;
  flex: 1;
  gap: 20px;
  min-height: 0;
  height: 100%;
}

.preview-modal .modal-preview-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.prepress-modal-canvas {
  flex: 1;
  width: 100%;
  min-height: 200px;
  background: #222;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.15);
  transform-origin: center center;
}

.prepress-canvas-container img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.prepress-preview-dynamic-img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.prepress-preview-pdf-iframe {
  width: 100%;
  min-height: 400px;
  height: 400px;
  border: none;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

.prepress-preview-placeholder {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.prepress-meta {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 230, 207, 0.88);
}

.prepress-meta dt {
  font-weight: 700;
  color: rgba(245, 230, 207, 0.65);
  margin-top: 8px;
}

.prepress-meta dd {
  margin: 0;
}

#svgAnalysisContainer {
  margin-top: 12px;
}

.pp-warning {
  border: 1px solid #ff9800;
  background: rgba(255, 152, 0, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
  line-height: 1.5;
}

.pp-warning .pp-recommendation {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(245, 230, 207, 0.88);
}

.pp-success {
  border: 1px solid #4caf50;
  background: rgba(76, 175, 80, 0.1);
  padding: 12px;
  border-radius: 8px;
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
}

.pp-neutral {
  border: 1px solid #888;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  color: rgba(245, 230, 207, 0.88);
  font-size: 14px;
}

#svgAnalysisContainer .btn-primary {
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 168, 68, 1), rgba(255, 120, 20, 1));
  color: #1b0b00;
}

#svgAnalysisContainer .btn-primary:hover {
  filter: brightness(1.06);
}

/* Vector trace controls (Corel-style) */
#traceControlsCard .trace-preview-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

#traceControlsCard .trace-preview-toggle label {
  font-weight: 600;
  color: rgba(245, 230, 207, 0.85);
}

#traceControlsCard #traceModeSelect {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text, #f5e6cf);
  font-size: 14px;
}

#traceControlsCard .trace-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

#traceControlsCard .trace-controls label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 230, 207, 0.8);
}

#traceControlsCard .trace-controls input[type="range"] {
  width: 100%;
  max-width: 420px;
}

#traceControlsCard .trace-actions {
  margin-top: 8px;
}

#traceControlsCard .trace-actions .btn-primary {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 168, 68, 1), rgba(255, 120, 20, 1));
  color: #1b0b00;
}

#traceControlsCard .trace-actions .btn-primary:hover {
  filter: brightness(1.06);
}

#traceControlsCard .trace-actions .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.prepress-trace-compare {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  justify-content: center;
}

.prepress-trace-compare img {
  width: 50%;
  max-height: 400px;
  object-fit: contain;
}

.prepress-form-row {
  margin-bottom: 16px;
}

.prepress-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 230, 207, 0.85);
}

.prepress-form-row input[type="text"],
.prepress-form-row textarea {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text, #f5e6cf);
  font-size: 14px;
}

.prepress-form-row textarea {
  min-height: 88px;
  resize: vertical;
}

#prepressToast {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 10000;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 18, 22, 0.96), rgba(12, 10, 14, 0.92));
  border: 1px solid rgba(255, 170, 60, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
  font-weight: 600;
  display: none;
  max-width: min(420px, calc(100vw - 40px));
}

#prepressToast.prepress-toast--visible {
  display: block;
}

/* ===== My Art Projects grid (dashboard-style tiles) ===== */
.prepress-projects-loading,
.prepress-projects-error,
.prepress-projects-empty {
  margin-top: 12px;
  font-size: 14px;
}

.prepress-projects-error {
  color: rgba(255, 160, 140, 0.95);
}

.prepress-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .prepress-projects-grid {
    grid-template-columns: 1fr;
  }
}

.prepress-project-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 170, 60, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  font: inherit;
  color: inherit;
  overflow: hidden;
}

.prepress-project-cell:hover {
  border-color: rgba(255, 170, 60, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.prepress-project-cell:focus-visible {
  outline: 2px solid rgba(255, 138, 31, 0.85);
  outline-offset: 2px;
}

.prepress-project-cell.prepress-project-cell--selected {
  border-color: rgba(255, 138, 31, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 138, 31, 0.35);
}

.prepress-project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.prepress-project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prepress-project-thumb--pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(245, 230, 207, 0.75);
  letter-spacing: 0.06em;
}

.prepress-project-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prepress-project-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(245, 230, 207, 0.98);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prepress-project-date {
  font-size: 12px;
  color: var(--muted);
}

.prepress-project-status {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 138, 31, 0.18);
  border: 1px solid rgba(255, 170, 60, 0.28);
  color: rgba(245, 230, 207, 0.92);
}

/* Vector trace modal */
.trace-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.trace-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.trace-modal-content {
  position: relative;
  z-index: 1;
  margin: 2vh auto;
  width: 90vw;
  max-width: 1600px;
  max-height: 96vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 170, 60, 0.2);
  box-sizing: border-box;
}

.trace-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trace-modal-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trace-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: rgba(245, 230, 207, 0.98);
}

.trace-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.trace-modal-close:hover {
  color: rgba(245, 230, 207, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.trace-modal-body {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.trace-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.trace-preview-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.trace-preview-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.trace-preview-view-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trace-view-toggle-btn.is-active {
  border-color: rgba(255, 170, 60, 0.55);
  color: rgba(245, 230, 207, 0.98);
  background: rgba(255, 170, 60, 0.12);
}

.trace-modal-zoom-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trace-zoom-pct-readout {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 230, 207, 0.88);
  font-variant-numeric: tabular-nums;
}

.trace-preview-underbase-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 4px 0 2px;
  font-size: 13px;
  color: rgba(245, 230, 207, 0.9);
}

.trace-underbase-show-label,
.trace-underbase-opacity-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.trace-underbase-opacity-slider {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: 220px;
}

.trace-colors-section {
  margin-top: 4px;
}

.trace-colors-section .trace-section-label {
  margin-bottom: 4px;
}

.trace-colors-section .trace-hint {
  margin-bottom: 8px;
}

.trace-groups-section {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trace-print-order-direction {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trace-groups-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trace-groups-toolbar.top-controls,
.top-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-controls-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.top-controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.trace-generate-underbase-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.trace-generate-underbase-status {
  font-size: 11px;
  min-height: 1.2em;
  color: var(--muted);
}

.trace-gen-ub-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 170, 60, 0.25);
  border-top-color: rgba(255, 170, 60, 0.95);
  border-radius: 50%;
  animation: traceUbSpin 0.65s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}

.trace-generate-underbase-btn--loading .trace-gen-ub-spinner {
  display: inline-block !important;
}

@keyframes traceUbSpin {
  to {
    transform: rotate(360deg);
  }
}

.trace-underbase-invalidate-banner {
  margin: 6px 0 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 138, 31, 0.12);
  border: 1px solid rgba(255, 170, 60, 0.28);
  font-size: 13px;
  color: rgba(245, 230, 207, 0.95);
}

.group-card-visibility-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.92);
  cursor: pointer;
}

.group-card-visibility-btn:hover {
  border-color: rgba(255, 170, 60, 0.35);
}

.group-card-visibility-btn--hidden {
  opacity: 0.38;
}

.trace-default-choke-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.trace-default-choke-row label {
  margin: 0;
}

.trace-groups-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trace-color-groups-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  min-width: 0;
  align-items: stretch;
}

.group-card {
  min-width: 140px;
  flex-shrink: 0;
  padding: 10px 10px 8px;
  border-radius: var(--radius, 10px);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(245, 230, 207, 0.92);
  cursor: default;
}

.group-card--dragging {
  opacity: 0.65;
  outline: 1px dashed rgba(255, 170, 60, 0.45);
}

.group-card--underbase {
  border-color: rgba(255, 170, 60, 0.35);
}

.group-card-drag-hint--locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.group-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.group-card-drag-hint {
  cursor: grab;
  user-select: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.group-card-drag-hint:active {
  cursor: grabbing;
}

.group-card-swatch.trace-color-swatch-btn {
  width: 32px;
  height: 32px;
}

.group-card-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
  margin-bottom: 4px;
}

.group-card-print-order {
  font-size: 11px;
  margin-bottom: 6px;
}

.group-card-pick-pantone {
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  padding: 6px 8px;
}

.group-card-trap-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.group-card-trap-fieldset[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.group-card-trap-legend {
  margin-bottom: 4px;
  font-size: 11px;
}

.group-card-trap-label {
  display: block;
  margin: 2px 0;
  cursor: pointer;
  font-size: 11px;
}

.group-card-trap-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.group-card-trap-amount-row .print-trap-amount-select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.group-card-underbase-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 11px;
}

.group-card-trap-warn {
  margin-top: 6px;
}

.trace-cluster-actions--rowbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
}

.trace-cluster-actions--inline {
  flex-shrink: 0;
  margin: 0;
  justify-content: flex-end;
}

.trace-color-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(245, 230, 207, 0.92);
}

.trace-color-group-chip-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trace-print-section {
  margin-top: 4px;
}

.trace-print-section .print-order-trapping-panel {
  margin: 0;
}

.trace-controls-sidebar {
  width: 300px;
  min-width: 260px;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(96vh - 100px);
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trace-sidebar-preview-bg {
  margin-top: 4px;
}

.trace-sidebar-apply-btn {
  margin-top: 8px;
}

.trace-modal-sidebar {
  width: 340px;
  min-width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(96vh - 100px);
  padding-right: 6px;
}

.trace-modal-preview-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.trace-modal-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  flex-shrink: 0;
}

.trace-preview-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trace-preview-toolbar-row label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.trace-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.trace-zoom-btn {
  min-width: 40px;
  padding: 6px 10px;
  font-weight: 700;
}

.trace-preview-area {
  flex: 0 0 auto;
  min-height: 280px;
  height: min(48vh, 520px);
  max-height: min(52vh, 560px);
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.trace-preview-area.trace-preview-area--dragging {
  cursor: grabbing;
}

/* Two synchronized viewports: original (img) | trace (SVG via img). */
.trace-preview-area .preview-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.trace-preview-pair {
  /* paired with .preview-row */
  min-height: 0;
}

.trace-preview-pair.trace-preview-pair--trace-only .preview-viewport.original {
  display: none;
}

.trace-preview-pair.trace-preview-pair--trace-only .preview-viewport.trace {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

.trace-preview-area .preview-viewport {
  flex: 1;
  min-width: 0;
  height: min(400px, 42vh);
  min-height: 200px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 6px;
  position: relative;
  cursor: grab;
  touch-action: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
}

.trace-preview-area .preview-viewport.preview-viewport--dragging {
  cursor: grabbing;
}

.trace-preview-pane-label {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: rgba(35, 32, 28, 0.72);
  pointer-events: none;
}

.trace-preview-area .preview-transform {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform-origin: center center;
  will-change: transform;
}

.trace-preview-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Trace modal preview: Fabric canvases fill the viewport (side-by-side or single column). */
.trace-preview-viewport,
.trace-preview-container {
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  box-sizing: border-box;
}

.trace-preview-viewport--dragging {
  cursor: grabbing;
}

.trace-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-content: stretch;
}

.trace-preview-grid.trace-preview-single {
  grid-template-columns: 1fr;
}

.trace-preview-grid.trace-preview-single #originalPanel {
  display: none;
}

.trace-preview-hidden {
  display: none;
}

.preview-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
}

.preview-panel .canvas-container,
.preview-panel canvas {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
}

.bg-checker {
  background-image:
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.bg-white {
  background: #ffffff;
}

.bg-black {
  background: #000000;
}

.trace-preview-controls,
.trace-bg-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trace-remove-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.trace-remove-color-row > label {
  margin: 0;
}

.trace-eyedropper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-width: 40px;
}

.trace-eyedropper-btn.is-active {
  outline: 2px solid rgba(255, 170, 60, 0.65);
  outline-offset: 1px;
}

.trace-eyedropper-icon {
  display: block;
}

.trace-viewport--eyedropper {
  cursor: crosshair;
}

.trace-eyedropper-preview {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 10050;
  display: none;
}

.trace-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trace-controls label {
  font-size: 13px;
  color: var(--muted);
}

.trace-section-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 230, 207, 0.95);
}

.trace-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.trace-slider-hint {
  margin: -4px 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.trace-colors-section .trace-color-cluster-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  max-height: none;
  overflow: visible;
  padding: 4px 0;
}

.trace-color-cluster-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}

.trace-color-cluster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 230, 207, 0.92);
  flex: 0 0 auto;
}

.trace-color-cluster-row input[type="checkbox"] {
  flex-shrink: 0;
}

.trace-color-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.trace-cluster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.trace-cluster-actions--inline {
  margin: 0;
}

.print-order-trapping-panel {
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 170, 60, 0.12);
}

.print-order-trapping-title {
  margin: 0 0 6px;
}

.print-order-trapping-hint {
  margin: 0 0 12px;
}

.print-order-global-choke {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.print-trap-amount-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
}

.print-order-layer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  margin-bottom: 12px;
}

.print-order-layer-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(245, 230, 207, 0.9);
}

.print-order-layer-row.print-order-layer-row--prints-last {
  border-color: rgba(255, 170, 60, 0.25);
}

.print-order-drag-handle {
  cursor: grab;
  user-select: none;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.print-order-drag-handle:active {
  cursor: grabbing;
}

.print-order-row-main {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (min-width: 520px) {
  .print-order-layer-row {
    grid-template-columns: auto auto minmax(120px, 1fr);
  }

  .print-order-row-main {
    grid-column: auto;
  }
}

.print-order-row-label {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.print-order-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 170, 60, 0.15);
  color: rgba(245, 230, 207, 0.85);
  white-space: nowrap;
}

.print-order-trap-fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 0 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.print-order-trap-fieldset[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.print-order-trap-radios label {
  display: block;
  margin: 4px 0;
  cursor: pointer;
}

.print-order-row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.print-order-row-actions button {
  font-size: 11px;
  padding: 2px 6px;
}

.print-order-save-btn {
  width: auto;
  min-width: 160px;
}

.print-order-trapping-panel--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.print-order-trapping-panel--compact .print-order-global-choke {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.print-order-trapping-panel--compact .print-order-save-btn {
  flex-shrink: 0;
}

.print-order-trapping-panel--save-only {
  justify-content: flex-end;
}

.print-order-warning {
  font-size: 11px;
  color: rgba(255, 120, 80, 0.95);
  margin-top: 4px;
}

.trace-color-group-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 170, 60, 0.12);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 230, 207, 0.88);
}

.trace-color-group-block {
  margin-bottom: 8px;
}

.trace-color-group-block--selectable {
  cursor: pointer;
  border-radius: 8px;
  padding: 2px;
  margin: -2px;
  transition: box-shadow 0.12s ease, background 0.12s ease;
}

.trace-color-group-block--selectable:hover {
  background: rgba(255, 255, 255, 0.04);
}

.trace-color-group-block--selectable.is-spread-selected {
  box-shadow: 0 0 0 2px rgba(255, 170, 60, 0.55);
  background: rgba(255, 170, 60, 0.06);
}

.trace-color-group-block:last-child {
  margin-bottom: 0;
}

.trace-color-group-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.trace-color-group-keeper {
  margin-bottom: 6px;
}

.trace-color-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.trace-color-group-header-text {
  flex: 1;
  min-width: 0;
}

.trace-color-group-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2px;
}

.trace-color-group-pantone-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(245, 230, 207, 0.98);
}

.trace-color-group-pantone-hex {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 2px;
}

.trace-color-group-swap-btn {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 10px;
}

/* Stacked above Vector Trace modal when both open */
.pantone-picker-modal {
  z-index: 10050;
}

.pantone-picker-modal-content {
  max-width: 520px;
  width: 92vw;
  max-height: 90vh;
}

.pantone-picker-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  min-height: 0;
}

.pantone-picker-subtitle {
  margin: 0;
  font-size: 13px;
}

.pantone-picker-search-label {
  font-size: 12px;
  color: var(--muted);
}

.pantone-picker-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
}

.pantone-picker-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 4px 4px 8px 0;
  margin: 0;
}

.pantone-picker-swatch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.pantone-picker-swatch:hover {
  border-color: rgba(255, 170, 60, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 170, 60, 0.25);
}

.pantone-picker-swatch:focus-visible {
  outline: 2px solid rgba(255, 170, 60, 0.7);
  outline-offset: 2px;
}

.pantone-picker-swatch-color {
  display: block;
  height: 36px;
  min-height: 36px;
}

.pantone-picker-swatch-label {
  display: block;
  font-size: 9px;
  line-height: 1.25;
  padding: 5px 4px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(245, 230, 207, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pantone-picker-swatch.is-picker-selected {
  border-color: rgba(255, 170, 60, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 170, 60, 0.35);
}

.pantone-picker-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.trace-color-group-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trace-color-tuning {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  margin: 4px 0;
  border-top: 1px solid var(--border, #e0e0e0);
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.prepress-color-summary-line {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Trace palette (properties / meta) */
.palette-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.prepress-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--border, #ccc);
  flex-shrink: 0;
}

.prepress-trace-mono-hint {
  margin: 8px 0 0;
  font-size: 13px;
}

/* Raster upload — dominant colors (canvas sampling) */
.prepress-raster-colors {
  margin-top: 12px;
  margin-bottom: 4px;
}

.prepress-raster-colors strong {
  display: block;
  margin-bottom: 4px;
}

.prepress-preview-color-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border, #e0e0e0);
}

.prepress-preview-color-controls label {
  font-size: 13px;
  color: var(--muted);
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #444;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .trace-modal-body {
    flex-direction: column;
  }

  .trace-controls-sidebar {
    width: 100%;
    max-height: none;
    margin-left: 0;
    border-top: 1px solid rgba(255, 170, 60, 0.15);
    padding-top: 12px;
  }

  .trace-preview-area .preview-row {
    flex-direction: column;
  }

  .trace-preview-area .preview-viewport {
    width: 100%;
    max-height: min(360px, 38vh);
    height: min(360px, 38vh);
  }
}

/* Step 2 — garment removal + cleanup engine (trace modal sidebar) */
.trace-step2-label {
  margin: 14px 0 6px;
}

.trace-panel-block {
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 170, 60, 0.15);
}

.trace-garment-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.trace-garment-swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  vertical-align: middle;
  box-sizing: border-box;
}

.trace-garment-readout {
  font-size: 12px;
}

.trace-cleanup-custom-panel {
  margin-top: 8px;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trace-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  cursor: pointer;
}

.trace-undo-row {
  margin: 12px 0 8px;
}

/* —— Full-page workflow shell —— */
.prepress-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  box-sizing: border-box;
}

.prepress-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  background: #0f0f10;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.prepress-sidebar-brand {
  margin-bottom: 16px;
}

.prepress-sidebar-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.prepress-sidebar-dashboard {
  font-size: 13px;
}

.prepress-workflow-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prepress-workflow-step,
.prepress-workflow-substep {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 230, 207, 0.92);
  font-size: 13px;
  cursor: pointer;
}

.prepress-workflow-substep {
  margin-left: 12px;
  font-size: 12px;
  padding: 8px 10px;
}

.prepress-workflow-step:hover,
.prepress-workflow-substep:hover {
  background: rgba(255, 170, 60, 0.08);
}

.prepress-workflow-step.is-active,
.prepress-workflow-substep.is-active {
  border-color: rgba(255, 170, 60, 0.35);
  background: rgba(255, 170, 60, 0.12);
}

.prepress-workflow-step-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 700;
}

.prepress-workflow-step-status {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted, rgba(200, 190, 175, 0.65));
}

.prepress-main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: var(--bg, #121214);
}

.prepress-main-top-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
  background: var(--bg, #121214);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.prepress-setup-summary-bar {
  padding: 8px 24px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 170, 60, 0.06);
}

.prepress-setup-summary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 1200px;
}

.prepress-setup-summary-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 230, 207, 0.75);
  margin-right: 4px;
}

.prepress-setup-summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 170, 60, 0.22);
  color: rgba(245, 230, 207, 0.95);
}

.prepress-setup-summary-garment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prepress-setup-summary-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.prepress-setup-summary-edit {
  margin-left: auto;
}

.prepress-main-header {
  flex-shrink: 0;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 16px;
}

.prepress-header-project-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.prepress-header-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prepress-header-input {
  min-width: 140px;
  max-width: 220px;
  flex: 1 1 140px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
}

.prepress-header-notes {
  min-width: 160px;
  max-width: 280px;
  flex: 1 1 160px;
  min-height: 36px;
  max-height: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.prepress-header-export {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.prepress-main-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.prepress-main-header-actions--primary {
  flex-shrink: 0;
}

.prepress-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prepress-bring-workspace__left {
  min-width: 0;
}

.prepress-bring-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

.prepress-bring-split__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Bring artwork: left column scrolls; launch bar pinned below; preview stays sticky */
.prepress-bring-left-stack {
  min-height: 0;
  max-height: calc(100vh - 200px);
}

.prepress-bring-controls-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}

.prepress-bring-step-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.18);
  background: rgba(255, 138, 31, 0.06);
  line-height: 1.45;
}

.prepress-processing-mode-badge {
  align-self: center;
  margin-right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 230, 200, 0.98);
  background: linear-gradient(135deg, rgba(255, 138, 31, 0.35), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 170, 60, 0.45);
  white-space: nowrap;
}

.prepress-processing-path-title {
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.prepress-processing-path-helper {
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 14px;
}

.prepress-processing-path-recommend {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 230, 207, 0.92);
}

.prepress-processing-path-seg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prepress-processing-path-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prepress-path-choice {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.prepress-path-choice:hover {
  border-color: rgba(255, 170, 60, 0.35);
}

.prepress-path-choice:has(input:checked) {
  border-color: rgba(255, 170, 60, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 170, 60, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(165deg, rgba(255, 138, 31, 0.14), rgba(0, 0, 0, 0.35));
}

.prepress-path-choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.prepress-path-choice-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  min-height: 3.5rem;
}

.prepress-path-choice-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prepress-path-choice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.prepress-path-choice-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: rgba(255, 248, 235, 0.98);
}

.prepress-path-choice-sub {
  font-size: 13px;
  line-height: 1.4;
}

.prepress-seg-btn--wide {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.prepress-analysis-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.prepress-analysis-card-title {
  margin: 0;
}

.prepress-prepare-artwork-card {
  padding: 14px 16px;
}

.prepress-prepare-artwork-heading {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.prepress-prepare-artwork-lead {
  margin: 0 0 14px;
  line-height: 1.45;
}

.prepress-prepare-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prepress-prepare-subsection:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prepress-prepare-subheading {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(245, 230, 207, 0.95);
}

.prepress-prepare-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(200, 190, 175, 0.72);
}

.prepress-cleanup-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 60, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.prepress-cleanup-mode-label {
  font-weight: 700;
  font-size: 14px;
  color: rgba(245, 230, 207, 0.95);
}

.prepress-cleanup-mode-value {
  flex: 1 1 140px;
  min-width: 0;
}

.prepress-cleanup-auto-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  line-height: 1.45;
}

.prepress-cleanup-auto-list {
  margin: 0;
  padding-left: 1.25rem;
}

.prepress-cleanup-auto-list li {
  margin: 4px 0;
}

.prepress-cleanup-clip-row {
  cursor: pointer;
}

.prepress-cleanup-done-status {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 140, 0.35);
  background: rgba(40, 90, 55, 0.25);
  color: rgba(210, 245, 215, 0.95);
}

.prepress-preprocess-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prepress-preprocess-control {
  margin: 0;
}

.prepress-color-merge-mode-row {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prepress-color-merge-mode-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.prepress-color-merge-mode-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text, rgba(245, 230, 207, 0.95));
}

.prepress-info-icon {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 170, 60, 0.35);
  background: rgba(255, 170, 60, 0.12);
  color: rgba(245, 230, 207, 0.92);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
}

.prepress-info-icon:hover {
  background: rgba(255, 170, 60, 0.2);
}

/* Section title + contextual help (i) — keeps main copy short */
.prepress-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.prepress-section-title-row .prepress-bring-subcard-title,
.prepress-section-title-row .prepress-processing-path-title,
.prepress-section-title-row .prepress-prepare-subheading {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.prepress-section-title-row--tight {
  margin-bottom: 6px;
}

.prepress-help-trigger {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 170, 60, 0.35);
  background: rgba(255, 170, 60, 0.12);
  color: rgba(245, 230, 207, 0.92);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.prepress-help-trigger:hover,
.prepress-help-trigger:focus-visible {
  background: rgba(255, 170, 60, 0.22);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 170, 60, 0.25);
}

/* Contextual help modal (compact) */
.prepress-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.prepress-help-modal.prepress-help-modal--open {
  display: flex;
}

.prepress-help-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 0;
}

.prepress-help-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(80vh, 520px);
  overflow: auto;
  background: #1a1a1a;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(255, 170, 60, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.prepress-help-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.prepress-help-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(245, 230, 207, 0.98);
  line-height: 1.3;
}

.prepress-help-modal-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}

.prepress-help-modal-close:hover,
.prepress-help-modal-close:focus-visible {
  color: rgba(245, 230, 207, 0.95);
  outline: none;
}

.prepress-help-modal-body {
  padding: 12px 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 230, 207, 0.9);
}

.prepress-help-modal-body p {
  margin: 0 0 12px;
}

.prepress-help-modal-body p:last-child {
  margin-bottom: 0;
}

.prepress-help-modal-body strong {
  color: rgba(245, 230, 207, 0.98);
}

.prepress-color-merge-mode-seg {
  flex-wrap: wrap;
}

.prepress-simplify-section-label {
  font-weight: 600;
  color: rgba(245, 230, 207, 0.9);
}

.prepress-simplify-colors-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.prepress-simplify-colors-summary {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.prepress-simplify-palette {
  margin-top: 4px;
}

.prepress-simplify-hidden-color {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prepress-original-palette-row,
.prepress-final-palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.prepress-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 120px;
}

.prepress-swatch-large {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.prepress-swatch-large:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.prepress-swatch-large.is-selected {
  outline: 3px solid rgba(255, 170, 60, 0.95);
  outline-offset: 2px;
}

.prepress-swatch-meta {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  word-break: break-all;
}

.prepress-swatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.prepress-swatch-actions .btn {
  font-size: 11px;
  padding: 4px 8px;
}

.prepress-bring-bottom-bar {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 60, 0.28);
  background: linear-gradient(165deg, rgba(20, 20, 22, 0.98) 0%, rgba(12, 12, 14, 0.99) 100%);
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.4);
}

.prepress-bring-ready-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(200, 190, 175, 0.88);
}

.prepress-ready-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prepress-bring-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.prepress-bring-launch-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.prepress-bring-launch-btns .bw-dashboard-btn-primary {
  min-width: min(100%, 240px);
}

.prepress-bring-subcard {
  padding: 10px 12px;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.prepress-bring-subcard-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.prepress-bring-subcard-desc {
  margin: 0 0 10px;
  line-height: 1.45;
}

.prepress-bring-subcard.prepress-bg-handling-card,
.prepress-bring-subcard.prepress-preprocess-card,
.prepress-bring-subcard.prepress-raster-colors {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius, 14px);
}

.prepress-bring-split__preview {
  min-width: 0;
}

.prepress-bring-preview-sticky {
  position: sticky;
  top: 8px;
  align-self: start;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.prepress-bring-preview-live-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(245, 230, 207, 0.95);
  margin: 0 0 4px;
}

.prepress-bring-preview-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.prepress-bring-preview-mode-label {
  font-size: 12px;
}

.prepress-bring-preview-mode-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.prepress-seg-btn {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  cursor: pointer;
  color: rgba(245, 230, 207, 0.88);
}

.prepress-seg-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.prepress-seg-btn:has(input:checked) {
  border-color: rgba(255, 170, 60, 0.55);
  background: rgba(255, 138, 31, 0.14);
  color: rgba(245, 230, 207, 1);
}

.prepress-bring-preview-stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

.prepress-bring-overlay-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 4px;
  display: none;
}

.prepress-canvas-container.prepress-bg-removal-hint {
  position: relative;
}

.prepress-canvas-container.prepress-bg-removal-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 100px 40px color-mix(in srgb, var(--prepress-bg-removal, #ffffff) 14%, transparent);
  z-index: 1;
  mix-blend-mode: multiply;
}

.prepress-canvas-container.prepress-bg-removal-hint .prepress-preview-viewport {
  position: relative;
  z-index: 2;
}

/* Preview surface: transparent (checkerboard behind artwork) */
#previewViewport.prepress-preview-surface--transparent,
.prepress-canvas-container.prepress-preview-surface--transparent #previewViewport {
  background-color: #c0c0c0;
  background-image: repeating-conic-gradient(#ddd 0% 25%, #eee 0% 50%);
  background-size: 16px 16px;
  background-position: 0 0;
}

.prepress-bring-preview-chrome {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.prepress-bring-preview-chrome-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prepress-bring-preview-surface-select {
  min-width: 140px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 13px;
}

.prepress-bring-preview-zoom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.prepress-bring-zoom-btn {
  min-width: 36px;
  padding: 6px 10px;
}

.prepress-bring-zoom-pct {
  min-width: 3rem;
  text-align: center;
  font-size: 13px;
  color: rgba(245, 230, 207, 0.85);
}

.prepress-preview-frame--sticky {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(72vh, 720px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.prepress-preview-frame--sticky .prepress-canvas-container {
  flex: 1;
  min-height: 220px;
}

.prepress-preview-bg--grid {
  background: repeating-conic-gradient(#2a2a2e 0% 25%, #1f1f22 0% 50%) 50% / 14px 14px !important;
}

.prepress-colors-toolbar {
  margin-bottom: 10px;
}

.prepress-output-method-actions--split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.prepress-bg-toggle-state {
  margin-left: 8px;
  font-weight: 700;
  min-width: 2.25rem;
}

.prepress-bg-action-line {
  font-weight: 600;
  color: rgba(255, 200, 120, 0.95);
}

@media (max-width: 960px) {
  .prepress-bring-split {
    grid-template-columns: 1fr;
  }

  .prepress-bring-split__preview {
    order: -1;
  }

  .prepress-bring-preview-sticky {
    position: relative;
    top: auto;
    max-height: none;
  }

  .prepress-bring-left-stack {
    max-height: none;
  }
}

.prepress-main {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.prepress-step-intro {
  margin: 0 0 16px;
}

.prepress-step-panel {
  display: none;
}

.prepress-step-panel--active {
  display: block;
}

.prepress-step-heading {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.prepress-stale-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 138, 31, 0.1);
  border: 1px solid rgba(255, 170, 60, 0.35);
  color: rgba(245, 230, 207, 0.95);
}

.prepress-step1-thumb-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 12px 0;
}

.prepress-step1-thumb-wrap {
  flex-shrink: 0;
}

.prepress-step1-thumb {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.prepress-step1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.prepress-trace-workspace {
  max-width: 1400px;
}

.prepress-trace-workspace-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prepress-trace-workspace-title {
  margin: 0;
  font-size: 1.2rem;
}

.prepress-prepare-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prepress-prepare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.prepress-prepare-layout__main {
  min-width: 0;
}

.prepress-global-preview-dock .prepress-bring-preview-sticky {
  position: sticky;
  top: 12px;
}

.trace-layer svg {
  width: 100%;
  height: auto;
  display: block;
}

.prepress-prepare-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prepress-cleanup-aside {
  width: 100%;
  max-width: 520px;
}

.prepress-separations-embed-wrap {
  min-height: 72vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0b;
}

.prepress-separations-iframe {
  width: 100%;
  height: 72vh;
  border: 0;
  display: block;
}

.trace-intake-modal .trace-modal-content,
.trace-intake-modal-content {
  max-width: 640px;
}

.prepress-dropzone--compact {
  padding: 20px 16px;
}

.artwork-inspector-modal-body {
  max-height: min(85vh, 720px);
  overflow: auto;
}

.artwork-inspector-summary-host {
  margin-bottom: 16px;
}

.artwork-inspector-block {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius, 12px);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 170, 60, 0.12);
}

.artwork-inspector-heading {
  margin: 0 0 10px;
  font-size: 1rem;
}

.artwork-inspector-dl {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 1.4fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
}

.artwork-inspector-dl dt {
  color: var(--muted);
  margin: 0;
}

.artwork-inspector-dl dd {
  margin: 0;
}

.artwork-inspector-warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.artwork-inspector-warn--strong {
  background: rgba(220, 80, 60, 0.15);
  border: 1px solid rgba(255, 120, 90, 0.35);
  color: rgba(245, 230, 207, 0.98);
}

.artwork-inspector-warn--mild {
  background: rgba(255, 170, 60, 0.1);
  border: 1px solid rgba(255, 170, 60, 0.28);
  color: rgba(245, 230, 207, 0.95);
}

.artwork-inspector-warn-icon {
  cursor: help;
}

.artwork-inspector-recommendation {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.artwork-inspector-fieldset {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(255, 170, 60, 0.18);
}

.artwork-inspector-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
}

.artwork-inspector-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  cursor: pointer;
  font-size: 13px;
}

.artwork-inspector-option input {
  margin-top: 4px;
}

.artwork-inspector-hint {
  margin-top: 10px !important;
}

.artwork-inspector-results {
  margin-top: 12px;
}

.prepress-artwork-card-head,
.prepress-preview-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.prepress-artwork-inspector-btn {
  margin-left: auto;
}

.prepress-bg-handling-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(255, 170, 60, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.prepress-preprocess-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.prepress-preprocess-help {
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
  color: var(--muted, rgba(200, 200, 200, 0.85));
}

.prepress-preprocess-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.prepress-preprocess-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.prepress-preprocess-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.prepress-preprocess-slider-row input[type="range"] {
  width: 100%;
  max-width: 360px;
}

.prepress-subsection-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.prepress-bg-recommend {
  margin: 0 0 12px;
  line-height: 1.45;
}

.prepress-bg-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.prepress-bg-toggle-label {
  font-weight: 600;
  font-size: 14px;
}

.prepress-bg-toggle-hint {
  flex: 1 1 200px;
  margin: 0;
}

.prepress-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.prepress-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.prepress-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prepress-switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background: rgba(245, 230, 207, 0.95);
  border-radius: 50%;
  transition: transform 0.2s;
}

.prepress-switch input:checked + .prepress-switch-slider {
  background: rgba(255, 138, 31, 0.45);
  border-color: rgba(255, 170, 60, 0.4);
}

.prepress-switch input:checked + .prepress-switch-slider::before {
  transform: translateX(22px);
}

.prepress-switch input:focus-visible + .prepress-switch-slider {
  outline: 2px solid rgba(255, 170, 60, 0.6);
  outline-offset: 2px;
}

.prepress-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 10px;
}

.prepress-paper-controls--inline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prepress-pick-color-btn.is-active {
  border-color: rgba(255, 170, 60, 0.55);
  background: rgba(255, 138, 31, 0.15);
}

body.prepress-pick-color-active .prepress-preview-viewport {
  cursor: crosshair;
}

.prepress-eyedropper-float {
  position: fixed;
  z-index: 50;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.prepress-color-workflow-tip {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 8px;
  background: rgba(255, 170, 60, 0.08);
  border: 1px solid rgba(255, 170, 60, 0.2);
  color: rgba(245, 230, 207, 0.92);
}

.color-swatch--protected {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

/* Step 0 — Project Setup */
.prepress-job-setup-card {
  margin-top: 8px;
}

.prepress-job-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
  margin: 16px 0 20px;
  align-items: end;
}

.prepress-job-setup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.prepress-job-setup-field--full {
  grid-column: 1 / -1;
}

.prepress-job-setup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, rgba(200, 200, 200, 0.9));
}

.prepress-job-setup-input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 14px;
  font-family: inherit;
  max-width: 100%;
  box-sizing: border-box;
}

.prepress-job-setup-width-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.prepress-job-setup-width-row .prepress-job-setup-input:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.prepress-job-setup-unit {
  flex: 0 0 auto;
  max-width: 120px;
}

#jobSetupSubstrateCustom {
  width: 100%;
  max-width: 120px;
  height: 40px;
  padding: 2px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
}

.prepress-job-setup-actions {
  margin-top: 8px;
}

.prepress-job-context-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  background: rgba(120, 180, 255, 0.1);
  border: 1px solid rgba(120, 180, 255, 0.28);
  color: rgba(245, 230, 207, 0.95);
}

.prepress-layering-job-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 170, 60, 0.08);
  border: 1px solid rgba(255, 170, 60, 0.2);
}

/* Job-aware: Sublimation — hide garment + underbase UI where not relevant */
.prepress-workspace.prepress-job-sublimation #prepressStepPrepare .trace-garment-block {
  display: none !important;
}

.prepress-workspace.prepress-job-sublimation .prepress-layering-underbase {
  display: none !important;
}

/* Sidebar — workflow recommendation (Decision Engine) */
.prepress-workflow-recommend {
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(120, 200, 160, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.prepress-workflow-recommend-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(200, 230, 210, 0.95);
}

.prepress-workflow-recommend-primary {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(245, 230, 207, 0.96);
}

.prepress-workflow-recommend-alts-label {
  margin: 0 0 4px;
  font-size: 12px;
}

.prepress-workflow-recommend-alts {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  font-size: 12px;
  line-height: 1.4;
}

.prepress-workflow-override-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.prepress-workflow-override-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 170, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 230, 207, 0.95);
  font-size: 13px;
  font-family: inherit;
}

.prepress-wf-next-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prepress-wf-next-btns .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.prepress-open-intake-link {
  margin-right: 6px;
}

/* --- Output method (vector vs halftone) + Step 2B halftone --- */
.prepress-output-method-card {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(255, 170, 60, 0.2);
  background: rgba(0, 0, 0, 0.22);
}

.prepress-output-method-card--primary {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 170, 60, 0.42);
  background: linear-gradient(
    165deg,
    rgba(255, 138, 31, 0.1) 0%,
    rgba(0, 0, 0, 0.28) 48%,
    rgba(0, 0, 0, 0.22) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 170, 60, 0.08);
}

.prepress-bring-subcard.prepress-output-method-card.prepress-output-method-card--primary {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 170, 60, 0.42);
  background: linear-gradient(
    165deg,
    rgba(255, 138, 31, 0.1) 0%,
    rgba(0, 0, 0, 0.28) 48%,
    rgba(0, 0, 0, 0.22) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 170, 60, 0.08);
}

.prepress-output-method-step-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.prepress-output-method-cta {
  flex: 1 1 200px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.prepress-output-method-helper {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.prepress-analysis-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prepress-analysis-summary-line {
  flex: 1 1 200px;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}

.prepress-analysis-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

.prepress-analysis-expanded {
  margin-top: 4px;
}

.prepress-technical-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(245, 230, 207, 0.92);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.prepress-technical-toggle:hover {
  border-color: rgba(255, 170, 60, 0.28);
}

.prepress-technical-expanded {
  margin-top: 8px;
}

.prepress-meta-compact .prepress-meta {
  margin-top: 8px;
  font-size: 12px;
}

.prepress-meta-compact .prepress-meta dt {
  margin-top: 6px;
  font-size: 12px;
}

.prepress-meta-compact .prepress-meta dd {
  font-size: 12px;
}

.prepress-bg-toggle-row--full {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.prepress-bg-removal-color-line {
  margin-left: auto;
  font-weight: 600;
  color: rgba(255, 200, 120, 0.95);
}

.prepress-bg-removal-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.prepress-bg-removal-swatch:empty {
  display: none;
}

button.prepress-bg-removal-swatch--btn {
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
}

.prepress-output-method-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.prepress-output-method-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.prepress-output-method-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.prepress-output-method-hint {
  flex: 1 1 200px;
}

.prepress-halftone-card {
  margin-bottom: 16px;
}

.prepress-halftone-ink-list {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prepress-halftone-ink-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.prepress-halftone-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.prepress-halftone-warn {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 170, 60, 0.12);
  border: 1px solid rgba(255, 170, 60, 0.28);
  font-size: 13px;
}

.prepress-halftone-num {
  width: 4.5rem;
  margin-left: 6px;
}

.prepress-halftone-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .prepress-halftone-compare {
    grid-template-columns: 1fr;
  }
}

.prepress-halftone-compare-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.prepress-halftone-preview-pane {
  position: relative;
  min-height: 180px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.prepress-halftone-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.prepress-halftone-paper {
  position: relative;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
}

.prepress-halftone-ink-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prepress-halftone-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* --- Clean Edge workflow (raster DTF/DTG/Sublimation) --- */
.prepress-clean-edge-raster-banner {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 80, 0.45);
  background: rgba(255, 170, 60, 0.12);
  color: rgba(245, 230, 207, 0.98);
  font-size: 14px;
  line-height: 1.45;
}

.prepress-clean-edge-raster-banner::before {
  content: "\26A0\FE0F ";
}

.prepress-clean-edge-workflow-card {
  margin-bottom: 20px;
}

.prepress-clean-edge-prepare-banner {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background: rgba(60, 140, 220, 0.12);
  font-size: 13px;
  color: rgba(220, 235, 255, 0.95);
}

.prepress-clean-edge-rec-badge {
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 170, 60, 0.18);
  border: 1px solid rgba(255, 170, 60, 0.35);
}

.prepress-clean-edge-pm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prepress-clean-edge-pm-pills {
  display: inline-flex;
  gap: 6px;
}

.prepress-clean-edge-pm-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  opacity: 0.65;
}

.prepress-clean-edge-pm-pill.is-active {
  opacity: 1;
  border-color: rgba(255, 170, 60, 0.55);
  background: rgba(255, 170, 60, 0.12);
}

.prepress-clean-edge-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  max-width: 420px;
}

.prepress-clean-edge-toggle-label {
  font-weight: 600;
  font-size: 14px;
}

.prepress-clean-edge-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0 0;
}

.prepress-clean-edge-legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}

.prepress-clean-edge-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 14px;
  cursor: pointer;
}

.prepress-clean-edge-manual-row {
  margin-top: 10px;
  max-width: 420px;
}

.prepress-clean-edge-solid-options {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.prepress-clean-edge-num {
  width: 4rem;
  margin-left: 6px;
}

.prepress-clean-edge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.prepress-clean-edge-preview-row {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prepress-clean-edge-preview-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.prepress-clean-edge-preview-frame {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: repeating-conic-gradient(#1a1a1a 0% 25%, #222 0% 50%) 50% / 16px 16px;
  padding: 8px;
  max-width: 100%;
}

.prepress-clean-edge-preview-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  margin: 0 auto;
  object-fit: contain;
}

.prepress-clean-edge-applied-panel {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(100, 220, 140, 0.35);
  background: rgba(40, 120, 70, 0.15);
}

.prepress-clean-edge-applied-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 15px;
}

.prepress-clean-edge-applied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Bring step — progressive single-focus workflow */
.prepress-progressive-stage {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.prepress-progressive-stage--focus {
  box-shadow: 0 0 0 1px rgba(255, 170, 60, 0.45);
  border-radius: var(--radius, 14px);
}

.prepress-analysis-compact-line {
  font-size: 14px;
  margin: 8px 0 0;
}

.prepress-acc-body {
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.25s ease;
}

.prepress-acc-body--collapsed {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

#prepressAnalysisExpanded.prepress-acc-body--collapsed {
  display: none !important;
}

.prepress-processing-path-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 170, 60, 0.18);
}

.prepress-processing-path-summary-text {
  font-size: 14px;
  color: rgba(245, 230, 207, 0.95);
}

.prepress-cleanup-edge-unified .prepress-preprocess-card--nested {
  margin-top: 0;
  padding-top: 0;
}

.prepress-clean-edge-workflow-card--inline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prepress-stage-summary-row--cleanup {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.prepress-cleanup-expandable-block {
  transition: opacity 0.25s ease;
}

@media (max-width: 960px) {
  .prepress-workspace {
    grid-template-columns: 1fr;
  }

  .prepress-sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .prepress-prepare-layout {
    grid-template-columns: 1fr;
  }
}
