.vmgs-page,
.vmgs-studio,
.vmgs-launcher,
.vmgs-editor-page {
  --vmgs-ink: #162132;
  --vmgs-muted: #667085;
  --vmgs-line: rgba(15, 23, 42, 0.12);
  --vmgs-line-strong: rgba(15, 23, 42, 0.18);
  --vmgs-red: #c64f41;
  --vmgs-red-deep: #9d372c;
  --vmgs-blue: #49b7d8;
  --vmgs-blue-soft: rgba(73, 183, 216, 0.14);
  --vmgs-safe: #8dcf98;
  --vmgs-safe-soft: rgba(141, 207, 152, 0.18);
  --vmgs-paper: #fffdfa;
  --vmgs-panel: rgba(255, 255, 255, 0.94);
  --vmgs-panel-soft: rgba(248, 244, 238, 0.94);
  --vmgs-stage: #f6f4f1;
  --vmgs-bg: #f4f5f7;
  --vmgs-shadow: 0 18px 42px rgba(27, 29, 36, 0.08);
  --vmgs-shadow-soft: 0 10px 24px rgba(27, 29, 36, 0.06);
  color: var(--vmgs-ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.vmgs-page *,
.vmgs-studio *,
.vmgs-launcher *,
.vmgs-editor-page * {
  box-sizing: border-box;
}

.vmgs-page .btn,
.vmgs-studio .btn,
.vmgs-launcher .btn,
.vmgs-editor-page .btn {
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-height: 46px;
  padding: 0.82rem 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.vmgs-page .btn:hover,
.vmgs-studio .btn:hover,
.vmgs-launcher .btn:hover,
.vmgs-editor-page .btn:hover {
  transform: translateY(-1px);
}

.vmgs-page .btn-primary,
.vmgs-studio .btn-primary,
.vmgs-launcher .btn-primary,
.vmgs-editor-page .btn-primary {
  background: linear-gradient(135deg, #2ea6d4, #2097c6);
  box-shadow: 0 12px 26px rgba(46, 166, 212, 0.2);
  color: #fff;
}

.vmgs-page .btn-primary:hover,
.vmgs-studio .btn-primary:hover,
.vmgs-launcher .btn-primary:hover,
.vmgs-editor-page .btn-primary:hover {
  background: linear-gradient(135deg, #35b0df, #248fbc);
  color: #fff;
}

.vmgs-page .btn-default,
.vmgs-studio .btn-default,
.vmgs-launcher .btn-default,
.vmgs-editor-page .btn-default {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--vmgs-line-strong);
  color: var(--vmgs-ink);
}

.vmgs-page .btn-default:hover,
.vmgs-studio .btn-default:hover,
.vmgs-launcher .btn-default:hover,
.vmgs-editor-page .btn-default:hover {
  background: #fff;
  border-color: rgba(73, 183, 216, 0.28);
}

.vmgs-kicker {
  color: var(--vmgs-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.vmgs-page h1,
.vmgs-page h2,
.vmgs-page h3,
.vmgs-studio h2,
.vmgs-studio h3,
.vmgs-launcher h3,
.vmgs-editor-page h1,
.vmgs-editor-page h2,
.vmgs-editor-page h3 {
  color: var(--vmgs-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}

.vmgs-copy,
.vmgs-lead,
.vmgs-ref,
.vmgs-sidecopy,
.vmgs-page p,
.vmgs-studio p,
.vmgs-editor-page p {
  color: var(--vmgs-muted);
  line-height: 1.55;
}

.vmgs-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 18px 72px;
}

.vmgs-hero {
  align-items: end;
  background:
    radial-gradient(circle at top right, rgba(73, 183, 216, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f5f7fb 48%, #eef4fa);
  border: 1px solid rgba(73, 183, 216, 0.12);
  border-radius: 34px;
  box-shadow: var(--vmgs-shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.8fr);
  margin-bottom: 28px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 40px);
  position: relative;
}

.vmgs-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(73, 183, 216, 0.08));
  border-left: 1px solid rgba(255, 255, 255, 0.64);
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: min(32%, 340px);
}

.vmgs-hero > * {
  position: relative;
  z-index: 1;
}

.vmgs-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 12px;
}

.vmgs-hero-card {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid var(--vmgs-line);
  border-radius: 24px;
  box-shadow: var(--vmgs-shadow-soft);
  display: grid;
  align-content: center;
  font-weight: 700;
  gap: 8px;
  min-height: 150px;
  padding: 22px 24px;
}

.vmgs-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vmgs-card,
.vmgs-launcher,
.vmgs-meta-card,
.vmgs-order-card,
.vmgs-preview-card,
.vmgs-sidebar,
.vmgs-canvas-shell {
  background: var(--vmgs-panel);
  border: 1px solid var(--vmgs-line);
  box-shadow: var(--vmgs-shadow-soft);
}

.vmgs-card {
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vmgs-card-media {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.94), transparent 44%),
    linear-gradient(135deg, #f0f4f8, #f7fafc);
  border-bottom: 1px solid var(--vmgs-line);
  display: grid;
  overflow: hidden;
  place-items: center;
}

.vmgs-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vmgs-card-placeholder {
  color: rgba(22, 33, 50, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vmgs-card-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.vmgs-card-top,
.vmgs-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.vmgs-actions {
  flex-wrap: wrap;
}

.vmgs-chip {
  align-items: center;
  background: rgba(73, 183, 216, 0.12);
  border: 1px solid rgba(73, 183, 216, 0.2);
  border-radius: 999px;
  color: #2f8fb1;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.42rem 0.7rem;
  text-transform: uppercase;
}

.vmgs-price {
  color: var(--vmgs-ink);
  font-size: 1.04rem;
}

.vmgs-launcher {
  align-items: center;
  border-radius: 24px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 18px 0;
  padding: 18px 20px;
}

.vmgs-launcher-copy {
  display: grid;
  gap: 8px;
}

.vmgs-launcher-copy p {
  margin: 0;
}

.vmgs-editor-page {
  background: var(--vmgs-bg);
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  padding: 0;
  position: relative;
  right: 50%;
  width: 100vw;
}

.vmgs-editor-form {
  margin: 0;
}

.vmgs-editor-form--immersive {
  min-height: 100vh;
}

.vmgs-appbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--vmgs-line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1.3fr) auto minmax(260px, 1fr);
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.vmgs-appbar-group {
  align-items: center;
  display: flex;
  gap: 14px;
}

.vmgs-appbar-group--tools {
  justify-content: center;
}

.vmgs-appbar-group--actions {
  justify-content: flex-end;
}

.vmgs-brand {
  align-items: center;
  color: var(--vmgs-ink);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.vmgs-brand-mark {
  align-items: center;
  background: linear-gradient(180deg, #4bc0dc, #1f9bc6);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.vmgs-product-pill {
  background: rgba(245, 247, 250, 0.96);
  border: 1px solid var(--vmgs-line);
  border-radius: 16px;
  display: grid;
  gap: 3px;
  min-height: 52px;
  min-width: 280px;
  padding: 8px 14px;
}

.vmgs-product-pill strong {
  font-size: 0.98rem;
}

.vmgs-product-pill span {
  color: var(--vmgs-muted);
  font-size: 0.82rem;
}

.vmgs-action {
  align-items: center;
  background: rgba(245, 247, 250, 0.98);
  border: 1px solid var(--vmgs-line);
  border-radius: 14px;
  color: var(--vmgs-ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.vmgs-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.vmgs-action--ghost {
  background: #fff;
}

.vmgs-app-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: 74px 320px minmax(0, 1fr) 340px;
  min-height: calc(100vh - 68px);
  padding: 16px;
}

.vmgs-tool-rail,
.vmgs-sidebar,
.vmgs-canvas-shell,
.vmgs-sidecar {
  min-height: 0;
}

.vmgs-tool-rail {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--vmgs-line);
  border-radius: 24px;
  box-shadow: var(--vmgs-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px;
}

.vmgs-tool {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 18px;
  color: var(--vmgs-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 8px;
  min-height: 74px;
  padding: 12px 8px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vmgs-tool:hover,
.vmgs-tool.is-active {
  background: var(--vmgs-blue-soft);
  color: #2092b7;
  transform: translateY(-1px);
}

.vmgs-tool-icon {
  align-items: center;
  background: rgba(73, 183, 216, 0.14);
  border-radius: 14px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.vmgs-sidebar {
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vmgs-tool-panel {
  display: none;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
}

.vmgs-tool-panel.is-active {
  display: block;
}

.vmgs-sidebar-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vmgs-sidebar-expand {
  background: rgba(245, 247, 250, 1);
  border: 1px solid var(--vmgs-line);
  border-radius: 12px;
  color: var(--vmgs-muted);
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0.5rem 0.8rem;
}

.vmgs-sidecopy {
  margin: 0 0 16px;
}

.vmgs-search {
  display: block;
  margin-bottom: 18px;
}

.vmgs-search input {
  background: #fff;
  border: 1px solid var(--vmgs-line-strong);
  border-radius: 16px;
  color: var(--vmgs-ink);
  min-height: 48px;
  outline: none;
  padding: 0.8rem 1rem;
  width: 100%;
}

.vmgs-search input:focus {
  border-color: rgba(73, 183, 216, 0.34);
  box-shadow: 0 0 0 3px rgba(73, 183, 216, 0.12);
}

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

.vmgs-template-card {
  background: #fff;
  border: 1px solid var(--vmgs-line);
  border-radius: 18px;
  color: var(--vmgs-ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  padding: 10px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vmgs-template-card:hover,
.vmgs-template-card.is-active {
  border-color: rgba(73, 183, 216, 0.26);
  box-shadow: 0 10px 20px rgba(27, 29, 36, 0.08);
  transform: translateY(-1px);
}

.vmgs-template-art {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  display: block;
  position: relative;
}

.vmgs-template-art::before,
.vmgs-template-art::after {
  content: "";
  position: absolute;
}

.vmgs-template-art--flower {
  background: linear-gradient(135deg, #25303f, #111827);
}

.vmgs-template-art--flower::before {
  background: radial-gradient(circle, #fff 0 32%, transparent 33%);
  border: 10px solid #f6a313;
  border-radius: 999px;
  height: 54px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
}

.vmgs-template-art--holiday {
  background: linear-gradient(135deg, #f8dad5, #eef3fd);
}

.vmgs-template-art--holiday::before {
  background: linear-gradient(135deg, #3650a8, #5784d6);
  clip-path: polygon(0 100%, 45% 10%, 58% 38%, 100% 0, 100% 100%);
  inset: 16px 18px 20px 18px;
}

.vmgs-template-art--holiday::after {
  background: linear-gradient(180deg, #ffad7a, #ec7d53);
  border-radius: 999px;
  height: 34px;
  right: 16px;
  top: 18px;
  width: 34px;
}

.vmgs-template-art--boxing {
  background: linear-gradient(135deg, #f6e2d4, #eed6ca);
}

.vmgs-template-art--boxing::before {
  background: radial-gradient(circle at 50% 34%, #d74d57 0 36%, #8b1d22 37% 60%, transparent 61%);
  inset: 14px;
}

.vmgs-template-art--barber {
  background: linear-gradient(135deg, #dbe9e7, #b7d3d0);
}

.vmgs-template-art--barber::before {
  background: linear-gradient(180deg, #44535a, #2d3a41);
  border-radius: 999px 999px 8px 8px;
  height: 58px;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 46px;
}

.vmgs-template-art--barber::after {
  background: linear-gradient(135deg, #5d7f84, #92b3af);
  border-radius: 999px;
  bottom: 18px;
  height: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
}

.vmgs-template-art--jungle {
  background: linear-gradient(135deg, #f7f0b4, #eaf5cf);
}

.vmgs-template-art--jungle::before {
  background: linear-gradient(180deg, #57aa43, #317b32);
  border-radius: 18px 18px 30px 30px;
  height: 72px;
  left: 36px;
  top: 12px;
  width: 46px;
}

.vmgs-template-art--heart {
  background: linear-gradient(135deg, #fff0f2, #ffe3e7);
}

.vmgs-template-art--heart::before,
.vmgs-template-art--heart::after {
  background: #f84f5c;
  border-radius: 999px 999px 0 0;
  height: 34px;
  top: 30px;
  width: 34px;
}

.vmgs-template-art--heart::before {
  left: 28px;
  transform: rotate(-45deg);
}

.vmgs-template-art--heart::after {
  left: 44px;
  transform: rotate(45deg);
}

.vmgs-template-name {
  font-size: 0.84rem;
  font-weight: 800;
}

.vmgs-field-stack {
  display: grid;
  gap: 14px;
}

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

.vmgs-field {
  display: grid;
  gap: 8px;
}

.vmgs-label {
  color: var(--vmgs-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.vmgs-studio .form-control,
.vmgs-page .form-control,
.vmgs-editor-page .form-control {
  background: #fff;
  border: 1px solid var(--vmgs-line-strong);
  border-radius: 16px;
  box-shadow: none;
  color: var(--vmgs-ink);
  min-height: 48px;
  outline: none;
  padding: 0.75rem 0.95rem;
  width: 100%;
}

.vmgs-studio .form-control:focus,
.vmgs-page .form-control:focus,
.vmgs-editor-page .form-control:focus {
  border-color: rgba(73, 183, 216, 0.34);
  box-shadow: 0 0 0 3px rgba(73, 183, 216, 0.12);
}

.vmgs-studio input[type="range"] {
  accent-color: #2ea6d4;
  min-height: auto;
  padding: 0;
}

.vmgs-upload-box {
  background: linear-gradient(135deg, #f7fbfe, #eef6fb);
  border: 1px dashed rgba(73, 183, 216, 0.36);
  border-radius: 20px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
}

.vmgs-upload-title {
  color: var(--vmgs-ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.vmgs-upload-copy {
  color: var(--vmgs-muted);
  font-size: 0.86rem;
}

.vmgs-swatch-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.vmgs-swatch {
  align-items: center;
  background: #fff;
  border: 1px solid var(--vmgs-line);
  border-radius: 18px;
  color: var(--vmgs-ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vmgs-swatch:hover,
.vmgs-swatch.is-active {
  border-color: rgba(73, 183, 216, 0.26);
  box-shadow: 0 10px 22px rgba(27, 29, 36, 0.08);
  transform: translateY(-1px);
}

.vmgs-swatch-preview {
  border: 1px solid var(--vmgs-line);
  border-radius: 14px;
  flex: 0 0 52px;
  height: 52px;
}

.vmgs-toggle {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
}

.vmgs-toggle input {
  accent-color: #2ea6d4;
  height: 18px;
  margin: 0;
  width: 18px;
}

.vmgs-meta-stack {
  display: grid;
  gap: 12px;
}

.vmgs-meta-card {
  border-radius: 20px;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
}

.vmgs-meta-card strong {
  font-size: 0.9rem;
}

.vmgs-canvas-shell {
  border-radius: 30px;
  display: grid;
  gap: 16px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 18px 18px 16px;
}

.vmgs-canvas-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.vmgs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vmgs-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(73, 183, 216, 0.16);
  border-radius: 999px;
  color: #4b6471;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
}

.vmgs-badge--safe {
  background: var(--vmgs-safe-soft);
  border-color: rgba(141, 207, 152, 0.26);
}

.vmgs-badge--bleed {
  background: var(--vmgs-blue-soft);
}

.vmgs-stage-scroller {
  overflow: auto;
}

.vmgs-stage-scale {
  margin: 0 auto;
  transform-origin: top center;
  width: 100%;
}

.vmgs-stage-board {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.94), transparent 28%),
    linear-gradient(180deg, #fafafa, #f2f3f5 58%, #eeeff3);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  min-height: 760px;
  overflow: hidden;
  padding: 88px 70px 100px;
  position: relative;
}

.vmgs-mug-ghost {
  inset: 104px 236px 160px 236px;
  pointer-events: none;
  position: absolute;
}

.vmgs-mug-ghost__body {
  background: linear-gradient(180deg, rgba(233, 233, 234, 0.68), rgba(215, 216, 219, 0.82));
  border-radius: 18px 18px 24px 24px;
  bottom: 30px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 340px;
  top: 80px;
}

.vmgs-mug-ghost__top {
  background:
    radial-gradient(circle at 50% 45%, rgba(177, 177, 181, 0.55), rgba(239, 239, 241, 0.88) 62%, rgba(215, 215, 217, 0.88) 78%, rgba(255, 255, 255, 0) 79%);
  border-radius: 999px;
  height: 110px;
  left: 50%;
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  width: 354px;
}

.vmgs-mug-ghost__inner {
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 251, 252, 0.96), rgba(216, 217, 219, 0.84) 58%, rgba(255, 255, 255, 0) 72%);
  border-radius: 999px;
  height: 84px;
  left: 50%;
  position: absolute;
  top: 38px;
  transform: translateX(-50%);
  width: 286px;
}

.vmgs-mug-ghost__base {
  background: radial-gradient(circle at center, rgba(207, 208, 212, 0.78), rgba(255, 255, 255, 0) 72%);
  border-radius: 999px;
  bottom: 0;
  height: 52px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 280px;
}

.vmgs-mug-ghost__shadow {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.16), rgba(255, 255, 255, 0) 68%);
  border-radius: 999px;
  bottom: 2px;
  height: 54px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 420px;
}

.vmgs-design-zone {
  align-items: center;
  border: 2px solid rgba(73, 183, 216, 0.6);
  border-radius: 6px;
  display: flex;
  inset: 136px 64px 164px;
  justify-content: center;
  overflow: hidden;
  position: absolute;
}

.vmgs-design-zone.is-over {
  background: rgba(73, 183, 216, 0.06);
}

.vmgs-canvas {
  display: block;
  height: auto;
  max-width: 100%;
  touch-action: none;
  width: 100%;
}

.vmgs-canvas:hover {
  cursor: grab;
}

.vmgs-canvas.is-dragging {
  cursor: grabbing;
}

.vmgs-drop-panel {
  align-items: center;
  display: grid;
  gap: 10px;
  justify-items: center;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.vmgs-drop-panel .btn {
  min-width: 164px;
  pointer-events: auto;
}

.vmgs-drop-panel p {
  font-size: 0.92rem;
  margin: 0;
}

.vmgs-measure {
  color: var(--vmgs-muted);
  font-size: 0.82rem;
  font-weight: 700;
  position: absolute;
}

.vmgs-measure::before,
.vmgs-measure::after {
  background: rgba(15, 23, 42, 0.4);
  content: "";
  position: absolute;
}

.vmgs-measure--vertical {
  align-items: center;
  bottom: 196px;
  display: flex;
  height: 374px;
  left: 28px;
  writing-mode: vertical-rl;
}

.vmgs-measure--vertical::before {
  height: 100%;
  left: 15px;
  top: 0;
  width: 1px;
}

.vmgs-measure--vertical::after {
  height: 1px;
  left: 9px;
  top: 0;
  width: 13px;
}

.vmgs-measure--horizontal {
  bottom: 88px;
  left: 140px;
  padding-top: 16px;
  text-align: center;
  width: calc(100% - 280px);
}

.vmgs-measure--horizontal::before {
  height: 1px;
  left: 0;
  top: 4px;
  width: 100%;
}

.vmgs-measure--horizontal::after {
  height: 13px;
  left: 0;
  top: -2px;
  width: 1px;
}

.vmgs-stage-footer {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
}

.vmgs-layouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vmgs-layout {
  background: #fff;
  border: 1px solid var(--vmgs-line);
  border-radius: 999px;
  color: var(--vmgs-ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  transition: all 0.18s ease;
}

.vmgs-layout:hover,
.vmgs-layout.is-active {
  background: var(--vmgs-blue-soft);
  border-color: rgba(73, 183, 216, 0.26);
  color: #2194b9;
}

.vmgs-stage-caption {
  align-items: center;
  color: var(--vmgs-muted);
  display: flex;
  font-size: 0.88rem;
  gap: 16px;
  justify-content: center;
}

.vmgs-stage-caption strong {
  color: var(--vmgs-ink);
}

.vmgs-stage-status {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--vmgs-line);
  border-radius: 999px;
  display: inline-flex;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
}

.vmgs-zoom-controls {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--vmgs-line);
  border-radius: 18px;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
}

.vmgs-zoom-btn {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 12px;
  color: var(--vmgs-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.vmgs-zoom-value {
  color: var(--vmgs-ink);
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 58px;
  text-align: center;
}

.vmgs-sidecar {
  display: grid;
  gap: 16px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.vmgs-preview-card,
.vmgs-order-card {
  border-radius: 28px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.vmgs-preview-head,
.vmgs-order-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.vmgs-viewer-wrap {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), transparent 40%),
    linear-gradient(180deg, #f6f8fa, #edf1f6 58%, #e6ebf1);
  border: 1px solid var(--vmgs-line);
  border-radius: 24px;
  min-height: 330px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.vmgs-viewer-wrap::after {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.16), rgba(255, 255, 255, 0) 68%);
  bottom: 18px;
  content: "";
  height: 48px;
  left: 18%;
  position: absolute;
  right: 18%;
}

.vmgs-viewer {
  height: 304px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.vmgs-viewer-fallback {
  align-items: center;
  color: var(--vmgs-muted);
  display: flex;
  font-size: 0.92rem;
  height: 100%;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.vmgs-order-material {
  align-items: center;
  background: linear-gradient(135deg, #f8fbfd, #f4f7fb);
  border: 1px solid var(--vmgs-line);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.vmgs-material-sample {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  display: inline-flex;
  height: 18px;
  width: 18px;
}

.vmgs-wrap-sample {
  background: #f4f1eb;
}

.vmgs-accent-sample {
  background: #d42423;
}

.vmgs-material-value {
  font-size: 0.92rem;
}

.vmgs-summary {
  border: 1px solid var(--vmgs-line);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.vmgs-summary-line {
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  padding-bottom: 12px;
}

.vmgs-summary-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vmgs-summary-line strong {
  color: var(--vmgs-ink);
}

.vmgs-summary-line--total {
  font-size: 1rem;
}

.vmgs-submit {
  width: 100%;
}

.vmgs-page .alert-info {
  background: linear-gradient(135deg, #f7fbff, #edf4fb);
  border-color: rgba(73, 183, 216, 0.18);
  border-radius: 22px;
  color: var(--vmgs-ink);
  padding: 20px 22px;
}

@media (max-width: 1380px) {
  .vmgs-app-shell {
    grid-template-columns: 68px 290px minmax(0, 1fr) 312px;
  }

  .vmgs-stage-board {
    min-height: 700px;
    padding: 84px 52px 94px;
  }
}

@media (max-width: 1220px) {
  .vmgs-app-shell {
    grid-template-columns: 68px 280px minmax(0, 1fr);
    grid-template-areas:
      "tools sidebar stage"
      "tools sidebar sidecar";
  }

  .vmgs-tool-rail {
    grid-area: tools;
  }

  .vmgs-sidebar {
    grid-area: sidebar;
  }

  .vmgs-canvas-shell {
    grid-area: stage;
  }

  .vmgs-sidecar {
    grid-area: sidecar;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 1040px) {
  .vmgs-appbar {
    grid-template-columns: 1fr;
  }

  .vmgs-appbar-group,
  .vmgs-appbar-group--tools,
  .vmgs-appbar-group--actions {
    justify-content: flex-start;
  }

  .vmgs-app-shell {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .vmgs-tool-rail {
    flex-direction: row;
    overflow-x: auto;
  }

  .vmgs-tool {
    flex: 0 0 92px;
  }

  .vmgs-sidecar {
    grid-template-columns: 1fr;
  }

  .vmgs-stage-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 860px) {
  .vmgs-page {
    padding: 20px 12px 54px;
  }

  .vmgs-hero {
    grid-template-columns: 1fr;
  }

  .vmgs-hero::after {
    display: none;
  }

  .vmgs-template-grid,
  .vmgs-field-grid {
    grid-template-columns: 1fr;
  }

  .vmgs-stage-board {
    min-height: 620px;
    padding: 72px 22px 80px;
  }

  .vmgs-design-zone {
    inset: 120px 22px 142px;
  }

  .vmgs-mug-ghost {
    inset: 118px 62px 148px 62px;
  }

  .vmgs-measure--horizontal {
    left: 72px;
    width: calc(100% - 144px);
  }
}

@media (max-width: 620px) {
  .vmgs-editor-page {
    width: 100%;
    left: auto;
    margin-left: 0;
    margin-right: 0;
    right: auto;
  }

  .vmgs-appbar {
    padding: 12px;
  }

  .vmgs-app-shell {
    padding: 12px;
  }

  .vmgs-product-pill {
    min-width: 0;
    width: 100%;
  }

  .vmgs-stage-board {
    min-height: 540px;
    padding: 60px 12px 72px;
  }

  .vmgs-design-zone {
    inset: 100px 12px 126px;
  }

  .vmgs-mug-ghost {
    inset: 116px 22px 138px 22px;
  }

  .vmgs-mug-ghost__body {
    width: 220px;
  }

  .vmgs-mug-ghost__top {
    width: 234px;
  }

  .vmgs-mug-ghost__inner {
    width: 188px;
  }

  .vmgs-measure {
    display: none;
  }
}
