:root {
  color-scheme: light;
  --ink: #181c1a;
  --muted: #727976;
  --line: #e1e5e2;
  --soft: #f3f5f3;
  --panel: #ffffff;
  --accent: #176b55;
  --accent-hover: #105541;
  --accent-soft: #eaf3ef;
  --danger: #b23b34;
}

* { box-sizing: border-box; }
html { background: #eef0ef; }
body { margin: 0; min-height: 100vh; background: var(--panel); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, label:has(input:focus-visible) { outline: 3px solid rgba(23, 107, 85, 0.2); outline-offset: 2px; }
h1, h2, p { letter-spacing: 0; }
[hidden] { display: none !important; }

.site-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 58px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.97); }
.header-title { display: grid; gap: 1px; text-align: center; }
.header-title strong { font-size: 0.92rem; line-height: 1.2; }
.header-title span { color: var(--muted); font-size: 0.65rem; font-weight: 650; }
.header-icon, .header-order { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink); }
.header-icon { font-size: 1.2rem; }
.header-order { position: relative; justify-self: end; font-size: 0.58rem; font-weight: 800; }
.order-bag { position: relative; display: block; width: 17px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; }
.order-bag::before { content: ""; position: absolute; top: -6px; left: 4px; width: 7px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }

.app-shell { width: 100%; margin: 0 auto; }
.wizard, .loading-panel, .result-layout { width: 100%; }
.step-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; padding: 15px 22px 13px; border-bottom: 1px solid var(--line); background: white; }
.progress-step { display: grid; justify-items: center; gap: 5px; min-width: 52px; padding: 0; border: 0; background: none; color: #9ba19e; }
.progress-step span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #cfd4d1; border-radius: 50%; background: white; font-size: 0.67rem; font-weight: 800; }
.progress-step small { font-size: 0.64rem; font-weight: 750; }
.progress-step.is-active, .progress-step.is-complete { color: var(--accent); }
.progress-step.is-active span { border-color: var(--accent); background: var(--accent); color: white; }
.progress-step.is-complete span { border-color: var(--accent); background: var(--accent-soft); }
.progress-line { height: 1px; margin-top: 12px; background: var(--line); }
.progress-line.is-complete { background: var(--accent); }
.wizard-body { padding: 22px 18px 24px; }
.form-step { animation: stepIn 180ms ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateY(4px); } }
.step-heading { margin-bottom: 18px; }
.step-heading h2 { margin: 3px 0 4px; font-size: 1.38rem; line-height: 1.2; }
.step-heading p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.step-count, .eyebrow { margin: 0; color: var(--accent); font-size: 0.65rem; font-weight: 850; text-transform: uppercase; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.upload-square { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 8px; background: var(--soft); }
.upload-box { display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; height: 100%; padding: 24px; border: 1px dashed #b8bfbb; border-radius: 8px; background: #fafbfa; text-align: center; }
.upload-box:hover { border-color: var(--accent); background: #f7faf8; }
.upload-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--accent); font-size: 1.55rem; }
.upload-box strong { font-size: 0.94rem; }
.upload-box small, .file-caption { color: var(--muted); font-size: 0.74rem; }
.upload-slider { position: relative; width: 100%; height: 100%; touch-action: pan-y; }
.upload-slider > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-top-actions { position: absolute; z-index: 2; top: 10px; right: 10px; left: 10px; display: flex; justify-content: space-between; }
.upload-action { min-height: 34px; padding: 8px 10px; border: 1px solid rgba(24, 28, 26, 0.1); border-radius: 6px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.7rem; font-weight: 800; box-shadow: 0 3px 12px rgba(24, 28, 26, 0.1); }
.upload-action.danger { color: var(--danger); }
.upload-arrow, .stage-arrow { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(24, 28, 26, 0.1); border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: 0 3px 12px rgba(24, 28, 26, 0.1); transform: translateY(-50%); }
.upload-arrow-left, .stage-arrow-left { left: 10px; }
.upload-arrow-right, .stage-arrow-right { right: 10px; }
.upload-counter { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 6px; background: rgba(24, 28, 26, 0.76); color: white; font-size: 0.68rem; font-weight: 800; }
.photo-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 9px; justify-content: start; overflow-x: auto; margin-top: 11px; padding: 2px; scrollbar-width: none; }
.photo-grid::-webkit-scrollbar, .template-grid::-webkit-scrollbar, .variation-gallery::-webkit-scrollbar { display: none; }
.photo-card, .photo-add-card { overflow: hidden; width: 64px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.photo-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-add-card { display: grid; place-items: center; align-content: center; gap: 1px; border-style: dashed; color: var(--accent); font-size: 1.2rem; text-decoration: none; }
.photo-add-card small { color: var(--muted); font-size: 0.58rem; font-weight: 700; }
.no-photo-choice { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 17px; color: var(--muted); font-size: 0.68rem; }
.no-photo-choice::before, .no-photo-choice::after { content: ""; height: 1px; background: var(--line); }
.no-photo-btn { grid-column: 1 / -1; display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; gap: 11px; align-items: center; width: 100%; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); text-align: left; }
.no-photo-btn:hover { border-color: var(--accent); background: #f7faf8; }
.no-photo-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-hover); font-size: 0.82rem; font-weight: 900; }
.no-photo-copy { display: grid; gap: 3px; min-width: 0; }
.no-photo-copy strong { font-size: 0.82rem; }
.no-photo-copy small { overflow-wrap: anywhere; color: var(--muted); font-size: 0.68rem; line-height: 1.3; }
.no-photo-arrow { color: var(--accent); font-size: 1rem; text-align: center; }

.template-carousel { min-width: 0; }
.idea-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 7px; background: var(--soft); }
.idea-mode button { min-height: 40px; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.idea-mode button.is-active { border-color: var(--line); background: white; color: var(--accent-hover); box-shadow: 0 1px 3px rgba(24, 28, 26, 0.08); }
.idea-panel { animation: stepIn 160ms ease-out; }
.carousel-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 0.78rem; }
.carousel-controls { display: flex; gap: 5px; }
.carousel-controls button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
.template-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 69%; gap: 11px; overflow-x: auto; padding: 2px 2px 11px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.template-card { position: relative; display: block; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); text-align: left; scroll-snap-align: start; }
.template-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.template-card span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 8px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.94); font-size: 0.76rem; font-weight: 800; line-height: 1.2; box-shadow: 0 3px 12px rgba(24, 28, 26, 0.1); }
.template-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.template-card.is-active::after { content: "✓"; position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--accent); color: white; font-size: 0.72rem; font-weight: 900; }
.concept-field { display: grid; gap: 8px; margin-top: 17px; font-size: 0.8rem; font-weight: 800; }
.custom-idea-note { margin-top: 10px; padding: 11px 12px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--accent-soft); color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.concept-field small { color: var(--muted); font-weight: 500; }
textarea { width: 100%; min-height: 96px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); line-height: 1.45; }
textarea::placeholder { color: #9ca39f; }
.art-style-selector { margin-top: 17px; }
.art-style-selector legend { margin-bottom: 9px; color: var(--ink); font-size: 0.8rem; text-transform: none; }
.art-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.art-style-card { overflow: hidden; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); text-align: left; }
.art-style-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.art-style-card > span { display: grid; gap: 2px; padding: 9px 10px 10px; }
.art-style-card strong { overflow-wrap: anywhere; font-size: 0.75rem; line-height: 1.2; }
.art-style-card small { color: var(--muted); font-size: 0.64rem; line-height: 1.25; }
.art-style-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.art-style-card.is-active > span { background: var(--accent-soft); color: var(--accent-hover); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; color: var(--muted); font-size: 0.67rem; font-weight: 850; text-transform: uppercase; }
.options-grid, .print-options-grid { display: grid; gap: 18px; }
.print-options-grid { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.segmented, .color-options, .placement-options, .compact-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.segmented button, .color-choice, .placement-choice { min-height: 46px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 0.8rem; font-weight: 750; }
.segmented button.is-active, .color-choice.is-active, .placement-choice.is-active, .compact-segmented button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.color-choice, .placement-choice { display: flex; gap: 8px; align-items: center; justify-content: center; }
.swatch { width: 17px; height: 17px; border: 1px solid #b7bdba; border-radius: 50%; }
.swatch-white { background: white; }
.swatch-black { background: #1b1d1c; border-color: #1b1d1c; }
.placement-icon { position: relative; width: 20px; height: 26px; border: 1px solid currentColor; border-radius: 3px; opacity: 0.8; }
.placement-icon::after { content: ""; position: absolute; left: 50%; border: 1px solid currentColor; transform: translateX(-50%); }
.placement-icon-full::after { top: 6px; width: 11px; height: 14px; }
.placement-icon-small::after { top: 6px; width: 5px; height: 5px; }
.order-summary { display: grid; gap: 9px; margin-top: 21px; padding: 14px; border-radius: 7px; background: var(--soft); }
.order-summary div { display: flex; gap: 20px; justify-content: space-between; font-size: 0.76rem; }
.order-summary span { color: var(--muted); }
.order-summary strong { max-width: 70%; text-align: right; }

.step-actions { position: sticky; z-index: 8; bottom: 0; display: flex; gap: 9px; justify-content: space-between; margin: 23px -18px -24px; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.98); }
.step-actions.end { justify-content: stretch; }
.primary-btn, .secondary-btn { min-height: 48px; padding: 0 18px; border-radius: 7px; font-size: 0.82rem; font-weight: 800; }
.primary-btn { border: 1px solid var(--accent); background: var(--accent); color: white; }
.primary-btn:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.primary-btn:disabled { cursor: wait; opacity: 0.6; }
.secondary-btn { border: 1px solid var(--line); background: white; color: var(--ink); }
.step-actions .primary-btn { flex: 1; }
.generate-btn { max-width: none; }

.loading-panel { min-height: calc(100vh - 58px); padding: 25vh 28px 60px; background: white; text-align: center; }
.loading-panel h2 { margin: 0 0 7px; font-size: 1.35rem; }
.loading-panel p { margin: 0 0 16px; color: var(--muted); font-size: 0.82rem; }
.loading-percent { display: block; margin-bottom: 9px; color: var(--accent); font-size: 0.76rem; font-weight: 850; }
.spinner { width: 38px; height: 38px; margin: 0 auto 18px; border: 3px solid #dfe9e5; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { overflow: hidden; width: min(320px, 100%); height: 5px; margin: 0 auto; border-radius: 999px; background: #e8ebea; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width 350ms ease; }

.result-layout { display: grid; gap: 0; padding: 20px 18px 36px; background: white; }
.preview-panel { min-width: 0; }
.result-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.result-header h2 { margin: 3px 0 0; font-size: 1.38rem; }
.text-btn { padding: 6px 0; border: 0; background: none; color: var(--accent); font-size: 0.78rem; font-weight: 800; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 0.8rem; }
.preview-meta { display: flex; gap: 7px; align-items: center; }
.variation-count { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.meta-chip { padding: 5px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 0.65rem; font-weight: 750; }
.shirt-stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 8px; background: #eef0ef; touch-action: none; user-select: none; }
.shirt-stage-content { position: absolute; inset: 0; transform: translate3d(var(--preview-pan-x, 0), var(--preview-pan-y, 0), 0) scale(var(--preview-zoom, 1)); transform-origin: center; will-change: transform; }
.shirt-stage:not(.is-zooming) .shirt-stage-content { transition: transform 160ms ease-out; }
.shirt-mockup-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.shirt-design { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%) scale(var(--design-scale, 1)); transform-origin: top center; transition: top 180ms ease, width 180ms ease, transform 180ms ease; }
.shirt-stage.placement-full .shirt-design { top: 19%; width: 52%; }
.shirt-stage.placement-small .shirt-design { top: 25%; width: 18%; }
.shirt-stage.is-woman.placement-full .shirt-design { top: 25%; width: 48%; }
.shirt-stage.is-woman.placement-small .shirt-design { top: 29%; width: 17%; }
.shirt-stage.side-back.placement-full .shirt-design { top: 19%; width: 50%; }
.shirt-stage.side-back.placement-small .shirt-design { top: 24%; width: 18%; }
.shirt-stage.is-woman.side-back.placement-full .shirt-design { top: 21%; width: 46%; }
.shirt-stage.is-woman.side-back.placement-small .shirt-design { top: 25%; width: 17%; }
.generated-design-image { display: block; width: 100%; height: auto; object-fit: contain; }
.preview-zoom-reset { position: absolute; z-index: 4; right: 10px; bottom: 10px; min-width: 38px; height: 34px; padding: 0 8px; border: 1px solid rgba(24, 28, 26, 0.12); border-radius: 6px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.7rem; font-weight: 850; box-shadow: 0 3px 12px rgba(24, 28, 26, 0.12); }
.preview-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.preview-switches > div { display: grid; gap: 6px; }
.preview-switches > div > span { color: var(--muted); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.compact-segmented { gap: 4px; padding: 4px; border-radius: 7px; background: var(--soft); }
.compact-segmented button { min-height: 34px; padding: 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.zoom-control { display: grid; grid-template-columns: auto 30px minmax(0, 1fr) 30px 39px; gap: 7px; align-items: center; margin-top: 10px; padding: 9px; border-radius: 7px; background: var(--soft); }
.zoom-control > span { color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.zoom-control button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-weight: 850; }
.zoom-control input { width: 100%; accent-color: var(--accent); }
.zoom-control output { color: var(--muted); font-size: 0.67rem; font-weight: 750; text-align: right; }
.variation-strip { overflow: hidden; width: 100%; min-width: 0; margin-top: 11px; }
.customer-order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfa; }
.customer-order-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.customer-order-fields input { min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
.variation-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 70px; gap: 8px; overflow-x: auto; width: 100%; max-width: 100%; min-width: 0; padding: 2px 2px 7px; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.variation-thumb { position: relative; overflow: hidden; width: 70px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); scroll-snap-align: start; }
.variation-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.variation-mockup { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.variation-art { position: absolute; left: 50%; transform: translateX(-50%) scale(var(--design-scale, 1)); transform-origin: top center; }
.variation-art.placement-full { top: 19%; width: 52%; }
.variation-art.placement-small { top: 25%; width: 18%; }
.variation-art.is-woman.placement-full { top: 25%; width: 48%; }
.variation-art.is-woman.placement-small { top: 29%; width: 17%; }
.variation-art.side-back.placement-full { top: 19%; width: 50%; }
.variation-art.side-back.placement-small { top: 24%; width: 18%; }
.variation-art.is-woman.side-back.placement-full { top: 21%; width: 46%; }
.variation-art.is-woman.side-back.placement-small { top: 25%; width: 17%; }
.variation-thumb span { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.62rem; font-weight: 850; }
.result-actions { position: sticky; z-index: 7; bottom: 0; display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 8px; margin: 8px -18px 0; padding: 11px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.98); }
.result-actions .primary-btn, .result-actions .secondary-btn { width: 100%; padding-inline: 9px; }
.new-design-btn { width: 100%; margin-top: 4px; padding: 8px; border: 0; background: transparent; color: var(--accent); font-size: 0.76rem; font-weight: 800; }
.confirmation-dialog { width: min(390px, calc(100vw - 32px)); padding: 30px 26px 24px; border: 0; border-radius: 8px; background: white; color: var(--ink); box-shadow: 0 22px 70px rgba(18, 48, 39, 0.24); text-align: center; }
.confirmation-dialog::backdrop { background: rgba(16, 31, 26, 0.58); }
.confirmation-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.45rem; font-weight: 900; }
.confirmation-dialog h2 { margin: 0; font-size: 1.35rem; }
.confirmation-dialog p { margin: 10px 0 8px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.confirmation-dialog small { display: block; margin-bottom: 22px; color: var(--muted); font-size: 0.7rem; }
.confirmation-dialog .primary-btn { width: 100%; }
.error-dialog { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 18px; }
.error-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(16, 21, 19, 0.58); cursor: default; }
.error-dialog-panel { position: relative; z-index: 1; width: min(100%, 410px); padding: 26px 22px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 20px 60px rgba(16, 21, 19, 0.22); text-align: center; }
.error-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 1.3rem; }
.error-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%; background: #fff0ed; color: var(--danger); font-size: 1.15rem; font-weight: 900; }
.error-dialog-panel h2 { margin: 0 0 8px; font-size: 1.18rem; }
.error-dialog-panel p { margin: 0 auto; max-width: 330px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.error-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.error-dialog-actions button { width: 100%; padding-inline: 10px; }
body.has-dialog { overflow: hidden; }

@media (min-width: 560px) {
  body { width: min(500px, 100%); margin: 0 auto; border-right: 1px solid var(--line); border-left: 1px solid var(--line); box-shadow: 0 18px 60px rgba(25, 34, 30, 0.1); }
  .template-grid { grid-auto-columns: 58%; }
  .options-grid, .print-options-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  html { padding: 28px 0; }
  body { min-height: calc(100vh - 56px); }
  .site-header { top: 28px; }
}

@media (max-width: 350px) {
  .customer-order-fields { grid-template-columns: 1fr; }
  .wizard-body, .result-layout { padding-right: 14px; padding-left: 14px; }
  .step-actions { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .result-actions { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .template-grid { grid-auto-columns: 78%; }
  .preview-switches { grid-template-columns: 1fr; }
  .error-dialog-actions { grid-template-columns: 1fr; }
}

.legal-consent{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;margin:14px 0 2px;padding:13px 14px;border:1px solid #dce3df;border-radius:8px;background:#f7faf8;color:#52605a;font-size:.72rem;line-height:1.5}.legal-consent input{width:18px;height:18px;margin:1px 0 0;accent-color:#12684f}.legal-consent a{color:#12684f;font-weight:800}.studio-legal-footer{display:flex;flex-wrap:wrap;gap:9px 22px;justify-content:space-between;width:min(960px,calc(100% - 32px));margin:28px auto;padding:18px 0;border-top:1px solid #dce3df;color:#748079;font-size:.64rem}.studio-legal-footer nav{display:flex;flex-wrap:wrap;gap:9px 17px}.studio-legal-footer a{color:#52605a;text-decoration:none}
