/* MerchMod — standalone styles. Deliberately NOT importing Tattune's
   styles.css / tattoo-ui.css (their global button rules would leak in).
   Light, warm palette shared with Tattune's public pages. */

:root {
  --ma-bg: #faf7f3;
  --ma-panel: #ffffff;
  --ma-panel-2: #f2ece2;
  --ma-fg: #1a1a1a;
  --ma-dim: #6b665e;
  --ma-line: #e2ddd3;
  --ma-accent: #a2332b;
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; height: 100%; }
body {
  background: var(--ma-bg);
  color: var(--ma-fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.ma-app { min-height: 100%; display: flex; flex-direction: column; }
.ma-header {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 24px; border-bottom: 1px solid var(--ma-line); background: var(--ma-panel);
}
.ma-brand { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.ma-brand span { color: var(--ma-accent); }
.ma-sub { color: var(--ma-dim); font-size: 13px; }

.ma-main {
  flex: 1; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px;
  padding: 20px 24px; max-width: 1400px; width: 100%; margin: 0 auto;
}
@media (max-width: 860px) {
  .ma-main { grid-template-columns: 1fr; padding: 14px; }
  .ma-stage { order: -1; }
}

.ma-panel {
  background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 16px;
  padding: 18px; align-self: start;
}
.ma-panel h2 {
  font-size: 15px; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px;
}
.ma-panel h2:first-child { margin-top: 0; }
.ma-panel h2 b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ma-accent); color: #fff; font-size: 12px;
}
.ma-panel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ma-dim); margin: 14px 0 6px; }
.ma-muted { color: var(--ma-dim); font-size: 12px; margin: 6px 0 0; }

.ma-chips, .ma-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-chips button {
  border: 1px solid var(--ma-line); background: var(--ma-panel); border-radius: 999px;
  padding: 7px 14px; font-size: 13px;
}
.ma-chips button[aria-pressed="true"] { background: var(--ma-accent); border-color: var(--ma-accent); color: #fff; }

.ma-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); padding: 0;
}
.ma-swatch[aria-pressed="true"] { outline: 2px solid var(--ma-accent); outline-offset: 3px; }
.ma-swatch:disabled { opacity: 0.3; background-image: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%) !important; }

.ma-btn, .tt-btn {
  border: 1px solid var(--ma-line); background: var(--ma-panel); border-radius: 10px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.ma-btn:hover:not(:disabled), .tt-btn:hover:not(:disabled) { background: var(--ma-panel-2); }
.ma-btn.primary, .tt-btn--fill-primary { background: var(--ma-accent); border-color: var(--ma-accent); color: #fff; }
.ma-btn.ghost { background: transparent; }
/* primary hover: light fill, red text (stronger selector than the generic hover above) */
.ma-btn.primary:hover:not(:disabled), .tt-btn--fill-primary:hover:not(:disabled) { background: var(--ma-panel-2); color: var(--ma-accent); }

.ma-layers { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.ma-layers li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--ma-line); border-radius: 10px; padding: 7px 8px 7px 12px; font-size: 13px; cursor: pointer;
}
.ma-layers li[aria-selected="true"] { border-color: var(--ma-accent); background: rgba(162,51,43,0.05); }
.ma-layer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-layer-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.ma-layer-actions button {
  border: 1px solid var(--ma-line); background: var(--ma-panel); border-radius: 7px; padding: 3px 7px; font-size: 12px;
}

.ma-transform { display: grid; gap: 8px; margin-top: 12px; padding: 12px; background: var(--ma-panel-2); border-radius: 12px; }
.ma-transform label { display: grid; grid-template-columns: 56px 1fr; align-items: center; font-size: 12px; color: var(--ma-dim); }
.ma-transform input[type="range"] { width: 100%; accent-color: var(--ma-accent); }

.ma-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.ma-viewer {
  height: min(52vh, 480px); border-radius: 16px; overflow: hidden; border: 1px solid var(--ma-line);
}
.ma-print-editor {
  background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 16px; padding: 16px;
  display: grid; justify-items: center; gap: 10px;
}
.ma-print-editor canvas { display: block; }

/* on-canvas handles */
.ma-canvas-wrap { position: relative; line-height: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ma-overlay { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; touch-action: none; }
.ma-sel-body { fill: transparent; pointer-events: all; cursor: move; }
.ma-sel-box { fill: none; stroke: var(--ma-accent); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.ma-handle { fill: #fff; stroke: var(--ma-accent); stroke-width: 2; pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.25)); }
.ma-handle-rot { fill: var(--ma-accent); stroke: #fff; }
.ma-rot-icon { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.ma-hit { fill: transparent; pointer-events: all; }
.ma-hit-scale { cursor: nwse-resize; }
.ma-hit-rot { cursor: grab; }
.ma-readout-bg { fill: rgba(26,26,26,0.85); }
.ma-readout { fill: #fff; font-size: 12px; font-weight: 600; font-family: inherit; }
.ma-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--ma-dim); }
.ma-key { display: inline-block; width: 14px; height: 0; vertical-align: middle; margin-right: 4px; }
.ma-key.cut { border-top: 2px solid #e0218a; }
.ma-key.safe { border-top: 1px dashed rgba(60,120,220,0.9); }

/* drawing tool */
.ma-paint { display: grid; gap: 10px; margin-top: 12px; padding: 12px; background: var(--ma-panel-2); border-radius: 12px; }
.ma-paint-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ma-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.2); padding: 0; }
.ma-dot[aria-pressed="true"] { outline: 2px solid var(--ma-accent); outline-offset: 2px; }
.ma-paint input[type="color"] { width: 32px; height: 28px; padding: 0; border: none; background: none; }
.ma-paint-size { display: grid; grid-template-columns: 34px 1fr 52px; gap: 8px; align-items: center; font-size: 12px; color: var(--ma-dim); }
.ma-paint-size input { accent-color: var(--ma-accent); }
.ma-btn[aria-pressed="true"].ghost { border-color: var(--ma-accent); color: var(--ma-accent); }

/* ---------- full-screen editor ---------- */
.ma-editor-card { position: relative; }
.ma-fs-open {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  border: 1px solid var(--ma-line); background: var(--ma-panel); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center;
}
.ma-fs-open:hover { background: var(--ma-panel-2); }
@media (max-width: 600px) { .ma-fs-open { padding: 8px 14px; font-size: 14px; } }
.ma-fs-placeholder { color: var(--ma-dim); font-size: 13px; min-height: 120px; place-content: center; }

.ma-fs {
  position: fixed; inset: 0; z-index: 5000; background: var(--ma-bg);
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.ma-fs-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--ma-panel); border-bottom: 1px solid var(--ma-line);
}
.ma-fs-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--ma-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-seg { display: flex; background: var(--ma-panel-2); border-radius: 999px; padding: 3px; }
.ma-seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 700; color: var(--ma-dim); }
.ma-seg button[aria-pressed="true"] { background: var(--ma-accent); color: #fff; }

.ma-print-editor.fill {
  flex: 1; min-height: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent;
  place-content: center; padding: 0;
}
.ma-fs-hint {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%);
  background: rgba(26,26,26,0.85); color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
}
.ma-fs-tools { background: var(--ma-panel); border-top: 1px solid var(--ma-line); padding: 10px 12px; }
.ma-fs-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ma-fs-row .ma-btn { flex: 0 0 auto; padding: 10px 14px; }
.ma-btn.danger { color: #b3261e; }
.ma-paint.compact { margin: 0; padding: 0; background: transparent; gap: 8px; }
.ma-paint.compact .ma-paint-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ma-paint.compact .ma-btn { flex: 0 0 auto; }
.ma-paint.compact .ma-dot { width: 32px; height: 32px; flex: 0 0 auto; }
/* landscape phones: squeeze chrome so the sticker gets the height */
@media (max-height: 500px) {
  .ma-fs-bar { padding: 4px 10px; }
  .ma-fs-tools { padding: 6px 10px; }
  .ma-paint.compact { grid-template-columns: auto 1fr; align-items: center; }
  .ma-paint.compact .ma-paint-size { grid-column: 2; }
  .ma-paint.compact .ma-paint-row:last-child { grid-column: 1 / -1; }
}

/* ---------- modal + templates ---------- */
.ma-modal {
  position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,0.45);
  display: grid; place-items: center; padding: 16px;
}
.ma-modal-card {
  background: var(--ma-panel); border-radius: 18px; width: min(720px, 100%);
  max-height: calc(100dvh - 32px); overflow: auto; padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.ma-modal-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ma-dim); margin: 14px 0 8px; }
.ma-modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; }
.ma-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; position: sticky; bottom: -18px; background: var(--ma-panel); padding: 10px 0 2px; }
.ma-tpl-palettes { display: flex; flex-wrap: wrap; gap: 10px; }
.ma-pal { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); padding: 0; }
.ma-pal[aria-pressed="true"] { outline: 2px solid var(--ma-accent); outline-offset: 3px; }
.ma-tpl-fields { display: grid; grid-template-columns: 1fr 110px; gap: 10px; margin-top: 12px; }
.ma-tpl-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--ma-dim); }
.ma-tpl-fields input {
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  padding: 9px 12px; border: 1px solid var(--ma-line); border-radius: 10px; color: var(--ma-fg); letter-spacing: 0.04em;
}
.ma-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ma-tpl-item {
  border: 2px solid transparent; background: var(--ma-panel-2); border-radius: 14px; padding: 10px;
  display: grid; gap: 6px; font-size: 12px; font-weight: 600; text-align: center;
}
.ma-tpl-item[aria-pressed="true"] { border-color: var(--ma-accent); }
.ma-tpl-item canvas { display: block; }

/* sides */
.ma-sides { display: grid; gap: 8px; margin-bottom: 10px; }
.ma-seg.small button { padding: 5px 12px; font-size: 13px; }
.ma-layer-actions button[aria-pressed="true"] { border-color: var(--ma-accent); color: var(--ma-accent); }

/* brand */
.ma-header { align-items: center; }
.ma-logo { display: block; height: 74px; width: auto; }
@media (max-width: 600px) { .ma-logo { height: 36px; } .ma-header { padding: 10px 14px; } }

/* ---------- order ---------- */
.ma-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff4d6; border-bottom: 1px solid #f0dc9c; padding: 10px 16px; font-size: 14px;
}
.ma-banner button { border: 0; background: none; font-size: 14px; }
.ma-order { width: min(480px, 100%); }
.ma-order-sum { display: grid; gap: 10px; margin: 14px 0; }
.ma-order-sum > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.ma-order-sum > div > span:first-child { color: var(--ma-dim); }
.ma-order-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,0.2); }
.ma-order-total { border-top: 1px solid var(--ma-line); padding-top: 10px; font-size: 16px !important; }
.ma-qty { display: inline-flex; align-items: center; border: 1px solid var(--ma-line); border-radius: 10px; overflow: hidden; }
.ma-qty button { border: 0; background: var(--ma-panel-2); width: 36px; height: 36px; font-size: 18px; }
.ma-qty input { width: 48px; height: 36px; border: 0; text-align: center; font: inherit; font-size: 16px; }
.ma-note { background: var(--ma-panel-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin: 10px 0; }
.ma-note.warn { background: #fff4d6; }
.ma-note.error { background: #fde8e6; color: #8a1c14; }
.ma-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 12px 0; cursor: pointer; }
.ma-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ma-accent); flex: 0 0 auto; }

/* ---------- order status ---------- */
.ma-status { max-width: 560px; width: 100%; margin: 24px auto; padding: 0 16px; }
.ma-status h2 { margin-top: 0; }
.ma-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.ma-steps li { display: grid; gap: 2px; padding: 8px 12px 8px 36px; position: relative; color: var(--ma-dim); font-size: 14px; }
.ma-steps li::before { content: ""; position: absolute; left: 10px; top: 11px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ma-line); background: #fff; }
.ma-steps li.done::before { background: var(--ma-accent); border-color: var(--ma-accent); }
.ma-steps li.now { color: var(--ma-fg); background: var(--ma-panel-2); border-radius: 10px; }
.ma-steps li.now::before { border-color: var(--ma-accent); box-shadow: 0 0 0 3px rgba(162,52,43,0.15); }
.ma-steps li span { font-size: 13px; color: var(--ma-dim); }
.ma-status-preview { display: block; width: 100%; max-width: 420px; margin: 14px 0; border-radius: 10px; }
.ma-status .ma-btn { display: inline-block; text-decoration: none; margin-top: 10px; }

/* ---------- admin ---------- */
.ma-admin { max-width: 1100px; width: 100%; margin: 20px auto; padding: 0 16px; }
.ma-admin-out { margin-left: auto; }
.ma-admin-signin { max-width: 380px; margin: 40px auto; display: grid; gap: 10px; }
.ma-admin-signin input, .ma-input, .ma-order-card textarea, .ma-reject textarea {
  font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--ma-line); border-radius: 10px; width: 100%;
}
.ma-input { flex: 1; min-width: 180px; width: auto; }
.ma-admin-tabs { margin-bottom: 16px; }
.ma-order-list { display: grid; gap: 14px; }
.ma-order-card { background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.ma-order-card header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ma-chip { font-size: 12px; background: var(--ma-panel-2); border-radius: 999px; padding: 3px 10px; text-transform: capitalize; }
.ma-chip.urgent { background: #fde8e6; color: #8a1c14; font-weight: 700; }
.ma-order-previews { display: flex; flex-wrap: wrap; gap: 12px; }
.ma-order-previews figure { margin: 0; flex: 1 1 280px; max-width: 460px; }
.ma-order-previews img { display: block; width: 100%; border-radius: 8px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.ma-order-previews figcaption { font-size: 11px; color: var(--ma-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.ma-flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13px; }
.ma-flags li { padding: 6px 10px; border-radius: 8px; background: var(--ma-panel-2); }
.ma-flags li.high { background: #fde8e6; color: #8a1c14; font-weight: 600; }
.ma-flags li.medium { background: #fff4d6; }
.ma-order-meta { display: grid; gap: 4px; font-size: 13px; }
.ma-order-meta span:first-child { display: inline-block; width: 80px; color: var(--ma-dim); }
.ma-order-card .ma-btn { text-decoration: none; }
.ma-reject { display: grid; gap: 6px; font-size: 13px; background: #fdf3f2; padding: 12px; border-radius: 12px; }
.ma-reject label { display: flex; gap: 8px; align-items: flex-start; }
.ma-btn.danger:not(.ghost) { background: #b3261e; border-color: #b3261e; color: #fff; }
.ma-order-card details textarea { margin: 6px 0; }

/* ---------- colouring sheets ---------- */
.ma-sheet-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px;
  font-size: 13px; color: var(--ma-dim); background: var(--ma-panel-2); border-radius: 10px; padding: 8px 12px;
}
.ma-sheet-row span { flex: 1 0 100%; }
.ma-link { border: 0; background: none; padding: 2px 0; color: var(--ma-accent); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ma-scan { width: min(760px, 100%); }
.ma-scan-stage { position: relative; line-height: 0; max-height: 52vh; display: flex; justify-content: center; background: #2a2a2a; border-radius: 12px; overflow: hidden; }
.ma-scan-stage img { max-width: 100%; max-height: 52vh; display: block; user-select: none; -webkit-user-select: none; }
.ma-scan-box { position: relative; display: inline-block; max-width: 100%; }
.ma-scan-box svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; overflow: visible; }
.ma-scan-quad { fill: rgba(162,52,43,0.08); stroke: #ff5a4a; stroke-width: 0.35%; vector-effect: non-scaling-stroke; }
.ma-scan-dot { fill: rgba(255,90,74,0.35); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.ma-scan-hit { fill: transparent; cursor: grab; }
.ma-scan-preview { background: repeating-conic-gradient(#e9e4da 0 25%, #fff 0 50%) 0 0 / 14px 14px; border-radius: 10px; padding: 8px; }
.ma-scan-preview canvas { display: block; width: 100%; height: auto; border-radius: 6px; }
.ma-scan-dot.first { fill: rgba(40,160,90,0.55); }
.ma-scan-tools { align-items: center; justify-content: space-between; margin-top: 10px; }
.ma-scan-tools h3 { margin: 0; }

/* keep the Full screen pill clear of the corner handles */
.ma-editor-card .ma-print-editor:not(.fill) { padding-top: 54px; }
.ma-editor-card .ma-fs-open { top: 12px; right: 12px; }

/* long stickers (shaft strips): scroll sideways */
.ma-scroll { max-width: 100%; line-height: 0; }
.ma-print-editor.scrolls { justify-items: stretch; }
.ma-print-editor.scrolls .ma-scroll {
  overflow-x: auto; overflow-y: hidden; padding: 40px 18px 18px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.ma-print-editor.scrolls .ma-canvas-wrap { display: inline-block; }
.ma-scrollbar { width: 100%; accent-color: var(--ma-accent); }

/* zone picker */
.ma-zones { display: grid; gap: 6px; margin-bottom: 10px; }
.ma-zone-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ma-zone-row > span { width: 48px; font-size: 12px; font-weight: 700; color: var(--ma-dim); }
.ma-seg.zones button { padding: 6px 12px; font-size: 13px; }
.ma-zone-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-left: 5px; vertical-align: 2px; }

/* keep the stage contained: long stickers scroll inside the editor */
.ma-print-editor { position: relative; min-width: 0; max-width: 100%; }
.ma-viewer { min-width: 0; }

/* editor zoom */
.ma-zoom {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: center;
  border: 1px solid var(--ma-line); background: var(--ma-panel); border-radius: 999px; overflow: hidden;
}
.ma-zoom button { border: 0; background: transparent; width: 34px; height: 30px; font-size: 16px; font-weight: 700; }
.ma-zoom button:hover:not(:disabled) { background: var(--ma-panel-2); }
.ma-zoom span { min-width: 46px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ma-dim); }
.ma-print-editor:not(.fill) { padding-top: 54px; }
.ma-print-editor.zoomed .ma-scroll { overflow: auto; padding: 40px 18px 18px; }
.ma-print-editor.zoomed .ma-canvas-wrap { display: inline-block; }
.ma-print-editor.zoomed { justify-items: stretch; }

/* team logos */
.ma-logos { width: min(680px, 100%); }
.ma-logo-search { width: 100%; margin: 12px 0 4px; }
.ma-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ma-logo-item {
  border: 1px solid var(--ma-line); background: var(--ma-panel); border-radius: 14px; padding: 10px;
  display: grid; justify-items: center; gap: 6px; text-align: center; position: relative;
}
.ma-logo-item:hover:not(:disabled) { border-color: var(--ma-accent); }
.ma-logo-item:disabled { opacity: 0.6; }
.ma-logo-item img { width: 72px; height: 72px; object-fit: contain; }
.ma-logo-ph { width: 72px; height: 72px; border-radius: 50%; background: var(--ma-panel-2); display: grid; place-items: center; font-weight: 800; color: var(--ma-dim); }
.ma-logo-name { font-size: 12px; font-weight: 600; line-height: 1.25; }
.ma-logo-soon { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ma-dim); }

/* brushes + bucket */
.ma-brushes { gap: 6px; }
.ma-brush {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ma-line); background: var(--ma-panel);
  border-radius: 999px; padding: 5px 11px 5px 7px; font-size: 13px; font-weight: 600;
}
.ma-brush[aria-pressed="true"] { border-color: var(--ma-accent); color: var(--ma-accent); background: rgba(162,52,43,0.06); }
.ma-brush-ico { width: 22px; height: 10px; border-radius: 6px; background: currentColor; display: inline-block; }
.ma-brush-ico.pen { height: 4px; }
.ma-brush-ico.marker { height: 9px; opacity: 0.45; border-radius: 2px; }
.ma-brush-ico.soft { height: 8px; filter: blur(2px); }
.ma-brush-ico.spray { background: radial-gradient(circle, currentColor 0 30%, transparent 70%); height: 14px; width: 18px; opacity: 0.7; }
.ma-fill-hint { margin: 0; }
.ma-paint .ma-seg button { font-size: 13px; }
.ma-paint-size:has(.ma-smooth-toggle) { grid-template-columns: 74px 1fr 34px; }
.ma-smooth-toggle { display: inline-flex; align-items: center; gap: 5px; }
.ma-smooth-toggle input { accent-color: var(--ma-accent); margin: 0; }

/* save */
.ma-save-btn { margin-left: auto; }
.ma-save { width: min(560px, 100%); }
.ma-share-row { display: grid; gap: 6px; margin-top: 14px; }
.ma-share-url { display: flex; gap: 6px; }
.ma-share-url input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--ma-line); border-radius: 10px; background: var(--ma-panel-2); }

/* 3D view page */
.ma-view-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; padding: 20px 24px; max-width: 1400px; width: 100%; margin: 0 auto; }
.ma-view-stage { height: min(78vh, 760px); border-radius: 16px; overflow: hidden; border: 1px solid var(--ma-line); }
.ma-view-info h2 { margin: 0 0 10px; font-size: 18px; }
.ma-view-facts { display: grid; gap: 8px; font-size: 14px; }
.ma-view-facts > div { display: flex; justify-content: space-between; gap: 10px; }
.ma-view-facts span { color: var(--ma-dim); }
.ma-view-info .ma-btn { display: inline-block; text-decoration: none; margin-top: 12px; }
@media (max-width: 860px) {
  .ma-view-main { grid-template-columns: 1fr; padding: 14px; }
  .ma-view-stage { height: 60vh; }
}
.ma-email-links { border-top: 1px solid var(--ma-line); padding-top: 14px; }
.ma-email-links input[type="email"] { font-size: 16px; background: var(--ma-panel); }
.ma-tpl-scope { margin: 12px 0 2px; width: fit-content; }
.ma-tpl-scope button { padding: 7px 14px; font-size: 13px; }

/* footer + legal */
.ma-footer { display: flex; gap: 16px; justify-content: center; padding: 18px; font-size: 12px; color: var(--ma-dim); }
.ma-footer a, .ma-muted a, .ma-check a { color: var(--ma-accent); }
.ma-legal { max-width: 720px; width: 100%; margin: 24px auto 60px; padding: 0 20px; line-height: 1.6; font-size: 15px; }
.ma-legal h1 { font-size: 26px; margin: 0 0 12px; }
.ma-legal h2 { font-size: 18px; margin: 28px 0 8px; }
.ma-legal ul { padding-left: 22px; }
.ma-legal li { margin: 4px 0; }
.ma-legal a { color: var(--ma-accent); }

/* layout: product + design panels on the left, stage on the right.
   On phones: product choices → 3D + editor → design tools. */
.ma-main {
  grid-template-areas: "product stage" "design stage";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.ma-panel-product { grid-area: product; }
.ma-panel-design { grid-area: design; }
.ma-stage { grid-area: stage; }
.ma-panel-design h2:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .ma-main { grid-template-areas: "product" "stage" "design"; grid-template-rows: auto; }
  .ma-stage { order: 0; }
}

/* taller 3D view */
.ma-viewer { height: min(62vh, 640px); }
@media (max-width: 860px) { .ma-viewer { height: min(48vh, 420px); } }

/* ---------- phone layout: fixed stage + bottom drawer ---------- */
.ma-app.is-mobile { height: 100vh; height: 100dvh; overflow: hidden; }
.ma-app.is-mobile .ma-header { padding: 8px 12px; flex: 0 0 auto; }
.ma-app.is-mobile .ma-sub { display: none; }
.ma-app.is-mobile .ma-footer { display: none; }
.ma-mobile { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ma-mstage {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px;
  overflow: hidden;
}
.ma-mstage .ma-viewer { flex: 1 1 auto; height: auto; min-height: 120px; border-radius: 12px; }
.ma-mstage .ma-editor-card { flex: 0 0 auto; }
.ma-mstage .ma-print-editor:not(.fill) { padding: 44px 10px 10px; border-radius: 12px; }
.ma-mstage .ma-legend { display: none; }
.ma-mstage .ma-fs-open { top: 8px; right: 8px; padding: 6px 12px; }
.ma-mstage .ma-zoom { top: 8px; left: 8px; }

.ma-drawer {
  flex: 0 0 auto; display: flex; flex-direction: column; background: var(--ma-panel);
  border-top: 1px solid var(--ma-line); border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08); transition: height 0.22s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.ma-drawer.dragging { transition: none; }
.ma-drawer-handle { flex: 0 0 22px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.ma-drawer-handle i { width: 42px; height: 5px; border-radius: 3px; background: var(--ma-line); }
.ma-drawer-tabs { flex: 0 0 44px; display: flex; gap: 4px; padding: 0 10px 6px; touch-action: none; }
.ma-drawer-tabs button {
  flex: 1; border: 0; background: var(--ma-panel-2); border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ma-dim);
}
.ma-drawer-tabs button[aria-pressed="true"] { background: var(--ma-accent); color: #fff; }
.ma-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 20px; -webkit-overflow-scrolling: touch; }
.ma-drawer-body h2:first-child { margin-top: 4px; }

/* dialog buttons: cancel = white on red, confirm = green */
.tt-btn.tt-btn--danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.tt-btn.tt-btn--danger:hover:not(:disabled) { background: #98201a; }
.tt-btn.tt-btn--go { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.tt-btn.tt-btn--go:hover:not(:disabled) { background: #19733f; }
.tt-btn { padding: 10px 16px; }

/* face crop */
.ma-face { width: min(360px, 100%); }
.ma-face-stage { display: grid; place-items: center; margin: 10px 0; }
.ma-face-stage canvas { border-radius: 14px; background: #222; cursor: grab; }
.ma-face-stage canvas.ma-face-checker {
  background: repeating-conic-gradient(#d9d9d9 0 25%, #f4f4f4 0 50%) 0 0 / 16px 16px;
}
.ma-zoom .ma-guides-btn { width: auto; padding: 0 12px; font-size: 12px; border-left: 1px solid var(--ma-line); }
.ma-zoom .ma-guides-btn[aria-pressed="true"] { color: var(--ma-accent); }
.ma-face-bg { width: fit-content; margin: 10px 0 4px; }

/* nudge pad (fine adjust for the selected layer) */
.ma-nudge { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 2px; }
.ma-nudge-set { display: inline-flex; border: 1px solid var(--ma-line, #e2ddd3); border-radius: 999px; overflow: hidden; background: #fff; }
.ma-nudge-set button {
  border: 0; background: transparent; min-width: 40px; height: 36px; font-size: 17px; font-weight: 700;
  color: var(--ma-ink, #1a1a1a); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
}
.ma-nudge-set button + button { border-left: 1px solid var(--ma-line, #e2ddd3); }
.ma-nudge-set button:active { background: var(--ma-panel-2, #f2eee6); }
.ma-print-editor.fill .ma-nudge { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; pointer-events: none; }
.ma-print-editor.fill .ma-nudge-set { pointer-events: auto; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ma-print-editor.fill { position: relative; }
.ma-zoom .ma-undo-btn { font-size: 17px; border-left: 1px solid var(--ma-line); }
.ma-zoom button:disabled { opacity: .35; }

/* 3D view full screen */
.ma-viewer { position: relative; }
.ma-viewer.is-fs {
  position: fixed; inset: 0; z-index: 4000; height: 100dvh !important; width: 100vw;
  border-radius: 0; border: 0; background: var(--ma-panel, #f1ede5);
}
.ma-viewer.is-fs .ma-view-fs { top: max(12px, env(safe-area-inset-top)); right: 12px; }

/* jersey (recolourable player art) */
.ma-jersey { border: 1px solid var(--ma-line); border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; background: var(--ma-panel); }
.ma-jersey-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ma-jersey .ma-muted { margin: 6px 0 0; }
.ma-btn.small { padding: 5px 12px; font-size: 13px; }
.ma-jersey-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.ma-jersey-presets button {
  display: inline-flex; border: 1px solid var(--ma-line); border-radius: 999px; padding: 3px; background: #fff; cursor: pointer;
}
.ma-jersey-presets button:hover { border-color: var(--ma-accent); }
.ma-jersey-presets i { width: 14px; height: 18px; display: block; border: 1px solid rgba(0,0,0,.08); }
.ma-jersey-presets i:first-child { border-radius: 999px 0 0 999px; }
.ma-jersey-presets i:last-child { border-radius: 0 999px 999px 0; }
.ma-jersey-colours { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ma-jersey-colours label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ma-jersey-colours input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--ma-line); border-radius: 8px; background: none; cursor: pointer; }

/* layer visibility + opacity */
.ma-layers .ma-eye {
  border: 0; background: transparent; padding: 4px; margin: -4px 4px -4px -6px; border-radius: 6px;
  color: var(--ma-dim); display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.ma-layers .ma-eye:hover { background: var(--ma-panel-2); color: var(--ma-ink, #1a1a1a); }
.ma-layers li.is-hidden .ma-layer-name { opacity: .45; text-decoration: line-through; }
.ma-transform label:has(.ma-val) { grid-template-columns: 56px 1fr 40px; }
.ma-transform .ma-val { text-align: right; font-variant-numeric: tabular-nums; }
.ma-layers .ma-layer-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-blend { display: grid; grid-template-columns: 56px 1fr; align-items: center; font-size: 12px; color: var(--ma-dim); }
.ma-blend .ma-seg { width: fit-content; }
.ma-jersey-sub { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ma-dim); margin: 8px 0 -4px; }
.ma-jersey-col { display: inline-flex; align-items: center; gap: 4px; }
.ma-jersey-col.is-off input[type="color"] { opacity: .35; background: linear-gradient(135deg, transparent 45%, #b3242b 45% 55%, transparent 55%); }
.ma-jersey-col.is-off span { color: var(--ma-dim); text-decoration: line-through; }
.ma-jersey-off { border: 0; background: none; padding: 0 2px; font-size: 11px; color: var(--ma-dim); cursor: pointer; text-decoration: underline; }
.ma-face-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.ma-face-brush { display: inline-flex; align-items: center; gap: 8px; }
.ma-face-brush input { width: 120px; }
.ma-face-brush i { display: inline-block; border-radius: 50%; background: var(--ma-ink, #1a1a1a); opacity: .6; }
.ma-face-tip { margin: 2px 0 0; font-size: 12px; }
.ma-jersey-style { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; font-size: 12px; color: var(--ma-dim); }
.ma-header .ma-new-btn { margin-left: auto; }
.ma-header .ma-new-btn + .ma-save-btn { margin-left: 8px; }

/* 3D view: refresh button + draggable split to the design pane */
.ma-view-refresh {
  position: absolute; left: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--ma-line); background: var(--ma-panel); font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; color: var(--ma-ink, #1a1a1a);
}
.ma-view-refresh:hover { background: var(--ma-panel-2); }
.ma-split {
  height: 14px; margin: -11px 0 -11px; position: relative; z-index: 3; cursor: row-resize;
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
}
.ma-split i { width: 44px; height: 5px; border-radius: 3px; background: var(--ma-line); transition: background .15s, width .15s; }
.ma-split:hover i, .ma-split:active i { background: var(--ma-accent); width: 64px; }
.ma-cage-cols { margin: 0; align-items: center; }
.ma-cage-cols button { align-items: center; gap: 4px; }
.ma-cage-cols button[aria-pressed="true"] { border-color: var(--ma-accent); box-shadow: 0 0 0 2px rgba(162,51,43,.2); }
.ma-cage-cols i { width: 18px; height: 18px; border-radius: 50% !important; }
.ma-cage-cols small { font-size: 11px; padding-right: 4px; color: var(--ma-dim); }
.ma-cage-cols input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--ma-line); border-radius: 8px; background: none; }

/* editor navigation: pinch / pan like a sketching app */
.ma-zoom .ma-zoom-pct { width: auto; min-width: 50px; font-size: 12px; font-weight: 600; color: var(--ma-dim); padding: 0 4px; }
.ma-zoom .ma-zoom-pct:disabled { opacity: 1; }
.ma-print-editor .ma-canvas-wrap { will-change: auto; }
.ma-print-editor.navigating { overflow: hidden; }
.ma-print-editor.navigating .ma-canvas-wrap { will-change: transform; }
.ma-print-editor.space-pan .ma-scroll, .ma-print-editor.space-pan .ma-canvas-wrap { cursor: grab !important; }
.ma-print-editor.panning .ma-scroll, .ma-print-editor.panning .ma-canvas-wrap { cursor: grabbing !important; }
.ma-print-editor.zoomed .ma-scroll { overscroll-behavior: contain; }

/* header tagline marquee */
.ma-tagline {
  flex: 1; min-width: 0; overflow: hidden; align-self: center; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ma-tag-track { display: flex; width: max-content; animation: ma-tag-scroll 60s linear infinite; }
.ma-tagline:hover .ma-tag-track { animation-play-state: paused; }
.ma-tag-run { display: flex; flex: 0 0 auto; }
.ma-tag-phrase {
  white-space: nowrap; text-transform: uppercase; font-size: 21px; letter-spacing: -0.01em; line-height: 1;
  color: #c4beb6; padding-right: 0.45em;
}
.ma-tag-phrase b { font-weight: 800; }
.ma-tag-phrase span { font-weight: 400; }
.ma-tag-phrase i { font-style: normal; padding-left: 0.45em; opacity: 0.6; }
.ma-tag-phrase.red { color: var(--ma-accent); }
.ma-tag-static { display: none; }
@keyframes ma-tag-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ma-tag-track { animation: none; }
}
@media (max-width: 860px) {
  .ma-tag-track { display: none; }
  .ma-tag-static { display: block; }
  .ma-tagline { -webkit-mask-image: none; mask-image: none; }
  .ma-tag-static .ma-tag-phrase { font-size: 13px; }
  .ma-tag-static .ma-tag-phrase i { display: none; }
}
@media (max-width: 600px) { .ma-tagline { display: none; } }
.ma-app.is-mobile .ma-tagline { display: none; }

/* face dialog: working overlay */
.ma-face-stage { position: relative; }
.ma-face-busy {
  position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content;
  display: grid; justify-items: center; gap: 10px; padding: 16px 20px; border-radius: 14px;
  background: rgba(20,20,20,0.72); color: #fff; font-size: 13px; font-weight: 600; text-align: center;
  pointer-events: none; backdrop-filter: blur(2px);
}
.ma-face-busy.light { background: rgba(20,20,20,0.45); padding: 10px 14px; gap: 6px; font-size: 12px; }
.ma-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: ma-spin 0.8s linear infinite;
}
.ma-face-busy.light .ma-spinner { width: 18px; height: 18px; border-width: 2px; }
.ma-face-progress { display: block; width: 160px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.2); overflow: hidden; }
.ma-face-progress b { display: block; height: 100%; background: #fff; border-radius: 4px; transition: width 0.4s ease; }
@keyframes ma-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ma-spinner { animation-duration: 2.4s; } }

/* layer stack: long names truncate instead of pushing the buttons out */
.ma-layers { grid-template-columns: minmax(0, 1fr); }
.ma-layers li { min-width: 0; }
/* linked layers */
.ma-layer-actions .ma-link-btn { font-size: 11px; filter: grayscale(1); opacity: .55; }
.ma-layer-actions .ma-link-btn[aria-pressed="true"] { filter: none; opacity: 1; }
.ma-layers li.is-linked { border-left: 3px solid var(--ma-accent); padding-left: 10px; }
.ma-layers li.link-next { position: relative; }
.ma-layers li.link-next::after {
  content: ""; position: absolute; left: -3px; bottom: -8px; width: 3px; height: 8px; background: var(--ma-accent);
}

/* layer rows: flip + up/down only on the selected row (more room for names) */
.ma-layers li:not([aria-selected="true"]) .ma-row-extra { display: none; }
/* focus ring in the accent colour, and only for keyboard focus */
.ma-layers button:focus { outline: none; }
.ma-layers button:focus-visible { outline: 2px solid var(--ma-accent); outline-offset: 1px; }

/* face dialog sliders: name + value on top, full-width slider below */
.ma-face-slider { display: grid; gap: 4px; margin: 8px 0 4px; font-size: 12px; color: var(--ma-dim); }
.ma-face-slider-head { display: flex; justify-content: space-between; }
.ma-face-slider input { width: 100%; accent-color: var(--ma-accent); }

/* ---------- white label ---------- */
.ma-wordmark { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: var(--ma-accent); white-space: nowrap; }
@media (max-width: 600px) { .ma-wordmark { font-size: 20px; } }
.ma-logo-link { text-decoration: none; }
.ma-demo-chip {
  align-self: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--ma-accent); border: 1.5px solid var(--ma-accent); border-radius: 999px; padding: 3px 9px;
}
.ma-demo-chip:hover { background: var(--ma-accent); color: #fff; }
.ma-footer .ma-powered { color: var(--ma-dim); text-decoration: none; }
.ma-footer .ma-powered b { color: #a2332b; }

/* ---------- merchmod.ca overview ---------- */
.mo { min-height: 100%; display: flex; flex-direction: column; }
.mo-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--ma-line); background: var(--ma-panel);
  position: sticky; top: 0; z-index: 5;
}
.mo-logo { height: 56px; display: block; }
.mo-top nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.mo-top nav a:not(.ma-btn) { color: var(--ma-fg); text-decoration: none; }
.mo-top nav a:not(.ma-btn):hover { color: var(--ma-accent); }
.mo-top .ma-btn { text-decoration: none; }
.mo-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; width: 100%;
}
.mo-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ma-accent); }
.mo-hero h1 { margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.mo-lead { margin: 0 0 24px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ma-dim); max-width: 34em; }
.mo-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mo-cta .ma-btn { text-decoration: none; display: inline-block; }
.ma-btn.mo-big { padding: 13px 20px; font-size: 15px; border-radius: 12px; }
.mo-hero-art { display: flex; justify-content: center; align-items: flex-end; }
.mo-hero-art img { width: 38%; height: auto; filter: drop-shadow(0 14px 18px rgba(40,30,20,.18)); }
.mo-hero-art img:nth-child(1) { transform: rotate(-7deg) translate(18%, 6%); }
.mo-hero-art img:nth-child(2) { width: 44%; z-index: 1; position: relative; }
.mo-hero-art img:nth-child(3) { transform: rotate(7deg) translate(-18%, 6%); }
.mo-section { padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; width: 100%; }
.mo-section h2 { margin: 0 0 22px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mo-card { background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 16px; padding: 18px 20px; }
.mo-card h3, .mo-steps h3 { margin: 0 0 6px; font-size: 16px; }
.mo-card p, .mo-steps p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ma-dim); }
.mo-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mo-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 16px; padding: 18px 20px; }
.mo-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ma-accent); color: #fff; font-size: 15px; }
.mo-band { text-align: center; }
.mo-band p { max-width: 40em; margin: 0 auto 22px; font-size: 16px; line-height: 1.55; color: var(--ma-dim); }
.mo-band .mo-cta { justify-content: center; }
.mo .ma-footer { margin-top: auto; }
@media (max-width: 860px) {
  .mo-hero { grid-template-columns: 1fr; }
  .mo-hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .mo-top nav a:not(.ma-btn) { display: none; }
  .mo-logo { height: 40px; }
}
.mo { overflow-x: hidden; }
.mo a.ma-btn { color: var(--ma-fg); }
.mo a.ma-btn.primary { color: #fff; }
.mo a.ma-btn.primary:hover { color: var(--ma-accent); }
.mo-hero-art { padding: 0 6%; }

/* die-cut: cut line options */
.ma-cutcard { border: 1px solid var(--ma-line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: var(--ma-panel); }
.ma-cutcard-head { font-size: 14px; margin-bottom: 8px; }
.ma-cutcard-head .ma-muted { font-size: 12px; margin-left: 4px; }
.ma-cut-tip { font-size: 12px; margin: 6px 0 0; }

/* overview hero: one 3D render in a panel the same colour as the 3D view */
.mo-hero-shot { background: #f1ece3; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(60,45,30,.10); }
.mo-hero-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 860px) { .mo-hero-shot { order: -1; max-width: 460px; width: 100%; margin: 0 auto; } }

/* overview hero: the ornament floats free, its string running up past the
   header to the top of the page (transparent PNG, no panel) */
.mo-top { position: relative; }
.mo-hero-shot {
  background: none; border-radius: 0; overflow: visible; aspect-ratio: auto; box-shadow: none;
  display: flex; justify-content: center; align-self: start; position: relative; z-index: 6;
  margin-top: calc(-84px - clamp(32px, 6vw, 80px)); pointer-events: none;
}
.mo-hero-shot img {
  width: auto; height: auto; max-width: 100%; max-height: min(86vh, 860px); object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(60,45,30,.18));
}
@media (max-width: 860px) {
  .mo-hero-shot { margin-top: calc(-1 * clamp(32px, 6vw, 80px) - 70px); max-width: none; }
  .mo-hero-shot img { max-height: 60vh; }
}
