/* Mystic Mats PHP/XAMPP Clean Stylesheet
   Source cleaned from current duplicated style.css.
   Font rule: no condensed/extended fonts. Use Arial/Helvetica only.
*/

:root {
  --mm-blue: #00a8ee;
  --mm-blue-hover: #20bfff;
  --mm-black: #000000;
  --mm-ink: #001217;
  --mm-page: #0b0f11;
  --mm-nav: #11191d;
  --mm-panel: #151f24;
  --mm-card: #1b252a;
  --mm-field: #2d3a40;
  --mm-border: #2a383e;
  --mm-border-soft: #263840;
  --mm-muted: #65767f;
  --mm-muted-2: #7d8a91;
  --mm-white: #ffffff;
  --mm-radius-sm: 8px;
  --mm-radius: 12px;
  --mm-radius-lg: 14px;
  --mm-font: Arial, Helvetica, sans-serif;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--mm-font);
  background: var(--mm-black);
  color: var(--mm-white);
}

body,
button,
input,
select,
textarea {
  font-family: var(--mm-font);
  font-stretch: normal;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hidden,
[hidden] {
  display: none !important;
}

/* Shared legacy/home helpers */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.card {
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mm-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.subtitle {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--mm-muted-2);
  font-size: 17px;
  line-height: 1.6;
}

.status {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mm-panel);
  color: var(--mm-muted-2);
  border: 1px solid var(--mm-border);
}

.wizard-continue-button,
a.wizard-continue-button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--mm-radius-sm);
  background: var(--mm-blue);
  color: var(--mm-ink);
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-continue-button:hover,
a.wizard-continue-button:hover {
  background: var(--mm-blue-hover);
  text-decoration: none;
}

.editor-small-link,
.wizard-save-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--mm-blue);
  border-radius: var(--mm-radius-sm);
  background: transparent;
  color: var(--mm-blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-small-link:hover,
.wizard-save-button:hover {
  background: rgba(0, 168, 238, 0.12);
}

/* Toast */
.toast-popup {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 9999;
  max-width: min(520px, calc(100% - 28px));
  min-height: 52px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--mm-radius);
  background: var(--mm-blue);
  color: var(--mm-ink);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  animation: toast-slide-down 0.22s ease-out;
  display: flex;
  align-items: center;
  gap: 14px;
}

.toast-popup span {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.toast-popup button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--mm-ink);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.toast-popup button:hover {
  background: rgba(255, 255, 255, 0.6);
}

@keyframes toast-slide-down {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Public home */
.mystic-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 168, 238, 0.12), transparent 32%),
    linear-gradient(135deg, #050708 0%, #10191d 100%);
  color: var(--mm-white);
}

.site-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(17, 25, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  color: var(--mm-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mm-blue);
  color: var(--mm-ink);
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-size: 17px;
  line-height: 1;
}

.site-brand small {
  margin-top: 5px;
  color: var(--mm-muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #9aa6ac;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav .site-nav-admin {
  background: var(--mm-blue);
  color: var(--mm-ink);
}

.home-page {
  min-height: calc(100vh - 110px);
  padding: 70px 20px;
}

.home-hero {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.home-kicker {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--mm-panel);
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--mm-white);
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.9;
}

.home-hero h1 span {
  display: block;
  color: var(--mm-blue);
}

.home-subtitle {
  max-width: 620px;
  margin: 28px 0 0;
  color: #9aa6ac;
  font-size: 19px;
  line-height: 1.7;
}

.home-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-primary {
  box-shadow: 0 18px 45px rgba(0, 168, 238, 0.22);
}

.home-feature-row {
  max-width: 620px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-feature-row div,
.home-preview-card {
  background: var(--mm-panel);
  border: 1px solid var(--mm-border);
}

.home-feature-row div {
  padding: 18px;
  border-radius: 20px;
}

.home-feature-row strong,
.home-feature-row span {
  display: block;
}

.home-feature-row strong {
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 950;
}

.home-feature-row span {
  margin-top: 8px;
  color: var(--mm-white);
  font-weight: 900;
}

.home-status {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--mm-panel);
  color: var(--mm-muted-2);
  font-size: 13px;
  font-weight: 800;
}

.home-status strong {
  margin-left: 6px;
  color: var(--mm-white);
}

.home-preview-card {
  border-radius: 36px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.home-preview-top {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-preview-top span {
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;

}

.home-preview-top strong {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  font-size: 12px;
  text-transform: uppercase;
}

.home-mat-preview {
  min-height: 360px;
  padding: 28px;
  border-radius: 32px;
  background: #333;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-mat-inner {
  width: 100%;
  min-height: 260px;
  border: 3px dashed rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-mat-inner span {
  color: var(--mm-white);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.home-preview-details {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.home-preview-details div {
  padding: 14px;
  border-radius: 18px;
  background: #0f171b;
  border: 1px solid var(--mm-border);
}

.home-preview-details span,
.home-preview-details strong {
  display: block;
}

.home-preview-details span {
  color: var(--mm-muted-2);
  font-size: 11px;
  font-weight: 900;
}

.home-preview-details strong {
  margin-top: 6px;
  color: var(--mm-white);
  font-size: 13px;
}

/* Auth login/register */
.auth-page,
.auth-page-polished {
  min-height: 100vh;
  background: var(--mm-black);
  color: var(--mm-white);
  position: relative;
  padding: 48px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-back {
  position: fixed;
  top: 38px;
  left: 44px;
  color: var(--mm-white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.95;
}

.auth-back::before {
  content: "<";
  margin-right: 10px;
}

.auth-card-wrap,
.auth-card-wrap-polished {
  width: min(360px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.auth-logo-img,
.auth-logo-img-polished {
  width: 150px;
  max-width: 72%;
  margin: 0 auto 12px;
  display: block;
}

.auth-tagline {
  margin: 0 0 24px;
  color: #566268;
  font-size: 13px;
  font-weight: 500;
}

.auth-card,
.auth-card-polished {
  width: 100%;
  padding: 24px 24px 22px;
  border-radius: var(--mm-radius);
  background: var(--mm-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.auth-tabs {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tabs a,
.auth-tabs span,
.auth-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: #344147;
  color: var(--mm-white);
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-tabs a.active,
.auth-tabs span.active,
.auth-tabs button.active {
  background: var(--mm-blue);
  color: var(--mm-ink);
}

.auth-tabs button:hover:not(.active) {
  background: #415057;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-card label,
.auth-card-polished label {
  display: block;
  margin: 0 0 13px;
  color: var(--mm-white);
  font-size: 12px;
  font-weight: 800;
}

.auth-card input,
.auth-card-polished input {
  width: 100%;
  min-height: 38px;
  margin-top: 7px;
  border: 1px solid #4b5a61;
  border-radius: var(--mm-radius-sm);
  background: #313e44;
  color: var(--mm-white);
  padding: 0 13px;
  outline: none;
  font-size: 13px;
  font-weight: 600;
}

.auth-card input::placeholder,
.auth-card-polished input::placeholder {
  color: #6f7b82;
  font-weight: 600;
}

.auth-card input:focus,
.auth-card-polished input:focus {
  border-color: var(--mm-blue);
  box-shadow: 0 0 0 2px rgba(0, 168, 238, 0.14);
}

.auth-submit {
  width: 100%;
  min-height: 39px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--mm-radius-sm);
  background: var(--mm-blue);
  color: var(--mm-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.auth-submit:hover {
  background: var(--mm-blue-hover);
}

.auth-divider {
  margin: 22px 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.auth-divider span {
  height: 1px;
  background: #344147;
}

.auth-divider p {
  margin: 0;
  color: #67747a;
  font-size: 12px;
  font-weight: 500;
}

.auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.auth-socials button {
  min-height: 39px;
  border: 1px solid #405158;
  border-radius: var(--mm-radius-sm);
  background: transparent;
  color: var(--mm-white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.auth-socials button:hover {
  border-color: var(--mm-blue);
  background: #101b20;
}

.auth-social-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.auth-social-icon.facebook svg {
  width: 17px;
  height: 17px;
}

.auth-demo-note {
  margin: 16px 0 0;
  color: #66737a;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.auth-form-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 168, 238, 0.35);
  border-radius: var(--mm-radius-sm);
  background: rgba(0, 168, 238, 0.12);
  color: #8ae7ff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

/* Customer dashboard */
.customer-dashboard-page.dashboard-polished {
  min-height: 100vh;
  background: var(--mm-black);
  color: var(--mm-white);
}

.dashboard-polished-nav {
  min-height: 70px;
  padding-left: max(44px, calc((100vw - 1040px) / 2));
  padding-right: max(44px, calc((100vw - 1040px) / 2));
  background: var(--mm-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-dashboard-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.customer-dashboard-logo img {
  width: 92px;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.customer-dashboard-user,
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dashboard-header-action {
  color: #6f7f87;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-header-action:hover,
.dashboard-logout-link:hover {
  color: var(--mm-blue);
}

.dashboard-header-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.dashboard-header-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.dashboard-polished-wrap {
  width: min(1040px, calc(100% - 56px));
  margin: 0 auto;
  padding: 34px 0 74px;
}

.dashboard-polished-welcome {
  min-height: 142px;
  margin: 0 0 30px;
  padding: 38px 42px;
  border-radius: var(--mm-radius-lg);
  background: var(--mm-blue);
  color: var(--mm-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-polished-welcome h1 {
  margin: 0;
  max-width: none;
  color: var(--mm-ink);
  font-size: clamp(36px, 3.2vw, 46px);
  font-weight: 900;
  line-height: 0.98;
}

.dashboard-polished-welcome h1 span {
  display: inline;
}

.dashboard-polished-welcome h1 b {
  font-family: var(--mm-font);
  font-size: 0.72em;
  margin-left: 12px;
  vertical-align: 0.03em;
}

.dashboard-polished-welcome p {
  margin: 14px 0 0;
  color: var(--mm-ink);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.32;
}

.customer-designs-heading {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-designs-heading h2,
.dashboard-polished-designs h2 {
  margin: 0;
  color: var(--mm-white);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.customer-empty-designs,
.dashboard-polished-empty {
  min-height: 252px;
  padding: 38px 24px;
  border: 1px solid var(--mm-border-soft);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.customer-empty-icon {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1;
}

.customer-empty-designs h3 {
  margin: 0;
  color: var(--mm-white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
}

.customer-empty-designs p {
  margin: 12px 0 22px;
  color: var(--mm-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.customer-create-button {
  min-width: 190px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.customer-create-button:hover {
  background: var(--mm-blue-hover);
}

.customer-create-button span {
  font-family: var(--mm-font);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.customer-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.customer-design-card {
  overflow: hidden;
  border: 1px solid var(--mm-border-soft);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
}

.customer-design-preview {
  min-height: 210px;
  background: var(--mm-page);
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-design-preview img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 14px;
}

.customer-design-preview span {
  color: var(--mm-muted);
  font-weight: 900;
}

.customer-design-body {
  padding: 18px;
}

.customer-design-body p {
  margin: 0 0 8px;
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 950;
}

.customer-design-body h3 {
  margin: 0;
  color: var(--mm-white);
  font-size: 18px;
  font-weight: 900;
}

.customer-design-specs {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.customer-design-specs span {
  padding: 9px 10px;
  border-radius: var(--mm-radius-sm);
  background: #0f171b;
  color: #9aa6ac;
  font-size: 12px;
  font-weight: 800;
}

.customer-design-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-design-actions a {
  min-height: 40px;
  border-radius: 9px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-design-actions a:first-child {
  border: 1px solid var(--mm-blue);
  background: transparent;
  color: var(--mm-blue);
}

/* Wizard page */
.wizard-polished-page {
  min-height: 100vh;
  background: var(--mm-black);
  color: var(--mm-white);
  padding-bottom: 64px;
  font-family: var(--mm-font);
}

.wizard-polished-page * {
  font-family: var(--mm-font);
  font-stretch: normal;
}

.wizard-polished-topbar {
  min-height: 68px;
  background: var(--mm-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 max(44px, calc((100vw - 1040px) / 2));
}

.wizard-back-link {
  justify-self: start;
}

.wizard-top-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-polished-topbar a,
.wizard-polished-topbar button {
  color: #6f7f87;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.wizard-polished-topbar a:hover,
.wizard-polished-topbar button:hover {
  color: var(--mm-blue);
}

.wizard-polished-topbar img {
  width: 92px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.wizard-polished-topbar .wizard-save-button {
  justify-self: end;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--mm-blue);
  border-radius: 7px;
  background: transparent;
  color: var(--mm-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-polished-progress,
.wizard-progress {
  width: 100%;
  margin: 0;
  padding: 8px max(44px, calc((100vw - 1040px) / 2)) 0;
  background: var(--mm-black);
  display: block;
}

.wizard-progress-track {
  width: 100%;
  display: grid;
  grid-template-columns: 16px 1fr 16px 1fr 16px;
  align-items: center;
  column-gap: 12px;
}

.wizard-progress-number {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #253238;
  color: var(--mm-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.wizard-progress-number.active {
  background: var(--mm-blue);
}

.wizard-progress-line {
  height: 1px;
  min-width: 0;
  background: #253238;
}

.wizard-progress-labels {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  color: #46545b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.wizard-progress-labels span:nth-child(1) {
  text-align: left;
}

.wizard-progress-labels span:nth-child(2) {
  text-align: center;
}

.wizard-progress-labels span:nth-child(3) {
  text-align: right;
}

.wizard-progress-labels .active {
  color: var(--mm-blue);
}

/* Legacy progress fallback, for pages still using old progress markup */
.wizard-progress-item {
  color: #46545b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wizard-progress-item.active {
  color: var(--mm-blue);
}

.wizard-progress-item > span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #253238;
  color: var(--mm-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
}

.wizard-progress-item.active > span {
  background: var(--mm-blue);
}

.wizard-polished-card {
  width: min(1040px, calc(100% - 56px));
  margin: 22px auto 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--mm-border-soft);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
}

.wizard-polished-heading {
  margin-bottom: 20px;
}

.wizard-polished-heading h1 {
  margin: 0;
  color: var(--mm-white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.wizard-polished-heading p {
  margin: 7px 0 0;
  color: var(--mm-muted-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.wizard-polished-form {
  width: 100%;
}

.wizard-main-grid {
  display: block;
}

.wizard-main-column {
  min-width: 0;
}

.wizard-step-block {
  margin-top: 18px;
}

.wizard-step-block:first-child {
  margin-top: 0;
}

.wizard-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.wizard-step-number {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 18px;
}

.wizard-step-title h2 {
  margin: 0;
  color: var(--mm-white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.wizard-product-grid-polished,
.wizard-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
    margin-top: 30px;
}

.wizard-shape-grid-polished,
.wizard-shape-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wizard-choice-card {
  position: relative;
  min-height: 106px;
  border: 1px solid var(--mm-border);
  border-radius: 9px;
  background: #111a1f;
  color: var(--mm-white);
  padding: 18px;
  cursor: pointer;
}

.wizard-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-choice-card strong {
  display: block;
  color: var(--mm-white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.wizard-choice-card p {
  margin: 8px 0 0;
  color: #c5d0d5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.wizard-choice-card small {
  display: block;
  margin-top: 14px;
  color: var(--mm-blue);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.wizard-choice-card.selected,
.wizard-choice-card:has(input:checked) {
  border-color: var(--mm-blue);
  background: linear-gradient(135deg, rgba(0, 168, 238, 0.16), rgba(17, 26, 31, 0.96));
  box-shadow: inset 0 0 0 1px rgba(0, 168, 238, 0.35);
}

.wizard-selected-check {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mm-blue);
  color: var(--mm-ink);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}

.wizard-choice-card.selected .wizard-selected-check,
.wizard-choice-card:has(input:checked) .wizard-selected-check {
  display: flex;
}

/* Wizard step 1 product cards */
.wizard-product-card {
  min-height: 178px;
  padding: 32px 30px 28px;
  border-radius: 12px;
  background: #111a1f;
}

.wizard-product-card.selected,
.wizard-product-card:has(input:checked) {
  border-color: var(--mm-blue);
  background: linear-gradient(135deg, rgba(0, 168, 238, 0.13), rgba(17, 26, 31, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(0, 168, 238, 0.45),
    0 0 0 1px rgba(0, 168, 238, 0.08);
}

.wizard-product-card .wizard-selected-check {
  right: -8px;
  top: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 0 0 4px #151f24;
}

.wizard-product-card strong {
  font-size: 19px;
  line-height: 1.15;
}

.wizard-product-card p {
  max-width: 420px;
  margin: 12px 0 0;
  color: #c4d0d5;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.wizard-popular-tag {
  position: absolute;
  left: 34px;
  top: -14px;
  min-height: 28px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 0 4px #151f24;
}

.wizard-popular-star {
  color: #ffd026;
  font-size: 10px;
}

.wizard-product-features {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.wizard-product-features li {
  position: relative;
  padding-left: 24px;
  color: #a9b7bd;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.wizard-product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--mm-blue);
  font-size: 14px;
  font-weight: 900;
}

.wizard-shape-card {
  min-height: 78px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.wizard-shape-card strong {
  font-size: 11px;
  line-height: 1.2;
}

.wizard-shape-icon {
  width: 36px;
  height: 18px;
  border: 2px solid #e8eef1;
  border-radius: 4px;
  margin-bottom: 8px;
  display: block;
}

.wizard-shape-icon.shape-rectangle-runner {
  width: 46px;
  height: 18px;
}

.wizard-shape-icon.shape-square {
  width: 28px;
  height: 28px;
}

.wizard-shape-icon.shape-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.wizard-two-column-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
}

.wizard-dark-select,
.wizard-dark-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--mm-border);
  border-radius: 7px;
  background: var(--mm-field);
  color: var(--mm-white);
  padding: 0 12px;
  outline: none;
  font-size: 12px;
  font-weight: 900;
}

.wizard-dark-select:focus,
.wizard-dark-input:focus {
  border-color: var(--mm-blue);
}

.wizard-quantity-control {
  display: block;
}

.wizard-quantity-input {
  appearance: auto;
  -moz-appearance: auto;
}

.wizard-color-row-polished,
.wizard-color-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.wizard-color-choice {
  position: relative;
  min-height: 31px;
  border: 1px solid var(--mm-border);
  border-radius: 999px;
  background: #111a1f;
  color: var(--mm-white);
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wizard-color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-color-choice span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
}

.wizard-color-choice.selected,
.wizard-color-choice:has(input:checked) {
  border-color: var(--mm-blue);
  background: #12313b;
}

.wizard-hidden-summary,
.wizard-summary-list,
.wizard-live-summary {
  display: none !important;
}

.wizard-form-footer {
  margin-top: 18px;
}

.wizard-form-footer .wizard-continue-button {
  min-height: 34px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .wizard-polished-topbar {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 12px;
  }

  .wizard-polished-topbar a,
  .wizard-polished-topbar button {
    font-size: 10px;
  }

  .wizard-polished-topbar img {
    width: 72px;
    max-height: 40px;
  }

  .wizard-polished-topbar .wizard-save-button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .wizard-polished-progress,
  .wizard-progress {
    padding: 7px 12px 0;
  }

  .wizard-progress-track {
    grid-template-columns: 14px 1fr 14px 1fr 14px;
    column-gap: 7px;
  }

  .wizard-progress-number {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .wizard-progress-labels {
    margin-top: 6px;
    font-size: 9px;
  }

  .wizard-polished-card {
    width: calc(100% - 24px);
    margin-top: 20px;
    padding: 18px 16px 20px;
  }

  .wizard-polished-heading h1 {
    font-size: 18px;
  }

  .wizard-polished-heading p {
    font-size: 11px;
  }

  .wizard-step-block {
    margin-top: 17px;
  }

  .wizard-step-number {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    font-size: 9px;
  }

  .wizard-step-title h2 {
    font-size: 12px;
  }

  .wizard-product-grid-polished,
  .wizard-product-grid {
    grid-template-columns: 1fr;
  }

  .wizard-shape-grid-polished,
  .wizard-shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .wizard-choice-card {
    min-height: 96px;
    padding: 15px;
  }

  .wizard-shape-card {
    min-height: 72px;
    padding: 12px 7px;
  }

  .wizard-shape-card strong {
    font-size: 9px;
    line-height: 1.15;
  }

  .wizard-shape-icon {
    transform: scale(0.86);
    margin-bottom: 5px;
  }

  .wizard-color-choice {
    min-height: 29px;
    padding: 0 10px;
    font-size: 10px;
  }

  .wizard-product-grid-polished,
  .wizard-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wizard-product-card {
    min-height: 220px;
    padding: 38px 24px 28px;
  }

  .wizard-product-card strong {
    font-size: 18px;
  }

  .wizard-product-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .wizard-popular-tag {
    left: 24px;
    top: -12px;
    min-height: 26px;
    padding: 0 14px;
    font-size: 10px;
  }

  .wizard-product-card .wizard-selected-check {
    width: 38px;
    height: 38px;
  }

  .wizard-product-features li {
    font-size: 12px;
  }
}


/* Editor */
/* v23: stretch compact mat color swatches across available width */
.editor-polished-page,
.editor-dark-page,
.editor-mockup-page {
  min-height: 100vh;
  background: var(--mm-black);
  color: var(--mm-white);
  padding-bottom: 54px;
}

.editor-mockup-topbar {
  min-height: 68px;
  background: var(--mm-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 max(44px, calc((100vw - 1280px) / 2));
}

.editor-mockup-topbar a,
.editor-mockup-topbar button {
  color: #6f7f87;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.editor-mockup-topbar a:hover,
.editor-mockup-topbar button:hover {
  color: var(--mm-blue);
}

.editor-mockup-topbar .wizard-back-link {
  justify-self: start;
}

.editor-mockup-topbar .wizard-top-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-mockup-topbar img {
  width: 92px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.editor-mockup-topbar .wizard-save-button {
  justify-self: end;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--mm-blue);
  border-radius: 7px;
  background: transparent;
  color: var(--mm-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-progress {
  width: 100%;
  margin: 0;
  padding: 8px max(44px, calc((100vw - 1280px) / 2)) 0;
  background: var(--mm-black);
  display: block;
}

.editor-mockup-workspace {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.editor-mockup-canvas-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editor-mockup-canvas-shell {
  width: 100%;
  min-height: 520px;
  padding: 22px;
  background: var(--mm-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-mat-frame {
  width: min(100%, 680px);
  min-height: 420px;
  padding: 22px;
  background: #333333;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.12),
    0 0 0 22px #090b0c,
    0 22px 70px rgba(0, 0, 0, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-mat-rectangle,
.editor-mat-runner {
  border-radius: 10px;
}

.editor-mat-square {
  width: min(100%, 540px);
  min-height: 540px;
  border-radius: 10px;
}

.editor-mat-circle {
  width: min(100%, 540px);
  min-height: 540px;
  border-radius: 999px;
}

.editor-mat-oval {
  border-radius: 999px;
}

.editor-fabric-shell,
.fabric-canvas-shell {
  width: 620px;
  height: 360px;
  max-width: 100%;
  overflow: hidden;
  background: transparent;
}

.editor-mat-square .editor-fabric-shell,
.editor-mat-square .fabric-canvas-shell,
.editor-mat-circle .editor-fabric-shell,
.editor-mat-circle .fabric-canvas-shell {
  width: 420px;
  height: 420px;
}

.editor-fabric-shell .canvas-container,
.editor-fabric-shell canvas,
.fabric-canvas-shell .canvas-container,
.fabric-canvas-shell canvas {
  display: block;
  max-width: none;
}

.upper-canvas {
  cursor: move;
}

.editor-helper-text {
  width: min(100%, 680px);
  margin: 22px auto 8px;
  color: var(--mm-muted-2);
  text-align: center;
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
}

.editor-rotate-button {
  min-height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #2d3a40;
  color: #aab7bd;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.editor-rotate-button:hover {
  color: var(--mm-white);
  background: #37464d;
}

.editor-tool-accordion {
  display: grid;
  gap: 12px;
}

.editor-accordion-card,
.editor-action-card {
  border: 1px solid var(--mm-border);
  border-radius: 12px;
  background: var(--mm-panel);
  overflow: hidden;
}

.editor-accordion-toggle {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--mm-white);
  cursor: pointer;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-size: 17px;
  font-weight: 950;
}

.editor-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.editor-accordion-icon {
  width: 18px;
  color: #dbe4e8;
  text-align: center;
  flex: 0 0 18px;
}

.editor-accordion-arrow {
  color: #dbe4e8;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.24s ease;
}

.editor-accordion-card.is-open .editor-accordion-arrow {
  transform: rotate(180deg);
}

.editor-accordion-body {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px;
  transform: translateY(-4px);
  transition:
    max-height 0.28s ease,
    opacity 0.2s ease,
    padding 0.28s ease,
    transform 0.28s ease;
}

.editor-accordion-card.is-open .editor-accordion-body {
  max-height: 760px;
  opacity: 1;
  padding: 0 16px 16px;
  transform: translateY(0);
}

.editor-color-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 8px;
  align-items: center;
}

.editor-color-swatch {
  width: 100%;
  height: 32px;
  min-height: 0;
  border: 1px solid #2a383e;
  border-radius: 7px;
  background: var(--swatch-color);
  cursor: pointer;
  box-shadow: inset 0 0 0 4px #111a1f;
}

.editor-color-swatch.is-selected,
.editor-color-swatch:hover {
  border-color: var(--mm-blue);
  box-shadow:
    inset 0 0 0 4px #111a1f,
    0 0 0 1px var(--mm-blue);
}

.editor-current-color {
  margin: 10px 0 0;
  color: var(--mm-muted-2);
  font-size: 11px;
  font-weight: 800;
}

.editor-upload-form {
  display: grid;
  gap: 10px;
}

.editor-upload-button,
.editor-dark-tool,
.editor-text-input,
.editor-font-select,
.editor-text-color-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--mm-border);
  border-radius: 8px;
  background: var(--mm-field);
  color: var(--mm-white);
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  font-weight: 900;
}

.editor-upload-button {
  border-color: var(--mm-blue);
  background: transparent;
  color: var(--mm-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-upload-button input,
.editor-dark-tool input {
  display: none;
}

.editor-upload-submit,
.editor-blue-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-upload-submit:hover,
.editor-blue-button:hover {
  background: var(--mm-blue-hover);
}

.editor-upload-note {
  margin: 8px 0 0;
  color: var(--mm-muted);
  font-size: 11px;
  font-weight: 800;
}

.editor-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--mm-border);
}

.editor-layers-heading {
  margin: 0 0 10px;
  color: #9aa6ac;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.editor-layer-list {
  display: grid;
  gap: 8px;
}

.editor-layer-row,
.editor-upload-row {
  min-height: 42px;
  border: 1px solid var(--mm-border);
  border-radius: 8px;
  background: #0f171b;
  padding: 8px;
  color: var(--mm-white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.editor-layer-row.is-active {
  border-color: var(--mm-blue);
  background: #12313b;
}

.editor-layer-name,
.editor-upload-row a {
  min-width: 0;
  color: var(--mm-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-upload-row a {
  color: var(--mm-blue);
}

.editor-layer-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.editor-layer-actions button,
.editor-upload-add-button {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa6ac;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.editor-layer-actions button:hover,
.editor-upload-add-button:hover {
  background: rgba(0, 168, 238, 0.14);
  color: var(--mm-blue);
}

.editor-empty-layer {
  color: var(--mm-muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-muted-note {
  margin: 0;
  color: var(--mm-muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-text-form {
  display: grid;
  gap: 12px;
}

.editor-text-input {
  min-height: 50px;
  font-size: 16px;
  font-weight: 700;
}

.editor-text-label {
  margin: 2px 0 0;
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 900;
}

.editor-text-color-input {
  min-height: 44px;
  padding: 4px;
}

.editor-font-size-row {
  display: grid;
  gap: 8px;
}

.editor-font-size-row input[type="range"] {
  width: 100%;
  accent-color: var(--mm-blue);
}

.editor-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-pattern-button {
  min-height: 112px;
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  background: #111a1f;
  color: var(--mm-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.editor-pattern-button:hover {
  border-color: var(--mm-blue);
  background: #12313b;
}


.editor-action-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.editor-outline-button {
  min-height: 40px;
  border: 1px solid var(--mm-blue);
  border-radius: 8px;
  background: transparent;
  color: var(--mm-blue);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-outline-button:hover {
  background: rgba(0, 168, 238, 0.12);
}

.editor-hidden-details,
.editor-dark-detail-list,
.editor-dark-card h2 + .editor-dark-detail-list {
  display: none;
}

@media (max-width: 980px) {
  .editor-mockup-workspace {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
  }

  .editor-tool-accordion {
    width: 100%;
  }

  .editor-mockup-canvas-shell {
    min-height: auto;
    padding: 18px 0;
  }

  .editor-mat-frame {
    width: min(100%, 520px);
    min-height: 320px;
    padding: 16px;
    box-shadow:
      inset 0 0 0 5px rgba(255, 255, 255, 0.12),
      0 0 0 16px #090b0c,
      0 18px 50px rgba(0, 0, 0, 0.5);
  }

  .editor-fabric-shell,
  .fabric-canvas-shell {
    width: 460px;
    height: 270px;
  }

  .editor-mat-square,
  .editor-mat-circle {
    width: min(100%, 420px);
    min-height: 420px;
  }

  .editor-mat-square .editor-fabric-shell,
  .editor-mat-square .fabric-canvas-shell,
  .editor-mat-circle .editor-fabric-shell,
  .editor-mat-circle .fabric-canvas-shell {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 760px) {
  .editor-mockup-topbar {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 12px;
  }

  .editor-mockup-topbar a,
  .editor-mockup-topbar button {
    font-size: 10px;
  }

  .editor-mockup-topbar img {
    width: 72px;
    max-height: 40px;
  }

  .editor-mockup-topbar .wizard-save-button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10px;
  }

  .editor-progress {
    padding: 7px 12px 0;
  }

  .editor-mockup-workspace {
    margin-top: 20px;
  }

  .editor-mat-frame {
    width: min(100%, 260px);
    min-height: 340px;
    padding: 12px;
    box-shadow:
      inset 0 0 0 4px rgba(255, 255, 255, 0.12),
      0 0 0 12px #090b0c,
      0 16px 40px rgba(0, 0, 0, 0.52);
  }

  .editor-fabric-shell,
  .fabric-canvas-shell {
    width: 210px;
    height: 300px;
  }

  .editor-mat-square,
  .editor-mat-circle {
    width: min(100%, 300px);
    min-height: 300px;
  }

  .editor-mat-square .editor-fabric-shell,
  .editor-mat-square .fabric-canvas-shell,
  .editor-mat-circle .editor-fabric-shell,
  .editor-mat-circle .fabric-canvas-shell {
    width: 230px;
    height: 230px;
  }

  .editor-color-grid {
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    gap: 7px;
  }

  .editor-color-swatch {
    width: 100%;
    height: 30px;
  }

  .editor-pattern-button {
    min-height: 96px;
  }
}

/* Review */
.review-dark-page {
  min-height: 100vh;
  background: var(--mm-black);
  color: var(--mm-white);
  padding-bottom: 60px;
}

.review-dark-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 0;
}

.review-dark-header {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  background: var(--mm-panel);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.review-dark-header p {
  margin: 0 0 8px;
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.review-dark-header h1 {
  margin: 0;
  color: var(--mm-white);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
}

.review-dark-header span {
  display: block;
  max-width: 720px;
  margin-top: 10px;
  color: var(--mm-muted-2);
  line-height: 1.5;
}

.review-dark-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

.review-dark-preview-card,
.review-dark-summary-card {
  padding: 22px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  background: var(--mm-panel);
}

.review-dark-card-title {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.review-dark-card-title h2,
.review-dark-summary-card h2 {
  margin: 0;
  color: var(--mm-white);
  font-size: 20px;
}

.review-dark-card-title span {
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 900;
}

.review-dark-preview-shell {
  min-height: 520px;
  padding: 26px;
  border-radius: var(--mm-radius);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    var(--mm-page);
  background-size: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-dark-preview-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
}

.review-dark-empty {
  min-height: 420px;
  padding: 28px;
  border-radius: var(--mm-radius);
  background: #0f171b;
  color: var(--mm-muted-2);
  text-align: center;
  font-weight: 900;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-dark-summary-card {
  position: sticky;
  top: 24px;
}

.review-dark-line {
  padding: 13px 0;
  border-bottom: 1px solid #26343a;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.review-dark-line span {
  color: var(--mm-muted);
  font-size: 12px;
  font-weight: 900;
}

.review-dark-line strong {
  color: var(--mm-white);
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
}

.review-dark-price {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #26343a;
  border-radius: 10px;
  background: #0f171b;
}

.review-dark-price span,
.review-dark-price strong {
  display: block;
}

.review-dark-price span {
  color: var(--mm-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-dark-price strong {
  margin-top: 6px;
  color: var(--mm-white);
  font-size: 16px;
  line-height: 1.3;
}

.review-checkout-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  cursor: pointer;
  font-weight: 950;
}

.review-checkout-button:hover {
  background: var(--mm-blue-hover);
}

.review-dark-note,
.review-dark-helper {
  margin: 16px 0 0;
  color: var(--mm-muted-2);
  font-size: 13px;
  line-height: 1.5;
}

/* Admin */
.admin-page,
.admin-detail-page {
  min-height: 100vh;
  padding: 26px 18px 70px;
  background: var(--mm-black);
  color: var(--mm-white);
}

.admin-header,
.admin-detail-header,
.admin-filter-bar,
.admin-detail-preview-card,
.admin-detail-card,
.admin-production-card,
.admin-upload-card {
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.admin-header,
.admin-detail-header,
.admin-filter-bar,
.admin-production-card,
.admin-design-grid,
.admin-detail-layout,
.admin-upload-card,
.admin-flash {
  width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.admin-header,
.admin-detail-header {
  margin-bottom: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.admin-header h1,
.admin-detail-header h1 {
  margin: 0;
  color: var(--mm-white);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.96;
}

.admin-created-date,
.admin-header-subtitle {
  margin: 8px 0 0;
  color: var(--mm-muted-2);
  font-size: 13px;
  font-weight: 800;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-header-actions a,
.admin-header-actions button,
.admin-actions a,
.admin-logout-button,
.admin-clear-link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--mm-blue);
  border-radius: 9px;
  background: transparent;
  color: var(--mm-blue);
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-header-actions .wizard-continue-button,
.admin-actions .wizard-continue-button {
  border-color: var(--mm-blue);
  background: var(--mm-blue);
  color: var(--mm-ink);
}

.admin-header-actions a:hover,
.admin-actions a:hover,
.admin-logout-button:hover,
.admin-clear-link:hover {
  background: #102c36;
}

.admin-header-actions .wizard-continue-button:hover,
.admin-actions .wizard-continue-button:hover {
  background: var(--mm-blue-hover);
}

.admin-filter-bar {
  margin-bottom: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto auto;
  gap: 12px;
  align-items: end;
}

.admin-filter-bar label {
  color: var(--mm-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  display: grid;
  gap: 7px;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-status-control select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--mm-border);
  border-radius: 9px;
  background: #0f171b;
  color: var(--mm-white);
  padding: 0 12px;
  outline: none;
  font-weight: 800;
}

.admin-filter-bar input:focus,
.admin-filter-bar select:focus,
.admin-status-control select:focus {
  border-color: var(--mm-blue);
}

.admin-result-count {
  min-height: 42px;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  font-weight: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-result-count span {
  font-size: 10px;
  text-transform: uppercase;
}

.admin-result-count strong {
  font-size: 16px;
}

.admin-design-grid {
  display: grid;
  gap: 16px;
}

.admin-design-card {
  overflow: hidden;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.admin-preview-box {
  min-height: 220px;
  background: var(--mm-page);
  color: var(--mm-muted);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-preview-box img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  padding: 14px;
}

.admin-design-body {
  padding: 22px;
}

.admin-card-top {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card-top h2 {
  margin: 0;
  color: var(--mm-white);
  font-size: 22px;
}

.status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #26343a;
  color: var(--mm-white);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-draft { background: #46545b; }
.status-reviewed { background: #2f6c7a; }
.status-ready_for_shopify { background: #9b6b43; }
.status-sent_to_checkout { background: #245c3c; }
.status-needs_revision { background: #8b3838; }
.status-archived { background: #343434; }

.admin-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-spec-grid div,
.admin-detail-line {
  padding: 12px;
  border: 1px solid #26343a;
  border-radius: 9px;
  background: #0f171b;
}

.admin-spec-grid span,
.admin-detail-line span {
  display: block;
  color: var(--mm-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-spec-grid strong,
.admin-detail-line strong {
  display: block;
  margin-top: 6px;
  color: var(--mm-white);
  font-size: 13px;
  line-height: 1.35;
}

.admin-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-empty-state {
  min-height: 260px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
  color: var(--mm-muted-2);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.admin-empty-state h2 {
  margin: 0;
  color: var(--mm-white);
}

.admin-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.admin-detail-preview-card,
.admin-detail-card,
.admin-upload-card,
.admin-production-card {
  padding: 20px;
}

.admin-detail-preview-card h2,
.admin-detail-card h2,
.admin-upload-card h2,
.admin-production-card h2 {
  margin: 0 0 14px;
  color: var(--mm-white);
  font-size: 20px;
}

.admin-detail-preview {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  padding: 16px;
  border-radius: var(--mm-radius);
  background: var(--mm-page);
}

.admin-detail-empty {
  min-height: 420px;
  border-radius: var(--mm-radius);
  background: var(--mm-page);
  color: var(--mm-muted);
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-detail-card {
  display: grid;
  gap: 10px;
}

.admin-status-control {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #26343a;
  border-radius: 10px;
  background: #0f171b;
}

.admin-status-control h3 {
  margin: 0 0 10px;
  color: var(--mm-white);
  font-size: 16px;
}

.admin-status-control select {
  background: var(--mm-panel);
  font-weight: 900;
}

.admin-status-control p {
  margin: 10px 0 0;
  color: var(--mm-muted-2);
  font-size: 12px;
  font-weight: 800;
}

.admin-upload-card,
.admin-production-card {
  margin-top: 18px;
}

.admin-upload-list {
  display: grid;
  gap: 10px;
}

.admin-file-link {
  padding: 12px;
  border: 1px solid #26343a;
  border-radius: 9px;
  background: #0f171b;
  color: var(--mm-blue);
  text-decoration: none;
  font-weight: 850;
  word-break: break-word;
}

.admin-file-link:hover {
  border-color: var(--mm-blue);
}

.admin-production-header {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-production-header p {
  margin: 7px 0 0;
  color: var(--mm-muted-2);
  font-size: 13px;
  line-height: 1.5;
}

.production-info-box {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid #26343a;
  border-radius: 10px;
  background: #0f171b;
  color: var(--mm-white);
  padding: 14px;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.65;
}

.admin-flash {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--mm-blue);
  color: var(--mm-ink);
  font-weight: 950;
}

/* Responsive */
@media (max-width: 980px) {
  .home-hero,
  .wizard-main-grid,
  .wizard-two-column-row,
  .editor-polished-workspace,
  .editor-dark-workspace,
  .review-dark-layout,
  .admin-detail-layout {
    grid-template-columns: 1fr;
  }

  .wizard-live-summary,
  .review-dark-summary-card {
    position: static;
  }

  .editor-progress {
    overflow-x: auto;
    grid-template-columns: max-content 60px max-content 60px max-content;
  }

  .editor-polished-canvas-panel,
  .editor-dark-canvas-panel {
    min-height: auto;
  }

  .editor-dark-canvas-header,
  .review-dark-header,
  .admin-header,
  .admin-detail-header,
  .admin-card-top,
  .admin-production-header {
    flex-direction: column;
  }

  .editor-canvas-stage-dark {
    min-height: 380px;
    padding: 18px;
  }

  .editor-mat-frame {
    min-height: 320px;
    padding: 18px;
  }


  .review-dark-preview-shell {
    min-height: 340px;
    padding: 16px;
  }

  .admin-header-actions {
    justify-content: flex-start;
  }

  .admin-filter-bar,
  .admin-design-card,
  .admin-spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 28px 16px;
  }

  .actions,
  .home-feature-row,
  .home-preview-details,
  .wizard-product-grid,
  .customer-design-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .auth-page,
  .auth-page-polished {
    align-items: flex-start;
    padding-top: 95px;
  }

  .auth-back {
    top: 24px;
    left: 20px;
  }

  .dashboard-polished-nav {
    min-height: 64px;
    padding: 9px 18px;
  }

  .customer-dashboard-logo img {
    width: 86px;
    max-height: 48px;
  }

  .customer-dashboard-user,
  .dashboard-header-actions {
    gap: 14px;
  }

  .dashboard-header-action {
    gap: 6px;
    font-size: 12px;
  }

  .dashboard-header-icon,
  .dashboard-header-icon svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .dashboard-polished-wrap {
    width: min(100% - 28px, 460px);
    padding: 24px 0 44px;
  }

  .dashboard-polished-welcome {
    min-height: 176px;
    margin-bottom: 28px;
    padding: 34px 28px;
  }

  .dashboard-polished-welcome h1 {
    font-size: 38px;
    line-height: 0.98;
  }

  .dashboard-polished-welcome h1 span {
    display: block;
  }

  .dashboard-polished-welcome h1 b {
    margin-left: 8px;
  }

  .dashboard-polished-welcome p {
    max-width: 260px;
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.18;
  }

  .customer-designs-heading {
    align-items: flex-start;
    flex-direction: row;
  }

  .customer-designs-heading h2,
  .dashboard-polished-designs h2 {
    font-size: 19px;
  }

  .customer-empty-designs,
  .dashboard-polished-empty {
    min-height: 252px;
    padding: 34px 20px;
  }

  .customer-empty-icon {
    font-size: 42px;
  }

  .customer-empty-designs h3 {
    font-size: 20px;
  }

  .customer-empty-designs p {
    max-width: 230px;
    font-size: 15px;
  }

  .customer-create-button {
    min-width: 0;
    min-height: 38px;
    padding: 0 18px;
    font-size: 16px;
  }

  .editor-polished-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: start;
    padding: 14px 18px;
  }

  .editor-polished-topbar .editor-small-link {
    justify-self: start;
  }
}

/* Editor pass 1: split image/text layer lists and icon controls */
.editor-layer-row.is-hidden .editor-layer-name {
  opacity: 0.55;
}

.editor-layer-row.is-locked .editor-layer-name::after {
  content: " locked";
  color: var(--mm-muted);
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
}

.editor-layer-actions {
  gap: 3px;
}

.editor-layer-icon-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa6ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-layer-icon-button svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editor-layer-icon-button.editor-layer-up svg,
.editor-layer-icon-button.editor-layer-down svg {
  fill: currentColor;
  stroke: none;
}

.editor-layer-icon-button:hover:not(:disabled) {
  color: var(--mm-blue);
  background: rgba(0, 168, 238, 0.14);
}

.editor-layer-icon-button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.editor-layer-row.is-active .editor-layer-icon-button {
  color: #c8f4ff;
}

.editor-layer-row.is-active .editor-layer-icon-button:hover:not(:disabled) {
  color: var(--mm-blue);
}


/* Editor v17: clearer delete controls and canvas-object delete handle */
.editor-layer-icon-button.editor-layer-trash {
  color: var(--mm-blue);
  background: rgba(0, 168, 238, 0.12);
}

.editor-layer-icon-button.editor-layer-trash:hover:not(:disabled) {
  color: var(--mm-ink);
  background: var(--mm-blue);
}

.editor-layer-row.is-hidden,
.editor-layer-row.is-locked {
  display: grid;
}


.editor-toast-popup {
  cursor: pointer;
}

.editor-toast-popup[hidden] {
  display: none !important;
}


/* Editor v20: one fixed pattern at a time */
.editor-pattern-button.is-active {
  border-color: var(--mm-blue);
  background: var(--mm-blue);
  color: var(--mm-ink);
}

.editor-pattern-button.is-active:hover {
  background: var(--mm-blue-hover);
  color: var(--mm-ink);
}

/* Review page fixed v31 */
/* Review */
.review-mockup-page,
.review-dark-page {
  min-height: 100vh;
  background: var(--mm-black);
  color: var(--mm-white);
  padding-bottom: 62px;
}

.review-mockup-topbar .wizard-save-button {
  justify-self: end;
}

.review-progress .wizard-progress-line.active {
  background: var(--mm-blue);
}

.review-mockup-card {
  width: min(940px, calc(100% - 44px));
  margin: 26px auto 0;
  padding: 24px;
  border: 1px solid var(--mm-border-soft);
  border-radius: var(--mm-radius-lg);
  background: var(--mm-panel);
}

.review-mockup-heading {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.review-mockup-heading h1 {
  margin: 0;
  color: var(--mm-white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.review-mockup-heading p {
  margin: 8px 0 0;
  color: var(--mm-muted-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.review-mockup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.review-mockup-preview-column h2,
.review-mockup-spec-card h2 {
  margin: 0 0 12px;
  color: var(--mm-white);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.review-mockup-preview-frame {
  padding: 18px;
  border-radius: 8px;
  background: var(--mm-black);
}

.review-mockup-preview-inner {
  min-height: 300px;
  padding: 26px;
  border-radius: 4px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    var(--mm-page);
  background-size: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-mockup-preview-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.review-mockup-fallback {
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-mockup-fallback span {
  color: var(--mm-white);
  font-size: 28px;
  font-weight: 900;
}

.review-mockup-spec-card {
  padding: 18px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  background: var(--mm-card);
}

.review-mockup-spec-list {
  padding: 14px 16px;
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  background: #1c262b;
  display: grid;
  gap: 11px;
}

.review-mockup-spec-list div,
.review-mockup-quantity-row,
.review-mockup-price {
  border-bottom: 1px solid #2a383e;
  padding-bottom: 10px;
}

.review-mockup-spec-list div:last-child,
.review-mockup-quantity-row,
.review-mockup-price {
  border-bottom: 0;
}

.review-mockup-spec-list span,
.review-mockup-quantity-row span,
.review-mockup-price span {
  display: block;
  color: var(--mm-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.review-mockup-spec-list strong,
.review-mockup-quantity-row strong {
  display: block;
  margin-top: 6px;
  color: var(--mm-white);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.review-mockup-quantity-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.review-mockup-quantity-row strong {
  margin-top: 0;
}

.review-mockup-price {
  margin-top: 14px;
  padding: 0;
}

.review-mockup-price strong {
  display: block;
  margin-top: 6px;
  color: var(--mm-blue);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.review-mockup-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 12px;
  align-items: center;
}

.review-mockup-outline-button,
.review-mockup-checkout-button,
.review-checkout-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.review-mockup-outline-button {
  border: 1px solid var(--mm-blue);
  background: transparent;
  color: var(--mm-blue);
}

.review-mockup-outline-button:hover {
  background: rgba(0, 168, 238, 0.12);
}

.review-mockup-checkout-button,
.review-checkout-button {
  border: 1px solid var(--mm-blue);
  background: var(--mm-blue);
  color: var(--mm-ink);
}

.review-mockup-checkout-button:hover,
.review-checkout-button:hover {
  background: var(--mm-blue-hover);
}

.review-dark-wrap,
.review-dark-header,
.review-dark-layout,
.review-dark-preview-card,
.review-dark-summary-card,
.review-dark-card-title,
.review-dark-preview-shell,
.review-dark-note,
.review-dark-helper {
  max-width: 100%;
}

@media (max-width: 900px) {
  .review-mockup-card {
    width: min(520px, calc(100% - 24px));
    margin-top: 20px;
    padding: 18px 16px;
  }

  .review-mockup-grid,
  .review-mockup-actions {
    grid-template-columns: 1fr;
  }

  .review-mockup-preview-inner {
    min-height: 280px;
    padding: 18px;
  }

  .review-mockup-preview-image {
    max-height: 330px;
  }
}

@media (max-width: 520px) {
  .review-mockup-heading h1 {
    font-size: 20px;
  }

  .review-mockup-preview-frame {
    padding: 12px;
  }

  .review-mockup-preview-inner {
    min-height: 240px;
    padding: 12px;
  }

  .review-mockup-spec-card {
    padding: 16px;
  }
}
