/* Photo-shop workflow, layout controls, and typography quality pass. */
.workflow-mode-switch,
.workspace-mode-switch { display: flex; align-items: stretch; gap: 8px; margin: 0 2px 14px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.workspace-mode-button { display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-2); text-align: left; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.workspace-mode-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.025); color: var(--text); }
.workspace-mode-button.is-active { border-color: rgba(124,224,211,.22); background: linear-gradient(105deg, rgba(124,224,211,.09), rgba(124,224,211,.035)); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.025) inset; }
.workspace-mode-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font-size: 18px; }
.workspace-mode-button > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.workspace-mode-button strong { font-size: 12px; font-weight: 700; line-height: 1.35; }
.workspace-mode-button small { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.45; }
.print-sheet-settings { grid-column: 1 / -1; border-color: rgba(124,224,211,.15); }
.print-sheet-settings[hidden] { display: none !important; }
.sheet-measure-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sheet-layout-summary { display: flex; flex-direction: column; gap: 5px; margin-top: 3px; padding: 13px 12px; border: 1px solid rgba(124,224,211,.16); border-radius: 9px; background: linear-gradient(120deg,rgba(124,224,211,.055),rgba(255,255,255,.013)); }
.sheet-summary-kicker { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.sheet-layout-summary strong { color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.sheet-layout-summary p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.55; }
.sheet-layout-summary.is-error { border-color: rgba(242,163,163,.28); background: rgba(242,163,163,.045); }
.sheet-layout-summary.is-error .sheet-summary-kicker { color: var(--danger); }
.sheet-preview-canvas { position: absolute; z-index: 3; inset: 0; display: block; width: 100%; height: 100%; }
.artboard.is-print-sheet { background: #fff; }
.artboard.is-print-sheet .artboard-grid { opacity: 0 !important; }
.sheet-export-note { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 11px 12px; border: 1px solid rgba(124,224,211,.16); border-radius: 8px; background: rgba(124,224,211,.045); }
.sheet-export-note strong { font-size: 11px; line-height: 1.4; }
.sheet-export-note span { color: var(--text-2); font-size: 10px; line-height: 1.55; }
.workflow-explainer-heading { margin-top: 38px; }
.workflow-explainer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.workflow-explainer { min-width: 0; padding: 17px 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,rgba(20,29,39,.84),rgba(14,20,28,.7)); }
.workflow-explainer-icon { display: grid; width: 32px; height: 32px; place-items: center; margin-bottom: 14px; border: 1px solid rgba(124,224,211,.18); border-radius: 9px; background: rgba(124,224,211,.045); color: var(--accent); font-size: 17px; }
.workflow-explainer h3 { margin: 0 0 7px; font-size: 13px; line-height: 1.4; letter-spacing: -.02em; }
.workflow-explainer p { margin: 0; color: var(--text-2); font-size: 11px; line-height: 1.7; }
/* Improve reading comfort: tiny lettering is reserved for decorative metadata, not controls or explanations. */
.field { font-size: 11px; line-height: 1.4; }
.control-help, .form-note, .custom-size-intro p, .home-footer, .editor-footer, .export-footnote { font-size: 10px; line-height: 1.6; }
.panel-footnote { font-size: 10px; line-height: 1.6; }
.stage-toolbar-left, .stage-toolbar-right { font-size: 9px; }
#stageSizeLabel { font-size: 9px; }
.stage-dimensions { font-size: 10px; }
.preset-card-meta { font-size: 9px; }
.preset-card-main strong { font-size: 11px; }
.preset-group-label, .preset-badge { font-size: 8px; }
.custom-select-trigger { min-height: 39px; font-size: 12px; }
.custom-select-option { font-size: 11px; min-height: 34px; }
input[type="text"], input[type="number"] { font-size: 12px; }
.inspector-content { gap: 13px; }
.inspector-section summary { min-height: 43px; }
@media (max-width: 1100px) {
  .workflow-explainer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inspector-panel .print-sheet-settings { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .workspace-mode-switch { gap: 5px; margin: 0 0 11px; }
  .workspace-mode-button { gap: 8px; padding: 9px 8px; }
  .workspace-mode-icon { flex-basis: 29px; width: 29px; height: 29px; font-size: 15px; }
  .workspace-mode-button strong { font-size: 11px; }
  .workspace-mode-button small { font-size: 9px; }
  .workflow-explainer-grid { grid-template-columns: 1fr; gap: 9px; }
  .workflow-explainer { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; padding: 13px; }
  .workflow-explainer-icon { grid-row: span 2; margin-bottom: 0; }
  .workflow-explainer h3 { align-self: end; margin-bottom: 3px; }
  .workflow-explainer p { grid-column: 2; }
}
@media (max-width: 390px) {
  .workspace-mode-button { align-items: flex-start; flex-direction: column; }
  .workspace-mode-button > span:last-child { width: 100%; }
  .workspace-mode-button small { min-height: 2.6em; }
  .sheet-measure-row { grid-template-columns: 1fr; }
}

/* Mixed-photo job queue for print-shop batch sheets. */
.sheet-job-queue { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.sheet-job-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-job-heading > div { min-width: 0; }
.sheet-job-heading strong { display: block; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.45; }
.sheet-job-heading p, .sheet-job-help, .sheet-job-status { margin: 4px 0 0; color: var(--text-2); font-size: 10px; line-height: 1.55; }
.sheet-job-count { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.sheet-job-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.sheet-job-actions .secondary-button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.text-button { min-height: 30px; padding: 4px 7px; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 650; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.sheet-job-photo-list { display: flex; flex-direction: column; gap: 7px; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-job-photo { display: grid; grid-template-columns: 40px minmax(0,1fr) 58px 28px; align-items: center; gap: 8px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,13,19,.45); }
.sheet-job-thumb { display: block; width: 40px; height: 42px; object-fit: cover; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: #101720; }
.sheet-job-photo-details { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.sheet-job-photo-details strong { overflow: hidden; color: var(--text); font-size: 10px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sheet-job-photo-details small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.sheet-job-copy-field { display: flex; min-width: 0; flex-direction: column; gap: 3px; color: var(--muted); font-size: 9px; }
.sheet-job-copy-field input { width: 100%; min-width: 0; height: 30px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 5px; background: #0f151d; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.sheet-job-remove { display: grid; width: 28px; height: 30px; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #9baab5; font-size: 19px; cursor: pointer; }
.sheet-job-remove:hover { border-color: rgba(242,163,163,.22); background: rgba(242,163,163,.07); color: var(--danger); }
.sheet-job-status { padding: 8px 9px; border: 1px solid rgba(124,224,211,.17); border-radius: 6px; background: rgba(124,224,211,.045); color: #b9ddd8; }
.sheet-job-status.is-error { border-color: rgba(242,163,163,.25); background: rgba(242,163,163,.05); color: var(--danger); }
.sheet-job-help { color: var(--muted); }
button:disabled { cursor: not-allowed; }
.custom-select-native { position: absolute !important; }
@media (max-width: 480px) {
  .sheet-job-queue { padding: 9px; }
  .sheet-job-photo { grid-template-columns: 34px minmax(0,1fr) 50px 25px; gap: 6px; padding: 6px; }
  .sheet-job-thumb { width: 34px; height: 38px; }
  .sheet-job-photo-details strong { font-size: 9px; }
  .sheet-job-photo-details small { font-size: 8px; }
  .sheet-job-copy-field input { height: 29px; }
  .sheet-job-remove { width: 25px; }
}

/* Final type and spacing corrections: functional text remains readable without
   allowing decorative metadata to become larger than the content it labels. */
.field > span, .field-label, .range-label { font-size: 11px; line-height: 1.45; }
.preset-group-label, .preset-badge { font-size: 9px; }
.preset-card-meta { font-size: 10px; line-height: 1.4; }
.section-index, .panel-kicker, .eyebrow { font-size: 9px; line-height: 1.35; }
.stage-toolbar-left, .stage-toolbar-right, #stageSizeLabel { font-size: 9px; }
.stage-dimensions { font-size: 9px; }
.status-message, .export-resource-note, .export-footnote, .control-help { font-size: 10px; line-height: 1.6; }
.checkbox-row strong { font-size: 10px; }
.checkbox-row small { font-size: 9px; line-height: 1.5; }
.range-endpoints small { font-size: 9px; }
@media (max-width: 390px) {
  .preset-card-meta { font-size: 9px; }
  .stage-toolbar-left { font-size: 8px; }
  .stage-dimensions { font-size: 8px; }
}

/* Per-image crop dialog: isolated draft editing for mixed-photo print jobs. */
.batch-crop-dialog { width: min(820px, calc(100vw - 28px)); max-width: 820px; max-height: min(840px, calc(100dvh - 28px)); overflow: auto; padding: 22px; border: 1px solid var(--line-strong); border-radius: 15px; background: #101720; color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.batch-crop-dialog::backdrop { background: rgba(3,7,12,.78); backdrop-filter: blur(5px); }
.batch-crop-dialog .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.batch-crop-dialog .dialog-header > div { min-width: 0; }
.batch-crop-dialog h2 { margin: 5px 0 6px; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.batch-crop-dialog .dialog-header p { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.batch-crop-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.9fr); align-items: start; gap: 22px; }
.batch-crop-preview-frame { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #0b1016; }
#batchCropCanvas { display: block; max-width: 100%; max-height: min(48vh, 460px); width: auto; height: auto; border-radius: 2px; background: #fff; touch-action: none; cursor: grab; box-shadow: 0 9px 22px rgba(0,0,0,.27); }
#batchCropCanvas.is-dragging { cursor: grabbing; }
.batch-crop-preview-note { color: var(--muted); font-size: 9px; line-height: 1.4; letter-spacing: .08em; text-align: center; }
.batch-crop-controls { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.batch-crop-controls .field-label { color: var(--text-2); font-size: 11px; font-weight: 650; }
.batch-crop-fit-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.batch-crop-fit-buttons button { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--text-2); font-size: 11px; font-weight: 650; cursor: pointer; }
.batch-crop-fit-buttons button.is-selected { border-color: rgba(124,224,211,.45); background: rgba(124,224,211,.09); color: var(--text); }
.batch-crop-controls .range-field { margin: 0; }
.batch-crop-controls .control-help { margin: 0; }
.batch-crop-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet-job-crop-edit { align-self: flex-start; max-width: 100%; min-height: 25px; padding: 2px 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 650; line-height: 1.45; text-align: left; cursor: pointer; }
.sheet-job-crop-edit:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .batch-crop-dialog { padding: 15px; border-radius: 12px; }
  .batch-crop-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .batch-crop-preview-frame { padding: 10px; }
  #batchCropCanvas { max-height: 35vh; }
  .batch-crop-controls { gap: 12px; }
  .batch-crop-actions { position: sticky; bottom: -15px; padding: 12px 0 2px; background: #101720; }
}
@media (prefers-reduced-motion: reduce) {
  .batch-crop-dialog *, .sheet-job-crop-edit { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Final readability pass. Only non-interactive decorative labels stay below 10 px. */
.field, .field > span, .field-label, .range-label { font-size: 12px; line-height: 1.45; }
.control-help, .form-note, .panel-footnote, .export-footnote, .export-resource-note, .home-footer, .editor-footer { font-size: 11px; line-height: 1.6; }
.range-endpoints, .range-endpoints small { font-size: 10px; line-height: 1.4; }
.stage-toolbar-left, .stage-toolbar-right, #stageSizeLabel, .stage-dimensions { font-size: 10px; line-height: 1.4; }
.preset-card-meta { font-size: 11px; line-height: 1.4; }
.section-index, .panel-kicker, .eyebrow { font-size: 10px; line-height: 1.4; }
.checkbox-row strong { font-size: 11px; line-height: 1.45; }
.checkbox-row small { font-size: 10px; line-height: 1.5; }
.sheet-job-photo-details strong { font-size: 11px; line-height: 1.4; }
.sheet-job-photo-details small, .sheet-job-copy-field { font-size: 10px; line-height: 1.45; }
.sheet-job-photo-details small { overflow-wrap: anywhere; }
.sheet-job-photo { align-items: start; }
.sheet-job-copy-field { align-self: center; }
.sheet-job-remove { margin-top: 4px; }
@media (max-width: 480px) {
  .sheet-job-photo-details strong { font-size: 10px; }
  .sheet-job-photo-details small { font-size: 9px; }
  .stage-toolbar-left, .stage-toolbar-right, #stageSizeLabel { font-size: 9px; }
  .stage-dimensions { font-size: 9px; }
}
.sheet-custom-dimensions { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 4px; padding: 13px; border: 1px solid rgba(124,224,211,.15); border-radius: 9px; background: rgba(124,224,211,.025); }
.sheet-custom-dimensions[hidden] { display: none !important; }
.sheet-custom-dimensions > .field { margin: 0; }
.sheet-custom-dimensions .control-help { margin: 0; }
