:root {
  --ps-ink: #0f172a;
  --ps-muted: #64748b;
  --ps-line: #dbe4f0;
  --ps-soft: #f5f8fc;
  --ps-blue: #2563eb;
  --ps-blue-dark: #1d4ed8;
  --ps-violet: #7c3aed;
  --ps-green: #059669;
  --ps-amber: #d97706;
  --ps-red: #dc2626;
  --ps-shadow: 0 18px 55px rgba(15, 23, 42, .10);
}

body.print-studio-body {
  background:
    radial-gradient(circle at 5% 2%, rgba(37, 99, 235, .10), transparent 25rem),
    radial-gradient(circle at 95% 10%, rgba(124, 58, 237, .08), transparent 28rem),
    #f4f7fb;
}

.ps-page {
  width: min(1540px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 110px;
  color: var(--ps-ink);
}

.ps-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ps-title-wrap { min-width: 0; }
.ps-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--ps-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ps-title {
  margin: 0;
  overflow: hidden;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-subtitle {
  margin: 6px 0 0;
  color: var(--ps-muted);
  font-size: 13px;
}

.ps-back-link,
.ps-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ps-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ps-status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
  backdrop-filter: blur(14px);
}
.ps-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .15);
}
.ps-status-strip[data-state="saved"] .ps-status-dot {
  background: var(--ps-green);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, .13);
}
.ps-status-strip[data-state="saving"] .ps-status-dot {
  background: var(--ps-amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, .13);
  animation: ps-pulse 1s infinite alternate;
}
.ps-status-strip[data-state="error"] .ps-status-dot {
  background: var(--ps-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .13);
}
.ps-status-text { min-width: 0; flex: 1; font-size: 12px; color: #475569; }
.ps-status-meta { color: #94a3b8; font-size: 11px; white-space: nowrap; }

@keyframes ps-pulse { to { opacity: .4; transform: scale(.8); } }

.ps-layout {
  display: grid;
  grid-template-columns: 310px minmax(420px, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.ps-panel,
.ps-workspace-card {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--ps-shadow);
}

.ps-panel {
  overflow: hidden;
}
.ps-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid #edf1f6;
}
.ps-panel-title strong { font-size: 14px; }
.ps-panel-title span { color: var(--ps-muted); font-size: 11px; }

.ps-tools { position: sticky; top: 12px; }
.ps-side { position: sticky; top: 12px; }

.ps-tool-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
  background: #f8fafc;
}
.ps-tool-tab {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 49px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ps-tool-tab .ps-icon { font-size: 17px; line-height: 1; }
.ps-tool-tab:hover { background: #eef4ff; color: var(--ps-blue); }
.ps-tool-tab.is-active {
  border-color: #bfdbfe;
  background: #fff;
  color: var(--ps-blue);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .10);
}

.ps-tool-pane { display: none; padding: 14px; }
.ps-tool-pane.is-active { display: block; }
.ps-section + .ps-section { margin-top: 16px; padding-top: 15px; border-top: 1px solid #edf1f6; }
.ps-section h3 { margin: 0 0 4px; font-size: 13px; }
.ps-help { margin: 0 0 10px; color: var(--ps-muted); font-size: 11px; line-height: 1.5; }

.ps-upload-zone {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 14px;
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}
.ps-upload-zone:hover,
.ps-upload-zone.is-dragging { border-color: var(--ps-blue); background: #eaf2ff; transform: translateY(-1px); }
.ps-upload-zone .ps-upload-icon { font-size: 27px; }
.ps-upload-zone strong { margin-top: 6px; font-size: 12px; }
.ps-upload-zone small { margin-top: 4px; color: var(--ps-muted); font-size: 10px; }
.ps-upload-zone input { display: none; }

.ps-field { display: grid; gap: 5px; margin-top: 10px; }
.ps-field > label { color: #475569; font-size: 11px; font-weight: 800; }
.ps-input,
.ps-select,
.ps-textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #cfd9e7;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ps-ink);
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
}
.ps-textarea { min-height: 74px; resize: vertical; }
.ps-input:focus,
.ps-select:focus,
.ps-textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.ps-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-color-input { width: 100%; height: 40px; padding: 3px; border: 1px solid #cfd9e7; border-radius: 11px; background: #fff; }

.ps-range-row { display: grid; grid-template-columns: 1fr 52px; gap: 8px; align-items: center; }
.ps-range { width: 100%; accent-color: var(--ps-blue); }
.ps-range-value { color: #475569; font-size: 11px; font-weight: 900; text-align: right; }

.ps-btn-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #d4deeb;
  border-radius: 11px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: .15s ease;
}
.ps-btn:hover { border-color: #93c5fd; background: #f8fbff; color: var(--ps-blue); }
.ps-btn:disabled { opacity: .45; cursor: not-allowed; }
.ps-btn-primary { border-color: var(--ps-blue); background: var(--ps-blue); color: #fff; }
.ps-btn-primary:hover { border-color: var(--ps-blue-dark); background: var(--ps-blue-dark); color: #fff; }
.ps-btn-danger { color: #b91c1c; }
.ps-btn-danger:hover { border-color: #fecaca; background: #fff1f2; color: #b91c1c; }
.ps-btn-block { width: 100%; }

.ps-template-grid,
.ps-shape-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ps-template-card {
  min-height: 76px;
  padding: 9px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  background: #fff;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.ps-template-card span { display: block; margin-bottom: 8px; font-size: 20px; }
.ps-template-card:hover { border-color: #93c5fd; box-shadow: 0 7px 18px rgba(37, 99, 235, .09); }

.ps-workspace { min-width: 0; }
.ps-workspace-card { overflow: hidden; }
.ps-workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid #e9eef5;
  background: rgba(255, 255, 255, .95);
}
.ps-toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ps-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.ps-icon-btn:hover { border-color: #93c5fd; color: var(--ps-blue); }
.ps-icon-btn.is-on { border-color: #93c5fd; background: #eff6ff; color: var(--ps-blue); }

.ps-canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: 28px;
  overflow: hidden;
  background-color: #eef2f7;
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  touch-action: none;
}
.ps-canvas-shell {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .20);
}
.ps-canvas-shell .canvas-container { max-width: 100%; }
.ps-canvas-shell canvas { max-width: 100%; height: auto; }
.ps-safe-guide,
.ps-bleed-guide {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
}
.ps-safe-guide {
  inset: 3.5%;
  border: 2px dashed rgba(5, 150, 105, .75);
}
.ps-bleed-guide {
  inset: 1px;
  border: 2px solid rgba(220, 38, 38, .50);
}
.ps-guide-tag {
  position: absolute;
  left: 6px;
  z-index: 11;
  padding: 3px 6px;
  border-radius: 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.ps-guide-tag-safe { top: 6px; background: rgba(5, 150, 105, .85); }
.ps-guide-tag-bleed { bottom: 6px; background: rgba(220, 38, 38, .82); }

.ps-stage-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-top: 1px solid #e9eef5;
  background: #fff;
  color: var(--ps-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ps-object-bar {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) repeat(4, auto);
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid #e9eef5;
  background: #f8fafc;
}
.ps-object-label {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
  background: #f8fafc;
}
.ps-preview-tab {
  min-height: 36px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.ps-preview-tab.is-active { border-color: #bfdbfe; background: #fff; color: var(--ps-blue); }

.ps-preview-pane { display: none; padding: 14px; }
.ps-preview-pane.is-active { display: block; }
.ps-flat-preview {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f7 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.ps-product-mockup {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: radial-gradient(circle at center, #fff 0, #eef2f7 70%);
}
.ps-product-mockup > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ps-mockup-design {
  position: absolute;
  left: var(--mockup-left, 50%);
  top: var(--mockup-top, 50%);
  width: var(--mockup-width, 42%);
  transform: translate(-50%, -50%) rotate(var(--mockup-rotate, 0deg));
  overflow: hidden;
  border-radius: var(--mockup-radius, 4px);
  opacity: .96;
  mix-blend-mode: multiply;
  filter: saturate(.95) contrast(.98);
  box-shadow: inset 0 0 18px rgba(15, 23, 42, .16);
}
.ps-mockup-design img { display: block; width: 100%; height: auto; }
.ps-mockup-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

.ps-mug-wrap { display: grid; place-items: center; min-height: 300px; }
#ps-mug-preview { width: 100%; max-width: 300px; height: auto; }
.ps-rotation-control { margin-top: 12px; }

.ps-quality-card {
  margin: 12px 14px 0;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
}
.ps-quality-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ps-quality-head strong { font-size: 12px; }
.ps-quality-badge { padding: 4px 7px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 9px; font-weight: 900; }
.ps-quality-card[data-quality="good"] { border-color: #a7f3d0; background: #ecfdf5; }
.ps-quality-card[data-quality="good"] .ps-quality-badge { background: #d1fae5; color: #047857; }
.ps-quality-card[data-quality="warning"] { border-color: #fde68a; background: #fffbeb; }
.ps-quality-card[data-quality="warning"] .ps-quality-badge { background: #fef3c7; color: #b45309; }
.ps-quality-card[data-quality="poor"] { border-color: #fecaca; background: #fff1f2; }
.ps-quality-card[data-quality="poor"] .ps-quality-badge { background: #fee2e2; color: #b91c1c; }
.ps-quality-list { margin: 8px 0 0; padding-left: 16px; color: #475569; font-size: 10px; line-height: 1.5; }

.ps-layers { max-height: 245px; padding: 8px; overflow: auto; }
.ps-layer {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 5px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}
.ps-layer.is-active { border-color: #93c5fd; background: #eff6ff; color: var(--ps-blue); }
.ps-layer-icon { font-size: 16px; }
.ps-layer-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.ps-layer-actions { display: flex; gap: 3px; }
.ps-layer-actions button { width: 25px; height: 25px; border: 0; border-radius: 7px; background: #fff; color: #64748b; cursor: pointer; }
.ps-layer-empty { padding: 20px 10px; color: #94a3b8; font-size: 10px; text-align: center; }

.ps-product-summary { padding: 14px; }
.ps-product-row { display: flex; gap: 10px; }
.ps-product-thumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 13px; object-fit: contain; background: #f1f5f9; }
.ps-product-name { margin: 0; font-size: 13px; line-height: 1.35; }
.ps-product-price { margin-top: 5px; color: var(--ps-blue); font-size: 17px; font-weight: 950; }
.ps-product-meta { margin-top: 9px; color: var(--ps-muted); font-size: 10px; line-height: 1.6; }

.ps-variant-box { padding: 0 14px 14px; }
.ps-variant-box:empty { display: none; }
.ps-total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 13px 14px; border-top: 1px solid #edf1f6; }
.ps-total-row span { color: var(--ps-muted); font-size: 11px; }
.ps-total-row strong { color: var(--ps-blue); font-size: 20px; }
.ps-qty { display: flex; align-items: center; gap: 5px; }
.ps-qty button { width: 33px; height: 33px; border: 1px solid #dbe4ef; border-radius: 10px; background: #fff; font-size: 17px; cursor: pointer; }
.ps-qty input { width: 44px; height: 33px; border: 1px solid #dbe4ef; border-radius: 10px; text-align: center; font-weight: 900; }

.ps-actions { display: grid; gap: 8px; padding: 14px; border-top: 1px solid #edf1f6; }
.ps-main-action {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ps-blue), var(--ps-violet));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .23);
}
.ps-main-action:hover { filter: brightness(.97); transform: translateY(-1px); }
.ps-main-action:disabled { opacity: .55; transform: none; cursor: wait; }
.ps-account-note { color: var(--ps-muted); font-size: 10px; line-height: 1.45; text-align: center; }

.ps-mobile-nav { display: none; }
.ps-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .30);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .18s ease;
}
.ps-toast.is-visible { opacity: 1; transform: translateY(0); }
.ps-toast[data-type="error"] { background: #991b1b; }
.ps-toast[data-type="success"] { background: #065f46; }

.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(8px);
}
.ps-modal.is-open { display: grid; }
.ps-modal-card { width: min(720px, 100%); max-height: 88vh; overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.ps-modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #e8eef6; }
.ps-modal-body { padding: 16px; }
.ps-modal-preview { width: 100%; max-height: 55vh; object-fit: contain; border-radius: 14px; background: #f1f5f9; }

@media (max-width: 1220px) {
  .ps-layout { grid-template-columns: 280px minmax(380px, 1fr); }
  .ps-side { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .ps-side > * { border: 1px solid rgba(148, 163, 184, .22); border-radius: 20px; background: #fff; }
  .ps-side .ps-preview-wrap { grid-row: span 3; }
}

@media (max-width: 820px) {
  .ps-page { width: 100%; padding: 12px 10px 130px; box-sizing: border-box; }
  .ps-topbar { align-items: flex-start; }
  .ps-title { font-size: 23px; white-space: normal; }
  .ps-subtitle { font-size: 11px; }
  .ps-back-link { width: 37px; height: 37px; flex: 0 0 auto; overflow: hidden; padding: 0; border: 1px solid #dbe4ef; border-radius: 11px; background: #fff; font-size: 0; }
  .ps-back-link::before { content: '←'; font-size: 18px; }
  .ps-status-strip { margin-bottom: 10px; }
  .ps-status-meta { display: none; }
  .ps-layout { display: block; }
  .ps-tools, .ps-workspace, .ps-side { display: none; position: static; }
  .ps-layout[data-mobile-panel="tools"] .ps-tools,
  .ps-layout[data-mobile-panel="canvas"] .ps-workspace,
  .ps-layout[data-mobile-panel="preview"] .ps-side { display: block; }
  .ps-side { background: transparent; border: 0; box-shadow: none; }
  .ps-side > * { margin-bottom: 10px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 20px; background: #fff; }
  .ps-panel, .ps-workspace-card { border-radius: 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, .09); }
  .ps-tools .ps-tool-pane { min-height: 54vh; }
  .ps-workspace-toolbar { position: sticky; top: 0; z-index: 30; }
  .ps-canvas-stage { min-height: 54vh; padding: 14px 8px; }
  .ps-stage-hint { display: block; }
  .ps-stage-hint span + span { display: block; margin-top: 3px; }
  .ps-object-bar { grid-template-columns: 1fr repeat(4, 38px); }
  .ps-product-mockup { min-height: 310px; }
  .ps-mobile-nav {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(15, 23, 42, .94);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .30);
    backdrop-filter: blur(14px);
  }
  .ps-mobile-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 53px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 900;
  }
  .ps-mobile-nav button span { font-size: 18px; }
  .ps-mobile-nav button.is-active { background: linear-gradient(135deg, var(--ps-blue), var(--ps-violet)); color: #fff; }
  .ps-toast { right: 12px; bottom: 88px; }
}

@media (max-width: 430px) {
  .ps-tool-tabs { grid-template-columns: repeat(4, 1fr); padding: 7px; }
  .ps-tool-tab { min-height: 46px; }
  .ps-tool-pane { padding: 12px; }
  .ps-canvas-stage { min-height: 49vh; }
  .ps-workspace-toolbar { padding: 8px; }
  .ps-toolbar-group:first-child .ps-icon-btn span { display: none; }
  .ps-input-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
