@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Karla:wght@400;500;600;700;800;900&display=swap');

.tgms, .tgms * { box-sizing: border-box !important; }

.tgms {
  --tg-brown: #301618;
  --tg-brown2: #301618;
  --tg-soft: #fffaf7;
  --tg-line: #eaded7;
  --tg-text: #1d130f;
  --tg-muted: #6d5c54;
  width: min(1180px, calc(100vw - 32px));
  margin: 46px auto;
  font-family: "Karla", Arial, sans-serif;
  color: var(--tg-text);
}

.tgms button, .tgms input, .tgms textarea, .tgms select {
  font-family: "Karla", Arial, sans-serif !important;
}

.tgms-head {
  text-align: center;
  margin-bottom: 22px;
}

.tgms-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(36px, 4vw, 58px) !important;
  line-height: 1.02 !important;
  color: var(--tg-brown) !important;
  margin: 0 0 8px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

.tgms-head h2 span { color: #d59a31; }

.tgms-head p {
  margin: 0 auto;
  color: var(--tg-muted);
  max-width: 720px;
  font-size: 16px;
  line-height: 1.45;
}

.tgms-tabs {
  width: min(720px, 100%);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(75, 11, 4, .06);
}

.tgms-tab {
  border: 0 !important;
  min-height: 58px !important;
  background: #fff !important;
  color: var(--tg-brown) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.tgms-tab.is-active {
  background: linear-gradient(135deg, var(--tg-brown), var(--tg-brown2)) !important;
  color: #fff !important;
}

.tgms-alert {
  display: none;
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
}

.tgms-alert.is-visible { display: block; }
.tgms-alert.is-error { background: #fae9e6; border: 1px solid #efc5bd; color: #84271e; }
.tgms-alert.is-success { background: #e8f7ef; border: 1px solid #bde5cd; color: #276444; }

.tgms-panel { display: none; }
.tgms-panel.is-active { display: block; }

.tgms-layout {
  display: grid;
  grid-template-columns: minmax(320px, .42fr) minmax(0, .58fr);
  gap: 20px;
  align-items: start;
}

.tgms-left {
  display: grid;
  gap: 16px;
}

.tgms-card, .tgms-preview-card {
  background: #fff;
  border: 1px solid var(--tg-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(75, 11, 4, .06);
  padding: 22px;
}

.tgms-card h3, .tgms-preview-card h3 {
  margin: 0 0 14px !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  color: var(--tg-text) !important;
  font-weight: 900 !important;
}

.tgms-prompt {
  width: 100% !important;
  min-height: 150px !important;
  padding: 16px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fffdfb !important;
  color: var(--tg-text) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
  outline: none !important;
}

.tgms-prompt:focus,
.tgms input:focus,
.tgms textarea:focus {
  border-color: var(--tg-brown) !important;
  box-shadow: 0 0 0 4px rgba(75, 11, 4, .09) !important;
}

.tgms-count {
  text-align: right;
  color: var(--tg-muted);
  font-size: 12px;
  margin-top: 6px;
}

.tgms-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.tgms-chips button,
.tgms-style button {
  min-height: 40px !important;
  border: 1px solid #dfcdc5 !important;
  border-radius: 999px !important;
  background: #fffaf7 !important;
  color: var(--tg-brown) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

.tgms-chips button:hover,
.tgms-style button:hover,
.tgms-style button.is-active {
  border-color: var(--tg-brown) !important;
  background: #fff2ea !important;
}

.tgms-upload-box {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 108px;
  border: 1.5px dashed #d8c6bd;
  border-radius: 14px;
  background: #fffdfb;
  cursor: pointer;
  padding: 16px;
}

.tgms-upload-box input { display: none; }
.tgms-upload-box strong { color: var(--tg-brown); font-size: 15px; }
.tgms-upload-box strong span { color: var(--tg-muted); font-weight: 600; }
.tgms-upload-box em { display:block; color: var(--tg-muted); margin-top: 5px; font-style: normal; font-size: 13px; }

.tgms-reference-result,
.tgms-upload-result {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f7ef;
  color: #276444;
  font-weight: 800;
  font-size: 13px;
}

.tgms-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tgms-field label,
.tgms-field > span {
  color: var(--tg-text);
  font-weight: 900;
  font-size: 14px;
}

.tgms-style {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgms-style button {
  padding: 0 15px !important;
}

.tgms-color-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
}

.tgms-color-row input {
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

.tgms-color-row input[type="color"] {
  padding: 3px !important;
}

.tgms-primary {
  width: 100%;
  border: 0 !important;
  border-radius: 12px !important;
  min-height: 54px !important;
  background: linear-gradient(135deg, var(--tg-brown), var(--tg-brown2)) !important;
  color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  margin-top: 18px;
}

.tgms-primary:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
}

.tgms-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.tgms-preview-head h3 { margin-bottom: 4px !important; }
.tgms-preview-head p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-badge {
  background: #fff2e6;
  color: var(--tg-brown);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tgms-selected {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: #fffaf7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tgms-empty {
  text-align: center;
  padding: 24px;
  color: var(--tg-muted);
}

.tgms-empty strong {
  display: block;
  color: var(--tg-brown);
  margin-top: 12px;
  font-size: 18px;
}

.tgms-empty span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.tgms-product-placeholder {
  width: 140px;
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg,#ecd4c0,#fff8f0);
  margin: 0 auto;
  border: 1px solid #e2c8b9;
}

.tgms-selected-img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.tgms-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.tgms-option {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf7;
  cursor: pointer;
  padding: 0;
  opacity: 1 !important;
}

.tgms-option.is-active {
  border-color: var(--tg-brown);
}

.tgms-option img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}

.tgms-option span {
  display: block;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--tg-brown);
}

.tgms-review-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff5e9;
  color: #6c3e1d;
  font-size: 13px;
  font-weight: 700;
}

.tgms-upload-layout {
  display: grid;
  grid-template-columns: minmax(320px,.55fr) minmax(0,.45fr);
  gap: 20px;
}

.tgms-upload-copy {
  color: var(--tg-muted);
  margin: -4px 0 16px;
}

.tgms-big-upload {
  min-height: 170px;
}

.tgms-field textarea,
.tgms-field input[type="text"] {
  width: 100% !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  padding: 14px !important;
  min-height: 46px !important;
  font-size: 15px !important;
}

.tgms-field textarea {
  min-height: 150px !important;
  resize: vertical;
}

.tgms-confirm {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  font-weight: 800;
  color: var(--tg-text);
}

.tgms-upload-preview-box {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px dashed #dccbc3;
  border-radius: 14px;
  color: var(--tg-muted);
  background: #fffaf7;
  text-align: center;
  padding: 20px;
}

.tgms-upload-preview-box img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.tgms-loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.tgms-loading::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tgmsSpin .8s linear infinite;
}

@keyframes tgmsSpin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .tgms-layout,
  .tgms-upload-layout {
    grid-template-columns: 1fr;
  }

  .tgms-selected {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .tgms { width: calc(100vw - 24px); }
  .tgms-tabs, .tgms-chips, .tgms-options, .tgms-color-row {
    grid-template-columns: 1fr;
  }

  .tgms-head h2 {
    font-size: 36px !important;
  }

  .tgms-card, .tgms-preview-card {
    padding: 16px;
  }
}


/* v2.1 improvements: base product preview + font preference */
.tgms-product-placeholder.has-image {
  width: min(420px, 78%);
  height: 260px;
  border-radius: 18px;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 0;
  background-color: transparent !important;
}

.tgms-soft-label {
  color: var(--tg-muted);
  font-weight: 600;
}

.tgms select.tgms-font {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

.tgms-selected {
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.88), transparent 22%),
    linear-gradient(135deg,#fffaf7,#f8ede5);
}


/* v2.2 stability: clearer testing state */
.tgms-note {
  line-height: 1.35;
}


/* v2.3: login gate, reference-aware upload preview, product placement preview */
.tgms-login-gate {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #eaded7;
  background: #fff5ea;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.tgms-login-gate strong {
  color: var(--tg-brown);
  font-size: 16px;
}

.tgms-login-gate span {
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-login-gate a {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--tg-brown);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.tgms-primary.is-locked {
  background: #9d7c72 !important;
}

.tgms-soft-label {
  color: var(--tg-muted);
  font-weight: 600;
}

.tgms select.tgms-font {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

.tgms-upload-preview-box {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: linear-gradient(135deg,#fffaf7,#f8ede5);
}

.tgms-upload-product-base {
  position: absolute;
  inset: 18px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .96;
}

.tgms-upload-safe-area {
  position: absolute;
  left: 34%;
  top: 32%;
  width: 34%;
  height: 32%;
  border: 2px dashed rgba(75,11,4,.55);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,.46);
  color: var(--tg-brown);
  font-weight: 800;
  z-index: 3;
}

.tgms-upload-safe-area img {
  max-width: 90%;
  max-height: 78%;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.tgms-upload-safe-area.has-upload span {
  font-size: 11px;
  color: var(--tg-brown);
}

@media (max-width: 640px) {
  .tgms-login-gate {
    grid-template-columns: 1fr;
  }
  .tgms-login-gate a {
    grid-row: auto;
    grid-column: auto;
  }
}


/* V2.4 Upload Placement Engine */
.tgms-placement-controls {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: #fffaf7;
  display: grid;
  gap: 12px;
}

.tgms-placement-controls label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--tg-text);
}

.tgms-artwork-zoom {
  width: 100%;
  accent-color: var(--tg-brown);
}

.tgms-placement-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tgms-small-btn {
  border: 1px solid #dfcdc5 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--tg-brown) !important;
  min-height: 42px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.tgms-placement-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--tg-line);
  border-radius: 18px;
  background: linear-gradient(135deg,#fffaf7,#f8ede5);
  overflow: hidden;
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: none;
}

.tgms-placement-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.tgms-print-area {
  position: absolute;
  z-index: 5;
  border: 2px dashed rgba(75,11,4,.72);
  background: rgba(255,255,255,.22);
  overflow: hidden;
  cursor: move;
  box-shadow: 0 0 0 9999px rgba(255,255,255,.08);
}

.tgms-print-area.is-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.tgms-print-label {
  position: absolute;
  inset: auto 8px 8px 8px;
  z-index: 7;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--tg-brown);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.tgms-print-area:not(.is-empty) .tgms-print-label {
  opacity: .75;
}

.tgms-upload-artwork {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 120%;
  max-height: 120%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(1);
  z-index: 6;
  pointer-events: none;
}

.tgms-print-area.is-circle {
  border-radius: 50%;
}

.tgms-print-area.is-polygon {
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
}

.tgms-print-area.has-mask {
  border: 0;
  background: rgba(75,11,4,.08);
}

.tgms-print-area.has-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(75,11,4,.75);
  border-radius: 12px;
  pointer-events: none;
  z-index: 8;
}

.tgms-login-gate {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #eaded7;
  background: #fff5ea;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
}

.tgms-login-gate strong {
  color: var(--tg-brown);
  font-size: 16px;
}

.tgms-login-gate span {
  color: var(--tg-muted);
  font-size: 13px;
}

.tgms-login-gate a {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--tg-brown);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.tgms-primary.is-locked {
  background: #9d7c72 !important;
}

.tgms-soft-label {
  color: var(--tg-muted);
  font-weight: 600;
}

.tgms select.tgms-font {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 700 !important;
  color: var(--tg-text) !important;
}

@media (max-width: 980px) {
  .tgms-placement-stage {
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .tgms-placement-stage {
    min-height: 330px;
  }

  .tgms-placement-buttons {
    grid-template-columns: 1fr;
  }

  .tgms-login-gate {
    grid-template-columns: 1fr;
  }

  .tgms-login-gate a {
    grid-row: auto;
    grid-column: auto;
  }
}


/* V2.4.1: compact mockup options + preview loading overlay */
.tgms-options {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 14px !important;
  overflow: visible !important;
}

.tgms-option {
  width: 122px !important;
  flex: 0 0 122px !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fffaf7 !important;
  cursor: pointer !important;
  padding: 0 !important;
  opacity: 1 !important;
  display: block !important;
}

.tgms-option img {
  width: 100% !important;
  height: 104px !important;
  object-fit: cover !important;
  display: block !important;
}

.tgms-option span {
  display: block !important;
  padding: 8px 6px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: var(--tg-brown) !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.tgms-option.is-active {
  border-color: var(--tg-brown) !important;
  box-shadow: 0 8px 22px rgba(75,11,4,.12) !important;
}

.tgms-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(255, 250, 247, .88);
  backdrop-filter: blur(5px);
  color: var(--tg-brown);
}

.tgms-preview-loading.is-active {
  display: grid;
}

.tgms-preview-loading strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 900;
}

.tgms-preview-loading span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--tg-muted);
  max-width: 300px;
}

.tgms-preview-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(75,11,4,.15);
  border-top-color: var(--tg-brown);
  border-radius: 50%;
  animation: tgmsSpin .8s linear infinite;
}

@media (max-width: 640px) {
  .tgms-option {
    width: 104px !important;
    flex-basis: 104px !important;
  }
  .tgms-option img {
    height: 88px !important;
  }
}


/* V2.4.2: preserve previous generations and label each mockup */
.tgms-option small {
  display: block !important;
  padding: 0 6px 8px !important;
  margin-top: -3px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--tg-muted) !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

.tgms-options::before {
  content: "Generated mockups";
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 900;
  color: var(--tg-brown);
  margin-bottom: 2px;
}

.tgms-options:empty::before {
  content: "";
}


/* V2.5.0: optional smart color preference */
.tgms-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 900 !important;
  color: var(--tg-text) !important;
  cursor: pointer !important;
}

.tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--tg-brown);
}

.tgms-helper {
  margin: 4px 0 0 !important;
  color: var(--tg-muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.tgms-color-controls {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--tg-line);
  border-radius: 14px;
  background: #fffaf7;
}

.tgms-color-controls.is-active {
  display: grid;
  gap: 8px;
}

.tgms-mini-label {
  font-size: 12px !important;
  color: var(--tg-muted) !important;
  font-weight: 900 !important;
  margin-top: 3px;
}

.tgms-color-placement {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid #dccbc3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 9px 12px !important;
  font-weight: 800 !important;
  color: var(--tg-text) !important;
}


/* V2.5.1: cart mockup gallery */
.woocommerce-cart .tgms-cart-gallery,
.woocommerce-checkout .tgms-cart-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-width: 420px;
}

.woocommerce-cart .tgms-cart-gallery-title,
.woocommerce-checkout .tgms-cart-gallery-title {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 700;
  opacity: .8;
  margin-bottom: 2px;
}

.woocommerce-cart .tgms-cart-gallery-item,
.woocommerce-checkout .tgms-cart-gallery-item {
  width: 74px;
  border: 1px solid #e2d7d0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  background: #fffaf7;
  display: block;
}

.woocommerce-cart .tgms-cart-gallery-item.is-selected,
.woocommerce-checkout .tgms-cart-gallery-item.is-selected {
  border: 2px solid #301618;
}

.woocommerce-cart .tgms-cart-gallery-item img,
.woocommerce-checkout .tgms-cart-gallery-item img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  display: block;
}

.woocommerce-cart .tgms-cart-gallery-item span,
.woocommerce-checkout .tgms-cart-gallery-item span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #301618;
  text-align: center;
  padding: 4px 3px;
  line-height: 1.1;
}


/* V2.6.1: do not show all generated options inside cart drawer/customer cart */
.widget_shopping_cart_content .tgms-cart-gallery,
.rey-cartPanel .tgms-cart-gallery,
.rey-sidePanel .tgms-cart-gallery,
.rey-header-dropPanel .tgms-cart-gallery {
  display: none !important;
}


/* V2.6.2: show selected mockup image in cart/mini-cart, hide only extra generated gallery */
.tgms-selected-cart-preview {
  margin-top: 6px;
  max-width: 160px;
}

.tgms-selected-cart-preview a {
  display: inline-block;
  text-decoration: none !important;
  border: 1px solid #eaded7;
  border-radius: 10px;
  overflow: hidden;
  background: #fffaf7;
}

.tgms-selected-cart-preview img {
  width: 120px !important;
  height: 95px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  max-width: none !important;
}

.tgms-selected-cart-preview span {
  display: block;
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  color: #301618;
  text-align: center;
}

.widget_shopping_cart_content .tgms-selected-cart-preview,
.rey-cartPanel .tgms-selected-cart-preview,
.rey-sidePanel .tgms-selected-cart-preview,
.rey-header-dropPanel .tgms-selected-cart-preview {
  display: block !important;
}

.widget_shopping_cart_content .tgms-selected-cart-preview img,
.rey-cartPanel .tgms-selected-cart-preview img,
.rey-sidePanel .tgms-selected-cart-preview img,
.rey-header-dropPanel .tgms-selected-cart-preview img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* V2.6.3: top step journey + horizontal desktop layout */
.tgms-journey {
  width: min(1120px, 100%);
  margin: 8px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tgms-journey-step {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--tg-text);
  font-weight: 800;
  white-space: nowrap;
}

.tgms-journey-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--tg-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--tg-brown);
  background: #fff;
}

.tgms-journey-step.is-active .tgms-journey-num {
  background: var(--tg-brown);
  color: #fff;
}

.tgms-journey-line {
  flex: 0 0 84px;
  height: 2px;
  background: rgba(75,11,4,.9);
  border-radius: 999px;
}

@media (min-width: 1200px) {
  .tgms {
    width: min(1380px, calc(100vw - 32px));
  }

  .tgms-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(310px, 1fr) minmax(460px, 1.22fr);
    gap: 18px;
    align-items: start;
  }

  .tgms-left {
    display: contents;
  }

  .tgms-left > .tgms-card:nth-child(1) {
    grid-column: 1;
  }

  .tgms-left > .tgms-card:nth-child(2) {
    grid-column: 2;
  }

  .tgms-right {
    grid-column: 3;
    min-width: 0;
  }

  .tgms-left > .tgms-card,
  .tgms-right > .tgms-preview-card {
    height: 100%;
  }

  .tgms-selected {
    min-height: 450px;
  }
}

@media (max-width: 860px) {
  .tgms-journey {
    gap: 10px;
  }

  .tgms-journey-line {
    flex-basis: 42px;
  }
}

@media (max-width: 640px) {
  .tgms-journey {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
    margin-bottom: 18px;
  }

  .tgms-journey-line {
    display: none;
  }

  .tgms-journey-step {
    width: calc(50% - 10px);
  }

  .tgms-journey-step:last-child {
    width: 100%;
  }
}

/* V2.6.6: Think Gifts brand fonts - override theme Epilogue */
.tgms,
.tgms :where(p, span, label, small, div, input, textarea, select, option, button, a, em, strong, li) {
  font-family: "Karla", Arial, sans-serif !important;
}

.tgms :where(h1, h2, h3, h4, h5, h6),
.tgms-head h2,
.tgms-card h3,
.tgms-preview-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

/* Keep controls/buttons readable in Karla, not Cormorant */
.tgms :where(button, input, textarea, select, option),
.tgms-tab,
.tgms-primary,
.tgms-chips button,
.tgms-style button,
.tgms-badge,
.tgms-journey-step,
.tgms-upload-box strong,
.tgms-field label,
.tgms-field > span {
  font-family: "Karla", Arial, sans-serif !important;
}

.tgms-card h3,
.tgms-preview-card h3 {
  font-size: 28px !important;
  line-height: 1.05 !important;
}

.tgms-head h2 {
  font-size: clamp(38px, 4vw, 60px) !important;
  line-height: 1.02 !important;
}

.tgms :where(p, label, textarea, input, select, .tgms-helper, .tgms-note, .tgms-preview-head p) {
  font-weight: 400 !important;
}

.tgms :where(button, .tgms-tab, .tgms-primary, .tgms-chips button, .tgms-style button, .tgms-badge) {
  font-weight: 800 !important;
}

/* Option: add .tgms-font-karla-headings on the section to force all headings Karla later if needed. */
.tgms.tgms-font-karla-headings :where(h1, h2, h3, h4, h5, h6),
.tgms.tgms-font-karla-headings .tgms-head h2,
.tgms.tgms-font-karla-headings .tgms-card h3,
.tgms.tgms-font-karla-headings .tgms-preview-card h3 {
  font-family: "Karla", Arial, sans-serif !important;
  font-weight: 800 !important;
}


/* V2.7.0: production file cart note */
.woocommerce-cart .variation-ProductionFile,
.widget_shopping_cart_content .variation-ProductionFile {
  color: #301618;
  font-weight: 700;
}


/* V2.8.1: Recraft SVG preview should render as a normal preview image */
.tgms-option img[src$=".svg"],
.tgms-preview img[src$=".svg"] {
  image-rendering: auto;
}


/* V2.8.6 Prompt Coach */
.tgms-prompt-coach {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(75,11,4,.12);
}
.tgms-coach-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.tgms-coach-head strong {
  color: #301618;
  font-weight: 800;
}
.tgms-coach-head span {
  color: rgba(75,36,18,.72);
  font-size: 13px;
}
.tgms-coach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tgms-coach-grid button,
.tgms-make-prompt-better {
  border: 1px solid rgba(75,11,4,.14);
  background: #fff;
  color: #301618;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.tgms-coach-grid button span {
  display: inline-flex;
  width: 21px;
  height: 21px;
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  background: #301618;
  color: #fff;
  font-size: 11px;
  margin-right: 6px;
}
.tgms-make-prompt-better {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  background: #301618;
  color: #fff;
}
.tgms-prompt-example {
  margin: 12px 0 0;
  color: rgba(75,36,18,.72);
  font-size: 13px;
  line-height: 1.45;
}

/* V2.8.6 Quick Edit */
.tgms-quick-edit {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(75,11,4,.12);
}
.tgms-quick-edit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tgms-quick-edit-head strong {
  color: #301618;
  font-weight: 900;
}
.tgms-quick-edit-head span {
  color: rgba(75,36,18,.72);
  font-size: 13px;
}
.tgms-edit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tgms-edit-chips button {
  border: 1px solid rgba(75,11,4,.18);
  background: #fff;
  color: #301618;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.tgms-edit-row {
  display: flex;
  gap: 8px;
}
.tgms-edit-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(75,11,4,.18);
  border-radius: 12px;
  padding: 12px 13px;
}
.tgms-edit-row button {
  border: 0;
  border-radius: 12px;
  background: #301618;
  color: #fff;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
}
.tgms-quick-edit p {
  margin: 10px 0 0;
  color: rgba(75,36,18,.7);
  font-size: 12px;
}
@media (max-width: 767px) {
  .tgms-coach-grid {
    grid-template-columns: 1fr;
  }
  .tgms-edit-row {
    flex-direction: column;
  }
  .tgms-quick-edit-head,
  .tgms-coach-head {
    flex-direction: column;
  }
}


/* V2.8.8 Improved Prompt Helper */
.tgms-prompt-starters {
  margin-top: 18px;
}
.tgms-starters-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(75,36,18,.78);
  margin: 0 0 10px;
}
.tgms-prompt-starters .tgms-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tgms-prompt-starters .tgms-chips button {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 999px;
  border: 1px solid rgba(75,11,4,.16);
  background: #fffaf7;
  color: #301618;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.tgms-prompt-coach {
  margin-top: 18px !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff8ee 0%, #fff4e8 100%) !important;
  border: 1px solid rgba(75,11,4,.14) !important;
  box-shadow: 0 14px 35px rgba(75,11,4,.05) !important;
}
.tgms-coach-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}
.tgms-coach-head div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tgms-coach-head strong {
  color: #301618 !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
}
.tgms-coach-head span {
  color: rgba(75,36,18,.68) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}
.tgms-make-prompt-better {
  width: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #301618 !important;
  color: #fff !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.tgms-coach-grid {
  display: none !important;
}
.tgms-coach-steps {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms-coach-steps button {
  display: grid !important;
  grid-template-columns: 32px 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 84px !important;
  padding: 13px !important;
  border-radius: 17px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: #fff !important;
  color: #301618 !important;
  text-align: left !important;
  cursor: pointer !important;
}
.tgms-coach-steps button span {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #301618 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.tgms-coach-steps button strong {
  color: #301618 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}
.tgms-coach-steps button em {
  color: rgba(75,36,18,.58) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-style: normal !important;
}
.tgms-prompt-example {
  margin: 14px 0 0 !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.68) !important;
  color: rgba(75,36,18,.72) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
.tgms-prompt-example strong {
  color: #301618 !important;
}
.tgms-prompt-example span {
  display: inline !important;
}

@media (max-width: 767px) {
  .tgms-prompt-starters .tgms-chips,
  .tgms-coach-steps {
    grid-template-columns: 1fr !important;
  }
  .tgms-coach-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .tgms-make-prompt-better {
    width: 100% !important;
    text-align: center !important;
  }
}


/* V2.8.9 Better style grid */
.tgms-style {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}
.tgms-style button {
  width: 100% !important;
  min-height: 50px !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 999px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
.tgms-style button.is-active {
  box-shadow: inset 0 0 0 1px rgba(75,11,4,.35) !important;
}

/* V2.8.9 Stretch 1-2-3 journey across the three cards */
.tgms-journey {
  width: min(100%, 1500px) !important;
  max-width: none !important;
  margin: 0 auto 26px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 6px !important;
}
.tgms-journey .tgms-step {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 46px !important;
  position: relative !important;
}
.tgms-journey .tgms-step:not(:last-child)::after {
  content: "" !important;
  position: absolute !important;
  height: 2px !important;
  background: rgba(75,11,4,.82) !important;
  left: calc(50% + 82px) !important;
  right: calc(-50% + 82px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.tgms-journey .tgms-step span {
  flex: 0 0 auto !important;
}
.tgms-journey .tgms-step strong {
  white-space: nowrap !important;
  font-weight: 900 !important;
}
.tgms-tabs {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  .tgms-journey {
    gap: 10px !important;
  }
  .tgms-journey .tgms-step:not(:last-child)::after {
    left: calc(50% + 70px) !important;
    right: calc(-50% + 70px) !important;
  }
}
@media (max-width: 767px) {
  .tgms-style {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }
  .tgms-style button {
    min-height: 44px !important;
    font-size: 13px !important;
    padding: 10px 8px !important;
  }
  .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tgms-journey .tgms-step {
    justify-content: flex-start !important;
    padding-left: 8px !important;
  }
  .tgms-journey .tgms-step:not(:last-child)::after {
    display: none !important;
  }
}


/* V2.9.1 Journey alignment fix */
.tgms .tgms-journey {
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 18px !important;
  row-gap: 0 !important;
  align-items: center !important;
  position: relative !important;
}
.tgms .tgms-journey::before {
  content: "" !important;
  position: absolute !important;
  left: calc(16.666% + 62px) !important;
  right: calc(16.666% + 62px) !important;
  top: 23px !important;
  height: 2px !important;
  background: rgba(75, 11, 4, .82) !important;
  z-index: 0 !important;
}
.tgms .tgms-journey .tgms-step {
  position: relative !important;
  z-index: 1 !important;
  min-height: 48px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  background: transparent !important;
}
.tgms .tgms-journey .tgms-step::after {
  display: none !important;
  content: none !important;
}
.tgms .tgms-journey .tgms-step span {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 3px solid #301618 !important;
  color: #301618 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.tgms .tgms-journey .tgms-step:first-child span {
  background: #301618 !important;
  color: #fff !important;
}
.tgms .tgms-journey .tgms-step strong {
  background: #fff !important;
  padding: 0 8px !important;
  color: #2c1712 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* V2.9.1 Softer prompt helper */
.tgms .tgms-prompt-starters {
  margin-top: 18px !important;
}
.tgms .tgms-starters-title {
  margin: 0 0 10px !important;
  color: rgba(75, 36, 18, .72) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}
.tgms .tgms-prompt-starters .tgms-chips {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-prompt-starters .tgms-chips button {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: #fff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.tgms .tgms-prompt-coach {
  margin-top: 16px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  background: #fff9f0 !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-coach-head div {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.tgms .tgms-coach-head strong {
  color: #301618 !important;
  font-family: Cormorant Garamond, Georgia, serif !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}
.tgms .tgms-coach-head span {
  color: rgba(75,36,18,.64) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}
.tgms .tgms-make-prompt-better {
  width: auto !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(75,11,4,.16) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-steps {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-coach-steps button {
  display: grid !important;
  grid-template-columns: 28px 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
  align-items: start !important;
  min-height: 78px !important;
  padding: 13px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  background: rgba(255,255,255,.82) !important;
  color: #301618 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-steps button span {
  grid-row: 1 / 3 !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #301618 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.tgms .tgms-coach-steps button strong {
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}
.tgms .tgms-coach-steps button em {
  color: rgba(75,36,18,.58) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
.tgms .tgms-prompt-example {
  margin: 12px 0 0 !important;
  padding: 13px 14px !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.78) !important;
  color: rgba(75,36,18,.66) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}
.tgms .tgms-prompt-example strong {
  color: #301618 !important;
  font-weight: 800 !important;
}
.tgms .tgms-prompt-example span {
  display: inline !important;
}

@media (max-width: 1024px) {
  .tgms .tgms-journey::before {
    left: calc(16.666% + 50px) !important;
    right: calc(16.666% + 50px) !important;
  }
  .tgms .tgms-journey .tgms-step strong {
    font-size: 15px !important;
  }
}
@media (max-width: 767px) {
  .tgms .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .tgms .tgms-journey::before {
    display: none !important;
  }
  .tgms .tgms-journey .tgms-step {
    justify-content: flex-start !important;
  }
  .tgms .tgms-prompt-starters .tgms-chips,
  .tgms .tgms-coach-steps {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-coach-head {
    flex-direction: column !important;
  }
  .tgms .tgms-make-prompt-better {
    width: 100% !important;
    text-align: center !important;
  }
}


/* V2.9.2 Clean journey steps - no broken connector lines */
.tgms .tgms-journey {
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  position: relative !important;
}
.tgms .tgms-journey::before,
.tgms .tgms-journey::after,
.tgms .tgms-journey .tgms-step::before,
.tgms .tgms-journey .tgms-step::after {
  display: none !important;
  content: none !important;
}
.tgms .tgms-journey .tgms-step {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  min-height: 48px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(75, 11, 4, .12) !important;
  border-radius: 999px !important;
  background: #fffaf7 !important;
  box-shadow: 0 10px 24px rgba(75, 11, 4, .04) !important;
}
.tgms .tgms-journey .tgms-step span {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #301618 !important;
  color: #fff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.tgms .tgms-journey .tgms-step strong {
  background: transparent !important;
  padding: 0 !important;
  color: #2c1712 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
@media (max-width: 1024px) {
  .tgms .tgms-journey {
    gap: 10px !important;
  }
  .tgms .tgms-journey .tgms-step strong {
    font-size: 14px !important;
  }
}
@media (max-width: 767px) {
  .tgms .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tgms .tgms-journey .tgms-step {
    justify-content: flex-start !important;
  }
}


/* V2.9.3 Quiet helper + organized edit panel */
.tgms .tgms-prompt-coach,
.tgms .tgms-quick-edit {
  background: #fff !important;
  border: 1px solid rgba(75, 36, 18, .12) !important;
  box-shadow: 0 10px 28px rgba(75, 11, 4, .035) !important;
}

/* Prompt helper: less color, easier scan */
.tgms .tgms-prompt-coach {
  padding: 18px !important;
  border-radius: 18px !important;
}
.tgms .tgms-coach-head {
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(75, 36, 18, .10) !important;
}
.tgms .tgms-coach-head strong {
  font-family: Cormorant Garamond, Georgia, serif !important;
  color: #3b0b04 !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
}
.tgms .tgms-coach-head span {
  color: rgba(75, 36, 18, .58) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.tgms .tgms-make-prompt-better {
  background: #fff7f1 !important;
  color: #301618 !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
}
.tgms .tgms-coach-steps {
  gap: 8px !important;
}
.tgms .tgms-coach-steps button {
  min-height: 70px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background: #fffaf7 !important;
  border: 1px solid rgba(75, 36, 18, .10) !important;
  box-shadow: none !important;
}
.tgms .tgms-coach-steps button span {
  width: 25px !important;
  height: 25px !important;
  background: #fff !important;
  color: #301618 !important;
  border: 1px solid rgba(75, 11, 4, .20) !important;
  font-size: 12px !important;
}
.tgms .tgms-coach-steps button strong {
  color: #3b0b04 !important;
  font-size: 14px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}
.tgms .tgms-coach-steps button em {
  color: rgba(75, 36, 18, .54) !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  font-weight: 400 !important;
}
.tgms .tgms-prompt-example {
  background: #fffaf7 !important;
  border: 1px solid rgba(75, 36, 18, .08) !important;
  color: rgba(75, 36, 18, .62) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-top: 10px !important;
  padding: 12px 13px !important;
}
.tgms .tgms-prompt-example strong {
  color: #3b0b04 !important;
}

/* Quick edit: make it a proper form, not scattered text */
.tgms .tgms-quick-edit {
  padding: 18px !important;
  border-radius: 18px !important;
  margin-top: 18px !important;
}
.tgms .tgms-quick-edit-head {
  display: block !important;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(75, 36, 18, .10) !important;
}
.tgms .tgms-quick-edit-head strong {
  display: block !important;
  color: #3b0b04 !important;
  font-family: Cormorant Garamond, Georgia, serif !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}
.tgms .tgms-quick-edit-head span {
  display: block !important;
  color: rgba(75, 36, 18, .58) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}
.tgms .tgms-edit-chips {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}
.tgms .tgms-edit-chips button {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  background: #fffaf7 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-edit-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
}
.tgms .tgms-edit-row input {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  border: 1px solid rgba(75, 36, 18, .14) !important;
  border-radius: 14px !important;
  padding: 0 14px !important;
  color: #3b0b04 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}
.tgms .tgms-edit-row input::placeholder {
  color: rgba(75, 36, 18, .36) !important;
}
.tgms .tgms-edit-row button {
  height: 46px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #301618 !important;
  color: #fff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.tgms .tgms-quick-edit p {
  margin: 10px 0 0 !important;
  color: rgba(75, 36, 18, .52) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
}

@media (max-width: 1024px) {
  .tgms .tgms-edit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .tgms .tgms-edit-chips {
    grid-template-columns: 1fr 1fr !important;
  }
  .tgms .tgms-edit-row {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-edit-row button {
    width: 100% !important;
  }
}


/* V2.9.4 Final journey cleanup - remove all connector lines */
.tgms .tgms-journey,
body .tgms .tgms-journey {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}
.tgms .tgms-journey::before,
.tgms .tgms-journey::after,
.tgms .tgms-journey *::before,
.tgms .tgms-journey *::after,
body .tgms .tgms-journey::before,
body .tgms .tgms-journey::after,
body .tgms .tgms-journey *::before,
body .tgms .tgms-journey *::after {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.tgms .tgms-journey .tgms-step,
body .tgms .tgms-journey .tgms-step {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(75, 36, 18, .12) !important;
  background: #fffaf7 !important;
  box-shadow: none !important;
  position: relative !important;
}
.tgms .tgms-journey .tgms-step span,
body .tgms .tgms-journey .tgms-step span {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #301618 !important;
  color: #fff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tgms .tgms-journey .tgms-step strong,
body .tgms .tgms-journey .tgms-step strong {
  display: inline-block !important;
  color: #2c1712 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .tgms .tgms-journey,
  body .tgms .tgms-journey {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tgms .tgms-journey .tgms-step,
  body .tgms .tgms-journey .tgms-step {
    justify-content: flex-start !important;
  }
}


/* V2.9.5: journey markup removed; clean mini guide */
.tgms .tgms-journey,
.tgms .tgms-journey-line,
.tgms .tgms-journey-step {
  display: none !important;
}
.tgms .tgms-mini-guide {
  width: min(100%, 940px);
  margin: 14px auto 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tgms .tgms-mini-guide span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fffaf7;
  border: 1px solid rgba(75, 36, 18, .12);
  color: rgba(75, 36, 18, .78);
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.tgms .tgms-mini-guide strong {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #301618;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 767px) {
  .tgms .tgms-mini-guide {
    margin: 12px auto 18px;
    justify-content: flex-start;
  }
  .tgms .tgms-mini-guide span {
    font-size: 12px;
  }
}


/* V2.9.6 Clean line stepper */
.tgms .tgms-mini-guide,
.tgms .tgms-journey,
.tgms .tgms-journey-line,
.tgms .tgms-journey-step {
  display: none !important;
}
.tgms .tgms-clean-journey {
  width: min(100%, 1180px);
  margin: 22px auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  align-items: center;
}
.tgms .tgms-clean-journey::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 18px;
  height: 2px;
  background: rgba(75, 11, 4, .26);
  z-index: 0;
}
.tgms .tgms-clean-step {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
}
.tgms .tgms-clean-step span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #301618;
  color: #301618;
  font-family: Karla, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 8px #fff;
}
.tgms .tgms-clean-step.is-active span {
  background: #301618;
  color: #fff;
}
.tgms .tgms-clean-step strong {
  background: #fff;
  padding: 0 8px;
  color: #2c1712;
  font-family: Karla, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .tgms .tgms-clean-journey {
    margin: 16px auto 18px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tgms .tgms-clean-journey::before {
    display: none;
  }
  .tgms .tgms-clean-step {
    justify-content: flex-start;
    border: 1px solid rgba(75,36,18,.12);
    border-radius: 999px;
    background: #fffaf7;
    padding: 6px 10px;
  }
  .tgms .tgms-clean-step span {
    box-shadow: none;
  }
  .tgms .tgms-clean-step strong {
    background: transparent;
  }
}


/* V2.9.7 Simple prompt guidance */
.tgms .tgms-prompt-coach {
  display: none !important;
}
.tgms .tgms-prompt-simple {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fffaf7;
  border: 1px solid rgba(75, 36, 18, .12);
}
.tgms .tgms-simple-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.tgms .tgms-simple-head strong {
  color: #3b0b04;
  font-family: Karla, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}
.tgms .tgms-simple-head span {
  color: rgba(75, 36, 18, .58);
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  text-align: right;
}
.tgms .tgms-example-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.tgms .tgms-example-buttons button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(75, 11, 4, .14);
  background: #fff;
  color: #301618;
  font-family: Karla, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}
.tgms .tgms-prompt-rule {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(75, 36, 18, .08);
  color: rgba(75, 36, 18, .72);
  font-family: Karla, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}
.tgms .tgms-prompt-rule strong {
  color: #301618;
  font-weight: 900;
}
.tgms .tgms-prompt-rule span {
  margin-left: 4px;
}
.tgms .tgms-prompt-tip {
  margin: 10px 0 0;
  color: rgba(75, 36, 18, .58);
  font-family: Karla, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 767px) {
  .tgms .tgms-simple-head {
    flex-direction: column;
  }
  .tgms .tgms-simple-head span {
    text-align: left;
  }
  .tgms .tgms-example-buttons {
    grid-template-columns: 1fr;
  }
}


/* V2.9.8 Prompt examples spacing fix */
.tgms .tgms-prompt-simple {
  margin-top: 18px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #fffaf7 !important;
  border: 1px solid rgba(75, 36, 18, .12) !important;
}
.tgms .tgms-simple-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-simple-head strong {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  color: #3b0b04 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
.tgms .tgms-simple-head span {
  flex: 1 1 auto !important;
  color: rgba(75, 36, 18, .56) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  text-align: right !important;
}
.tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-example-buttons button {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(75, 11, 4, .12) !important;
  background: #fff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-prompt-rule {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(75, 36, 18, .08) !important;
  color: rgba(75, 36, 18, .68) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.tgms .tgms-prompt-rule strong {
  color: #301618 !important;
  font-weight: 900 !important;
}
.tgms .tgms-prompt-tip {
  margin: 9px 0 0 !important;
  color: rgba(75, 36, 18, .56) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
@media (max-width: 767px) {
  .tgms .tgms-simple-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .tgms .tgms-simple-head span {
    text-align: left !important;
  }
  .tgms .tgms-example-buttons {
    grid-template-columns: 1fr !important;
  }
}


/* V3.0.2 Preview loading progress bar */
.tgms .tgms-preview-loading {
  align-content: center !important;
  justify-items: center !important;
}
.tgms .tgms-progress-wrap {
  width: min(82%, 360px);
  margin-top: 18px;
}
.tgms .tgms-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(75, 11, 4, .10);
  overflow: hidden;
  border: 1px solid rgba(75, 11, 4, .08);
}
.tgms .tgms-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #301618, #d59a31);
  transition: width .55s ease;
}
.tgms .tgms-progress-text {
  display: block;
  margin-top: 8px;
  color: rgba(75, 36, 18, .66);
  font-family: Karla, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 767px) {
  .tgms .tgms-progress-wrap {
    width: min(88%, 320px);
  }
}


/* V3.0.4 quick edit clarity */
.tgms .tgms-quick-edit-head strong {
  white-space: nowrap;
}
.tgms .tgms-quick-edit-head span {
  max-width: 360px;
}


/* V3.0.7 Reference-style neat UI - based on V3.0.5, not V3.0.6 */
.tgms {
  --tg-card-bg: #fffdfb;
  --tg-soft-bg: #fbf6f1;
  --tg-border-soft: rgba(75, 36, 18, .16);
  --tg-shadow-soft: 0 8px 22px rgba(58, 28, 14, .10);
}

/* Main layout: neat equal cards on desktop */
@media (min-width: 1025px) {
  .tgms .tgms-layout {
    grid-template-columns: minmax(300px, .35fr) minmax(300px, .35fr) minmax(360px, .30fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .tgms .tgms-left {
    display: contents !important;
  }
  .tgms .tgms-right {
    min-width: 0 !important;
    display: flex !important;
  }
  .tgms .tgms-card,
  .tgms .tgms-preview-card {
    height: 100% !important;
    box-sizing: border-box !important;
  }
  .tgms .tgms-preview-card {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Softer card styling like the reference */
.tgms .tgms-card,
.tgms .tgms-preview-card,
.tgms .tgms-quick-edit {
  background: var(--tg-card-bg) !important;
  border: 1px solid var(--tg-border-soft) !important;
  border-radius: 18px !important;
  box-shadow: var(--tg-shadow-soft) !important;
  padding: 18px !important;
}

/* Small italic Karla headers, not large Cormorant */
.tgms .tgms-card h3,
.tgms .tgms-preview-card h3,
.tgms .tgms-quick-edit-head strong,
.tgms .tgms-simple-head strong {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  color: #231714 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin: 0 0 13px !important;
}

/* Preview heading can stay slightly larger but still neat */
.tgms .tgms-preview-card .tgms-preview-head h3 {
  font-size: 16px !important;
  margin-bottom: 5px !important;
}

.tgms .tgms-preview-head p,
.tgms .tgms-simple-head span,
.tgms .tgms-upload-box em,
.tgms .tgms-helper,
.tgms .tgms-note,
.tgms .tgms-prompt-tip {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: rgba(75, 36, 18, .62) !important;
  font-weight: 400 !important;
}

/* Textarea and upload area: simple, flat, aligned */
.tgms .tgms-prompt {
  min-height: 168px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffaf7 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  color: #3b2520 !important;
  padding: 16px !important;
  box-shadow: none !important;
}

.tgms .tgms-count {
  margin-top: -28px !important;
  padding-right: 12px !important;
  position: relative !important;
  z-index: 2 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 11px !important;
  color: rgba(75, 36, 18, .58) !important;
}

.tgms .tgms-upload-box {
  min-height: 118px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffaf7 !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
}
.tgms .tgms-upload-box strong {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  color: rgba(75, 36, 18, .68) !important;
  font-weight: 600 !important;
}

/* Prompt examples / quick ideas: compact pill buttons */
.tgms .tgms-prompt-simple {
  margin-top: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tgms .tgms-simple-head {
  display: block !important;
  margin: 0 0 10px !important;
}
.tgms .tgms-simple-head strong {
  display: block !important;
  font-style: normal !important;
  font-size: 13px !important;
  margin: 0 0 8px !important;
}
.tgms .tgms-simple-head span {
  display: none !important;
}
.tgms .tgms-example-buttons {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}
.tgms .tgms-example-buttons button,
.tgms .tgms-edit-chips button {
  min-height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 12, 4, .20) !important;
  background: #fffdfb !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(58, 28, 14, .04) !important;
}
.tgms .tgms-example-buttons button:hover,
.tgms .tgms-edit-chips button:hover {
  border-color: #301618 !important;
  background: #fff8f2 !important;
}

/* Hide formula block to reduce confusion/noise */
.tgms .tgms-prompt-rule,
.tgms .tgms-prompt-tip {
  display: none !important;
}

/* Style buttons become neat reference-like tiles */
.tgms .tgms-style {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.tgms .tgms-style button {
  min-height: 68px !important;
  padding: 10px 8px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(91, 12, 4, .16) !important;
  background: #fffdfb !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(58, 28, 14, .04) !important;
}
.tgms .tgms-style button.is-active,
.tgms .tgms-style button:hover {
  border-color: #301618 !important;
  box-shadow: 0 0 0 2px rgba(91, 12, 4, .06) !important;
  background: #fffaf7 !important;
}

/* Field labels */
.tgms .tgms-field label,
.tgms .tgms-field > span,
.tgms .tgms-mini-label {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 13px !important;
  color: #231714 !important;
  font-weight: 600 !important;
}

/* Inputs and selects */
.tgms input,
.tgms select,
.tgms textarea {
  font-family: Karla, Arial, sans-serif !important;
}
.tgms select,
.tgms input[type="text"] {
  min-height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffdfb !important;
  box-shadow: none !important;
}

/* Primary buttons: one consistent maroon style */
.tgms .tgms-primary,
.tgms .tgms-edit-apply {
  min-height: 50px !important;
  border-radius: 9px !important;
  background: #301618 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 6px 16px rgba(91, 12, 4, .18) !important;
}
.tgms .tgms-primary:hover,
.tgms .tgms-edit-apply:hover {
  background: #3b0b04 !important;
  border-color: #3b0b04 !important;
}

/* Secondary utility buttons */
.tgms .tgms-small-btn,
.tgms .tgms-fit-area,
.tgms .tgms-reset-placement {
  background: #fffdfb !important;
  color: #301618 !important;
  border: 1px solid rgba(91, 12, 4, .20) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-weight: 600 !important;
}
.tgms .tgms-small-btn:hover,
.tgms .tgms-fit-area:hover,
.tgms .tgms-reset-placement:hover {
  border-color: #301618 !important;
  background: #fff8f2 !important;
}

/* Preview area: aligned and clean */
.tgms .tgms-selected {
  border-radius: 14px !important;
  border: 1px solid rgba(75, 36, 18, .16) !important;
  background: #fffdfb !important;
  min-height: 392px !important;
}
.tgms .tgms-badge {
  background: #fff3e6 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.tgms .tgms-options::before {
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  color: #301618 !important;
  font-weight: 700 !important;
}
.tgms .tgms-option {
  border-radius: 10px !important;
  border: 1px solid rgba(91, 12, 4, .14) !important;
  background: #fffdfb !important;
}
.tgms .tgms-option.is-active {
  border: 2px solid #301618 !important;
  box-shadow: none !important;
}
.tgms .tgms-option span,
.tgms .tgms-option small {
  font-family: Karla, Arial, sans-serif !important;
  font-weight: 600 !important;
}

/* Quick edit should feel like same design system */
.tgms .tgms-quick-edit {
  margin-top: 16px !important;
}
.tgms .tgms-edit-row {
  gap: 10px !important;
}
.tgms .tgms-edit-input {
  min-height: 48px !important;
  border-radius: 12px !important;
}

/* Keep mobile clean */
@media (max-width: 767px) {
  .tgms .tgms-style {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .tgms .tgms-example-buttons {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-count {
    margin-top: 6px !important;
    padding-right: 0 !important;
  }
}


/* V3.0.8 Header and preview alignment fixes */
.tgms .tgms-card h3,
.tgms .tgms-preview-card h3 {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 30px !important;
  line-height: 1.12 !important;
  color: #301618 !important;
  font-weight: 700 !important;
  margin: 0 0 18px !important;
}

.tgms .tgms-preview-head {
  align-items: center !important;
  margin-bottom: 18px !important;
}

.tgms .tgms-preview-head p {
  display: none !important;
}

.tgms .tgms-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  background: #fff3e6 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
}

/* Empty preview text alignment */
.tgms .tgms-empty {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  padding: 24px !important;
  text-align: center !important;
}

.tgms .tgms-empty strong {
  display: block !important;
  width: 100% !important;
  margin: 14px auto 0 !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.tgms .tgms-empty span {
  display: block !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 8px auto 0 !important;
  color: rgba(75, 36, 18, .66) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.38 !important;
  font-weight: 400 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .tgms .tgms-card h3,
  .tgms .tgms-preview-card h3 {
    font-size: 24px !important;
  }

  .tgms .tgms-badge {
    font-size: 18px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
  }

  .tgms .tgms-preview-head {
    align-items: flex-start !important;
  }

  .tgms .tgms-empty strong {
    font-size: 20px !important;
  }
}


/* V3.0.9 Header size adjustment */
.tgms .tgms-card h3,
.tgms .tgms-preview-card h3 {
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.tgms .tgms-badge {
  font-size: 22px !important;
  line-height: 1 !important;
  min-height: 36px !important;
  padding: 6px 14px !important;
}
@media (max-width: 767px) {
  .tgms .tgms-card h3,
  .tgms .tgms-preview-card h3 {
    font-size: 20px !important;
  }

  .tgms .tgms-badge {
    font-size: 16px !important;
    min-height: 32px !important;
  }
}


/* V3.1.0 Exact preview header size fix */
.tgms .tgms-preview-card .tgms-preview-head h3,
body .tgms .tgms-preview-card .tgms-preview-head h3 {
  font-size: 22px !important;
  line-height: 1.15 !important;
  color: #301618 !important;
}

.tgms .tgms-preview-card .tgms-preview-head .tgms-badge,
body .tgms .tgms-preview-card .tgms-preview-head .tgms-badge {
  font-size: 22px !important;
  line-height: 1 !important;
  min-height: 36px !important;
  padding: 6px 14px !important;
}


/* V3.1.1 Proper card/header alignment reset */
.tgms .tgms-layout,
body .tgms .tgms-layout {
  align-items: stretch !important;
}

/* All three main cards have the same internal spacing */
.tgms .tgms-layout > .tgms-card,
.tgms .tgms-left > .tgms-card,
.tgms .tgms-right > .tgms-preview-card,
body .tgms .tgms-layout > .tgms-card,
body .tgms .tgms-left > .tgms-card,
body .tgms .tgms-right > .tgms-preview-card {
  padding: 22px !important;
  box-sizing: border-box !important;
}

/* Desktop: force the three card columns to behave the same */
@media (min-width: 1025px) {
  .tgms .tgms-layout,
  body .tgms .tgms-layout {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .tgms .tgms-left,
  body .tgms .tgms-left {
    display: contents !important;
  }

  .tgms .tgms-right,
  body .tgms .tgms-right {
    display: flex !important;
    min-width: 0 !important;
  }

  .tgms .tgms-right > .tgms-preview-card,
  body .tgms .tgms-right > .tgms-preview-card {
    width: 100% !important;
  }
}

/* One shared header row size for all 3 cards */
.tgms .tgms-card > h3,
.tgms .tgms-preview-card .tgms-preview-head,
body .tgms .tgms-card > h3,
body .tgms .tgms-preview-card .tgms-preview-head {
  min-height: 34px !important;
  height: 34px !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Exact heading typography: same size, same baseline, same colour */
.tgms .tgms-card > h3,
.tgms .tgms-preview-card .tgms-preview-head h3,
body .tgms .tgms-card > h3,
body .tgms .tgms-preview-card .tgms-preview-head h3 {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 22px !important;
  line-height: 34px !important;
  color: #301618 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  transform: none !important;
}

/* Preview header should match other card header height */
.tgms .tgms-preview-card .tgms-preview-head,
body .tgms .tgms-preview-card .tgms-preview-head {
  justify-content: space-between !important;
  gap: 14px !important;
}

.tgms .tgms-preview-card .tgms-preview-head > div,
body .tgms .tgms-preview-card .tgms-preview-head > div {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  height: 34px !important;
}

.tgms .tgms-preview-card .tgms-preview-head p,
body .tgms .tgms-preview-card .tgms-preview-head p {
  display: none !important;
}

/* AI Preview badge aligned to same 34px row, not floating higher/lower */
.tgms .tgms-preview-card .tgms-preview-head .tgms-badge,
body .tgms .tgms-preview-card .tgms-preview-head .tgms-badge {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  font-family: Karla, Arial, sans-serif !important;
  font-style: normal !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #301618 !important;
  background: #fff3e6 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  transform: none !important;
  white-space: nowrap !important;
}

/* Make first content box inside each card start at the same vertical point */
.tgms .tgms-card > .tgms-prompt,
.tgms .tgms-card > .tgms-upload-box,
.tgms .tgms-preview-card > .tgms-selected,
body .tgms .tgms-card > .tgms-prompt,
body .tgms .tgms-card > .tgms-upload-box,
body .tgms .tgms-preview-card > .tgms-selected {
  margin-top: 0 !important;
}

/* Make first two starting boxes visually aligned */
.tgms .tgms-prompt,
.tgms .tgms-upload-box,
body .tgms .tgms-prompt,
body .tgms .tgms-upload-box {
  border-radius: 6px !important;
  border: 1px solid rgba(75, 36, 18, .20) !important;
  background: #fffaf7 !important;
  box-sizing: border-box !important;
}

/* Keep the count from pushing visual alignment */
.tgms .tgms-count,
body .tgms .tgms-count {
  margin-top: 6px !important;
  padding-right: 0 !important;
}

/* Preview empty text: centered as one block */
.tgms .tgms-empty,
body .tgms .tgms-empty {
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.tgms .tgms-empty strong,
body .tgms .tgms-empty strong {
  max-width: 360px !important;
  margin: 14px auto 0 !important;
  text-align: center !important;
  color: #301618 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.tgms .tgms-empty span,
body .tgms .tgms-empty span {
  max-width: 300px !important;
  margin: 8px auto 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}


/* V3.1.2 First-row box alignment fix */
.tgms .tgms-card,
.tgms .tgms-preview-card,
body .tgms .tgms-card,
body .tgms .tgms-preview-card {
  overflow: hidden !important;
}

/* Same starting line inside all three top cards */
.tgms .tgms-card > .tgms-prompt,
.tgms .tgms-card > .tgms-upload-box,
.tgms .tgms-preview-card > .tgms-selected,
body .tgms .tgms-card > .tgms-prompt,
body .tgms .tgms-card > .tgms-upload-box,
body .tgms .tgms-preview-card > .tgms-selected {
  margin-top: 0 !important;
}

/* Match the first visible boxes so the top row starts evenly */
.tgms .tgms-prompt,
.tgms .tgms-upload-box,
.tgms .tgms-selected,
body .tgms .tgms-prompt,
body .tgms .tgms-upload-box,
body .tgms .tgms-selected {
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1025px) {
  /* create equal header-to-first-box spacing */
  .tgms .tgms-card > h3,
  .tgms .tgms-preview-card .tgms-preview-head,
  body .tgms .tgms-card > h3,
  body .tgms .tgms-preview-card .tgms-preview-head {
    margin-bottom: 14px !important;
  }

  /* normalize the first content block height for visual alignment */
  .tgms .tgms-prompt,
  .tgms .tgms-upload-box,
  .tgms .tgms-selected,
  body .tgms .tgms-prompt,
  body .tgms .tgms-upload-box,
  body .tgms .tgms-selected {
    min-height: 246px !important;
  }

  /* remove extra top breathing room that made box positions feel different */
  .tgms .tgms-upload-box,
  body .tgms .tgms-upload-box {
    padding-top: 18px !important;
  }

  .tgms .tgms-selected,
  body .tgms .tgms-selected {
    padding-top: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tgms .tgms-selected img,
  body .tgms .tgms-selected img {
    margin: 0 auto !important;
    max-height: 208px !important;
    object-fit: contain !important;
  }

  .tgms .tgms-prompt,
  body .tgms .tgms-prompt {
    padding-top: 18px !important;
  }
}


/* V3.1.3 Option C AI preview badge + subtle premium spacing */
.tgms .tgms-card,
.tgms .tgms-preview-card {
  padding: 24px !important;
}

.tgms .tgms-preview-head {
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

.tgms .tgms-preview-head > div {
  min-width: 0 !important;
}

.tgms .tgms-card h3,
.tgms .tgms-preview-card h3 {
  margin-bottom: 14px !important;
}

.tgms .tgms-preview-head h3 {
  margin: 0 !important;
}

.tgms .tgms-badge-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  background: #fff !important;
  color: rgba(75, 11, 4, .82) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.tgms .tgms-badge-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #301618;
  box-shadow: 0 0 0 4px rgba(91, 12, 4, .08);
  flex: 0 0 8px;
}

.tgms .tgms-empty {
  padding: 28px !important;
}

.tgms .tgms-empty strong {
  margin-top: 14px !important;
}

.tgms .tgms-review-note {
  margin-top: 14px !important;
}

@media (max-width: 767px) {
  .tgms .tgms-card,
  .tgms .tgms-preview-card {
    padding: 20px !important;
  }

  .tgms .tgms-preview-head {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .tgms .tgms-badge-status {
    padding: 7px 11px !important;
  }
}


/* V3.1.5 Preview empty-state subtitle one-line alignment */
.tgms .tgms-empty,
body .tgms .tgms-empty {
  max-width: 420px !important;
}

.tgms .tgms-empty strong,
body .tgms .tgms-empty strong {
  max-width: 420px !important;
}

.tgms .tgms-empty span,
body .tgms .tgms-empty span {
  display: block !important;
  max-width: 420px !important;
  width: 100% !important;
  margin: 8px auto 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}

@media (max-width: 767px) {
  .tgms .tgms-empty span,
  body .tgms .tgms-empty span {
    white-space: normal !important;
    font-size: 12px !important;
  }
}


/* V3.1.6 Prompt examples + engraving style alignment polish */
.tgms .tgms-prompt-simple,
body .tgms .tgms-prompt-simple {
  margin-top: 22px !important;
  padding-top: 18px !important;
}

.tgms .tgms-simple-head,
body .tgms .tgms-simple-head {
  align-items: baseline !important;
  margin-bottom: 16px !important;
}

.tgms .tgms-simple-head strong,
body .tgms .tgms-simple-head strong,
.tgms .tgms-field label,
body .tgms .tgms-field label {
  font-family: Karla, Arial, sans-serif !important;
  font-style: italic !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #231714 !important;
  letter-spacing: 0 !important;
}

.tgms .tgms-field,
body .tgms .tgms-field {
  margin-top: 22px !important;
}

.tgms .tgms-field label,
body .tgms .tgms-field label {
  display: block !important;
  margin: 0 0 16px !important;
}

.tgms .tgms-style,
body .tgms .tgms-style,
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  margin-top: 0 !important;
}


/* V3.1.8 Smart section alignment without breaking textarea resize */
@media (min-width: 1025px) {
  /* Do not put 0/900 inside the textarea. It blocks the resize handle and looks messy. */
  .tgms .tgms-count,
  body .tgms .tgms-count {
    position: static !important;
    height: auto !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    line-height: 14px !important;
    text-align: right !important;
    pointer-events: none !important;
    z-index: auto !important;
  }

  /* Keep textarea resizable. Only min-height is set, no fixed height. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt {
    min-height: 246px !important;
    resize: vertical !important;
  }

  /* Match the upload box initial height with the prompt box. */
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 246px !important;
    margin-bottom: 16px !important;
  }

  /* Balanced gap after the top box in both cards. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 18px !important;
    padding-top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 22px !important;
  }

  /* Same typography and same section rhythm. */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head {
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    font-family: Karla, Arial, sans-serif !important;
    font-style: italic !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #231714 !important;
    letter-spacing: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span {
    display: none !important;
  }

  /* Button rows start cleanly after the title row. */
  .tgms .tgms-left > .tgms-card:first-child .tgms-example-buttons,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-example-buttons,
  .tgms .tgms-left > .tgms-card:nth-child(2) .tgms-style,
  body .tgms .tgms-left > .tgms-card:nth-child(2) .tgms-style {
    margin-top: 0 !important;
  }
}

@media (max-width: 1024px) {
  .tgms .tgms-count,
  body .tgms .tgms-count {
    position: static !important;
    height: auto !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }
}

/* V3.1.9 Final visual alignment fixes */
@media (min-width: 1025px) {
  /* Visually align Prompt examples with Choose engraving style */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    min-height: 24px !important;
    height: 24px !important;
    margin: 0 0 16px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Keep checkbox text vertically centered with the box */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 24px !important;
  line-height: 1 !important;
}

.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
}

.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  line-height: 1.1 !important;
}

/* V3.1.10 precise section alignment */
@media (min-width: 1025px) {
  /* Move Prompt examples slightly up so it lines up with Choose engraving style */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: -4px !important;
    padding-top: 0 !important;
  }

  /* Match both section headings in size, weight and baseline */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    min-height: 28px !important;
    height: 28px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span {
    display: none !important;
  }

  /* Keep the count tucked closer to the textarea so the next section can start higher */
  .tgms .tgms-count,
  body .tgms .tgms-count {
    margin-top: -24px !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
  }
}

/* Better vertical centering for preferred color checkbox row */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  align-self: center !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0 !important;
}


/* V3.1.11 Professional section rhythm fix */
@media (min-width: 1025px) {
  /* Keep both first boxes the same height */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 246px !important;
  }

  /* Counter is back in normal flow. It no longer overlaps the section title. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-count,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-count {
    position: static !important;
    height: 14px !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    line-height: 14px !important;
    text-align: right !important;
    pointer-events: none !important;
    z-index: auto !important;
  }

  /* Equal rhythm after the first box:
     First card = textarea + counter + 26px gap.
     Second card = upload box + 46px gap.
     This makes the two headings land on the same visual line. */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 26px !important;
    padding-top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    margin-bottom: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 46px !important;
  }

  /* Same heading baseline and gap before buttons */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head strong,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    font-family: Karla, Arial, sans-serif !important;
    font-style: italic !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #231714 !important;
    letter-spacing: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head span {
    display: none !important;
  }
}

/* Checkbox row exact vertical alignment */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  column-gap: 12px !important;
  align-items: center !important;
  min-height: 24px !important;
  margin: 0 !important;
}

.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
}

.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 24px !important;
}


/* V3.1.12 Compact top boxes + aligned section headings */
@media (min-width: 1025px) {
  /* Reduce the first two top boxes so the next section starts higher */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 220px !important;
  }

  /* Keep the counter underneath without stealing vertical space */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-count,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-count {
    margin: 8px 0 0 !important;
  }

  /* Make both lower sections start on the same visual line */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 18px !important;
  }

  /* Remove any extra gap after upload box so alignment stays clean */
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    margin-bottom: 0 !important;
  }

  /* Keep both headings on the same baseline and same weight/size */
  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    display: flex !important;
    align-items: center !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
  }
}


/* V3.1.13 Hard alignment override for Prompt examples / Choose engraving style */
@media (min-width: 1025px) {
  /* Equalize the top control zones */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-upload-box {
    min-height: 190px !important;
    height: 190px !important;
    box-sizing: border-box !important;
  }

  /* Keep the counter tight so it does not push the section down */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-count,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-count {
    margin: 8px 0 8px !important;
    min-height: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Hard-align both section headings on the same visual line */
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: -18px !important;
  }

  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
  }

  .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  body .tgms .tgms-left > .tgms-card:first-child .tgms-simple-head,
  .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label,
  body .tgms .tgms-left > .tgms-card:nth-child(2) > .tgms-field:first-of-type > label {
    margin: 0 0 18px !important;
    min-height: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.15 !important;
  }
}


/* V3.1.15 Final 2px upward shift */
@media (min-width: 1025px) {
  .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple,
  body .tgms .tgms-left > .tgms-card:first-child > .tgms-prompt-simple {
    top: -16px !important;
  }
}


/* V3.1.16 Cleanup: textarea handle, checkbox row, upload box */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  resize: none !important;
}

.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  min-height: 28px !important;
}
.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-block !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  min-height: 190px !important;
  height: 190px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
}
.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(75, 36, 18, .65) !important;
}
.tgms .tgms-upload-box .tgms-upload-icon svg,
body .tgms .tgms-upload-box .tgms-upload-icon svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
}
.tgms .tgms-upload-box strong,
body .tgms .tgms-upload-box strong {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: rgba(75, 36, 18, .72) !important;
}
.tgms .tgms-upload-box em,
body .tgms .tgms-upload-box em {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: rgba(75, 36, 18, .62) !important;
  max-width: 420px !important;
}
.tgms .tgms-upload-box small,
body .tgms .tgms-upload-box small {
  display: block !important;
  margin: 0 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: rgba(75, 36, 18, .54) !important;
}


/* V3.1.17 UI polish */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  resize: none !important;
  overflow: auto !important;
}
.tgms .tgms-prompt::-webkit-resizer,
body .tgms .tgms-prompt::-webkit-resizer {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Make smaller option boxes clean white like font select */
.tgms .tgms-style button,
body .tgms .tgms-style button,
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  background: #ffffff !important;
}

/* Better upload box */
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  min-height: 170px !important;
  height: 170px !important;
  gap: 8px !important;
  padding: 16px 18px !important;
  background: #fff !important;
}
.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 36px !important;
  height: 36px !important;
  color: rgba(75,36,18,.58) !important;
  margin-bottom: 2px !important;
}
.tgms .tgms-upload-box .tgms-upload-icon svg,
body .tgms .tgms-upload-box .tgms-upload-icon svg {
  width: 28px !important;
  height: 28px !important;
}
.tgms .tgms-upload-box strong,
body .tgms .tgms-upload-box strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgba(75,36,18,.72) !important;
  line-height: 1.2 !important;
}
.tgms .tgms-upload-box em,
body .tgms .tgms-upload-box em {
  font-size: 13px !important;
  line-height: 1.45 !important;
  max-width: 360px !important;
  color: rgba(75,36,18,.55) !important;
}
.tgms .tgms-upload-box small,
body .tgms .tgms-upload-box small {
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: rgba(75,36,18,.48) !important;
  letter-spacing: .01em !important;
}

/* Preferred color alignment */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}
.tgms .tgms-check-row input,
body .tgms .tgms-check-row input {
  margin: 0 !important;
  align-self: center !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  line-height: 1 !important;
}


/* V3.1.18 final UI request */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  resize: none !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.tgms .tgms-prompt::-webkit-resizer,
body .tgms .tgms-prompt::-webkit-resizer,
.tgms .tgms-prompt::-webkit-scrollbar-corner,
body .tgms .tgms-prompt::-webkit-scrollbar-corner {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Small option boxes: keep size, just white background and 13px text */
.tgms .tgms-style button,
body .tgms .tgms-style button,
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  background: #ffffff !important;
  font-size: 13px !important;
}

/* Cleaner upload icon */
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  gap: 10px !important;
}
.tgms .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-upload-box .tgms-upload-icon {
  width: 34px !important;
  height: 34px !important;
  color: rgba(75,36,18,.62) !important;
  margin-bottom: 0 !important;
}
.tgms .tgms-upload-box .tgms-upload-icon svg,
body .tgms .tgms-upload-box .tgms-upload-icon svg {
  width: 30px !important;
  height: 30px !important;
}

/* Preferred color checkbox in one line */
.tgms .tgms-check-row,
body .tgms .tgms-check-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}
.tgms .tgms-check-row span,
body .tgms .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  min-height: 24px !important;
}


/* V3.1.19 Inner boxes white background */
.tgms .tgms-prompt,
body .tgms .tgms-prompt,
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box,
.tgms .tgms-selected,
body .tgms .tgms-selected,
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex,
.tgms .tgms-color-placement,
body .tgms .tgms-color-placement,
.tgms .tgms-font,
body .tgms .tgms-font,
.tgms select,
body .tgms select,
.tgms input[type="text"],
body .tgms input[type="text"],
.tgms input[type="url"],
body .tgms input[type="url"],
.tgms input[type="email"],
body .tgms input[type="email"],
.tgms input[type="number"],
body .tgms input[type="number"] {
  background: #ffffff !important;
}

/* Keep preview surface clean white */
.tgms .tgms-selected::before,
body .tgms .tgms-selected::before {
  background: #ffffff !important;
}

/* White small option boxes; keep existing size */
.tgms .tgms-style button,
body .tgms .tgms-style button,
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button,
.tgms .tgms-edit-chips button,
body .tgms .tgms-edit-chips button {
  background: #ffffff !important;
}

/* Preferred color controls: white inputs, soft outer panel */
.tgms .tgms-color-controls,
body .tgms .tgms-color-controls {
  background: #fffaf7 !important;
}

.tgms .tgms-color-row input,
body .tgms .tgms-color-row input {
  background: #ffffff !important;
}


/* V3.1.20 Preferred color checkbox alignment */
.tgms .tgms-color-pref .tgms-check-row,
body .tgms .tgms-color-pref .tgms-check-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #301618 !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  display: inline-grid !important;
  place-content: center !important;
  flex: 0 0 20px !important;
  transform: translateY(0) !important;
}

.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked {
  background: #301618 !important;
}

.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked::after,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked::after {
  content: "✓";
  color: #ffffff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  transform: translateY(-1px) !important;
}

.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: translateY(1px) !important;
  white-space: nowrap !important;
}


/* V3.1.21 Full color swatch fill */
.tgms .tgms-color-row input[type="color"],
body .tgms .tgms-color-row input[type="color"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

.tgms .tgms-color-row input[type="color"]::-webkit-color-swatch-wrapper,
body .tgms .tgms-color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0 !important;
  border: 0 !important;
}

.tgms .tgms-color-row input[type="color"]::-webkit-color-swatch,
body .tgms .tgms-color-row input[type="color"]::-webkit-color-swatch {
  border: 0 !important;
  border-radius: 10px !important;
}

.tgms .tgms-color-row input[type="color"]::-moz-color-swatch,
body .tgms .tgms-color-row input[type="color"]::-moz-color-swatch {
  border: 0 !important;
  border-radius: 10px !important;
}


/* V3.1.22 Quick edit section polish */
.tgms .tgms-quick-edit {
  margin-top: 18px !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  border: 1px solid rgba(91, 12, 4, .12) !important;
  box-shadow: 0 10px 26px rgba(91, 12, 4, .04) !important;
}

.tgms .tgms-quick-edit-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(91, 12, 4, .10) !important;
}

.tgms .tgms-quick-edit-head strong {
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-style: italic !important;
  font-weight: 700 !important;
}

.tgms .tgms-quick-edit-head span {
  color: rgba(75, 36, 18, .70) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.tgms .tgms-edit-chips {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.tgms .tgms-edit-chips button {
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 12, 4, .16) !important;
  background: #ffffff !important;
  color: #301618 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  box-shadow: none !important;
}

.tgms .tgms-edit-chips button:hover {
  background: #fff7f2 !important;
  border-color: rgba(91, 12, 4, .28) !important;
}

.tgms .tgms-edit-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 190px !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.tgms .tgms-edit-row .tgms-edit-input {
  min-height: 52px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(91, 12, 4, .16) !important;
  background: #ffffff !important;
  color: #35231c !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.tgms .tgms-edit-row .tgms-edit-input::placeholder {
  color: rgba(75, 36, 18, .38) !important;
}

.tgms .tgms-edit-row .tgms-edit-apply {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.tgms .tgms-quick-edit p {
  margin: 12px 0 0 !important;
  color: rgba(75, 36, 18, .64) !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

@media (max-width: 1024px) {
  .tgms .tgms-edit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .tgms .tgms-quick-edit {
    padding: 16px !important;
  }
  .tgms .tgms-edit-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .tgms .tgms-edit-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}


/* V3.1.24 Artwork rights checkbox alignment */
.tgms .tgms-confirm,
body .tgms .tgms-confirm {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  min-height: 32px !important;
  color: #231714 !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.tgms .tgms-confirm input.tgms-rights,
body .tgms .tgms-confirm input.tgms-rights {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  flex: 0 0 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid rgba(35, 23, 20, .48) !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  display: inline-grid !important;
  place-content: center !important;
  transform: translateY(0) !important;
}

.tgms .tgms-confirm input.tgms-rights:checked,
body .tgms .tgms-confirm input.tgms-rights:checked {
  background: #301618 !important;
  border-color: #301618 !important;
}

.tgms .tgms-confirm input.tgms-rights:checked::after,
body .tgms .tgms-confirm input.tgms-rights:checked::after {
  content: "✓";
  color: #ffffff !important;
  font-family: Karla, Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  transform: translateY(-1px) !important;
}

.tgms .tgms-confirm span,
body .tgms .tgms-confirm span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}


/* V3.1.27 Create/Upload tab text size */
.tgms .tgms-tab,
body .tgms .tgms-tab,
.tgms .tgms-tabs button,
body .tgms .tgms-tabs button {
  font-size: 22px !important;
  line-height: 1.2 !important;
}


/* V3.1.28 Balanced Create/Upload tab size */
.tgms .tgms-tab,
body .tgms .tgms-tab,
.tgms .tgms-tabs button,
body .tgms .tgms-tabs button {
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.tgms .tgms-tab svg,
body .tgms .tgms-tab svg,
.tgms .tgms-tabs button svg,
body .tgms .tgms-tabs button svg {
  width: 20px !important;
  height: 20px !important;
}

/* V3.3.1 — artwork-first Create with AI. Site width is controlled by the unified frame. */

@media (min-width: 1100px) {
  .tgms .tgms-layout,
  body .tgms .tgms-layout {
    grid-template-columns: minmax(320px, .29fr) minmax(350px, .29fr) minmax(620px, .42fr) !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
}

.tgms .tgms-ai-artwork-preview-card,
body .tgms .tgms-ai-artwork-preview-card {
  width: 100% !important;
  min-width: 0 !important;
}

.tgms .tgms-ai-artwork-preview-card .tgms-preview-head,
body .tgms .tgms-ai-artwork-preview-card .tgms-preview-head {
  align-items: flex-start !important;
  margin-bottom: 16px !important;
}

.tgms .tgms-ai-artwork-preview-card .tgms-preview-head p,
body .tgms .tgms-ai-artwork-preview-card .tgms-preview-head p {
  display: block !important;
  margin: 5px 0 0 !important;
  max-width: 520px !important;
  color: #7b655c !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.tgms .tgms-ai-result-grid,
body .tgms .tgms-ai-result-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.tgms .tgms-ai-artwork-panel,
.tgms .tgms-ai-product-panel,
body .tgms .tgms-ai-artwork-panel,
body .tgms .tgms-ai-product-panel {
  min-width: 0 !important;
}

.tgms .tgms-result-label,
body .tgms .tgms-result-label {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
}

.tgms .tgms-result-label strong,
body .tgms .tgms-result-label strong {
  color: #301618 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.tgms .tgms-result-label span,
body .tgms .tgms-result-label span {
  color: #927b70 !important;
  font-size: 10px !important;
  text-align: right !important;
}

.tgms .tgms-artwork-selected,
body .tgms .tgms-artwork-selected {
  position: relative !important;
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: var(--tgms-ai-canvas-ratio, 1 / 1) !important;
  border: 1px solid rgba(75, 11, 4, .14) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%) !important;
  display: grid !important;
  place-items: center !important;
}

.tgms .tgms-artwork-selected::before,
body .tgms .tgms-artwork-selected::before {
  content: none !important;
  display: none !important;
}

.tgms .tgms-artwork-selected .tgms-selected-img,
body .tgms .tgms-artwork-selected .tgms-selected-img {
  position: absolute !important;
  inset: 14px !important;
  width: calc(100% - 28px) !important;
  height: calc(100% - 28px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.tgms .tgms-artwork-placeholder,
body .tgms .tgms-artwork-placeholder {
  width: 60px !important;
  height: 60px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto 12px !important;
  border-radius: 16px !important;
  background: #fff2ea !important;
  color: #301618 !important;
  font-size: 28px !important;
}

.tgms .tgms-ai-product-panel,
body .tgms .tgms-ai-product-panel {
  padding: 12px !important;
  border: 1px solid rgba(75, 11, 4, .12) !important;
  border-radius: 16px !important;
  background: #fffaf6 !important;
}

.tgms .tgms-ai-product-stage,
body .tgms .tgms-ai-product-stage {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid rgba(75, 11, 4, .08) !important;
  box-shadow: 0 10px 28px rgba(75, 11, 4, .08) !important;
}

.tgms .tgms-ai-product-img,
body .tgms .tgms-ai-product-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  pointer-events: none !important;
  user-select: none !important;
}

.tgms .tgms-ai-product-mask,
body .tgms .tgms-ai-product-mask {
  position: absolute !important;
  overflow: hidden !important;
  border: 1px dashed rgba(213, 154, 49, .72) !important;
  background: rgba(213, 154, 49, .035) !important;
  transform-origin: center center !important;
  pointer-events: none !important;
}

.tgms .tgms-ai-product-mask.has-artwork,
body .tgms .tgms-ai-product-mask.has-artwork {
  border-color: rgba(75, 11, 4, .25) !important;
  background: transparent !important;
}

.tgms .tgms-ai-product-artwork,
body .tgms .tgms-ai-product-artwork {
  width: 100% !important;
  height: 100% !important;
  object-fit: var(--tgms-ai-product-fit, contain) !important;
  object-position: center !important;
  transform: var(--tgms-ai-product-scale, scale(1)) !important;
  transform-origin: center center !important;
  display: none;
  background: transparent !important;
}

.tgms .tgms-ai-product-side,
body .tgms .tgms-ai-product-side {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  z-index: 4 !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(75, 11, 4, .1) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #301618 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

.tgms .tgms-ai-product-note,
body .tgms .tgms-ai-product-note {
  margin: 10px 0 0 !important;
  color: #7b655c !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.tgms .tgms-ai-artwork-preview-card .tgms-options,
body .tgms .tgms-ai-artwork-preview-card .tgms-options {
  margin-top: 10px !important;
  grid-template-columns: repeat(4, minmax(64px, 1fr)) !important;
  gap: 8px !important;
}

.tgms .tgms-ai-artwork-preview-card .tgms-option,
body .tgms .tgms-ai-artwork-preview-card .tgms-option {
  min-width: 0 !important;
}

.tgms .tgms-ai-artwork-preview-card .tgms-option img,
body .tgms .tgms-ai-artwork-preview-card .tgms-option img {
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background: #fffaf6 !important;
}

@media (max-width: 1280px) {
  .tgms .tgms-ai-result-grid,
  body .tgms .tgms-ai-result-grid {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-ai-product-panel,
  body .tgms .tgms-ai-product-panel {
    display: grid !important;
    grid-template-columns: minmax(150px, 220px) 1fr !important;
    gap: 12px !important;
    align-items: start !important;
  }
  .tgms .tgms-ai-product-panel .tgms-result-label,
  body .tgms .tgms-ai-product-panel .tgms-result-label {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 767px) {
  .tgms,
  body .tgms {
    width: calc(100vw - 20px) !important;
  }
  .tgms .tgms-ai-product-panel,
  body .tgms .tgms-ai-product-panel {
    display: block !important;
  }
}

/* Center the wider studio even when the shortcode sits inside a boxed Elementor/Rey container. */
.tgms,
body .tgms {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.tgms .tgms-artwork-selected,
body .tgms .tgms-artwork-selected {
  height: auto !important;
}
.tgms .tgms-ai-artwork-preview-card .tgms-options:empty::before,
body .tgms .tgms-ai-artwork-preview-card .tgms-options:empty::before {
  content: "Generated artwork options will appear here." !important;
}


/* V3.3.2 declutter Create with AI panel */
.tgms .tgms-preview-head--clean,
body .tgms .tgms-preview-head--clean { margin-bottom: 14px !important; }
.tgms .tgms-preview-head--clean h3,
body .tgms .tgms-preview-head--clean h3 { margin: 0 !important; }
.tgms .tgms-preview-head--clean p,
body .tgms .tgms-preview-head--clean p { display:none !important; }
.tgms .tgms-ai-result-grid, body .tgms .tgms-ai-result-grid { gap: 14px !important; align-items: stretch !important; }
.tgms .tgms-ai-product-panel, body .tgms .tgms-ai-product-panel { display:flex !important; flex-direction:column !important; justify-content:flex-start !important; }
.tgms .tgms-ai-product-stage, body .tgms .tgms-ai-product-stage { aspect-ratio: 1 / 1 !important; }
.tgms .tgms-ai-product-note, body .tgms .tgms-ai-product-note { display:none !important; }
.tgms .tgms-ai-action-row, body .tgms .tgms-ai-action-row { display:flex !important; gap:10px !important; flex-wrap:wrap !important; margin: 14px 0 0 !important; }
.tgms .tgms-action-btn, body .tgms .tgms-action-btn { appearance:none !important; border:1px solid rgba(75,11,4,.18) !important; background:#fffaf6 !important; color:#301618 !important; border-radius:999px !important; min-height:42px !important; padding:0 16px !important; font-size:14px !important; font-weight:800 !important; cursor:pointer !important; transition:all .18s ease !important; }
.tgms .tgms-action-btn:hover:not(:disabled), body .tgms .tgms-action-btn:hover:not(:disabled) { border-color:#301618 !important; background:#fff2ea !important; transform: translateY(-1px) !important; }
.tgms .tgms-action-btn:disabled, body .tgms .tgms-action-btn:disabled { opacity:.42 !important; cursor:not-allowed !important; transform:none !important; }
.tgms .tgms-action-edit, body .tgms .tgms-action-edit { background:#301618 !important; border-color:#301618 !important; color:#fff !important; }
.tgms .tgms-action-edit:hover:not(:disabled), body .tgms .tgms-action-edit:hover:not(:disabled) { background:#301618 !important; color:#fff !important; }
.tgms .tgms-mockup-strip, body .tgms .tgms-mockup-strip { margin-top: 14px !important; }
.tgms .tgms-mini-section-head, body .tgms .tgms-mini-section-head { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:10px !important; margin-bottom:8px !important; }
.tgms .tgms-mini-section-head strong, body .tgms .tgms-mini-section-head strong { color:#301618 !important; font-size:13px !important; font-weight:800 !important; }
.tgms .tgms-mini-section-head span, body .tgms .tgms-mini-section-head span { color:#927b70 !important; font-size:11px !important; }
.tgms .tgms-ai-artwork-preview-card .tgms-options, body .tgms .tgms-ai-artwork-preview-card .tgms-options { margin-top:0 !important; grid-template-columns:repeat(4,minmax(64px,1fr)) !important; }
.tgms .tgms-ai-artwork-preview-card .tgms-options:empty::before, body .tgms .tgms-ai-artwork-preview-card .tgms-options:empty::before { content:none !important; display:none !important; }
.tgms .tgms-quick-edit, body .tgms .tgms-quick-edit { margin-top: 14px !important; border:1px solid rgba(75,11,4,.1) !important; background:#fffaf6 !important; border-radius:16px !important; padding:16px !important; }
.tgms .tgms-quick-edit[hidden], body .tgms .tgms-quick-edit[hidden] { display:none !important; }
.tgms .tgms-review-note, body .tgms .tgms-review-note { margin:14px 0 0 !important; padding:12px 14px !important; border-radius:14px !important; background:#fff8ef !important; border:1px solid rgba(75,11,4,.08) !important; font-size:12px !important; line-height:1.45 !important; color:#6f564b !important; }
.tgms .tgms-add-cart, body .tgms .tgms-add-cart { margin-top:14px !important; position:sticky !important; bottom:0 !important; z-index:3 !important; box-shadow:0 10px 24px rgba(75,11,4,.08) !important; }
@media (max-width: 1280px) { .tgms .tgms-add-cart, body .tgms .tgms-add-cart { position:static !important; } }


/* V3.3.3 animated Create with AI wizard */
.tgms .tgms-wizard-progress, body .tgms .tgms-wizard-progress {
  width:min(760px,100%) !important; margin:0 auto 22px !important; display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:0 !important; position:relative !important;
}
.tgms .tgms-wizard-progress::before, body .tgms .tgms-wizard-progress::before {
  content:"" !important; position:absolute !important; left:11% !important; right:11% !important; top:18px !important; height:2px !important; background:#e3d4cc !important; z-index:0 !important;
}
.tgms .tgms-wizard-progress .tgms-clean-step, body .tgms .tgms-wizard-progress .tgms-clean-step {
  appearance:none !important; border:0 !important; background:transparent !important; position:relative !important; z-index:1 !important; display:flex !important; align-items:center !important; justify-content:center !important; gap:9px !important; min-height:38px !important; padding:0 8px !important; color:#8f776d !important; cursor:pointer !important; font-family:Karla,Arial,sans-serif !important;
}
.tgms .tgms-wizard-progress .tgms-clean-step span, body .tgms .tgms-wizard-progress .tgms-clean-step span {
  width:36px !important; height:36px !important; display:grid !important; place-items:center !important; border-radius:999px !important; border:1px solid #d9c7bd !important; background:#fff !important; color:#301618 !important; font-weight:900 !important; transition:all .25s ease !important;
}
.tgms .tgms-wizard-progress .tgms-clean-step strong, body .tgms .tgms-wizard-progress .tgms-clean-step strong { font-size:14px !important; font-weight:800 !important; white-space:nowrap !important; }
.tgms .tgms-wizard-progress .tgms-clean-step.is-active span, body .tgms .tgms-wizard-progress .tgms-clean-step.is-active span { background:#301618 !important; border-color:#301618 !important; color:#fff !important; box-shadow:0 7px 18px rgba(122,22,12,.18) !important; transform:scale(1.06) !important; }
.tgms .tgms-wizard-progress .tgms-clean-step.is-active, body .tgms .tgms-wizard-progress .tgms-clean-step.is-active { color:#301618 !important; }
.tgms .tgms-wizard-progress .tgms-clean-step.is-complete span, body .tgms .tgms-wizard-progress .tgms-clean-step.is-complete span { font-size:0 !important; background:#fff2ea !important; border-color:#301618 !important; }
.tgms .tgms-wizard-progress .tgms-clean-step.is-complete span::after, body .tgms .tgms-wizard-progress .tgms-clean-step.is-complete span::after { content:"✓" !important; font-size:15px !important; color:#301618 !important; }
.tgms.tgms-upload-mode .tgms-wizard-progress, body .tgms.tgms-upload-mode .tgms-wizard-progress { display:none !important; }

.tgms .tgms-panel[data-panel="ai"] .tgms-layout, body .tgms .tgms-panel[data-panel="ai"] .tgms-layout { display:block !important; width:100% !important; }
.tgms .tgms-panel[data-panel="ai"] .tgms-left, body .tgms .tgms-panel[data-panel="ai"] .tgms-left { display:contents !important; }
.tgms .tgms-wizard-screen, body .tgms .tgms-wizard-screen { display:none !important; opacity:0 !important; transform:translateY(18px) scale(.992) !important; }
.tgms .tgms-wizard-screen.is-active, body .tgms .tgms-wizard-screen.is-active { display:block !important; }
.tgms .tgms-wizard-screen.is-active.is-entering, body .tgms .tgms-wizard-screen.is-active.is-entering { animation:tgmsWizardEnter .38s cubic-bezier(.2,.75,.25,1) forwards !important; }
@keyframes tgmsWizardEnter { from { opacity:0; transform:translateY(18px) scale(.992); } to { opacity:1; transform:translateY(0) scale(1); } }

.tgms .tgms-wizard-screen--describe, .tgms .tgms-wizard-screen--style, body .tgms .tgms-wizard-screen--describe, body .tgms .tgms-wizard-screen--style { width:min(820px,100%) !important; margin:0 auto !important; padding:32px !important; border-radius:22px !important; }
.tgms .tgms-wizard-screen--review, body .tgms .tgms-wizard-screen--review { width:min(1180px,100%) !important; margin:0 auto !important; }
.tgms .tgms-wizard-screen-kicker, body .tgms .tgms-wizard-screen-kicker { display:inline-flex !important; align-items:center !important; min-height:28px !important; padding:0 11px !important; border-radius:999px !important; margin-bottom:13px !important; background:#fff2ea !important; color:#301618 !important; font-size:11px !important; font-weight:900 !important; letter-spacing:.05em !important; text-transform:uppercase !important; }
.tgms .tgms-wizard-intro, body .tgms .tgms-wizard-intro { margin:-3px 0 22px !important; color:#776159 !important; font-size:14px !important; line-height:1.55 !important; }
.tgms .tgms-wizard-subtitle, body .tgms .tgms-wizard-subtitle { margin:0 0 10px !important; color:#301618 !important; font-size:16px !important; font-weight:900 !important; font-style:italic !important; }
.tgms .tgms-wizard-subtitle span, body .tgms .tgms-wizard-subtitle span { color:#8d776d !important; font-weight:600 !important; }
.tgms .tgms-wizard-screen--style > h3, body .tgms .tgms-wizard-screen--style > h3 { margin-bottom:9px !important; }
.tgms .tgms-wizard-nav, body .tgms .tgms-wizard-nav { display:flex !important; align-items:center !important; gap:12px !important; margin-top:24px !important; }
.tgms .tgms-wizard-nav--end, body .tgms .tgms-wizard-nav--end { justify-content:flex-end !important; }
.tgms .tgms-wizard-nav--end .tgms-primary, body .tgms .tgms-wizard-nav--end .tgms-primary { width:auto !important; min-width:230px !important; }
.tgms .tgms-wizard-nav--split, body .tgms .tgms-wizard-nav--split { display:grid !important; grid-template-columns:minmax(120px,.32fr) minmax(220px,.68fr) !important; }
.tgms .tgms-wizard-nav--split .tgms-primary, body .tgms .tgms-wizard-nav--split .tgms-primary { margin-top:0 !important; }
.tgms .tgms-wizard-secondary, body .tgms .tgms-wizard-secondary { min-height:52px !important; border-radius:14px !important; border:1px solid rgba(75,11,4,.16) !important; background:#fffaf6 !important; color:#301618 !important; font-size:14px !important; font-weight:800 !important; cursor:pointer !important; }
.tgms .tgms-wizard-secondary:hover, body .tgms .tgms-wizard-secondary:hover { background:#fff2ea !important; border-color:#301618 !important; }
.tgms .tgms-wizard-next:disabled, body .tgms .tgms-wizard-next:disabled { opacity:.42 !important; cursor:not-allowed !important; }
.tgms .tgms-wizard-screen--review .tgms-ai-artwork-preview-card, body .tgms .tgms-wizard-screen--review .tgms-ai-artwork-preview-card { min-height:0 !important; }
.tgms .tgms-wizard-back-settings, body .tgms .tgms-wizard-back-settings { order:-1 !important; }

@media (max-width:767px) {
  .tgms .tgms-wizard-progress .tgms-clean-step, body .tgms .tgms-wizard-progress .tgms-clean-step { flex-direction:column !important; gap:5px !important; }
  .tgms .tgms-wizard-progress::before, body .tgms .tgms-wizard-progress::before { top:18px !important; }
  .tgms .tgms-wizard-progress .tgms-clean-step strong, body .tgms .tgms-wizard-progress .tgms-clean-step strong { font-size:11px !important; }
  .tgms .tgms-wizard-screen--describe, .tgms .tgms-wizard-screen--style, body .tgms .tgms-wizard-screen--describe, body .tgms .tgms-wizard-screen--style { padding:20px !important; }
  .tgms .tgms-wizard-nav--split, body .tgms .tgms-wizard-nav--split { grid-template-columns:1fr !important; }
  .tgms .tgms-wizard-nav--end .tgms-primary, body .tgms .tgms-wizard-nav--end .tgms-primary { width:100% !important; min-width:0 !important; }
}


/* V3.3.4 first-screen choice and robust workspace visibility */
.tgms .tgms-entry-choice[hidden],
.tgms .tgms-workspace-shell[hidden],
body .tgms .tgms-entry-choice[hidden],
body .tgms .tgms-workspace-shell[hidden] { display:none !important; }

.tgms .tgms-tabs, body .tgms .tgms-tabs { display:none !important; }

.tgms .tgms-entry-choice, body .tgms .tgms-entry-choice {
  width:min(1040px,100%) !important;
  margin:28px auto 0 !important;
  animation:tgmsChoiceIn .42s cubic-bezier(.2,.75,.25,1) both !important;
}
@keyframes tgmsChoiceIn { from { opacity:0; transform:translateY(18px) scale(.99); } to { opacity:1; transform:none; } }
.tgms .tgms-entry-choice-card, body .tgms .tgms-entry-choice-card {
  padding:38px !important;
  border:1px solid rgba(75,11,4,.10) !important;
  border-radius:26px !important;
  background:linear-gradient(180deg,#fff 0%,#fffaf6 100%) !important;
  box-shadow:0 20px 55px rgba(75,11,4,.08) !important;
  text-align:center !important;
}
.tgms .tgms-entry-kicker, body .tgms .tgms-entry-kicker {
  display:inline-flex !important; align-items:center !important; min-height:28px !important; padding:0 12px !important;
  border-radius:999px !important; background:#fff2ea !important; color:#301618 !important; font-size:11px !important; font-weight:900 !important; letter-spacing:.08em !important; text-transform:uppercase !important;
}
.tgms .tgms-entry-choice h3, body .tgms .tgms-entry-choice h3 { margin:14px 0 8px !important; color:#301618 !important; font-size:clamp(28px,3vw,42px) !important; line-height:1.08 !important; font-weight:900 !important; }
.tgms .tgms-entry-choice-card > p, body .tgms .tgms-entry-choice-card > p { margin:0 auto 28px !important; color:#776159 !important; font-size:16px !important; }
.tgms .tgms-entry-options, body .tgms .tgms-entry-options { display:grid !important; grid-template-columns:1fr 1fr !important; gap:18px !important; }
.tgms .tgms-entry-option, body .tgms .tgms-entry-option {
  min-height:150px !important; padding:24px !important; border:1px solid rgba(75,11,4,.14) !important; border-radius:20px !important; background:#fff !important; color:#301618 !important;
  display:grid !important; grid-template-columns:56px minmax(0,1fr) 28px !important; align-items:center !important; gap:16px !important; text-align:left !important; cursor:pointer !important; box-shadow:0 10px 28px rgba(75,11,4,.05) !important; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease !important;
}
.tgms .tgms-entry-option:hover, body .tgms .tgms-entry-option:hover { transform:translateY(-3px) !important; border-color:#301618 !important; box-shadow:0 18px 38px rgba(75,11,4,.12) !important; }
.tgms .tgms-entry-option--ai, body .tgms .tgms-entry-option--ai { background:linear-gradient(135deg,#301618,#301618) !important; color:#fff !important; border-color:#301618 !important; }
.tgms .tgms-entry-icon, body .tgms .tgms-entry-icon { width:56px !important; height:56px !important; display:grid !important; place-items:center !important; border-radius:16px !important; background:#fff2ea !important; color:#301618 !important; font-size:25px !important; font-weight:900 !important; }
.tgms .tgms-entry-option--ai .tgms-entry-icon, body .tgms .tgms-entry-option--ai .tgms-entry-icon { background:rgba(255,255,255,.14) !important; color:#fff !important; }
.tgms .tgms-entry-copy strong, body .tgms .tgms-entry-copy strong { display:block !important; margin-bottom:7px !important; font-size:21px !important; line-height:1.15 !important; color:inherit !important; }
.tgms .tgms-entry-copy small, body .tgms .tgms-entry-copy small { display:block !important; color:#80685d !important; font-size:13px !important; line-height:1.5 !important; }
.tgms .tgms-entry-option--ai .tgms-entry-copy small, body .tgms .tgms-entry-option--ai .tgms-entry-copy small { color:rgba(255,255,255,.78) !important; }
.tgms .tgms-entry-arrow, body .tgms .tgms-entry-arrow { font-size:25px !important; font-weight:700 !important; color:inherit !important; transition:transform .2s ease !important; }
.tgms .tgms-entry-option:hover .tgms-entry-arrow, body .tgms .tgms-entry-option:hover .tgms-entry-arrow { transform:translateX(4px) !important; }

.tgms .tgms-workspace-shell, body .tgms .tgms-workspace-shell { width:100% !important; opacity:1 !important; transform:none !important; }
.tgms .tgms-workspace-topbar, body .tgms .tgms-workspace-topbar { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:16px !important; width:min(1180px,100%) !important; margin:0 auto 18px !important; }
.tgms .tgms-back-to-choice, body .tgms .tgms-back-to-choice { min-height:42px !important; padding:0 15px !important; border:1px solid rgba(75,11,4,.15) !important; border-radius:999px !important; background:#fffaf6 !important; color:#301618 !important; font-size:13px !important; font-weight:800 !important; cursor:pointer !important; }
.tgms .tgms-back-to-choice:hover, body .tgms .tgms-back-to-choice:hover { background:#fff2ea !important; border-color:#301618 !important; }
.tgms .tgms-workspace-title, body .tgms .tgms-workspace-title { color:#301618 !important; font-size:16px !important; font-weight:900 !important; }

/* Never leave an active wizard screen transparent. Animation is enhancement only. */
.tgms .tgms-wizard-screen.is-active, body .tgms .tgms-wizard-screen.is-active { display:block !important; opacity:1 !important; transform:none !important; }
.tgms .tgms-panel.is-active, body .tgms .tgms-panel.is-active { display:block !important; opacity:1 !important; visibility:visible !important; }

@media (max-width:760px) {
  .tgms .tgms-entry-choice-card, body .tgms .tgms-entry-choice-card { padding:22px !important; }
  .tgms .tgms-entry-options, body .tgms .tgms-entry-options { grid-template-columns:1fr !important; }
  .tgms .tgms-entry-option, body .tgms .tgms-entry-option { min-height:125px !important; grid-template-columns:48px minmax(0,1fr) 22px !important; padding:18px !important; }
  .tgms .tgms-entry-icon, body .tgms .tgms-entry-icon { width:48px !important; height:48px !important; }
  .tgms .tgms-workspace-topbar, body .tgms .tgms-workspace-topbar { align-items:flex-start !important; }
}


/* V3.3.6 visual style cards */
.tgms .tgms-style-intro,
body .tgms .tgms-style-intro { margin: 2px 0 12px !important; color:#7e685d !important; font-size:13px !important; line-height:1.5 !important; }
.tgms .tgms-style-cards, body .tgms .tgms-style-cards { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:12px !important; }
.tgms .tgms-style-card, body .tgms .tgms-style-card { display:flex !important; flex-direction:column !important; align-items:stretch !important; text-align:left !important; min-height:188px !important; padding:10px !important; border-radius:20px !important; background:#fffdfb !important; border:1px solid rgba(75,11,4,.12) !important; box-shadow:0 8px 22px rgba(75,11,4,.04) !important; overflow:hidden !important; }
.tgms .tgms-style-card:hover, body .tgms .tgms-style-card:hover { transform:translateY(-2px) !important; box-shadow:0 12px 28px rgba(75,11,4,.08) !important; border-color:rgba(122,22,12,.28) !important; }
.tgms .tgms-style-card.is-active, body .tgms .tgms-style-card.is-active { border-color:#301618 !important; box-shadow:0 0 0 2px rgba(122,22,12,.08), 0 16px 34px rgba(75,11,4,.10) !important; background:#fffaf6 !important; }
.tgms .tgms-style-thumb, body .tgms .tgms-style-thumb { position:relative !important; display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; gap:6px !important; height:120px !important; border-radius:16px !important; overflow:hidden !important; border:1px solid rgba(75,11,4,.08) !important; padding:12px !important; }
.tgms .tgms-style-thumb::before, body .tgms .tgms-style-thumb::before { content:'' !important; position:absolute !important; inset:0 !important; opacity:.95 !important; }
.tgms .tgms-style-thumb > *, body .tgms .tgms-style-thumb > * { position:relative !important; z-index:1 !important; }
.tgms .tgms-style-thumb--premium::before { background:linear-gradient(135deg,#fff8ef 0%,#f2e2c8 55%,#d7ba87 100%) !important; }
.tgms .tgms-style-thumb--minimal::before { background:linear-gradient(135deg,#ffffff 0%,#f6f2ef 58%,#ebe4df 100%) !important; }
.tgms .tgms-style-thumb--cute::before { background:linear-gradient(135deg,#fff4f3 0%,#ffe2e7 50%,#f9d2e2 100%) !important; }
.tgms .tgms-style-thumb--funny::before { background:linear-gradient(135deg,#fff3e5 0%,#ffd3ab 48%,#ffbf74 100%) !important; }
.tgms .tgms-style-thumb--floral::before { background:linear-gradient(135deg,#fff8fb 0%,#f9e7ee 45%,#ecd7df 100%) !important; }
.tgms .tgms-style-thumb--luxury::before { background:linear-gradient(135deg,#372218 0%,#6e4223 40%,#d4ac63 100%) !important; }
.tgms .tgms-style-thumb--corporate::before { background:linear-gradient(135deg,#edf6f7 0%,#d9ebef 50%,#b4d9df 100%) !important; }
.tgms .tgms-style-thumb--arabic::before { background:linear-gradient(135deg,#fff7e8 0%,#f4ead9 45%,#dcc7a0 100%) !important; }
.tgms .tgms-style-word, body .tgms .tgms-style-word { font-weight:800 !important; font-size:24px !important; line-height:1 !important; color:#301618 !important; letter-spacing:.02em !important; }
.tgms .tgms-style-thumb--premium .tgms-style-word { font-family:'Cinzel', serif !important; color:#7f531a !important; }
.tgms .tgms-style-thumb--minimal .tgms-style-word { font-family:'Montserrat', sans-serif !important; letter-spacing:.18em !important; font-size:20px !important; }
.tgms .tgms-style-thumb--cute .tgms-style-word { font-family:'Dancing Script', cursive !important; font-size:30px !important; color:#a53d56 !important; }
.tgms .tgms-style-thumb--funny .tgms-style-word { font-family:'Poppins', sans-serif !important; font-size:28px !important; color:#8c3500 !important; }
.tgms .tgms-style-thumb--floral .tgms-style-word { font-family:'Great Vibes', cursive !important; font-size:32px !important; color:#8b4e65 !important; }
.tgms .tgms-style-thumb--luxury .tgms-style-word { font-family:'Cinzel', serif !important; font-size:26px !important; color:#fff0be !important; text-shadow:0 2px 10px rgba(0,0,0,.18) !important; }
.tgms .tgms-style-thumb--corporate .tgms-style-word { font-family:'Montserrat', sans-serif !important; font-size:22px !important; color:#195160 !important; text-transform:uppercase !important; }
.tgms .tgms-style-arabic { font-family:'Noto Naskh Arabic', serif !important; font-size:28px !important; line-height:1 !important; color:#7a5a1e !important; }
.tgms .tgms-style-line, body .tgms .tgms-style-line { width:72px !important; height:2px !important; border-radius:999px !important; background:rgba(122,22,12,.35) !important; }
.tgms .tgms-style-chip, body .tgms .tgms-style-chip { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:22px !important; padding:0 10px !important; border-radius:999px !important; background:rgba(255,255,255,.76) !important; color:#6a1a0d !important; font-size:11px !important; font-weight:800 !important; letter-spacing:.02em !important; }
.tgms .tgms-style-icon, body .tgms .tgms-style-icon { font-size:24px !important; line-height:1 !important; }
.tgms .tgms-style-mini, body .tgms .tgms-style-mini { font-size:12px !important; font-weight:700 !important; color:rgba(75,11,4,.65) !important; }
.tgms .tgms-style-flower, body .tgms .tgms-style-flower { position:absolute !important; left:12px !important; top:10px !important; font-size:20px !important; color:#c47992 !important; }
.tgms .tgms-style-flower--right, body .tgms .tgms-style-flower--right { left:auto !important; right:12px !important; bottom:10px !important; top:auto !important; }
.tgms .tgms-style-crown, body .tgms .tgms-style-crown { font-size:20px !important; color:#fff1af !important; }
.tgms .tgms-style-grid, body .tgms .tgms-style-grid { width:44px !important; height:26px !important; background:linear-gradient(90deg,rgba(25,81,96,.14) 33%, transparent 33%, transparent 66%, rgba(25,81,96,.14) 66%), linear-gradient(rgba(25,81,96,.14) 50%, transparent 50%) !important; background-size:14px 100%, 100% 12px !important; border-radius:6px !important; }
.tgms .tgms-style-dot, body .tgms .tgms-style-dot { width:8px !important; height:8px !important; border-radius:50% !important; background:#8f837c !important; }
.tgms .tgms-style-meta, body .tgms .tgms-style-meta { display:flex !important; flex-direction:column !important; gap:2px !important; padding:10px 4px 4px !important; }
.tgms .tgms-style-meta strong, body .tgms .tgms-style-meta strong { color:#301618 !important; font-size:16px !important; font-weight:800 !important; line-height:1.2 !important; }
.tgms .tgms-style-meta em, body .tgms .tgms-style-meta em { color:#8c766a !important; font-size:12px !important; font-style:normal !important; line-height:1.35 !important; }
@media (max-width: 1200px) { .tgms .tgms-style-cards, body .tgms .tgms-style-cards { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width: 680px) { .tgms .tgms-style-cards, body .tgms .tgms-style-cards { grid-template-columns:1fr !important; } .tgms .tgms-style-card, body .tgms .tgms-style-card { min-height:170px !important; } }


/* V3.3.11 — compact, calmer Create with AI UX. Outer width removed. */

.tgms .tgms-head,
body .tgms .tgms-head {
  max-width: 920px !important;
  margin: 0 auto 18px !important;
  text-align: center !important;
}
.tgms .tgms-head h2,
body .tgms .tgms-head h2 {
  margin: 0 0 5px !important;
  font-size: clamp(27px, 2.2vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}
.tgms .tgms-head p,
body .tgms .tgms-head p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #806c62 !important;
}
.tgms.is-workspace-open .tgms-head,
body .tgms.is-workspace-open .tgms-head {
  display: none !important;
}

/* Choice screen: one clean surface, two straightforward options. */
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice {
  width: min(940px, 100%) !important;
  margin: 0 auto !important;
}
.tgms .tgms-entry-choice-card,
body .tgms .tgms-entry-choice-card {
  padding: 26px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 24px !important;
  background: #fffdfb !important;
  box-shadow: 0 18px 55px rgba(75,11,4,.07) !important;
}
.tgms .tgms-entry-kicker,
body .tgms .tgms-entry-kicker {
  margin-bottom: 6px !important;
  color: #8b7064 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
.tgms .tgms-entry-choice-card > h3,
body .tgms .tgms-entry-choice-card > h3 {
  margin: 0 !important;
  color: #301618 !important;
  font-size: 25px !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
}
.tgms .tgms-entry-choice-card > p,
body .tgms .tgms-entry-choice-card > p {
  margin: 5px 0 18px !important;
  color: #806c62 !important;
  font-size: 13px !important;
}
.tgms .tgms-entry-options,
body .tgms .tgms-entry-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 12px !important;
}
.tgms .tgms-entry-option,
body .tgms .tgms-entry-option {
  min-height: 112px !important;
  grid-template-columns: 44px minmax(0,1fr) 20px !important;
  gap: 13px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  transform: none !important;
}
.tgms .tgms-entry-option:hover,
body .tgms .tgms-entry-option:hover {
  transform: translateY(-2px) !important;
}
.tgms .tgms-entry-option--ai,
body .tgms .tgms-entry-option--ai {
  background: #301618 !important;
}
.tgms .tgms-entry-option--upload,
body .tgms .tgms-entry-option--upload {
  background: #fff8f3 !important;
  border: 1px solid rgba(75,11,4,.13) !important;
}
.tgms .tgms-entry-icon,
body .tgms .tgms-entry-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  font-size: 19px !important;
}
.tgms .tgms-entry-copy strong,
body .tgms .tgms-entry-copy strong {
  margin-bottom: 3px !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
}
.tgms .tgms-entry-copy small,
body .tgms .tgms-entry-copy small {
  max-width: 320px !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
}
.tgms .tgms-entry-arrow,
body .tgms .tgms-entry-arrow {
  font-size: 20px !important;
}

/* Compact workspace header. */
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell {
  width: 100% !important;
}
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: min(1080px,100%) !important;
  min-height: 38px !important;
  margin: 0 auto 8px !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  min-height: 36px !important;
  padding: 0 12px !important;
  background: transparent !important;
  border-color: rgba(75,11,4,.10) !important;
  font-size: 12px !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  font-size: 14px !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  width: min(620px,100%) !important;
  margin: 0 auto 14px !important;
  padding: 5px !important;
  gap: 4px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 15px !important;
  background: #f8f3ef !important;
  box-shadow: none !important;
}
.tgms .tgms-clean-step,
body .tgms .tgms-clean-step {
  min-height: 39px !important;
  padding: 5px 10px !important;
  border-radius: 11px !important;
  gap: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tgms .tgms-clean-step::after,
body .tgms .tgms-clean-step::after {
  display: none !important;
}
.tgms .tgms-clean-step span,
body .tgms .tgms-clean-step span {
  width: 23px !important;
  height: 23px !important;
  font-size: 10px !important;
}
.tgms .tgms-clean-step strong,
body .tgms .tgms-clean-step strong {
  font-size: 12px !important;
}
.tgms .tgms-clean-step.is-active,
body .tgms .tgms-clean-step.is-active {
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(75,11,4,.07) !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert {
  width: min(980px,100%) !important;
  margin: 0 auto 10px !important;
}

/* A single centered active step instead of a large three-column canvas. */
.tgms .tgms-layout,
body .tgms .tgms-layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}
.tgms .tgms-left,
body .tgms .tgms-left {
  width: min(980px,100%) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}
.tgms .tgms-card,
body .tgms .tgms-card,
.tgms .tgms-preview-card,
body .tgms .tgms-preview-card {
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 20px !important;
  background: #fffdfb !important;
  box-shadow: 0 14px 40px rgba(75,11,4,.055) !important;
}
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  padding: 24px !important;
}
.tgms .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen-kicker {
  margin: 0 0 5px !important;
  color: #9a8276 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}
.tgms .tgms-wizard-screen h3,
body .tgms .tgms-wizard-screen h3 {
  margin: 0 0 14px !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
}
.tgms .tgms-wizard-intro,
body .tgms .tgms-wizard-intro {
  margin: -7px 0 16px !important;
  color: #806c62 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* Describe step. */
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  min-height: 145px !important;
  padding: 15px 16px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.tgms .tgms-count,
body .tgms .tgms-count {
  margin-top: 5px !important;
  font-size: 10px !important;
}
.tgms .tgms-prompt-simple,
body .tgms .tgms-prompt-simple {
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: #faf6f2 !important;
  border: 1px solid rgba(75,11,4,.07) !important;
}
.tgms .tgms-simple-head,
body .tgms .tgms-simple-head {
  margin-bottom: 9px !important;
}
.tgms .tgms-simple-head strong,
body .tgms .tgms-simple-head strong {
  font-size: 12px !important;
}
.tgms .tgms-simple-head span,
body .tgms .tgms-simple-head span,
.tgms .tgms-prompt-tip,
body .tgms .tgms-prompt-tip {
  font-size: 10px !important;
}
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 7px !important;
}
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  min-height: 36px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}
.tgms .tgms-prompt-rule,
body .tgms .tgms-prompt-rule {
  margin: 9px 0 0 !important;
  padding: 9px 11px !important;
  font-size: 11px !important;
}
.tgms .tgms-wizard-nav,
body .tgms .tgms-wizard-nav {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-primary,
body .tgms .tgms-primary,
.tgms .tgms-wizard-secondary,
body .tgms .tgms-wizard-secondary {
  min-height: 43px !important;
  padding: 0 17px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

/* Style step: compact reference upload and two rows of four styles. */
.tgms .tgms-wizard-subtitle,
body .tgms .tgms-wizard-subtitle {
  margin: 0 0 8px !important;
  font-size: 12px !important;
}
.tgms .tgms-upload-box,
body .tgms .tgms-upload-box {
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 2px !important;
  min-height: 78px !important;
  margin-bottom: 14px !important;
  padding: 12px 14px !important;
  text-align: left !important;
  border-radius: 14px !important;
}
.tgms .tgms-upload-icon,
body .tgms .tgms-upload-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 12px !important;
}
.tgms .tgms-upload-box strong,
body .tgms .tgms-upload-box strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  font-size: 13px !important;
}
.tgms .tgms-upload-box em,
body .tgms .tgms-upload-box em {
  grid-column: 2 !important;
  grid-row: 2 !important;
  font-size: 10px !important;
}
.tgms .tgms-upload-box small,
body .tgms .tgms-upload-box small {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}
.tgms .tgms-field,
body .tgms .tgms-field {
  margin-top: 14px !important;
}
.tgms .tgms-field > label,
body .tgms .tgms-field > label {
  margin-bottom: 6px !important;
  font-size: 12px !important;
}
.tgms .tgms-style-intro,
body .tgms .tgms-style-intro {
  margin: -2px 0 8px !important;
  font-size: 10px !important;
}
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards {
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 8px !important;
}
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 132px !important;
  padding: 7px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.tgms .tgms-style-card:hover,
body .tgms .tgms-style-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 7px 18px rgba(75,11,4,.07) !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  box-shadow: 0 0 0 2px rgba(122,22,12,.08) !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb {
  height: 76px !important;
  padding: 8px !important;
  border-radius: 10px !important;
}
.tgms .tgms-style-word,
body .tgms .tgms-style-word {
  font-size: 18px !important;
}
.tgms .tgms-style-thumb--cute .tgms-style-word,
body .tgms .tgms-style-thumb--cute .tgms-style-word,
.tgms .tgms-style-thumb--funny .tgms-style-word,
body .tgms .tgms-style-thumb--funny .tgms-style-word,
.tgms .tgms-style-thumb--floral .tgms-style-word,
body .tgms .tgms-style-thumb--floral .tgms-style-word {
  font-size: 21px !important;
}
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta {
  gap: 0 !important;
  padding: 7px 2px 1px !important;
}
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong {
  font-size: 12px !important;
}
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em {
  font-size: 9px !important;
}
.tgms .tgms-style-chip,
body .tgms .tgms-style-chip {
  min-height: 17px !important;
  padding: 0 7px !important;
  font-size: 8px !important;
}
.tgms .tgms-style-icon,
body .tgms .tgms-style-icon,
.tgms .tgms-style-crown,
body .tgms .tgms-style-crown {
  font-size: 16px !important;
}
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic {
  font-size: 20px !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select {
  min-height: 42px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}
.tgms .tgms-color-pref,
body .tgms .tgms-color-pref {
  padding: 12px !important;
  border-radius: 13px !important;
  background: #faf6f2 !important;
  border: 1px solid rgba(75,11,4,.07) !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper,
.tgms .tgms-note,
body .tgms .tgms-note {
  font-size: 10px !important;
  line-height: 1.4 !important;
}

/* Review step sized to the viewport rather than an oversized square. */
.tgms .tgms-right,
body .tgms .tgms-right {
  width: min(1160px,100%) !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
}
.tgms .tgms-ai-artwork-preview-card,
body .tgms .tgms-ai-artwork-preview-card {
  padding: 20px !important;
}
.tgms .tgms-preview-head--clean,
body .tgms .tgms-preview-head--clean {
  margin-bottom: 10px !important;
}
.tgms .tgms-preview-head--clean h3,
body .tgms .tgms-preview-head--clean h3 {
  font-size: 23px !important;
}
.tgms .tgms-badge,
body .tgms .tgms-badge {
  min-height: 27px !important;
  padding: 0 10px !important;
  font-size: 9px !important;
}
.tgms .tgms-ai-result-grid,
body .tgms .tgms-ai-result-grid {
  grid-template-columns: minmax(0,1fr) 260px !important;
  gap: 12px !important;
}
.tgms .tgms-result-label,
body .tgms .tgms-result-label {
  margin-bottom: 6px !important;
}
.tgms .tgms-artwork-selected,
body .tgms .tgms-artwork-selected {
  width: 100% !important;
  height: clamp(390px, 57vh, 610px) !important;
  min-height: 390px !important;
  aspect-ratio: auto !important;
  border-radius: 14px !important;
}
.tgms .tgms-ai-product-panel,
body .tgms .tgms-ai-product-panel {
  padding: 10px !important;
  border-radius: 14px !important;
  background: #faf6f2 !important;
}
.tgms .tgms-ai-product-stage,
body .tgms .tgms-ai-product-stage {
  max-height: 260px !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}
.tgms .tgms-ai-action-row,
body .tgms .tgms-ai-action-row {
  margin-top: 10px !important;
  gap: 7px !important;
}
.tgms .tgms-action-btn,
body .tgms .tgms-action-btn {
  min-height: 37px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
}
.tgms .tgms-review-note,
body .tgms .tgms-review-note {
  margin: 10px 0 !important;
  padding: 9px 11px !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
}
.tgms .tgms-add-cart,
body .tgms .tgms-add-cart {
  min-height: 46px !important;
}

@media (max-width: 1020px) {
  .tgms .tgms-ai-result-grid,
  body .tgms .tgms-ai-result-grid {
    grid-template-columns: minmax(0,1fr) 220px !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }
}
@media (max-width: 760px) {
  .tgms,
  body .tgms {
    width: calc(100vw - 20px) !important;
  }
  .tgms .tgms-entry-choice-card,
  body .tgms .tgms-entry-choice-card,
  .tgms .tgms-wizard-screen--describe,
  body .tgms .tgms-wizard-screen--describe,
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style,
  .tgms .tgms-ai-artwork-preview-card,
  body .tgms .tgms-ai-artwork-preview-card {
    padding: 16px !important;
    border-radius: 17px !important;
  }
  .tgms .tgms-entry-options,
  body .tgms .tgms-entry-options {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-entry-option,
  body .tgms .tgms-entry-option {
    min-height: 96px !important;
  }
  .tgms .tgms-clean-journey,
  body .tgms .tgms-clean-journey {
    width: 100% !important;
  }
  .tgms .tgms-clean-step,
  body .tgms .tgms-clean-step {
    padding: 5px 6px !important;
  }
  .tgms .tgms-clean-step strong,
  body .tgms .tgms-clean-step strong {
    font-size: 10px !important;
  }
  .tgms .tgms-example-buttons,
  body .tgms .tgms-example-buttons,
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .tgms .tgms-upload-box,
  body .tgms .tgms-upload-box {
    grid-template-columns: 38px minmax(0,1fr) !important;
  }
  .tgms .tgms-upload-box small,
  body .tgms .tgms-upload-box small {
    display: none !important;
  }
  .tgms .tgms-ai-result-grid,
  body .tgms .tgms-ai-result-grid {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-artwork-selected,
  body .tgms .tgms-artwork-selected {
    height: min(72vw, 500px) !important;
    min-height: 300px !important;
  }
  .tgms .tgms-ai-product-panel,
  body .tgms .tgms-ai-product-panel {
    display: grid !important;
    grid-template-columns: 120px minmax(0,1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }
  .tgms .tgms-ai-product-panel .tgms-result-label,
  body .tgms .tgms-ai-product-panel .tgms-result-label {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 460px) {
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: 1fr 1fr !important;
  }
  .tgms .tgms-style-card,
  body .tgms .tgms-style-card {
    min-height: 122px !important;
  }
  .tgms .tgms-style-thumb,
  body .tgms .tgms-style-thumb {
    height: 68px !important;
  }
  .tgms .tgms-wizard-nav--split,
  body .tgms .tgms-wizard-nav--split {
    gap: 7px !important;
  }
  .tgms .tgms-wizard-nav--split > *,
  body .tgms .tgms-wizard-nav--split > * {
    flex: 1 1 0 !important;
  }
}


/* V3.4.0 print area shape previews */
.tgms-print-area.has-mask::after{display:none !important;}
.tgms .tgms-ai-product-mask.has-mask, body .tgms .tgms-ai-product-mask.has-mask { background: rgba(213,154,49,.10) !important; }


/* V3.4.4 — center workspace header so review screen does not feel shifted */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: min(1180px, 100%) !important;
  margin: 0 auto 12px !important;
  padding: 0 8px !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  display: block !important;
  margin: 0 auto !important;
  text-align: center !important;
  color: #301618 !important;
}
@media (max-width: 760px) {
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    row-gap: 8px !important;
  }
  .tgms .tgms-back-to-choice,
  body .tgms .tgms-back-to-choice {
    position: static !important;
    transform: none !important;
  }
  .tgms .tgms-workspace-title,
  body .tgms .tgms-workspace-title {
    width: 100% !important;
    text-align: left !important;
  }
}


/* V3.4.7 — create-with-AI describe screen matched to premium second-screen reference */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: min(1500px, calc(100% - 36px)) !important;
  margin: 0 auto 16px !important;
  align-items: center !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  min-height: 48px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  background: rgba(255,251,247,.86) !important;
  box-shadow: 0 8px 24px rgba(75,11,4,.04) !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  font-size: 17px !important;
  font-weight: 900 !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  width: min(790px, calc(100% - 24px)) !important;
  margin: 0 auto 22px !important;
  padding: 8px !important;
  border-radius: 22px !important;
  background: rgba(255,251,248,.92) !important;
  border: 1px solid rgba(113,28,11,.12) !important;
  box-shadow: 0 16px 34px rgba(75,11,4,.05) !important;
}
.tgms .tgms-clean-step,
body .tgms .tgms-clean-step {
  min-height: 50px !important;
  padding: 8px 16px !important;
  border-radius: 16px !important;
  gap: 10px !important;
}
.tgms .tgms-clean-step span,
body .tgms .tgms-clean-step span {
  width: 38px !important;
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
.tgms .tgms-clean-step strong,
body .tgms .tgms-clean-step strong {
  font-size: 15px !important;
  font-weight: 900 !important;
}
.tgms .tgms-clean-step.is-active,
body .tgms .tgms-clean-step.is-active {
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(75,11,4,.08) !important;
}
.tgms .tgms-clean-step.is-active span,
body .tgms .tgms-clean-step.is-active span {
  background: linear-gradient(180deg, #5a211b 0%, #301618 100%) !important;
}
.tgms .tgms-clean-step.is-complete span,
body .tgms .tgms-clean-step.is-complete span {
  background: #fffaf7 !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert {
  width: min(1120px, calc(100% - 32px)) !important;
}
.tgms .tgms-left,
body .tgms .tgms-left {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
}
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe {
  width: 100% !important;
  padding: 40px 42px 28px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  background: rgba(255,253,251,.94) !important;
  box-shadow: 0 24px 50px rgba(75,11,4,.06) !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-screen-kicker {
  min-height: 36px !important;
  padding: 0 16px !important;
  margin: 0 0 16px !important;
  border-radius: 999px !important;
  background: #fff2ea !important;
  color: #8f735d !important;
  font-size: 12px !important;
  letter-spacing: .12em !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--describe h3,
body .tgms .tgms-wizard-screen--describe h3 {
  margin: 0 0 14px !important;
  color: #301618 !important;
  font-size: 34px !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-intro,
.tgms .tgms-wizard-screen--describe h3 + p,
body .tgms .tgms-wizard-screen--describe h3 + p {
  margin: 0 0 18px !important;
  color: #776159 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-prompt,
body .tgms .tgms-prompt {
  min-height: 220px !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
  border: 1.5px solid rgba(121,22,12,.14) !important;
  background: #fff !important;
  color: #2f1a15 !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}
.tgms .tgms-count,
body .tgms .tgms-count {
  margin-top: 8px !important;
  text-align: right !important;
  color: #8c7468 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
.tgms .tgms-prompt-simple,
body .tgms .tgms-prompt-simple {
  margin-top: 14px !important;
  padding: 14px 20px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(121,22,12,.10) !important;
  background: #fdf9f6 !important;
}
.tgms .tgms-simple-head,
body .tgms .tgms-simple-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-simple-head strong,
body .tgms .tgms-simple-head strong {
  color: #2f1a15 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
.tgms .tgms-simple-head span,
body .tgms .tgms-simple-head span {
  color: #866f63 !important;
  font-size: 13px !important;
}
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 14px !important;
}
.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(121,22,12,.14) !important;
  background: #fff !important;
  color: #301618 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(75,11,4,.03) !important;
}
.tgms .tgms-example-buttons button:hover,
body .tgms .tgms-example-buttons button:hover {
  background: #fff6ef !important;
  border-color: #301618 !important;
}
.tgms .tgms-prompt-rule,
body .tgms .tgms-prompt-rule,
.tgms .tgms-prompt-tip,
body .tgms .tgms-prompt-tip {
  display: none !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-nav {
  margin-top: 24px !important;
  padding-top: 22px !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-nav--end,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-nav--end {
  justify-content: flex-end !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-next,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-next {
  min-width: 290px !important;
  min-height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #5a211b 0%, #301618 100%) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(122,22,12,.20) !important;
}
.tgms .tgms-wizard-screen--describe .tgms-wizard-next:not(:disabled):hover,
body .tgms .tgms-wizard-screen--describe .tgms-wizard-next:not(:disabled):hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 32px rgba(122,22,12,.24) !important;
}
@media (max-width: 980px) {
  .tgms .tgms-left, body .tgms .tgms-left,
  .tgms .tgms-alert, body .tgms .tgms-alert,
  .tgms .tgms-workspace-topbar, body .tgms .tgms-workspace-topbar {
    width: min(100%, calc(100% - 24px)) !important;
  }
  .tgms .tgms-wizard-screen--describe, body .tgms .tgms-wizard-screen--describe {
    padding: 24px !important;
    border-radius: 22px !important;
  }
  .tgms .tgms-wizard-screen--describe h3, body .tgms .tgms-wizard-screen--describe h3 {
    font-size: 28px !important;
  }
  .tgms .tgms-prompt, body .tgms .tgms-prompt {
    min-height: 180px !important;
    font-size: 16px !important;
  }
  .tgms .tgms-example-buttons, body .tgms .tgms-example-buttons {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 640px) {
  .tgms .tgms-workspace-topbar, body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }
  .tgms .tgms-workspace-title, body .tgms .tgms-workspace-title {
    text-align: left !important;
  }
  .tgms .tgms-clean-journey, body .tgms .tgms-clean-journey {
    width: 100% !important;
  }
  .tgms .tgms-example-buttons, body .tgms .tgms-example-buttons {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-wizard-screen--describe .tgms-wizard-next,
  body .tgms .tgms-wizard-screen--describe .tgms-wizard-next {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* V3.4.8 — master centering pass for all AI screens + first screen aligns with site header width */
.tgms,
body .tgms {
  --tgms-stage-width: min(1480px, calc(100vw - 96px)) !important;
  --tgms-inner-width: min(1120px, calc(100vw - 96px)) !important;
}

/* Workspace + wizard screens */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-left,
body .tgms .tgms-left,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  margin-left: auto !important;
  margin-right: auto !important;
}
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: var(--tgms-stage-width) !important;
  max-width: var(--tgms-stage-width) !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-left,
body .tgms .tgms-left {
  width: var(--tgms-inner-width) !important;
  max-width: var(--tgms-inner-width) !important;
}

/* Keep review screen centered on same content axis */
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  width: var(--tgms-inner-width) !important;
  max-width: var(--tgms-inner-width) !important;
}

/* Mobile */
@media (max-width: 980px) {
  .tgms, body .tgms {
    --tgms-stage-width: calc(100vw - 32px) !important;
    --tgms-inner-width: calc(100vw - 32px) !important;
  }
}


/* V3.4.9 — premium redesign for Step 2 / Style screen */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .82fr) !important;
  gap: 18px 18px !important;
  width: min(1220px, 100%) !important;
  max-width: 1220px !important;
  padding: 34px 34px 28px !important;
  border-radius: 28px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3,
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  grid-column: 1 / -1 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #fcf1e5 !important;
  color: #9b6c4f !important;
  font-size: 14px !important;
  letter-spacing: .08em !important;
  font-weight: 800 !important;
  margin: 0 0 2px !important;
}
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 {
  margin: 0 !important;
  color: #301618 !important;
  font-size: clamp(36px, 4vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.03em !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  margin: -4px 0 8px !important;
  color: #7c695f !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle {
  grid-column: 2 !important;
  margin: 0 0 -8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #301618 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle span,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle span {
  color: #8e7c72 !important;
  font-weight: 600 !important;
}

/* Left main style chooser card */
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type {
  grid-column: 1 !important;
  grid-row: 4 / span 4 !important;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 24px !important;
  background: #fffdfb !important;
  box-shadow: 0 10px 24px rgba(75,11,4,.035) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label {
  margin-bottom: 4px !important;
  color: #231815 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type .tgms-style-intro,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type .tgms-style-intro {
  margin: 0 0 14px !important;
  color: #8a756a !important;
  font-size: 13px !important;
}
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards {
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 18px !important;
}
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 220px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(75,11,4,.035) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.tgms .tgms-style-card:hover,
body .tgms .tgms-style-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 24px rgba(75,11,4,.075) !important;
  border-color: rgba(122,22,12,.25) !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  border-color: #301618 !important;
  background: #fffaf6 !important;
  box-shadow: 0 0 0 2px rgba(122,22,12,.07), 0 14px 26px rgba(75,11,4,.08) !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb {
  height: 102px !important;
  padding: 12px !important;
  border-radius: 14px !important;
}
.tgms .tgms-style-word,
body .tgms .tgms-style-word { font-size: 22px !important; }
.tgms .tgms-style-thumb--cute .tgms-style-word,
body .tgms .tgms-style-thumb--cute .tgms-style-word,
.tgms .tgms-style-thumb--funny .tgms-style-word,
body .tgms .tgms-style-thumb--funny .tgms-style-word,
.tgms .tgms-style-thumb--floral .tgms-style-word,
body .tgms .tgms-style-thumb--floral .tgms-style-word { font-size: 26px !important; }
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic { font-size: 26px !important; }
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta {
  gap: 4px !important;
  padding: 12px 4px 3px !important;
}
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong {
  color: #301618 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em {
  color: #6e5d56 !important;
  font-size: 12px !important;
}

/* Right sidebar cards */
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  box-shadow: 0 8px 20px rgba(75,11,4,.03) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 180px !important;
  text-align: center !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  margin: 0 0 4px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
  font-size: 18px !important;
  color: #301618 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
  font-size: 14px !important;
  line-height: 1.45 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box small {
  font-size: 12px !important;
  color: #9a8478 !important;
  white-space: normal !important;
}
.tgms .tgms-reference-result,
body .tgms .tgms-reference-result {
  grid-column: 2 !important;
  margin-top: -6px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) > label {
  margin-bottom: 12px !important;
  color: #231815 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select {
  min-height: 54px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}
.tgms .tgms-color-pref,
body .tgms .tgms-color-pref {
  background: #fffdfb !important;
}
.tgms .tgms-color-pref .tgms-check-row,
body .tgms .tgms-color-pref .tgms-check-row {
  margin-bottom: 10px !important;
}
.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #301618 !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper {
  margin: 0 0 14px !important;
  color: #8a756a !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-mini-label,
body .tgms .tgms-mini-label {
  margin-bottom: 8px !important;
  color: #231815 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.tgms .tgms-color-row,
body .tgms .tgms-color-row {
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.tgms .tgms-color,
body .tgms .tgms-color {
  width: 56px !important;
  min-width: 56px !important;
  height: 42px !important;
  border-radius: 12px !important;
}
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex {
  min-height: 42px !important;
  border-radius: 12px !important;
}

/* Bottom action row */
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  grid-column: 1 / -1 !important;
  margin-top: 6px !important;
  padding-top: 18px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 420px) !important;
  align-items: center !important;
  gap: 16px !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary {
  justify-self: start !important;
  min-width: 190px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
  justify-self: end !important;
  width: 100% !important;
  min-height: 58px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 16px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note {
  grid-column: 1 / -1 !important;
  margin: -4px 0 0 !important;
  text-align: center !important;
  color: #8e7c72 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

@media (max-width: 1180px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    width: min(960px, 100%) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  .tgms .tgms-reference-result,
  body .tgms .tgms-reference-result,
  .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 760px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    padding: 22px 18px 20px !important;
    border-radius: 24px !important;
  }
  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3 {
    font-size: 38px !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .tgms .tgms-style-card,
  body .tgms .tgms-style-card {
    min-height: 188px !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-template-columns: 1fr !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
    justify-self: stretch !important;
    min-width: 0 !important;
  }
}


/* V3.5.0 — premium Style screen + brand palette. Outer layout lives in tgfe-clean.css. */
.tgms,
body .tgms {
  --tg-maroon: #301618;
  --tg-maroon-dark: #301618;
  --tg-gold: #d49a31;
  --tg-cream: #fff7ef;
  --tg-cream-soft: #f8eee7;
  --tg-white: #ffffff;
  --tg-muted: #806c62;
  box-sizing: border-box !important;
}
.tgms *, body .tgms * { box-sizing: border-box !important; }

/* Every visible screen uses the same center axis as the WooCommerce/header container. */
.tgms .tgms-entry-mini-nav,
body .tgms .tgms-entry-mini-nav,
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice,
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  margin-left: auto !important;
  margin-right: auto !important;
}
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-panel[data-panel="ai"],
body .tgms .tgms-panel[data-panel="ai"],
.tgms .tgms-layout,
body .tgms .tgms-layout {
  width: 100% !important;
  max-width: 100% !important;
}
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  width: min(1500px, 100%) !important;
  max-width: 1500px !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
}
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  width: min(1460px, 100%) !important;
  max-width: 1460px !important;
}

/* Brand-only UI palette across the choice and AI wizard screens. */
.tgms:not(.is-workspace-open),
body .tgms:not(.is-workspace-open),
.tgms.is-workspace-open,
body .tgms.is-workspace-open {
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-card,
body .tgms .tgms-card,
.tgms .tgms-preview-card,
body .tgms .tgms-preview-card {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.12) !important;
}
.tgms h2, body .tgms h2,
.tgms h3, body .tgms h3,
.tgms h4, body .tgms h4,
.tgms strong, body .tgms strong {
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-primary,
body .tgms .tgms-primary {
  background: linear-gradient(135deg, var(--tg-maroon-dark), var(--tg-maroon)) !important;
  border-color: var(--tg-gold) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-primary strong,
body .tgms .tgms-primary strong {
  color: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen-kicker {
  background: var(--tg-cream) !important;
  color: var(--tg-maroon) !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice,
.tgms .tgms-wizard-secondary,
body .tgms .tgms-wizard-secondary {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.14) !important;
  color: var(--tg-maroon-dark) !important;
}

/* Header row: left action, perfectly centered progress, right mode title. */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(190px,1fr) minmax(580px,790px) minmax(190px,1fr) !important;
  align-items: center !important;
  min-height: 60px !important;
  padding: 0 !important;
  margin-bottom: 4px !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  position: static !important;
  transform: none !important;
  justify-self: start !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  grid-column: 3 !important;
  justify-self: end !important;
  width: auto !important;
  margin: 0 !important;
  color: var(--tg-maroon-dark) !important;
  text-align: right !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  width: min(640px, 100%) !important;
  max-width: 640px !important;
  margin: -55px auto 24px !important;
  background: rgba(255,247,239,.88) !important;
  border-color: rgba(75,11,4,.10) !important;
}
.tgms .tgms-clean-step.is-active,
body .tgms .tgms-clean-step.is-active {
  background: var(--tg-white) !important;
}
.tgms .tgms-clean-step.is-active span,
body .tgms .tgms-clean-step.is-active span {
  background: var(--tg-maroon) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-clean-step.is-complete span,
body .tgms .tgms-clean-step.is-complete span {
  background: var(--tg-white) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-maroon) !important;
}

/* Exact Step 2 structure from the approved reference. */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.82fr) minmax(390px, 1fr) !important;
  grid-template-rows: auto auto auto auto auto auto auto !important;
  column-gap: 18px !important;
  row-gap: 14px !important;
  padding: 28px 34px 26px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  box-shadow: 0 20px 52px rgba(75,11,4,.055) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: fit-content !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  font-size: 11px !important;
  letter-spacing: .09em !important;
}
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  font-size: clamp(35px,3.3vw,52px) !important;
  line-height: 1.04 !important;
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: -4px 0 4px !important;
  font-size: 14px !important;
  color: var(--tg-muted) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle {
  display: none !important;
}

/* Left: style chooser. */
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type {
  grid-column: 1 !important;
  grid-row: 4 / span 3 !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(75,11,4,.11) !important;
  border-radius: 20px !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label {
  margin: 0 0 10px !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-intro,
body .tgms .tgms-wizard-screen--style .tgms-style-intro {
  display: none !important;
}
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 16px 12px !important;
}
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 162px !important;
  padding: 9px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  border-color: var(--tg-maroon) !important;
  box-shadow: 0 0 0 2px rgba(122,22,12,.08) !important;
  background: var(--tg-cream) !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb {
  height: 94px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  border-color: rgba(75,11,4,.07) !important;
}
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta {
  padding: 9px 3px 2px !important;
  gap: 2px !important;
}
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em {
  color: var(--tg-muted) !important;
  font-size: 10px !important;
}

/* Recolor the sample thumbnails to Think Gifts colors only. */
.tgms .tgms-style-thumb--premium::before,
body .tgms .tgms-style-thumb--premium::before { background: linear-gradient(135deg,#fff7ef,#ead5b2,#d49a31) !important; }
.tgms .tgms-style-thumb--minimal::before,
body .tgms .tgms-style-thumb--minimal::before { background: linear-gradient(135deg,#ffffff,#fff7ef,#f8eee7) !important; }
.tgms .tgms-style-thumb--cute::before,
body .tgms .tgms-style-thumb--cute::before { background: linear-gradient(135deg,#fff7ef,#f8eee7,#ead5b2) !important; }
.tgms .tgms-style-thumb--funny::before,
body .tgms .tgms-style-thumb--funny::before { background: linear-gradient(135deg,#fff7ef,#ead5b2,#d49a31) !important; }
.tgms .tgms-style-thumb--floral::before,
body .tgms .tgms-style-thumb--floral::before { background: linear-gradient(135deg,#ffffff,#fff7ef,#ead5b2) !important; }
.tgms .tgms-style-thumb--luxury::before,
body .tgms .tgms-style-thumb--luxury::before { background: linear-gradient(135deg,#301618,#301618,#d49a31) !important; }
.tgms .tgms-style-thumb--corporate::before,
body .tgms .tgms-style-thumb--corporate::before { background: linear-gradient(135deg,#ffffff,#fff7ef,#f8eee7) !important; }
.tgms .tgms-style-thumb--arabic::before,
body .tgms .tgms-style-thumb--arabic::before { background: linear-gradient(135deg,#fff7ef,#ead5b2,#d49a31) !important; }
.tgms .tgms-style-thumb--cute .tgms-style-word,
body .tgms .tgms-style-thumb--cute .tgms-style-word,
.tgms .tgms-style-thumb--funny .tgms-style-word,
body .tgms .tgms-style-thumb--funny .tgms-style-word,
.tgms .tgms-style-thumb--floral .tgms-style-word,
body .tgms .tgms-style-thumb--floral .tgms-style-word,
.tgms .tgms-style-thumb--corporate .tgms-style-word,
body .tgms .tgms-style-thumb--corporate .tgms-style-word,
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic,
.tgms .tgms-style-icon,
body .tgms .tgms-style-icon,
.tgms .tgms-style-flower,
body .tgms .tgms-style-flower {
  color: var(--tg-maroon) !important;
}

/* Right: reference, font and colour cards. */
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
  grid-column: 2 !important;
  grid-row: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 132px !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  color: var(--tg-maroon) !important;
  background: var(--tg-cream) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
  color: var(--tg-maroon) !important;
  font-size: 15px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
  color: var(--tg-muted) !important;
  font-size: 11px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box small { display: none !important; }
.tgms .tgms-reference-result,
body .tgms .tgms-reference-result {
  grid-column: 2 !important;
  grid-row: 4 !important;
  align-self: end !important;
  margin: 0 12px 8px !important;
}
.tgms .tgms-reference-result:empty,
body .tgms .tgms-reference-result:empty { display: none !important; }
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 5 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
  grid-column: 2 !important;
  grid-row: 6 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label {
  margin-bottom: 8px !important;
  font-size: 12px !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select,
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex {
  min-height: 44px !important;
  border-radius: 11px !important;
  border-color: rgba(75,11,4,.12) !important;
  background-color: var(--tg-white) !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-color-pref,
body .tgms .tgms-color-pref { background: var(--tg-white) !important; }
.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked {
  background: var(--tg-maroon) !important;
  border-color: var(--tg-maroon) !important;
}
.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper {
  margin: 0 0 12px !important;
  color: var(--tg-muted) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
.tgms .tgms-mini-label,
body .tgms .tgms-mini-label {
  color: var(--tg-maroon-dark) !important;
  font-size: 11px !important;
}
.tgms .tgms-color,
body .tgms .tgms-color {
  width: 44px !important;
  min-width: 44px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

/* Bottom buttons exactly across the two columns. */
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  grid-column: 1 / -1 !important;
  grid-row: 7 !important;
  display: grid !important;
  grid-template-columns: minmax(280px,1fr) minmax(390px,1fr) !important;
  gap: 18px !important;
  margin: 8px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.12) !important;
}
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  background: linear-gradient(135deg,var(--tg-maroon-dark),var(--tg-maroon)) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note {
  grid-column: 1 / -1 !important;
  margin: -6px 0 0 !important;
  text-align: center !important;
  color: var(--tg-muted) !important;
  font-size: 10px !important;
}

/* Responsive: preserve centering and hierarchy. */
@media (max-width: 1180px) {
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    grid-template-columns: 1fr auto 1fr !important;
  }
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    width: min(900px,100%) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  .tgms .tgms-reference-result,
  body .tgms .tgms-reference-result,
  .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  .tgms .tgms-wizard-screen--style > .tgms-note,
  body .tgms .tgms-wizard-screen--style > .tgms-note {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  .tgms, body .tgms { width: 100% !important; }
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 0 12px !important;
  }
  .tgms .tgms-workspace-title,
  body .tgms .tgms-workspace-title {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
  }
  .tgms .tgms-clean-journey,
  body .tgms .tgms-clean-journey {
    width: calc(100% - 24px) !important;
    margin: 8px auto 18px !important;
  }
  .tgms .tgms-wizard-screen--describe,
  body .tgms .tgms-wizard-screen--describe,
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style,
  .tgms .tgms-wizard-screen--review,
  body .tgms .tgms-wizard-screen--review {
    width: calc(100% - 24px) !important;
  }
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style { padding: 22px 16px !important; }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards { grid-template-columns: 1fr !important; }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav { grid-template-columns: 1fr !important; }
}


/* V3.5.1 — brand variables only. Outer width and page alignment are now
   owned by the unified experience stylesheet, so this file no longer
   creates a competing viewport breakout or adds horizontal padding. */
.tgms,
body .tgms {
  --tg-maroon: #301618 !important;
  --tg-maroon-dark: #301618 !important;
  --tg-gold: #d49a31 !important;
  --tg-cream: #fff7ef !important;
  --tg-cream-soft: #f8eee7 !important;
  --tg-white: #ffffff !important;
  --tg-muted: #806c62 !important;
  box-sizing: border-box !important;
  overflow-anchor: none !important;
}
.tgms *, body .tgms * { box-sizing: border-box !important; }

/* One shared center axis for the complete flow. */
.tgms .tgms-entry-mini-nav,
body .tgms .tgms-entry-mini-nav,
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice,
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tgms .tgms-entry-mini-nav,
body .tgms .tgms-entry-mini-nav,
.tgms .tgms-entry-choice,
body .tgms .tgms-entry-choice,
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar,
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style,
.tgms .tgms-wizard-screen--review,
body .tgms .tgms-wizard-screen--review {
  width: min(1440px, 100%) !important;
  max-width: 1440px !important;
}
.tgms .tgms-alert,
body .tgms .tgms-alert,
.tgms .tgms-wizard-screen--describe,
body .tgms .tgms-wizard-screen--describe {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
}
.tgms .tgms-workspace-shell,
body .tgms .tgms-workspace-shell,
.tgms .tgms-panel[data-panel="ai"],
body .tgms .tgms-panel[data-panel="ai"],
.tgms .tgms-layout,
body .tgms .tgms-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep top controls centered against the same 1440px site/header width. */
.tgms .tgms-workspace-topbar,
body .tgms .tgms-workspace-topbar {
  display: grid !important;
  grid-template-columns: minmax(180px,1fr) minmax(520px,640px) minmax(180px,1fr) !important;
  align-items: center !important;
  min-height: 66px !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}
.tgms .tgms-back-to-choice,
body .tgms .tgms-back-to-choice {
  position: static !important;
  transform: none !important;
  justify-self: start !important;
}
.tgms .tgms-workspace-title,
body .tgms .tgms-workspace-title {
  grid-column: 3 !important;
  justify-self: end !important;
  margin: 0 !important;
  text-align: right !important;
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-clean-journey,
body .tgms .tgms-clean-journey {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  width: min(640px, 100%) !important;
  max-width: 640px !important;
  margin: -57px auto 25px !important;
}

/* Reset inherited/old positioning on all direct Style-screen children. */
.tgms .tgms-wizard-screen--style > *,
body .tgms .tgms-wizard-screen--style > * {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  max-width: none !important;
}

/* Exact desktop structure from the supplied screenshot. */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.86fr) minmax(300px, .94fr) !important;
  grid-template-rows: auto auto auto minmax(138px,auto) auto auto auto !important;
  column-gap: 18px !important;
  row-gap: 13px !important;
  padding: 28px 34px 27px !important;
  border-radius: 25px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 22px 54px rgba(75,11,4,.06) !important;
  overflow: visible !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 29px !important;
  margin: 0 0 1px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: var(--tg-cream) !important;
  color: var(--tg-maroon) !important;
  font-size: 11px !important;
  line-height: 29px !important;
  letter-spacing: .09em !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--tg-maroon-dark) !important;
  font-size: clamp(36px, 3.1vw, 50px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  overflow: visible !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: var(--tg-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle {
  display: none !important;
}

/* LEFT — two rows of four style cards. */
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type {
  grid-column: 1 !important;
  grid-row: 4 / span 3 !important;
  align-self: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(75,11,4,.11) !important;
  border-radius: 20px !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type > label {
  display: block !important;
  margin: 0 0 13px !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-intro,
body .tgms .tgms-wizard-screen--style .tgms-style-intro { display: none !important; }
.tgms .tgms-wizard-screen--style .tgms-style-cards,
body .tgms .tgms-wizard-screen--style .tgms-style-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 16px 12px !important;
  width: 100% !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-card,
body .tgms .tgms-wizard-screen--style .tgms-style-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0 !important;
  min-height: 166px !important;
  padding: 9px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 16px !important;
  background: var(--tg-white) !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-card.is-active,
body .tgms .tgms-wizard-screen--style .tgms-style-card.is-active {
  border-color: var(--tg-maroon) !important;
  background: var(--tg-cream) !important;
  box-shadow: 0 0 0 1px var(--tg-maroon) !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-thumb,
body .tgms .tgms-wizard-screen--style .tgms-style-thumb {
  height: 94px !important;
  min-height: 94px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  border-color: rgba(75,11,4,.07) !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-meta,
body .tgms .tgms-wizard-screen--style .tgms-style-meta {
  padding: 9px 3px 2px !important;
  gap: 2px !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-meta strong,
body .tgms .tgms-wizard-screen--style .tgms-style-meta strong {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-wizard-screen--style .tgms-style-meta em,
body .tgms .tgms-wizard-screen--style .tgms-style-meta em {
  color: var(--tg-muted) !important;
  font-size: 10px !important;
}

/* Brand colours only inside all style thumbnails. */
.tgms .tgms-style-thumb--premium::before,
body .tgms .tgms-style-thumb--premium::before,
.tgms .tgms-style-thumb--funny::before,
body .tgms .tgms-style-thumb--funny::before,
.tgms .tgms-style-thumb--arabic::before,
body .tgms .tgms-style-thumb--arabic::before {
  background: linear-gradient(135deg,var(--tg-cream),#ead5b2,var(--tg-gold)) !important;
}
.tgms .tgms-style-thumb--minimal::before,
body .tgms .tgms-style-thumb--minimal::before,
.tgms .tgms-style-thumb--cute::before,
body .tgms .tgms-style-thumb--cute::before,
.tgms .tgms-style-thumb--floral::before,
body .tgms .tgms-style-thumb--floral::before,
.tgms .tgms-style-thumb--corporate::before,
body .tgms .tgms-style-thumb--corporate::before {
  background: linear-gradient(135deg,var(--tg-white),var(--tg-cream),var(--tg-cream-soft)) !important;
}
.tgms .tgms-style-thumb--luxury::before,
body .tgms .tgms-style-thumb--luxury::before {
  background: linear-gradient(135deg,var(--tg-maroon-dark),var(--tg-maroon),var(--tg-gold)) !important;
}
.tgms .tgms-style-word,
body .tgms .tgms-style-word,
.tgms .tgms-style-arabic,
body .tgms .tgms-style-arabic,
.tgms .tgms-style-icon,
body .tgms .tgms-style-icon,
.tgms .tgms-style-flower,
body .tgms .tgms-style-flower,
.tgms .tgms-style-mini,
body .tgms .tgms-style-mini {
  color: var(--tg-maroon) !important;
}
.tgms .tgms-style-thumb--luxury .tgms-style-word,
body .tgms .tgms-style-thumb--luxury .tgms-style-word,
.tgms .tgms-style-thumb--luxury .tgms-style-crown,
body .tgms .tgms-style-thumb--luxury .tgms-style-crown {
  color: var(--tg-cream) !important;
}
.tgms .tgms-style-grid,
body .tgms .tgms-style-grid {
  background: linear-gradient(90deg,rgba(122,22,12,.18) 33%, transparent 33%, transparent 66%, rgba(212,154,49,.30) 66%), linear-gradient(rgba(122,22,12,.18) 50%, transparent 50%) !important;
  background-size: 14px 100%, 100% 12px !important;
}
.tgms .tgms-style-dot,
body .tgms .tgms-style-dot { background: var(--tg-gold) !important; }

/* RIGHT — upload, font and colour cards. */
.tgms .tgms-wizard-screen--style > .tgms-upload-box,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
  grid-column: 2 !important;
  grid-row: 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 138px !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
  text-align: center !important;
  box-shadow: none !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
  width: 43px !important;
  height: 43px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  background: var(--tg-cream) !important;
  color: var(--tg-maroon) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
  color: var(--tg-maroon) !important;
  font-size: 15px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
  color: var(--tg-muted) !important;
  font-size: 11px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-box small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-box small { display: none !important; }
.tgms .tgms-reference-result,
body .tgms .tgms-reference-result {
  grid-column: 2 !important;
  grid-row: 4 !important;
  align-self: end !important;
  margin: 0 12px 8px !important;
}
.tgms .tgms-reference-result:empty,
body .tgms .tgms-reference-result:empty { display: none !important; }
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 5 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3) {
  grid-column: 2 !important;
  grid-row: 6 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(75,11,4,.10) !important;
  border-radius: 18px !important;
  background: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label,
body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2) > label {
  margin-bottom: 8px !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 12px !important;
}
.tgms .tgms-wizard-screen--style select,
body .tgms .tgms-wizard-screen--style select,
.tgms .tgms-color-hex,
body .tgms .tgms-color-hex {
  min-height: 44px !important;
  border: 1px solid rgba(75,11,4,.12) !important;
  border-radius: 11px !important;
  background: var(--tg-white) !important;
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked,
body .tgms .tgms-color-pref .tgms-check-row input.tgms-apply-color:checked {
  background: var(--tg-maroon) !important;
  border-color: var(--tg-maroon) !important;
}
.tgms .tgms-color-pref .tgms-check-row span,
body .tgms .tgms-color-pref .tgms-check-row span {
  color: var(--tg-maroon-dark) !important;
  font-size: 13px !important;
}
.tgms .tgms-helper,
body .tgms .tgms-helper {
  margin: 0 0 12px !important;
  color: var(--tg-muted) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
.tgms .tgms-mini-label,
body .tgms .tgms-mini-label {
  color: var(--tg-maroon-dark) !important;
  font-size: 11px !important;
}
.tgms .tgms-color,
body .tgms .tgms-color {
  width: 44px !important;
  min-width: 44px !important;
  height: 40px !important;
  border-radius: 10px !important;
}

/* Bottom actions exactly match the two content columns. */
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  grid-column: 1 / -1 !important;
  grid-row: 7 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1.86fr) minmax(300px,.94fr) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(75,11,4,.08) !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.tgms .tgms-wizard-screen--style .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style .tgms-wizard-secondary {
  background: var(--tg-white) !important;
  border-color: rgba(75,11,4,.12) !important;
  color: var(--tg-maroon-dark) !important;
}
.tgms .tgms-wizard-screen--style .tgms-generate,
body .tgms .tgms-wizard-screen--style .tgms-generate {
  background: linear-gradient(135deg,var(--tg-maroon-dark),var(--tg-maroon)) !important;
  border-color: var(--tg-maroon) !important;
  color: var(--tg-white) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note { display: none !important; }

/* Do not collapse the approved two-column layout at desktop/browser zoom widths. */
@media (max-width: 820px) {
  .tgms, body .tgms {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .tgms .tgms-workspace-topbar,
  body .tgms .tgms-workspace-topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .tgms .tgms-workspace-title,
  body .tgms .tgms-workspace-title {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
  }
  .tgms .tgms-clean-journey,
  body .tgms .tgms-clean-journey {
    width: 100% !important;
    margin: 8px auto 18px !important;
  }
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding: 22px 16px !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  .tgms .tgms-reference-result,
  body .tgms .tgms-reference-result,
  .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  body .tgms .tgms-wizard-screen--style > .tgms-field:first-of-type,
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(2),
  .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  body .tgms .tgms-wizard-screen--style > .tgms-field:nth-of-type(3),
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-cards,
  body .tgms .tgms-wizard-screen--style .tgms-style-cards {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 520px) {
  .tgms .tgms-wizard-screen--style .tgms-style-cards,
  body .tgms .tgms-wizard-screen--style .tgms-style-cards {
    grid-template-columns: 1fr !important;
  }
}


/* V3.5.2 — exact desktop layout for Style screen to match approved reference */
.tgms .tgms-wizard-screen--style,
body .tgms .tgms-wizard-screen--style {
  display: grid !important;
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, .95fr) !important;
  grid-template-areas:
    "kicker kicker"
    "title title"
    "intro intro"
    "styles upload"
    "styles font"
    "styles color"
    "nav nav"
    "note note" !important;
  align-items: start !important;
  gap: 16px 18px !important;
  width: min(1260px, calc(100vw - 72px)) !important;
  max-width: 1260px !important;
  margin-inline: auto !important;
  padding: 34px 18px 16px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(117,22,12,.10) !important;
  background: rgba(255,253,251,.96) !important;
  box-shadow: 0 18px 40px rgba(75,11,4,.05) !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker { grid-area: kicker !important; }
.tgms .tgms-wizard-screen--style > h3,
body .tgms .tgms-wizard-screen--style > h3 { grid-area: title !important; }
.tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro { grid-area: intro !important; margin-top: -10px !important; }
.tgms .tgms-wizard-screen--style > .tgms-upload-panel,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel { grid-area: upload !important; }
.tgms .tgms-wizard-screen--style > .tgms-reference-panel,
body .tgms .tgms-wizard-screen--style > .tgms-reference-panel { grid-column: 2 !important; margin-top: -8px !important; }
.tgms .tgms-wizard-screen--style > .tgms-style-panel,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel { grid-area: styles !important; }
.tgms .tgms-wizard-screen--style > .tgms-font-panel,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel { grid-area: font !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel { grid-area: color !important; }
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav { grid-area: nav !important; }
.tgms .tgms-wizard-screen--style > .tgms-note,
body .tgms .tgms-wizard-screen--style > .tgms-note { grid-area: note !important; display:none !important; }

.tgms .tgms-wizard-screen--style > .tgms-upload-panel,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel,
.tgms .tgms-wizard-screen--style > .tgms-style-panel,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel,
.tgms .tgms-wizard-screen--style > .tgms-font-panel,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
.tgms .tgms-wizard-screen--style > .tgms-color-panel,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
  margin: 0 !important;
  border: 1px solid rgba(117,22,12,.10) !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  box-shadow: 0 6px 16px rgba(75,11,4,.03) !important;
}

.tgms .tgms-wizard-screen--style > .tgms-upload-panel,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel {
  min-height: 132px !important;
  padding: 18px 24px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
.tgms .tgms-wizard-screen--style > .tgms-upload-panel strong,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel strong { color:#301618 !important; font-size:18px !important; font-weight:800 !important; }
.tgms .tgms-wizard-screen--style > .tgms-upload-panel em,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel em { color:#8a756a !important; font-size:13px !important; }
.tgms .tgms-wizard-screen--style > .tgms-upload-panel small,
body .tgms .tgms-wizard-screen--style > .tgms-upload-panel small { display:none !important; }

.tgms .tgms-wizard-screen--style > .tgms-style-panel,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel { padding: 14px !important; }
.tgms .tgms-wizard-screen--style > .tgms-style-panel > label,
body .tgms .tgms-wizard-screen--style > .tgms-style-panel > label { font-size:16px !important; font-weight:800 !important; color:#231815 !important; margin-bottom:12px !important; }
.tgms .tgms-wizard-screen--style .tgms-style-intro,
body .tgms .tgms-wizard-screen--style .tgms-style-intro { display:none !important; }
.tgms .tgms-style-cards,
body .tgms .tgms-style-cards { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 14px !important; }
.tgms .tgms-style-card,
body .tgms .tgms-style-card {
  min-height: 152px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(117,22,12,.12) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.tgms .tgms-style-card.is-active,
body .tgms .tgms-style-card.is-active {
  border-color: #301618 !important;
  box-shadow: 0 0 0 1px rgba(122,22,12,.08) !important;
  background: #fffdfa !important;
}
.tgms .tgms-style-thumb,
body .tgms .tgms-style-thumb { height: 74px !important; border-radius: 12px !important; }
.tgms .tgms-style-meta,
body .tgms .tgms-style-meta { padding: 10px 2px 2px !important; gap:2px !important; }
.tgms .tgms-style-meta strong,
body .tgms .tgms-style-meta strong { font-size: 13px !important; }
.tgms .tgms-style-meta em,
body .tgms .tgms-style-meta em { font-size: 11px !important; color:#6f5f57 !important; }

.tgms .tgms-wizard-screen--style > .tgms-font-panel,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
.tgms .tgms-wizard-screen--style > .tgms-color-panel,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel { padding: 18px 20px !important; }
.tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
.tgms .tgms-wizard-screen--style > .tgms-color-panel > label,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel > label { font-size:16px !important; font-weight:700 !important; color:#231815 !important; margin-bottom:12px !important; }
.tgms .tgms-wizard-screen--style > .tgms-font-panel select,
body .tgms .tgms-wizard-screen--style > .tgms-font-panel select,
.tgms .tgms-wizard-screen--style > .tgms-color-panel select,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel select,
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-hex,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-hex {
  min-height: 46px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-helper,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-helper { font-size: 12px !important; margin-bottom: 12px !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color { width: 38px !important; min-width:38px !important; height:38px !important; border-radius:10px !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-mini-label,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-mini-label { font-size: 13px !important; margin-bottom: 8px !important; }
.tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-controls,
body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-color-controls { display:block !important; }

.tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
  display:grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top: 0 !important;
}
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
.tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 16px !important;
}

/* only collapse on real tablet */
@media (max-width: 1024px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "kicker"
      "title"
      "intro"
      "upload"
      "styles"
      "font"
      "color"
      "nav"
      "note" !important;
    width: min(960px, calc(100vw - 28px)) !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-reference-panel { grid-column:1 !important; }
}
@media (max-width: 760px) {
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav { grid-template-columns: 1fr !important; }
}


/* V3.5.3 — exact style-screen desktop layout to match approved reference */
@media (min-width: 1100px) {
  .tgms .tgms-shell,
  body .tgms .tgms-shell {
    max-width: 1480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tgms .tgms-stage,
  body .tgms .tgms-stage,
  .tgms .tgms-body,
  body .tgms .tgms-body,
  .tgms .tgms-main,
  body .tgms .tgms-main {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    width: min(1320px, calc(100vw - 90px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 28px 36px 28px !important;
    border-radius: 28px !important;
    border: 1px solid #ead9cf !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.62fr) minmax(390px, 0.90fr) !important;
    grid-template-areas:
      "kicker spacer"
      "title upload"
      "intro upload"
      "styles font"
      "styles color"
      "nav nav" !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
    grid-area: kicker !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3 {
    grid-area: title !important;
    margin: 0 !important;
    font-size: 32px !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em !important;
    color: #301618 !important;
    font-weight: 700 !important;
    max-width: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
    grid-area: intro !important;
    margin: -2px 0 10px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #76655d !important;
    max-width: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  .tgms .tgms-wizard-screen--style > .tgms-note,
  body .tgms .tgms-wizard-screen--style > .tgms-note {
    display: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-upload-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel {
    grid-area: upload !important;
    min-height: 128px !important;
    margin: 4px 0 0 !important;
    padding: 16px 22px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 22px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: auto !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel .tgms-upload-icon,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel .tgms-upload-icon {
    width: 42px !important;
    height: 42px !important;
    margin: 0 0 8px !important;
    color: #7b1f15 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel strong,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: #7b1f15 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel em,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel em {
    margin-top: 6px !important;
    font-style: normal !important;
    font-size: 12px !important;
    color: #927f76 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-panel small,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-panel small { display:none !important; }

  .tgms .tgms-wizard-screen--style > .tgms-style-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel {
    grid-area: styles !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 22px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel > label {
    display: block !important;
    margin: 0 0 14px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    color: #231815 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro { display:none !important; }
  .tgms .tgms-style-cards,
  body .tgms .tgms-style-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .tgms .tgms-style-card,
  body .tgms .tgms-style-card {
    min-height: 156px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    border: 1px solid #e7d7cd !important;
    background: #ffffff !important;
    box-shadow: none !important;
    align-items: stretch !important;
  }
  .tgms .tgms-style-card.is-active,
  body .tgms .tgms-style-card.is-active {
    border-color: #301618 !important;
    box-shadow: none !important;
    background: #fffdfa !important;
  }
  .tgms .tgms-style-thumb,
  body .tgms .tgms-style-thumb {
    height: 76px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  .tgms .tgms-style-meta,
  body .tgms .tgms-style-meta {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .tgms .tgms-style-meta strong,
  body .tgms .tgms-style-meta strong {
    font-size: 13px !important;
    line-height: 1.25 !important;
    color: #2c1714 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-style-meta em,
  body .tgms .tgms-style-meta em {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #7d6a60 !important;
    font-style: normal !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  .tgms .tgms-wizard-screen--style > .tgms-color-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 20px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    width: auto !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-font-panel { grid-area: font !important; }
  .tgms .tgms-wizard-screen--style > .tgms-color-panel { grid-area: color !important; }

  .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
  .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 0 12px !important;
    font-size: 16px !important;
    line-height:1.35 !important;
    color:#231815 !important;
    font-weight:700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row input,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel .tgms-check-row input {
    width: 18px !important;
    height: 18px !important;
    accent-color: #301618 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-soft-label,
  body .tgms .tgms-wizard-screen--style .tgms-soft-label { color:#7f7066 !important; font-weight: 500 !important; }
  .tgms .tgms-wizard-screen--style select,
  body .tgms .tgms-wizard-screen--style select,
  .tgms .tgms-wizard-screen--style .tgms-color-hex,
  body .tgms .tgms-wizard-screen--style .tgms-color-hex {
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #e6d4ca !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #271715 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-helper,
  body .tgms .tgms-wizard-screen--style .tgms-helper {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #917f76 !important;
    margin: -2px 0 14px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color-controls,
  body .tgms .tgms-wizard-screen--style .tgms-color-controls { display: block !important; }
  .tgms .tgms-wizard-screen--style .tgms-mini-label,
  body .tgms .tgms-wizard-screen--style .tgms-mini-label {
    display:block !important;
    margin: 0 0 8px !important;
    font-size: 13px !important;
    line-height:1.35 !important;
    color:#2e1b16 !important;
    font-weight:600 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color-row,
  body .tgms .tgms-wizard-screen--style .tgms-color-row { display:flex !important; gap:12px !important; margin:0 0 14px !important; }
  .tgms .tgms-wizard-screen--style .tgms-color,
  body .tgms .tgms-wizard-screen--style .tgms-color {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding:0 !important;
    border-radius: 10px !important;
    border: 0 !important;
    background: transparent !important;
    overflow:hidden !important;
    box-shadow:none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-area: nav !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
    min-height: 58px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary {
    background: #fffdfb !important;
    border: 1px solid #ead9cf !important;
    color: #301618 !important;
  }
}


/* V3.5.4 — final exact style-step layout matching approved reference */
@media (min-width: 1100px) {
  .tgms .tgms-wizard-screen--style,
  body .tgms .tgms-wizard-screen--style {
    width: min(1360px, calc(100vw - 84px)) !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 26px 36px 20px !important;
    border-radius: 28px !important;
    border: 1px solid #ebdbd1 !important;
    background: #fffdfb !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.68fr) minmax(360px, 0.92fr) !important;
    grid-template-areas:
      "kicker upload"
      "title upload"
      "intro upload"
      "styles font"
      "styles color"
      "nav nav" !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
    align-items: start !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-screen-kicker {
    grid-area: kicker !important;
    margin: 0 !important;
    align-self: end !important;
    justify-self: start !important;
  }

  .tgms .tgms-wizard-screen--style > h3,
  body .tgms .tgms-wizard-screen--style > h3 {
    grid-area: title !important;
    margin: -2px 0 0 !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    color: #301618 !important;
    font-weight: 700 !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-intro {
    grid-area: intro !important;
    margin: -4px 0 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #76655d !important;
    max-width: 620px !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-subtitle,
  .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-reference-panel,
  .tgms .tgms-wizard-screen--style > .tgms-note,
  body .tgms .tgms-wizard-screen--style > .tgms-note {
    display: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-upload-box,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box {
    grid-area: upload !important;
    min-height: 130px !important;
    margin: 2px 0 0 !important;
    padding: 16px 22px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 22px !important;
    background: #fffdfb !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box .tgms-upload-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 0 8px !important;
    color: #301618 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box strong,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box strong {
    margin: 0 !important;
    font-size: 16px !important;
    color: #301618 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box em,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box em {
    margin: 6px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #8f7d74 !important;
    font-style: normal !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-upload-box small,
  body .tgms .tgms-wizard-screen--style > .tgms-upload-box small { display:none !important; }

  .tgms .tgms-wizard-screen--style > .tgms-style-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel {
    grid-area: styles !important;
    margin: 0 !important;
    padding: 14px 14px 12px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 20px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel > label {
    display: block !important;
    margin: 0 0 14px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    color: #231815 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro,
  body .tgms .tgms-wizard-screen--style > .tgms-style-panel .tgms-style-intro { display:none !important; }
  .tgms .tgms-wizard-screen--style .tgms-style-cards,
  body .tgms .tgms-wizard-screen--style .tgms-style-cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-card,
  body .tgms .tgms-wizard-screen--style .tgms-style-card {
    min-height: 160px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    border: 1px solid #e7d7cd !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-card.is-active,
  body .tgms .tgms-wizard-screen--style .tgms-style-card.is-active {
    border-color: #301618 !important;
    background: #fffdfa !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-thumb,
  body .tgms .tgms-wizard-screen--style .tgms-style-thumb {
    height: 82px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-meta,
  body .tgms .tgms-wizard-screen--style .tgms-style-meta {
    padding: 0 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-meta strong,
  body .tgms .tgms-wizard-screen--style .tgms-style-meta strong {
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #2b1714 !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-style-meta em,
  body .tgms .tgms-wizard-screen--style .tgms-style-meta em {
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #7d6a60 !important;
    font-style: normal !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel {
    grid-area: font !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-color-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
    grid-area: color !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel,
  .tgms .tgms-wizard-screen--style > .tgms-color-panel,
  body .tgms .tgms-wizard-screen--style > .tgms-color-panel {
    margin: 0 !important;
    padding: 16px 18px !important;
    border: 1px solid #ead9cf !important;
    border-radius: 20px !important;
    background: #fffdfb !important;
    box-shadow: none !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-font-panel > label,
  body .tgms .tgms-wizard-screen--style > .tgms-font-panel > label {
    display:block !important;
    margin:0 0 12px !important;
    font-size:16px !important;
    line-height:1.35 !important;
    color:#2a1915 !important;
    font-weight:500 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-soft-label,
  body .tgms .tgms-wizard-screen--style .tgms-soft-label { color:#7f7067 !important; font-weight:500 !important; }

  .tgms .tgms-wizard-screen--style select,
  body .tgms .tgms-wizard-screen--style select,
  .tgms .tgms-wizard-screen--style .tgms-color-hex,
  body .tgms .tgms-wizard-screen--style .tgms-color-hex {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #e6d4ca !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #2b1916 !important;
  }

  .tgms .tgms-wizard-screen--style .tgms-check-row,
  body .tgms .tgms-wizard-screen--style .tgms-check-row {
    display:flex !important;
    align-items:flex-start !important;
    gap:12px !important;
    margin: 0 0 10px !important;
    font-size:16px !important;
    line-height:1.35 !important;
    color:#2a1915 !important;
    font-weight:700 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-check-row input,
  body .tgms .tgms-wizard-screen--style .tgms-check-row input {
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px !important;
    accent-color: #301618 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-helper,
  body .tgms .tgms-wizard-screen--style .tgms-helper {
    margin: 0 0 14px 32px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #918076 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-mini-label,
  body .tgms .tgms-wizard-screen--style .tgms-mini-label {
    display:block !important;
    margin: 0 0 8px !important;
    font-size: 14px !important;
    line-height:1.35 !important;
    color:#2e1b16 !important;
    font-weight:600 !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color-row,
  body .tgms .tgms-wizard-screen--style .tgms-color-row {
    display:flex !important;
    gap:12px !important;
    margin:0 0 14px !important;
    align-items:center !important;
  }
  .tgms .tgms-wizard-screen--style .tgms-color,
  body .tgms .tgms-wizard-screen--style .tgms-color {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav {
    grid-area: nav !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-primary {
    min-height: 58px !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary,
  body .tgms .tgms-wizard-screen--style > .tgms-wizard-nav .tgms-wizard-secondary {
    background: #fffdfb !important;
    border: 1px solid #ead9cf !important;
    color: #301618 !important;
  }
}


/* V4.0.13 — visible custom Point Pen outline on customer previews. */
.tgms .tgms-print-area.is-custom-drawn,
.tgms .tgms-ai-product-mask.is-custom-drawn {
  border-color: transparent !important;
}
.tgms .tgms-custom-print-outline {
  position: absolute !important;
  z-index: 8 !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: none !important;
  transform-origin: center center !important;
}
.tgms .tgms-custom-print-outline polygon {
  fill: rgba(245,231,225,.08);
  stroke: rgba(152,93,66,.62);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* V4.0.14 — keep AI product image and mask visible in every preview size. */
.tgms .tgms-ai-product-img,
body .tgms .tgms-ai-product-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.tgms .tgms-ai-product-mask,
body .tgms .tgms-ai-product-mask {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 3 !important;
}
.tgms .tgms-custom-print-outline,
body .tgms .tgms-custom-print-outline {
  z-index: 6 !important;
}


/* v4.1.00 — make Quick Ideas match the Style boxes */
.tgms .tgms-example-buttons,
body .tgms .tgms-example-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.tgms .tgms-example-buttons button,
body .tgms .tgms-example-buttons button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 10px !important;
  border: 1px solid #E5DAD1 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  color: #4F4742 !important;
  font: 600 13px/1.2 Karla, Arial, sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.tgms .tgms-example-buttons button:hover,
.tgms .tgms-example-buttons button:focus-visible,
body .tgms .tgms-example-buttons button:hover,
body .tgms .tgms-example-buttons button:focus-visible {
  border-color: #E5DAD1 !important;
  background: #FFFFFF !important;
  color: #4F4742 !important;
  box-shadow: none !important;
  transform: none !important;
}

.tgms .tgms-example-buttons button.is-active,
.tgms .tgms-example-buttons button[aria-pressed="true"],
body .tgms .tgms-example-buttons button.is-active,
body .tgms .tgms-example-buttons button[aria-pressed="true"] {
  border: 2px solid #301618 !important;
  padding: 0 9px !important;
  background: #F7F1EC !important;
  color: #301618 !important;
  box-shadow: none !important;
}
