/* Sign mockup tool. Builds on /assets/css/service-page.v4.css (tokens, header, footer, buttons). */
.sm-hero .wrap { grid-template-columns: 1fr; padding: 22px 0 34px; gap: 10px; }
.sm-hero h1 { margin-top: 14px; }
.sm-hero .answer { margin: 14px 0 0; max-width: 820px; }

.sm-tool { background: var(--paper); border-bottom: 1px solid var(--line); }
.sm-grid {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  grid-template-areas: "steps stage" "panel stage";
  grid-template-rows: auto 1fr;
  gap: 16px 22px;
  align-items: start;
}

.sm-steps { grid-area: steps; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sm-steps button {
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sm-steps b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
}
.sm-steps button[aria-current="step"] { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: var(--soft); }
.sm-steps button[aria-current="step"] b { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.sm-steps button.done b { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.sm-steps button:disabled { cursor: not-allowed; opacity: .5; }

.sm-stage {
  grid-area: stage;
  position: sticky;
  top: 126px;
  height: clamp(420px, calc(100vh - 150px), 820px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #0b1d33;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: #0b1d33;
}
.sm-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.sm-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.sm-stage.dragging canvas { cursor: grabbing; }
.sm-stage.drawing canvas { cursor: crosshair; }
.sm-stage.over-handle canvas { cursor: move; }
.sm-stage.dropping { outline: 3px dashed var(--gold); outline-offset: -10px; }

.sm-drop {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: 2px dashed rgba(240, 208, 128, .55);
  border-radius: 10px;
  color: #d8e1ec;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.sm-drop:hover, .sm-stage.dropping .sm-drop { background: rgba(212,168,67,.08); border-color: var(--gold); }
.sm-drop svg { width: 56px; height: 56px; color: var(--gold-2); margin-bottom: 6px; }
.sm-drop strong { color: var(--white); font-size: 19px; }

.sm-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 170px);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(11, 29, 51, .9);
  border: 1px solid rgba(240, 208, 128, .45);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
/* Moves out of the way when the sign or its dimension lines sit under the top-left corner. */
.sm-chip.is-low { top: auto; bottom: 12px; }
.sm-chip small { display: block; color: #b9c7d8; font-size: 11px; font-weight: 700; }
.sm-hint {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: opacity .35s ease, transform .35s ease;
}
.sm-hint.is-out { opacity: 0; transform: translate(-50%, 12px); }
@media (prefers-reduced-motion: reduce) { .sm-hint { transition: none; } }
.sm-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(11, 29, 51, .9);
  border: 1px solid rgba(255,255,255,.2);
}
.sm-zoom button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.sm-zoom button + button { border-left: 1px solid rgba(255,255,255,.16); }
.sm-zoom #zoomFit { font-size: 13px; padding: 0 12px; }
.sm-zoom button:hover { background: rgba(255,255,255,.1); }
.sm-busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(11, 29, 51, .78);
  color: var(--white);
  font-weight: 800;
}
.sm-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--gold);
  animation: sm-spin .8s linear infinite;
}
@keyframes sm-spin { to { transform: rotate(360deg); } }

.sm-panel {
  grid-area: panel;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.sm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--soft);
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.sm-card h2 { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.sm-card h2 b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  font-size: 14px;
}
.sm-card p, .sm-howto li { color: var(--muted); font-size: 14px; }
.sm-howto { padding-left: 20px; display: grid; gap: 6px; }
.sm-card .note { margin: 0; font-size: 13px; }
.sm-card .note a { font-weight: 800; }
.sm-card .sm-lead { color: var(--ink); font-size: 15px; font-weight: 700; }
.sm-meta { font-size: 13px !important; font-weight: 700; color: var(--ink) !important; word-break: break-word; }
.sm-meta:empty { display: none; }
.sm-meta.warn { padding: 8px 10px; border-radius: 6px; background: #fff8e8; border: 1px solid rgba(212,168,67,.55); }
.sm-tip { padding: 10px 12px; border-radius: 8px; background: var(--paper); }

.sm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-actions .btn { flex: 1 1 auto; }
.sm-file { position: relative; }
.sm-file:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.sm-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.sm-field { display: block; color: var(--navy); font-size: 13px; font-weight: 800; }
.sm-field > input, .sm-field > select, .sm-field > textarea { display: block; margin-top: 6px; }
.sm-field small { color: var(--muted); font-weight: 700; }
.sm-field output { color: var(--muted); font-weight: 700; margin-left: 4px; }
.sm-field input[type="text"], .sm-field select, .sm-field textarea, .sm-len input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c9d3e0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.sm-field textarea { resize: vertical; min-height: 80px; }
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus, .sm-len input:focus {
  outline: 3px solid rgba(212,168,67,.6);
  outline-offset: 0;
  border-color: var(--gold);
}
.sm-field input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--navy); }
.sm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.sm-color input { width: 56px; height: 44px; padding: 3px; border: 1px solid #c9d3e0; border-radius: 8px; background: var(--white); cursor: pointer; }

.sm-len { border: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sm-len legend { color: var(--navy); font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.sm-len label { flex: 1 1 90px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 800; }
.sm-len .btn { flex: 0 0 auto; }

.sm-checks { display: grid; gap: 2px; }
.sm-checks label { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.sm-checks input { width: 20px; height: 20px; accent-color: var(--navy); }
.sm-cover .sm-actions { align-items: flex-end; }
.sm-cover .sm-actions .sm-field { margin: 0; }
.sm-cover .sm-actions .btn { min-height: 44px; }

.sm-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.sm-seg label { position: relative; }
.sm-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sm-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 900; }
.sm-seg input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(11,29,51,.12); }
.sm-seg input:focus-visible + span { outline: 3px solid var(--gold); }

/* Category bar in step 3: short labels on scrollable pills (full name in aria-label / title). */
.sm-cattabs-wrap {
  position: relative;
  margin-bottom: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.sm-cattabs-wrap::after {
  content: "";
  position: absolute; right: 0; top: 1.4em; bottom: 0; width: 28px;
  background: linear-gradient(90deg, transparent, var(--white));
  pointer-events: none;
}
.sm-cattabs-hint {
  margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.sm-cattabs {
  display: flex; flex-wrap: nowrap; gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sm-cattabs [role="radio"] {
  flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--muted); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer;
  white-space: nowrap; scroll-snap-align: start;
}
.sm-cattabs [role="radio"][aria-checked="true"] { background: var(--white); border-color: var(--navy); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy), 0 2px 8px rgba(11,29,51,.1); }
.sm-cattabs [role="radio"]:hover { color: var(--navy); }
.sm-cattabs .sm-cattabs-label { flex: 0 0 auto; margin: 0 4px 0 0; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sm-cattabs .is-soon {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 11px; border: 1px dashed #c3ccd8; border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.sm-cattabs .is-soon:hover { border-color: var(--gold); color: var(--navy); }
.sm-cattabs button:focus-visible, .sm-cats button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.sm-soon { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #eef1f5; color: #5d6b80; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }

.sm-out { padding: 10px 12px; border-radius: 8px; background: var(--paper); color: var(--ink) !important; font-weight: 700; }
.sm-out.warn { background: #fff8e8; border: 1px solid rgba(212,168,67,.55); }
.sm-out.good { background: #edf7f0; border: 1px solid #b9dcc4; }

.sm-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sm-size:empty { display: none; }
.sm-size div { padding: 10px; border-radius: 8px; background: var(--navy); color: var(--white); text-align: center; }
.sm-size strong { display: block; font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sm-size span { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sm-size p { grid-column: 1 / -1; font-size: 13px; }

.sm-daynight {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: rgba(11, 29, 51, .9);
  border: 1px solid rgba(255,255,255,.2);
}
.sm-daynight button {
  min-width: 64px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d8e1ec;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.sm-daynight button[aria-checked="true"] { background: var(--gold); color: var(--navy); }
.sm-daynight button[data-mode="night"][aria-checked="true"] { background: #1f3a5f; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-2); }
.sm-daynight button:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 1px; }

.sm-type {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  grid-template-areas: "art text" "btn btn";
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.sm-type-art { grid-area: art; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--white); line-height: 0; }
.sm-type-art svg, .sm-build-art svg, .sm-tcard svg { width: 100%; height: auto; display: block; }
.sm-type-text { grid-area: text; display: grid; gap: 3px; min-width: 0; }
.sm-type-text strong { color: var(--navy); font-size: 15px; line-height: 1.25; }
.sm-type-group { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sm-type .btn { grid-area: btn; }
.sm-badge { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: var(--gold-2); font-size: 11px; font-weight: 900; }
.sm-badge.off { background: #e6eaf0; color: #4a5568; }

.sm-build { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.sm-build summary { padding: 11px 12px; color: var(--navy); font-size: 14px; font-weight: 900; cursor: pointer; }
.sm-build-body { display: grid; gap: 10px; padding: 0 12px 12px; }
.sm-build-art { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; line-height: 0; background: var(--white); cursor: zoom-in; }
.sm-build-art:hover { border-color: var(--gold); }
.sm-build-art:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sm-build-zoom { margin-top: -4px; color: var(--muted) !important; font-size: 12px !important; }
.sm-cardzoom { width: min(1100px, calc(100% - 32px)); }
.sm-cardzoom-art { padding: 16px 18px 6px; line-height: 0; }
.sm-cardzoom-art svg { width: 100%; height: auto; display: block; }
.sm-cardzoom-foot { padding: 0 18px 18px; color: var(--muted); font-size: 13px; font-style: italic; }
.sm-build ul { padding-left: 18px; display: grid; gap: 3px; color: var(--ink); font-size: 13px; }
.sm-build-night { padding: 8px 10px; border-radius: 6px; background: #13253d; color: #dce6f2 !important; font-size: 13px !important; }
.sm-build-foot { color: var(--muted) !important; font-size: 12px !important; font-style: italic; }
.sm-pin { border-left: 4px solid var(--gold); }
.sm-codes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sm-codes[hidden] { display: none; }
.sm-codes li { padding: 8px 10px 8px 12px; border-left: 4px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.sm-codes li.over { border-left-color: #b4471f; background: #fff1ea; color: #5c1f08; font-weight: 700; }
.sm-notice { padding: 10px 12px; border-radius: 8px; background: #fff8e8; border: 1px solid rgba(212,168,67,.55); color: var(--ink) !important; font-size: 13px !important; }

/* Type options: a label over a full-width control, two to a row. */
.sm-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; align-items: start; }
.sm-opts:empty { display: none; }
.sm-opts > div { min-width: 0; }
.sm-opts .sm-field { min-width: 0; }
.sm-opts .sm-color input { display: block; width: 100%; height: 44px; margin-top: 6px; }
.sm-opts .sm-field select { margin-top: 6px; }
.sm-opts .sm-wide { grid-column: 1 / -1; }
.sm-auto { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.sm-auto input { width: 18px; height: 18px; accent-color: var(--navy); }

.sm-types {
  width: min(980px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.sm-types::backdrop { background: rgba(6, 14, 26, .62); }
.sm-types-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}
.sm-types-head h2 { font-size: 19px; color: var(--white); }
.sm-x { width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.sm-x:hover { background: rgba(255,255,255,.2); }
.sm-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.sm-cats button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.sm-cats button:hover { color: var(--navy); border-color: #c3ccd8; }
.sm-cats button.is-soon { padding-right: 8px; border-style: dashed; background: var(--white); }
.sm-cats button[aria-selected="true"] { background: var(--navy); border: 1px solid var(--navy); color: var(--gold-2); }
.sm-cats button[aria-selected="true"] .sm-soon { background: rgba(255,255,255,.14); color: var(--white); }
.sm-types-sub { padding: 12px 18px 0; color: var(--muted); font-size: 13px; }
.sm-types-body { padding: 6px 18px 18px; }
.sm-types-body h3 { margin: 16px 0 8px; color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sm-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sm-tcard {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.sm-tcard:hover { border-color: var(--gold); box-shadow: var(--soft); }
.sm-tcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.sm-tcard[aria-pressed="true"] { border: 2px solid var(--navy); padding: 7px; background: #f3f6fa; }
.sm-tcard .sm-tc-art { border-radius: 5px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.sm-tcard strong { color: var(--navy); font-size: 14px; line-height: 1.25; }
.sm-tcard span { color: var(--muted); font-size: 12px; }

/* Coming-soon category: what it will cover, and how to get one now. */
.sm-soon-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.sm-soon-lead .sm-soon { background: var(--gold); color: var(--navy); }
.sm-tcard.is-soon { cursor: default; border-style: dashed; background: #fbfcfd; }
.sm-tcard.is-soon:hover { border-color: var(--line); box-shadow: none; }
.sm-tcard.is-soon .sm-tc-art { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #f3f5f8 0 10px, #eef1f5 10px 20px); color: #9aa5b5; }
.sm-tcard.is-soon .sm-tc-art svg { width: 56px; height: 56px; }
.sm-soon-cta { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; }
.sm-soon-cta a { color: var(--navy); font-weight: 900; white-space: nowrap; }

.sm-price { padding: 12px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; gap: 4px; }
.sm-price:empty { display: none; }
.sm-price span { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sm-price strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.sm-price small { color: #c3cfde; font-size: 12px; line-height: 1.4; }
.sm-price .sm-perfoot { color: var(--gold-2); font-size: 13px; font-weight: 900; }
.sm-price .sm-noprice { font-size: 15px; line-height: 1.4; font-variant-numeric: normal; }
.sm-price .sm-plines { margin: 2px 0 0; padding-left: 18px; color: #dbe4ef; font-size: 12px; line-height: 1.45; }
.sm-price.muted { background: var(--paper); color: var(--ink); }
.sm-price.muted span { color: var(--gold-ink); }
.sm-price.muted small { color: var(--muted); }
.sm-price.muted .sm-noprice { color: var(--navy); }

.sm-approve { display: grid; gap: 10px; padding: 14px; border-radius: 8px; border: 1px dashed #b9c5d6; background: #f8fafc; }
.sm-approve h3 { color: var(--navy); font-size: 16px; }
.sm-fine { font-size: 12px !important; }
.sm-link { display: grid; gap: 8px; }
.sm-link input { font-size: 14px !important; }

.sm-export .btn.lg { flex-basis: 100%; }
.sm-status { min-height: 1.5em; color: var(--navy); font-size: 13px; font-weight: 800; }
.sm-status.error { color: #a12a1b; }
.sm-noscript { padding: 16px; background: #fff8e8; text-align: center; }

@media (max-width: 1040px) {
  .sm-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sm-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "steps" "stage" "panel";
    grid-template-rows: auto;
    padding-top: 14px;
    gap: 12px;
  }
  /* Fit the stage to the photo's shape, leaving room for the size chip and zoom buttons. */
  .sm-stage {
    position: relative;
    top: 0;
    height: clamp(300px, calc((100vw - 20px) * var(--sm-ar, 1) + 110px), 70vh);
    height: clamp(300px, calc((100vw - 20px) * var(--sm-ar, 1) + 110px), 70svh);
  }
  .sm-drop-desktop { display: none; }
}
@media (max-width: 720px) {
  .sm-cardzoom-art { overflow-x: auto; }
  .sm-cardzoom-art svg { min-width: 680px; }
  .sm-grid { width: calc(100% - 20px); }
  .sm-hero .wrap { padding: 10px 0 24px; }
  .sm-hero .answer { font-size: 15px; }
  .sm-card { padding: 16px 14px; }
  .sm-row { grid-template-columns: 1fr 1fr; }
  .sm-row .sm-field:first-child { grid-column: 1 / -1; }
  .sm-color input { width: 100%; }
  .sm-hint { bottom: 62px; font-size: 12px; }
  .sm-daynight button { min-width: 54px; padding: 0 10px; }
  .sm-types { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .sm-cats { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
  .sm-cats::-webkit-scrollbar { display: none; }
  .sm-cats button { scroll-snap-align: start; }
  .sm-tgrid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sm-tcard strong { font-size: 13px; }
  footer { padding-bottom: 34px; }
}
@media (max-width: 380px) {
  .sm-tgrid { grid-template-columns: 1fr; }
}

/* Request a formal estimate (form styles in estimate-form.css) */
.sm-estimate-cta { width: 100%; margin-top: 12px; text-align: center; }
.sm-estimate-wrap { max-width: 880px; }
.sm-estimate #estimateForm { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--soft); }
