@charset "utf-8";

:root {
  --navy: #14385f;
  --navy-strong: #0d2d51;
  --mint: #139c70;
  --mint-soft: #e7f7ef;
  --orange: #f27b2e;
  --cream: #fffdf8;
  --canvas: #fbfaf6;
  --ink: #15243a;
  --muted: #677384;
  --line: #d9dee4;
  --soft-line: #e9ecef;
  --danger: #d94841;
  --white: #fff;
  --panel-width: 318px;
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; }
button, select, input[type="range"], input[type="color"], input[type="file"] { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgb(242 123 46 / 35%);
  outline-offset: 2px;
}

button { color: inherit; }
[hidden] { display: none !important; }

.simulator { min-height: 100vh; background: var(--white); }

.app-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-strong);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--orange);
  font: 800 18px/1 Arial, sans-serif;
}

.product-title {
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  font-size: 19px;
  font-weight: 800;
}

.product-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-title small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions button, .primary-button, .secondary-button, .text-button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}
.text-button { background: transparent; border-color: transparent; color: var(--navy); }
.secondary-button { background: var(--white); border-color: var(--line); }
.primary-button { background: var(--orange); color: var(--white); border-color: var(--orange); }
.primary-button:hover { background: #de681e; }
.primary-button[aria-busy="true"] { opacity: .78; cursor: progress; }

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 13px 0;
  background: var(--white);
}

.progress-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 18px;
  border: 0;
  background: transparent;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14%;
  width: 28%;
  height: 1px;
  background: #aeb6c0;
}

.progress-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e7eaee;
  color: #596475;
  font-weight: 800;
}

.progress-step.is-complete span { background: #bfead9; color: #0a7653; }
.progress-step.is-active span { background: var(--mint); color: var(--white); }
.progress-step strong { font-size: 14px; white-space: nowrap; }

.editor-shell {
  display: grid;
  grid-template-columns: var(--panel-width) minmax(430px, 1fr) 336px;
  min-height: calc(100vh - 144px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-section { background: var(--white); padding: 22px; overflow: auto; }
.design-panel { border-right: 1px solid var(--line); }
.adjustment-panel { border-left: 1px solid var(--line); }

.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading h1, .panel-heading h2 { margin: 0; color: var(--navy-strong); font-size: 24px; line-height: 1.2; }
.eyebrow { margin: 0 0 3px; color: var(--mint); font: 800 10px/1.2 Arial, sans-serif; letter-spacing: .14em; }
.side-chip { padding: 4px 9px; border-radius: 999px; background: var(--mint-soft); color: #087653; font-size: 12px; font-weight: 800; }

.tool-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: 0 -4px 18px; }
.tool-tab { min-height: 58px; padding: 7px 3px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 700; }
.tool-tab > span { display: block; }
.tool-tab-icon { display: grid !important; place-items: center; width: 26px; height: 26px; margin: 0 auto 3px; border-radius: 7px; color: var(--white); font-size: 13px; font-weight: 900; line-height: 1; }
.tool-tab-image .tool-tab-icon { background: #139c70; }
.tool-tab-text .tool-tab-icon { background: #2f6fd3; }
.tool-tab-production .tool-tab-icon { background: #d66d20; }
.tool-tab-image.is-selected { border-bottom-color: #139c70; color: #087653; background: #f0faf6; }
.tool-tab-text.is-selected { border-bottom-color: #2f6fd3; color: #245aa9; background: #f0f5fd; }
.tool-tab-production.is-selected { border-bottom-color: #d66d20; color: #a54e0d; background: #fff6ed; }

.surface-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 14px 8px;
  border: 1px dashed #8e9baa;
  border-radius: 8px;
  background: #fbfcfd;
  text-align: center;
  cursor: pointer;
}
.upload-card:hover { border-color: var(--mint); background: #f3fbf7; }
.upload-card input { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
.upload-card strong { color: var(--navy); font-size: 14px; }
.upload-card small { color: var(--muted); font-size: 10px; }
.upload-side { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #edf0f3; font-size: 11px; font-weight: 800; }

.sample-button { width: 100%; min-height: 42px; margin-top: 10px; border: 1px solid var(--navy); border-radius: 7px; background: var(--white); color: var(--navy); font-weight: 800; }

.image-processing-panel { margin-top: 14px; padding: 14px; border: 1px solid #bad8ed; border-radius: 8px; background: #f4f9fd; }
.image-processing-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.image-processing-heading-row h2 { margin: 0; color: var(--navy-strong); font-size: 14px; }
.image-processing-heading-row > span { padding: 2px 7px; border-radius: 999px; background: #dcecf8; color: #245a87; font-size: 10px; font-weight: 800; }
.image-processing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.image-processing-options button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 7px; border: 1px solid #9ebdd5; border-radius: 7px; background: var(--white); color: var(--navy); font-size: 11px; font-weight: 800; }
.image-processing-options button > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #dfe8ef; color: #42566b; font-size: 11px; }
.image-processing-options button[data-image-processing="original"].is-selected { border-color: var(--mint); background: #edf9f4; color: #087653; }
.image-processing-options button[data-image-processing="original"].is-selected > span { background: var(--mint); color: var(--white); }
.image-processing-options button[data-image-processing="backgroundRemoved"].is-selected { border-color: #2f6fd3; background: #edf4ff; color: #245aa9; }
.image-processing-options button[data-image-processing="backgroundRemoved"].is-selected > span { background: #2f6fd3; color: var(--white); }
.image-processing-options button:disabled { opacity: .55; cursor: wait; }
.image-processing-progress { margin-top: 10px; }
.image-processing-progress progress { display: block; width: 100%; height: 8px; accent-color: #2f6fd3; }
.image-processing-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.image-processing-progress-row span { color: #245a87; font-size: 10px; font-weight: 700; line-height: 1.45; }
.image-processing-progress-row button { flex: 0 0 auto; min-height: 30px; padding: 4px 12px; border: 1px solid #9ebdd5; border-radius: 6px; background: var(--white); color: #245a87; font-size: 10px; font-weight: 800; }
.image-processing-progress-row button:disabled { opacity: .55; cursor: wait; }
.image-processing-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sample-button:hover { background: #f2f6fa; }

.tool-panel textarea, .tool-panel select, .tool-panel input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #aeb7c2;
  border-radius: 6px;
  background: var(--white);
}
.tool-panel textarea { min-height: 86px; resize: vertical; }
.field-label, .compact-grid label span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.compact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 10px; margin-top: 10px; }
.style-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.toggle-button { min-height: 36px; padding: 6px 10px; border: 1px solid #aeb7c2; border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 700; }
.toggle-button.is-selected { background: var(--navy); border-color: var(--navy); color: var(--white); }
.color-control { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.color-control input { width: 34px; height: 34px; padding: 2px; border: 1px solid #aeb7c2; background: var(--white); }

.segmented-control, .side-switch { display: grid; grid-template-columns: repeat(2, 1fr); padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f3f4f5; }
.segmented-control { margin-top: 10px; }
.segmented-control:last-child { grid-template-columns: repeat(3, 1fr); }
.segmented-control button, .side-switch button { min-height: 36px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 800; }
.segmented-control button.is-selected, .side-switch button.is-selected { background: var(--navy); color: var(--white); }

.production-panel { padding: 14px; border: 1px solid var(--line); background: #f8f9fa; color: var(--muted); font-size: 12px; }
.production-lead { margin: 0 0 12px; line-height: 1.65; }
.production-upload { display: grid; gap: 4px; padding: 14px; border: 1px dashed #8494a6; border-radius: 7px; background: var(--white); color: var(--navy); cursor: pointer; text-align: center; }
.production-upload:hover { border-color: var(--mint); background: #f3fbf7; }
.production-upload small { color: var(--muted); font-size: 10px; }
.production-upload input { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
.production-file-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; padding: 8px; border-radius: 6px; background: var(--mint-soft); color: #087653; }
.production-file-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.production-file-info button { padding: 5px 8px; border: 1px solid #ec9d99; border-radius: 5px; background: var(--white); color: var(--danger); font-size: 11px; }
.artwork-checklist { margin: 12px 0; padding-left: 20px; line-height: 1.7; }
.production-confirm { display: flex; align-items: flex-start; gap: 7px; color: var(--ink); font-weight: 800; }
.production-confirm input { margin-top: 3px; }

.layers-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title-row h2 { margin: 0; font-size: 15px; }
.section-title-row small { color: var(--muted); }
.layer-list { display: grid; gap: 8px; }
.layer-item {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  text-align: left;
}
.layer-item.is-selected { border-color: var(--mint); box-shadow: inset 3px 0 var(--mint); }
.layer-thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--soft-line); background: #f7f7f7; }
.layer-text-thumb { display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy); background: #f1f4f7; font-weight: 800; }
.layer-name { min-width: 0; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-side { color: var(--muted); font-size: 11px; }
.empty-message { margin: 0; padding: 14px; color: var(--muted); background: #f8f9fa; font-size: 12px; }

.canvas-area { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--canvas); }
.canvas-topbar { position: relative; display: flex; justify-content: center; min-height: 88px; padding: 16px 110px; }
.side-switch { width: 294px; height: 48px; }
.side-switch button { font-size: 14px; }
.other-side-card { position: absolute; top: 10px; right: 20px; width: 78px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.other-side-card canvas { display: block; width: 100%; height: auto; }
.other-side-card span { display: block; color: var(--muted); font-size: 9px; line-height: 1.2; text-align: center; }

.preview-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 58px; }
.canvas-rotation-stage { position: relative; width: min(100%, 660px); transform-origin: center; will-change: transform; }
#mockup-canvas { display: block; width: 100%; height: auto; background: transparent; transform: scale(var(--preview-zoom, 1)); transform-origin: center; transition: transform 160ms ease; }
.print-area-guide { position: absolute; left: 25.15%; top: 37%; width: 51.1%; height: 52.25%; border: 1.5px dashed rgb(20 56 95 / 42%); pointer-events: none; }
.print-area-guide span { position: absolute; top: -24px; left: 0; padding: 2px 7px; border-radius: 4px; background: rgb(255 255 255 / 90%); color: var(--navy); font-size: 10px; font-weight: 800; }

.turn-button { position: absolute; z-index: 2; top: 50%; min-width: 66px; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: rgb(255 255 255 / 92%); color: var(--navy); font-size: 11px; font-weight: 800; transform: translateY(-50%); }
.turn-button-left { left: 12px; }
.turn-button-right { right: 12px; }

.canvas-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--white); }
.canvas-toolbar > div { display: flex; align-items: center; gap: 6px; }
.canvas-toolbar button { min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 700; }
.canvas-toolbar button:disabled { color: #a4abb4; background: #f2f3f4; cursor: not-allowed; }
.zoom-controls { justify-content: center; }
.zoom-controls span { min-width: 52px; text-align: center; font-size: 12px; font-weight: 800; }
.canvas-toolbar .toolbar-save { justify-self: end; border-color: var(--navy); color: var(--navy); }

.print-status { display: flex; flex-direction: column; gap: 2px; padding: 12px; margin-bottom: 18px; border-radius: 7px; background: var(--mint-soft); color: #087653; }
.print-status strong { font-size: 13px; }
.print-status span { font-size: 11px; }
.print-status.is-warning { background: #fff2df; color: #94510f; }
.print-status.is-empty { background: #f1f3f5; color: var(--muted); }

.adjustment-group { min-width: 0; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--line); }
.adjustment-group legend, .adjustment-group h3 { margin: 0 0 13px; padding: 0; color: var(--navy-strong); font-size: 14px; font-weight: 800; }
.range-control { display: block; margin-top: 13px; }
.range-control > span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; color: #465365; font-size: 12px; font-weight: 700; }
.range-control output { color: var(--navy); }
.range-control input[type="range"] { width: 100%; accent-color: var(--mint); }
.visually-secondary { opacity: .72; }
.align-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.align-buttons button { min-height: 42px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 800; }

.nudge-grid { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 38px); justify-content: center; gap: 5px; margin: 14px 0; }
.nudge-grid button { border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 11px; font-weight: 800; }
.nudge-grid button:first-child { grid-column: 2; }
.nudge-grid button:nth-child(2) { grid-column: 1; grid-row: 2; }
.nudge-grid span { grid-column: 2; grid-row: 2; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.nudge-grid button:nth-child(4) { grid-column: 3; grid-row: 2; }
.nudge-grid button:last-child { grid-column: 2; grid-row: 3; }

.delete-button { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #ec9d99; border-radius: 7px; background: var(--white); color: var(--danger); font-weight: 800; }
.delete-button:disabled { border-color: var(--line); color: #a6adb5; background: #f5f6f7; cursor: not-allowed; }

.mobile-sticky-preview { display: none; }

.finish-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 20px 60px rgb(17 34 54 / 24%); }
.finish-dialog::backdrop { background: rgb(16 31 48 / 55%); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; color: var(--navy-strong); font-size: 22px; }
.dialog-close { min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-weight: 700; }
.finish-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); gap: 24px; padding: 22px; overflow: auto; }
.finish-preview { align-self: start; text-align: center; background: var(--canvas); }
.finish-preview canvas { display: block; width: 100%; height: auto; }
.finish-preview p { margin: 0; padding: 10px; color: var(--navy); font-size: 13px; font-weight: 800; }
.order-panel h3 { margin: 0 0 14px; color: var(--navy-strong); }
.order-save-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid #a8ddc9; border-radius: 7px; background: var(--mint-soft); color: #087653; }
.order-save-summary span { font-size: 12px; font-weight: 800; }
.order-save-summary strong { font-size: 12px; word-break: break-all; }
.order-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-input-grid label { display: block; font-size: 12px; font-weight: 800; }
.order-input-grid select, .order-input-grid input { width: 100%; min-height: 42px; margin-top: 5px; padding: 8px; border: 1px solid #aeb7c2; border-radius: 6px; background: var(--white); }
.quantity-input { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.handle-color-preview { display: grid; place-items: center; min-height: 66px; padding: 6px; border: 1px solid var(--line); background: #fafafa; }
.handle-color-preview img { width: 100%; height: 48px; object-fit: contain; }
.handle-color-preview span { color: var(--muted); font-size: 10px; }
.estimate-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.estimate-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.estimate-summary span { font-size: 12px; font-weight: 700; }
.estimate-summary strong { color: var(--orange); font-size: 20px; }
.order-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0 0 14px; padding: 12px; border-radius: 7px; background: #f5f6f7; list-style: none; }
.order-checklist li { color: var(--muted); font-size: 11px; font-weight: 700; }
.order-checklist li::before { content: "○"; display: inline-block; width: 1.6em; color: #8b95a2; }
.order-checklist li.is-complete { color: #087653; }
.order-checklist li.is-complete::before { content: "✓"; color: var(--mint); font-weight: 900; }
.order-button { width: 100%; min-height: 48px; border: 0; border-radius: 7px; background: var(--orange); color: var(--white); font-size: 16px; font-weight: 800; }
.order-button:disabled { background: #aeb6c1; cursor: not-allowed; }
.order-validation-message { margin: 10px 0 0; color: var(--navy); font-size: 12px; font-weight: 700; text-align: center; }
.estimate-note { margin: 6px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: 320px; padding: 12px 16px; border-radius: 8px; background: var(--navy-strong); color: var(--white); font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 160ms ease, transform 160ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  :root { --panel-width: 272px; }
  .editor-shell { grid-template-columns: var(--panel-width) minmax(400px, 1fr) 284px; }
  .panel-section { padding: 16px; }
  .app-header { gap: 16px; }
  .brand { font-size: 18px; }
  .header-actions .text-button { display: none; }
}

@media (max-width: 920px) {
  .app-header { grid-template-columns: 1fr auto; }
  .product-title { grid-column: 1 / -1; grid-row: 2; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--soft-line); font-size: 15px; }
  .header-actions .secondary-button { display: none; }
  .progress-steps { width: 100%; padding-inline: 10px; }
  .progress-step strong { font-size: 12px; }
  .editor-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .adjustment-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; display: grid; grid-template-columns: 220px repeat(3, 1fr); gap: 16px; }
  .adjustment-panel .panel-heading { grid-column: 1; }
  .adjustment-panel .print-status { grid-column: 1; }
  .adjustment-panel .adjustment-group { padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line); }
  .adjustment-panel .delete-button { align-self: end; }
}

@media (max-width: 700px) {
  body { padding-bottom: 76px; }
  .app-header { position: sticky; z-index: 20; top: 0; min-height: 60px; padding: 9px 12px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 34px; }
  .header-actions { gap: 6px; }
  .header-actions .primary-button { min-height: 40px; padding: 8px 11px; font-size: 12px; }
  .product-title { display: none; }
  .progress-steps { position: sticky; z-index: 18; top: 59px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
  .progress-step { gap: 4px; padding: 2px; }
  .progress-step:not(:last-child)::after { display: none; }
  .progress-step span { width: 26px; height: 26px; font-size: 11px; }
  .progress-step strong { font-size: 10px; }

  .editor-shell { display: flex; flex-direction: column; min-height: 0; }
  .canvas-area { order: 1; min-height: 520px; }
  .design-panel { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .adjustment-panel { order: 3; display: block; border-top: 1px solid var(--line); }
  .panel-section { padding: 18px 14px; }
  .canvas-topbar { min-height: 70px; padding: 11px 82px; }
  .side-switch { width: 220px; max-width: 100%; height: 44px; }
  .other-side-card { right: 8px; width: 64px; }
  .preview-stage { padding: 0 36px; }
  .canvas-rotation-stage { width: min(100%, 540px); }
  .turn-button { min-width: 46px; min-height: 40px; padding: 5px; font-size: 9px; }
  .turn-button-left { left: 4px; }
  .turn-button-right { right: 4px; }
  .canvas-toolbar { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; grid-template-columns: 1fr auto; min-height: 66px; padding: 8px; box-shadow: 0 -4px 18px rgb(20 56 95 / 12%); }
  .canvas-toolbar > div:first-child { display: none; }
  .canvas-toolbar .zoom-controls { justify-content: flex-start; }
  .canvas-toolbar .zoom-controls button[data-zoom="reset"] { display: none; }
  .canvas-toolbar .toolbar-save { min-height: 44px; background: var(--navy); color: var(--white); }
  .surface-upload-grid { grid-template-columns: 1fr 1fr; }
  .adjustment-panel .adjustment-group { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .finish-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .finish-layout { grid-template-columns: 1fr; padding: 14px; }
  .finish-preview { width: min(100%, 420px); margin: 0 auto; }
  .order-input-grid { grid-template-columns: 1fr; }
  .order-checklist { grid-template-columns: 1fr; }
  .mobile-sticky-preview { position: fixed; z-index: 24; top: 120px; right: 8px; display: none; width: 110px; padding: 5px; border: 1px solid var(--mint); border-radius: 7px; background: rgb(255 255 255 / 95%); box-shadow: 0 4px 14px rgb(20 56 95 / 18%); }
  .mobile-sticky-preview.is-visible { display: block; }
  .mobile-sticky-preview span { display: block; color: var(--navy); font-size: 10px; font-weight: 800; text-align: center; }
  .mobile-sticky-preview canvas { display: block; width: 100%; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
