.reprint-designer {
  --rpd-teal: #6f9496;
  --rpd-teal-dark: #385d60;
  --rpd-cashmere: #cbd3cd;
  --rpd-fog: #efe5da;
  --rpd-ink: #171b1c;
  --rpd-muted: #646c6d;
  --rpd-border: rgba(23, 27, 28, 0.14);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rpd-border);
  border-radius: 22px;
  background: #fff;
}

.reprint-designer button,
.reprint-designer input,
.reprint-designer textarea {
  font: inherit;
}

.reprint-designer [hidden] {
  display: none !important;
}

.reprint-designer__heading {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--rpd-border);
}

.reprint-designer__heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.reprint-designer__kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--rpd-teal-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reprint-designer__head-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--rpd-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.reprint-designer__head-actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.reprint-designer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rpd-ink);
  font-weight: 800;
  text-decoration: none;
}

.reprint-designer__back:hover,
.reprint-designer__back:focus-visible {
  color: var(--rpd-teal-dark);
}

.reprint-designer__head-actions i {
  color: var(--rpd-teal-dark);
}

.reprint-designer__workspace {
  display: grid;
  min-height: 660px;
  grid-template-columns: 82px minmax(225px, 280px) minmax(380px, 1fr);
}

.reprint-designer__rail {
  display: flex;
  min-width: 0;
  padding: 0.7rem 0.45rem;
  border-right: 1px solid var(--rpd-border);
  background: #fff;
  flex-direction: column;
  gap: 0.35rem;
}

.reprint-designer__rail > button,
.reprint-designer__history button {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--rpd-ink);
  cursor: pointer;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.64rem;
  font-weight: 760;
}

.reprint-designer__rail > button i {
  font-size: 1.2rem;
}

.reprint-designer__rail > button:hover,
.reprint-designer__rail > button[aria-pressed="true"] {
  border-color: rgba(111, 148, 150, 0.35);
  background: rgba(203, 211, 205, 0.38);
  color: var(--rpd-teal-dark);
}

.reprint-designer__history {
  display: grid;
  margin-top: auto;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.reprint-designer__history button {
  min-height: 40px;
  font-size: 0.9rem;
}

.reprint-designer__history button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.reprint-designer__panels {
  display: flex;
  min-width: 0;
  padding: 1.25rem;
  border-right: 1px solid var(--rpd-border);
  background: #fbfaf8;
  flex-direction: column;
}

.reprint-tool-panel {
  min-width: 0;
}

.reprint-tool-panel__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--rpd-cashmere);
  color: var(--rpd-teal-dark);
}

.reprint-tool-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.reprint-tool-panel > p {
  margin: 0 0 1rem;
  color: var(--rpd-muted);
  font-size: 0.76rem;
}

.reprint-tool-panel label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #4c5455;
  font-size: 0.72rem;
  font-weight: 750;
}

.reprint-tool-panel textarea,
.reprint-tool-panel input[type="range"] {
  width: 100%;
}

.reprint-tool-panel textarea {
  min-height: 94px;
  margin-bottom: 0.8rem;
  padding: 0.75rem;
  resize: vertical;
  border: 1px solid var(--rpd-border);
  border-radius: 4px;
  background: #fff;
}

.reprint-field-row {
  display: grid;
  margin-bottom: 0.9rem;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 0.8rem;
}

.reprint-field-row input[type="color"] {
  width: 100%;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--rpd-border);
  border-radius: 4px;
  background: #fff;
}

.reprint-field-row--selects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reprint-tool-panel select,
.reprint-selected-text input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--rpd-border);
  border-radius: 4px;
  background: #fff;
  color: var(--rpd-ink);
}

.reprint-selected-text {
  display: grid;
  margin: 0.85rem 0;
  gap: 0.75rem;
}

.reprint-selected-text[hidden] {
  display: none;
}

.reprint-tool-button,
.reprint-upload {
  display: flex !important;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rpd-ink);
  border-radius: 3px;
  background: var(--rpd-ink);
  color: #fff !important;
  cursor: pointer;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 780 !important;
  text-align: center;
}

.reprint-tool-button--light {
  background: #fff;
  color: var(--rpd-ink) !important;
}

.reprint-upload {
  min-height: 150px;
  padding: 1rem;
  border-style: dashed;
  background: #fff;
  color: var(--rpd-ink) !important;
  flex-direction: column;
}

.reprint-upload > i {
  color: var(--rpd-teal-dark);
  font-size: 1.8rem;
}

.reprint-upload small {
  color: var(--rpd-muted);
  font-size: 0.64rem;
  font-weight: 600;
}

.reprint-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reprint-layer-tools > label {
  margin-bottom: 1rem;
}

.reprint-layer-stack {
  margin: 0.8rem 0 1rem;
  padding: 0.65rem;
  border: 1px solid var(--rpd-border);
  border-radius: 9px;
  background: #fff;
}

.reprint-layer-stack__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: var(--rpd-ink);
  font-size: 0.68rem;
}

.reprint-layer-stack__head small {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--rpd-cashmere);
  color: var(--rpd-teal-dark);
  font-size: 0.6rem;
  font-weight: 800;
}

.reprint-layer-list {
  display: grid;
  max-height: 168px;
  overflow-y: auto;
  gap: 0.35rem;
  scrollbar-width: thin;
}

.reprint-layer-item {
  display: grid;
  min-width: 0;
  padding: 0.25rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f7f7f4;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  gap: 0.25rem;
}

.reprint-layer-item[data-selected="true"] {
  border-color: rgba(56, 93, 96, 0.48);
  background: rgba(203, 211, 205, 0.42);
}

.reprint-layer-item[data-visible="false"] {
  opacity: 0.58;
}

.reprint-layer-item__select,
.reprint-layer-item__action {
  border: 0;
  background: transparent;
  color: var(--rpd-ink);
  cursor: pointer;
}

.reprint-layer-item__select {
  display: grid;
  min-width: 0;
  padding: 0.32rem;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
  text-align: left;
}

.reprint-layer-item__select i {
  color: var(--rpd-teal-dark);
}

.reprint-layer-item__select span {
  overflow: hidden;
  font-size: 0.64rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reprint-layer-item__action {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 5px;
  font-size: 0.66rem;
}

.reprint-layer-item__action:hover,
.reprint-layer-item__action:focus-visible {
  background: #fff;
  color: var(--rpd-teal-dark);
}

.reprint-measure-grid {
  display: grid;
  margin: 0.75rem 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.reprint-measure-grid label span {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--rpd-border);
  border-radius: 5px;
  background: #fff;
  grid-template-columns: minmax(0, 1fr) 28px;
}

.reprint-measure-grid input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0.35rem 0.25rem 0.35rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--rpd-ink);
  font-size: 0.68rem;
}

.reprint-measure-grid em {
  display: grid;
  place-items: center;
  color: var(--rpd-muted);
  font-size: 0.57rem;
  font-style: normal;
}

.reprint-proportion-lock {
  display: flex !important;
  align-items: center;
  margin-bottom: 0.8rem !important;
  gap: 0.45rem !important;
}

.reprint-proportion-lock input {
  width: 16px;
  height: 16px;
  accent-color: var(--rpd-teal-dark);
}

.reprint-icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.reprint-icon-row--align {
  margin-bottom: 0.55rem;
  grid-template-columns: repeat(3, 1fr);
}

.reprint-icon-row button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--rpd-border);
  border-radius: 4px;
  background: #fff;
  color: var(--rpd-ink);
  cursor: pointer;
}

.reprint-icon-row button:hover {
  border-color: var(--rpd-teal-dark);
  color: var(--rpd-teal-dark);
}

.reprint-layer-empty {
  padding: 1rem;
  border-radius: 8px;
  background: var(--rpd-fog);
  color: var(--rpd-muted);
  font-size: 0.74rem;
}

.reprint-tool-panel--templates {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.reprint-template-search {
  position: relative;
  margin-bottom: 0.65rem;
}

.reprint-template-search i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  color: var(--rpd-muted);
  font-size: 0.75rem;
  transform: translateY(-50%);
}

.reprint-template-search input {
  width: 100%;
  height: 40px;
  padding: 0 0.75rem 0 2.1rem;
  border: 1px solid var(--rpd-border);
  border-radius: 7px;
  background: #fff;
  color: var(--rpd-ink);
  font-size: 0.72rem;
}

.reprint-template-filters {
  display: flex;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  padding-bottom: 0.2rem;
  gap: 0.35rem;
  scrollbar-width: thin;
}

.reprint-template-filter-select {
  display: none;
  width: 100%;
  min-height: 44px;
  padding: 0 2.4rem 0 0.85rem;
  border: 1px solid rgba(56, 93, 96, 0.24);
  border-radius: 11px;
  background: #fff;
  color: var(--rpd-ink);
  font-size: 0.76rem;
  font-weight: 750;
}

.reprint-template-filters button {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border: 1px solid var(--rpd-border);
  border-radius: 999px;
  background: #fff;
  color: var(--rpd-muted);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 750;
}

.reprint-template-filters button[aria-pressed="true"] {
  border-color: var(--rpd-teal-dark);
  background: var(--rpd-teal-dark);
  color: #fff;
}

.reprint-template-grid {
  display: grid;
  width: 100%;
  max-height: min(430px, 52vh);
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.35rem 0.45rem 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-content: start;
  gap: 0.55rem;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.reprint-template-grid::-webkit-scrollbar {
  width: 6px;
}

.reprint-template-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 93, 96, 0.34);
}

.reprint-template-card {
  display: grid;
  min-width: 0;
  min-height: 164px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--rpd-border);
  border-radius: 9px;
  background: #fff;
  color: var(--rpd-ink);
  cursor: pointer;
  grid-template-rows: 112px auto;
  align-self: start;
  text-align: left;
}

.reprint-template-card:hover,
.reprint-template-card:focus-visible {
  border-color: var(--rpd-teal-dark);
  box-shadow: 0 5px 18px rgba(56, 93, 96, 0.13);
}

.reprint-template-card > img {
  display: block;
  width: 100%;
  height: 112px;
  padding: 0.55rem;
  object-fit: contain;
  object-position: center;
  background-color: #f6f7f4;
  background-image:
    linear-gradient(45deg, rgba(111, 145, 146, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(111, 145, 146, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(111, 145, 146, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(111, 145, 146, 0.1) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.reprint-template-card__body {
  display: grid;
  padding: 0.55rem;
  gap: 0.15rem;
}

.reprint-template-card__body strong {
  overflow: hidden;
  font-size: 0.66rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reprint-template-card__body small {
  color: var(--rpd-teal-dark);
  font-size: 0.63rem;
  font-weight: 800;
}

.reprint-template-card__body em {
  color: #a4510d;
  font-size: 0.55rem;
  font-style: normal;
}

.reprint-template-empty {
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--rpd-fog);
  color: var(--rpd-muted);
  font-size: 0.7rem;
}

.reprint-template-catalog-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  color: var(--rpd-teal-dark);
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.reprint-template-selection {
  display: grid;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(203, 211, 205, 0.52);
  gap: 0.12rem;
  font-size: 0.66rem;
}

.reprint-template-selection strong {
  color: var(--rpd-teal-dark);
  font-size: 0.7rem;
}

.reprint-rights {
  display: flex;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rpd-border);
  color: #4a5253;
  gap: 0.6rem;
  font-size: 0.68rem;
  line-height: 1.45;
}

.reprint-rights input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0.05rem 0 0;
}

.reprint-designer__stage {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  padding: 0 1rem 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    #eef0ed;
  background-size: 28px 28px;
  flex-direction: column;
}

.reprint-designer__stagebar {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.reprint-preview-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  padding: 0.3rem 0.45rem 0.3rem 0.65rem;
  border: 1px solid rgba(56, 93, 96, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

.reprint-preview-toolbar > span {
  display: inline-flex;
  align-items: center;
  color: var(--rpd-muted);
  gap: 0.4rem;
  font-size: 0.64rem;
  font-weight: 780;
}

.reprint-preview-toolbar > span i {
  color: var(--rpd-teal-dark);
}

.reprint-zoom {
  display: grid;
  align-items: center;
  grid-template-columns: 30px minmax(80px, 130px) 42px 30px 34px;
  gap: 0.28rem;
}

.reprint-zoom button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(56, 93, 96, 0.2);
  border-radius: 7px;
  background: #fff;
  color: var(--rpd-ink);
  cursor: pointer;
  font-size: 0.65rem;
}

.reprint-zoom button:hover,
.reprint-zoom button:focus-visible {
  border-color: var(--rpd-teal-dark);
  color: var(--rpd-teal-dark);
}

.reprint-zoom input[type="range"] {
  width: 100%;
  accent-color: var(--rpd-teal-dark);
}

.reprint-zoom output {
  color: var(--rpd-teal-dark);
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
}

.reprint-preview-viewport {
  position: relative;
  width: 100%;
  min-height: 570px;
  max-height: 640px;
  overflow: auto;
  border-radius: 18px;
  scrollbar-color: rgba(56, 93, 96, 0.48) transparent;
  scrollbar-width: thin;
}

.reprint-zoom-surface {
  position: relative;
  margin: 0 auto;
}

.reprint-zoom-surface > .reprint-designer__shirt {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.reprint-draft-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.reprint-draft-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(61, 96, 97, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rpd-ink);
  cursor: pointer;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 750;
}

.reprint-draft-actions button:hover,
.reprint-draft-actions button:focus-visible {
  border-color: var(--rpd-teal-dark);
  color: var(--rpd-teal-dark);
}

.reprint-designer__sides {
  display: inline-flex;
  max-width: min(62%, 560px);
  overflow-x: auto;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 12px rgba(23, 27, 28, 0.07);
  scrollbar-width: thin;
}

.reprint-designer__sides button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rpd-ink);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.reprint-designer__sides button[aria-selected="true"] {
  background: var(--rpd-ink);
  color: #fff;
}

.reprint-designer__sides button small {
  margin-left: 0.2rem;
  font-size: 0.56rem;
  font-weight: 700;
  opacity: 0.78;
}

.reprint-designer__sides [data-side-state][data-designed="true"] {
  color: #d8f2e3;
  opacity: 1;
}

.reprint-designer__side-hint {
  margin: -0.15rem auto 0.65rem;
  color: var(--rpd-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.reprint-contrast-notice {
  display: flex;
  align-items: flex-start;
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(164, 81, 13, 0.2);
  border-radius: 11px;
  background: rgba(239, 229, 218, 0.86);
  color: #6f3e17;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 680;
  line-height: 1.4;
}

.reprint-contrast-notice i {
  margin-top: 0.08rem;
  color: #a4510d;
}

.summary .reprint-swatch--color.is-contrast-disabled {
  opacity: 0.24;
  filter: grayscale(0.55);
  box-shadow: none;
}

.summary .reprint-swatch--color.is-contrast-disabled::after {
  position: absolute;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: #8b3b35;
  content: '';
  transform: rotate(-45deg);
}

.reprint-designer__side-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 750;
}

.summary .reprint-live-price-note {
  margin: -0.55rem 0 1rem;
  color: var(--rpd-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.45;
}

.reprint-quality {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #4c5556;
  font-size: 0.64rem;
  font-weight: 750;
  box-shadow: 0 3px 12px rgba(23, 27, 28, 0.07);
}

.reprint-quality__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #97a1a2;
}

.reprint-quality[data-state="good"] .reprint-quality__dot {
  background: #328258;
}

.reprint-quality[data-state="okay"] .reprint-quality__dot {
  background: #c48b22;
}

.reprint-quality[data-state="poor"] .reprint-quality__dot {
  background: #c64d4d;
}

.reprint-designer__shirt {
  position: relative;
  width: min(100%, 570px);
  min-height: 570px;
  margin: auto;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(203, 211, 205, 0.66), transparent 67%);
}

.reprint-designer__shirt:not([data-has-product-image="true"])::before {
  position: absolute;
  inset: 9% 15% 4%;
  border-radius: 22% 22% 9% 9%;
  background: #fff;
  box-shadow: 0 20px 45px rgba(23, 27, 28, 0.12);
  content: "";
}

.reprint-designer__shirt[data-has-product-image="true"]::before {
  content: none;
}

.reprint-designer__garment-image {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}

.reprint-designer__ai-overlay {
  position: absolute;
  z-index: 3;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(20, 25, 25, 0.62);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  opacity: 0.52;
  pointer-events: none;
}

.reprint-designer__shirt canvas {
  position: absolute;
  z-index: 2;
  top: 22%;
  left: 50%;
  width: 31%;
  max-height: none;
  border: 1px dashed rgba(56, 93, 96, 0.48);
  border-radius: 3px;
  cursor: move;
  touch-action: none;
  transform: translateX(-50%);
}

.reprint-designer__shirt canvas[data-dragging="true"] {
  cursor: grabbing;
}

.reprint-designer[data-garment="hoodie"] .reprint-designer__shirt canvas {
  top: 34%;
  width: 33%;
  max-height: none;
}

.reprint-designer[data-garment="sweatshirt"] .reprint-designer__shirt canvas {
  top: 24%;
  width: 31%;
  max-height: none;
}

.reprint-designer__placement-note {
  max-width: 570px;
  margin: 0.8rem auto 0;
  color: var(--rpd-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.reprint-cart-preview {
  display: block;
  width: 88px;
  max-height: 110px;
  margin: 0.4rem 0;
  object-fit: contain;
  border: 1px solid var(--rpd-border);
  border-radius: 6px;
  background: #fff;
}

.reprint-design-code {
  color: var(--rpd-muted);
  font-size: 0.72rem;
}

@media (max-width: 1260px) {
  .reprint-designer__workspace {
    min-height: 610px;
    grid-template-columns: 72px minmax(205px, 235px) minmax(340px, 1fr);
  }

  .reprint-designer__shirt {
    min-height: 520px;
  }

  .reprint-preview-viewport {
    min-height: 520px;
  }

  .reprint-designer__head-actions span:first-child {
    display: none;
  }
}

@media (max-width: 860px) {
  .reprint-designer__head-actions {
    display: flex;
  }

  .reprint-designer__head-actions span {
    display: none;
  }

  .reprint-designer__workspace {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .reprint-designer__rail {
    display: grid;
    padding: 0.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--rpd-border);
    grid-template-columns: repeat(5, 1fr) auto;
  }

  .reprint-designer__rail > button {
    min-height: 58px;
  }

  .reprint-designer__history {
    margin: 0;
    align-self: center;
  }

  .reprint-designer__panels {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--rpd-border);
  }

  .reprint-template-grid {
    max-height: min(410px, 55vh);
  }

  .reprint-rights {
    margin-top: 1.5rem;
  }

  .reprint-designer__stage {
    min-height: 580px;
  }
}

@media (max-width: 560px) {
  .reprint-designer {
    border-radius: 14px;
  }

  .reprint-designer__heading {
    min-height: 70px;
    padding: 0.8rem 1rem;
  }

  .reprint-designer__heading h2 {
    font-size: 1.25rem;
  }

  .reprint-designer__rail {
    position: relative;
    overflow: visible;
    padding: 0.45rem;
    border-radius: 0;
    background: #fff;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .reprint-designer__rail > button {
    min-width: 0;
    min-height: 54px;
    padding: 0.35rem 0.1rem;
    border-radius: 9px;
  }

  .reprint-designer__rail > button[aria-pressed="true"] {
    border-color: rgba(56, 93, 96, 0.26);
    background: linear-gradient(145deg, rgba(203, 211, 205, 0.62), rgba(239, 229, 218, 0.5));
    box-shadow: 0 4px 12px rgba(23, 27, 28, 0.07);
  }

  .reprint-designer__rail > button span {
    font-size: 0.58rem;
  }

  .reprint-designer__history {
    display: flex;
    width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(23, 27, 28, 0.08);
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .reprint-designer__history button {
    width: 40px;
    min-height: 34px;
  }

  .reprint-designer__stage {
    order: 2;
  }

  .reprint-designer__panels {
    order: 3;
    min-height: 0;
    padding: 1rem;
  }

  .reprint-template-filters {
    display: block;
    overflow: visible;
    padding: 0;
  }

  .reprint-template-filter-select {
    display: block;
  }

  .reprint-template-filters > button {
    display: none;
  }

  .reprint-template-grid {
    max-height: min(360px, 48vh);
    overscroll-behavior-y: auto;
  }

  .reprint-designer__stage {
    min-height: 500px;
    padding: 0 0.5rem 0.5rem;
  }

  .reprint-contrast-notice {
    margin: 0.15rem 0 0.55rem;
    font-size: 0.67rem;
  }

  .reprint-designer__stagebar {
    min-height: 58px;
    flex-wrap: wrap;
  }

  .reprint-designer__sides {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .reprint-draft-actions {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .reprint-designer__shirt {
    min-height: 420px;
  }

  .reprint-preview-viewport {
    min-height: 420px;
    max-height: 500px;
  }

  .reprint-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .reprint-preview-toolbar > span {
    display: none;
  }

  .reprint-zoom {
    width: 100%;
    grid-template-columns: 30px minmax(90px, 1fr) 42px 30px 34px;
  }

  .reprint-quality {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
