/* PTQ STUDIO WORKSPACE LAYER
   Clean operational-only layer for:
   - PTQ Studio
   - PTQ CRM
   - PTQ Area Riservata
*/

.ptqce-shell.ptqce-studio-shell,
.ptqce-shell.ptqce-crm-shell,
.ptqce-shell.ptqce-reserved-shell {
  --ptq-back-bg: #f4f8fc;
  --ptq-back-surface: #ffffff;
  --ptq-back-surface-soft: #f8fbff;
  --ptq-back-surface-muted: #eef4f8;
  --ptq-back-border: #dde7f0;
  --ptq-back-border-strong: #c8d6e3;
  --ptq-back-text: #10243a;
  --ptq-back-muted: #66768d;
  --ptq-back-accent: #42c5bc;
  --ptq-back-accent-strong: #1e8f89;
  --ptq-back-accent-soft: #e9fbfa;
  --ptq-back-blue: #2c84fb;
  --ptq-back-blue-soft: #eff6ff;
  --ptq-back-success: #16845d;
  --ptq-back-success-soft: #ecfdf5;
  --ptq-back-warning: #b96c0f;
  --ptq-back-warning-soft: #fff7ed;
  --ptq-back-danger: #b8372b;
  --ptq-back-danger-soft: #fef2f2;
  --ptq-back-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ptq-back-shadow-soft: 0 14px 40px rgba(28, 46, 74, 0.08);
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  background:
    radial-gradient(circle at top right, rgba(119, 193, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(204, 231, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--ptq-back-bg) 100%);
  color: var(--ptq-back-text);
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-panel {
  gap: 22px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-style-picker,
.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-review-form {
  margin-top: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-style-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-table {
  table-layout: fixed;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-thumb-cell {
  width: 84px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-table select {
  min-width: 100%;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-progress {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-progress-top strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ptq-back-text);
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-progress-top span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ptq-back-muted);
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef5;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ptq-back-accent) 0%, var(--ptq-back-blue) 100%);
  transition: width 0.22s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-massive-media-upload-form.is-uploading .ptqce-button-primary {
  opacity: 0.7;
  pointer-events: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-name-mapping-tools {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-name-mapping-json {
  width: 100%;
  min-height: 320px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 16px;
  background: #f8fbff;
  color: var(--ptq-back-text);
  font: 12px/1.5 SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
}

.ptqce-shell.ptqce-studio-shell .ptqce-name-mapping-table code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ptq-back-text);
  font-size: 12px;
}

.ptqce-shell .ptqce-studio-notice {
  display: none !important;
}

.ptqce-system-activity {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10010;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  color: var(--ptq-back-text);
  backdrop-filter: blur(10px);
}

.ptqce-system-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--ptq-back-success);
  box-shadow: 0 0 0 4px rgba(22, 132, 93, 0.14);
}

.ptqce-system-activity-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ptqce-system-activity-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ptqce-system-activity-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ptq-back-border);
  background: var(--ptq-back-surface-soft);
  color: var(--ptq-back-text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ptqce-system-activity-link:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: var(--ptq-back-border-strong);
  color: var(--ptq-back-text);
}

.ptqce-system-activity-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ptq-back-text);
}

.ptqce-system-activity-copy span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ptq-back-text);
}

.ptqce-system-activity-copy small {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ptq-back-muted);
}

.ptqce-system-activity.is-ready .ptqce-system-activity-dot {
  background: var(--ptq-back-success);
  box-shadow: 0 0 0 4px rgba(22, 132, 93, 0.14);
}

.ptqce-system-activity.is-active .ptqce-system-activity-dot {
  background: #d1a214;
  box-shadow: 0 0 0 4px rgba(209, 162, 20, 0.16), 0 0 0 0 rgba(209, 162, 20, 0.28);
  animation: ptqceSystemPulse 1.3s ease-in-out infinite;
}

.ptqce-system-activity.is-slow .ptqce-system-activity-dot {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16), 0 0 0 0 rgba(217, 119, 6, 0.26);
  animation: ptqceSystemPulse 1.1s ease-in-out infinite;
}

.ptqce-system-activity.is-error .ptqce-system-activity-dot {
  background: var(--ptq-back-danger);
  box-shadow: 0 0 0 4px rgba(184, 55, 43, 0.14);
}

@keyframes ptqceSystemPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.ptqce-shell.ptqce-studio-shell,
.ptqce-shell.ptqce-crm-shell {
  display: block;
}

.ptqce-shell.ptqce-reserved-shell {
  display: grid;
  gap: 24px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-app,
.ptqce-shell.ptqce-crm-shell .ptqce-crm-app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-main,
.ptqce-shell.ptqce-crm-shell .ptqce-crm-main {
  min-width: 0;
  padding: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-main {
  display: grid;
  gap: 20px;
  font-size: 14px;
  color: var(--ptq-back-text);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-sidebar,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--ptq-back-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--ptq-back-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  box-sizing: border-box;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-sidebar *,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-sidebar * {
  box-sizing: border-box;
}

.ptqce-shell.ptqce-studio-shell .ptqce-brand,
.ptqce-shell.ptqce-crm-shell .ptqce-brand {
  width: auto;
  min-height: 58px;
  margin: 0;
  padding: 28px 24px 20px;
  border: 0;
  border-bottom: 1px solid rgba(16, 36, 58, 0.06);
  border-radius: 0;
  background: transparent;
  color: var(--ptq-back-text);
}

.ptqce-shell.ptqce-studio-shell .ptqce-brand:not(.is-logo),
.ptqce-shell.ptqce-crm-shell .ptqce-brand:not(.is-logo) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-brand-image,
.ptqce-shell.ptqce-crm-shell .ptqce-brand-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 190px;
  max-height: 52px;
  object-fit: contain;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-nav {
  display: grid;
  gap: 28px;
  flex: 1 1 auto;
  padding: 22px 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav-group,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-nav-group {
  display: grid;
  gap: 6px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav-heading,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-nav-heading {
  margin: 0;
  color: var(--ptq-back-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 8px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav-stack,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-nav-stack {
  display: grid;
  gap: 6px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-tab,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-tab {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ptq-back-muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease, transform 0.25s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-tab:hover,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-tab:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(16, 36, 58, 0.08);
  color: var(--ptq-back-text);
  padding-left: 20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-tab.is-active,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-tab.is-active {
  background: rgba(44, 132, 251, 0.12);
  border-color: rgba(44, 132, 251, 0.18);
  color: var(--ptq-back-blue);
  box-shadow: 0 8px 20px rgba(44, 132, 251, 0.12);
}

.ptqce-crm-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 999px;
  background: var(--ptq-back-surface);
  color: var(--ptq-back-muted);
  font-size: 12px;
  font-weight: 700;
}

.ptqce-studio-tab.is-active .ptqce-crm-nav-count {
  color: var(--ptq-back-blue);
  border-color: #bfdbfe;
  background: var(--ptq-back-blue-soft);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-sidebar-tools,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-sidebar-tools {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(16, 36, 58, 0.06);
  background: rgba(16, 36, 58, 0.03);
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-sidebar-copy {
  display: grid;
  gap: 6px;
  padding: 0 24px 18px;
  border-bottom: 1px solid rgba(16, 36, 58, 0.06);
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-sidebar-copy h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-sidebar-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-side-action,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-side-action,
.ptqce-shell.ptqce-studio-shell .ptqce-catalog-job-form,
.ptqce-shell.ptqce-crm-shell .ptqce-catalog-job-form {
  width: 100%;
  max-width: 100%;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-topbar,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-topbar {
  margin-bottom: 20px;
  padding: 18px 22px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--ptq-back-shadow);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-topbar h1,
.ptqce-shell.ptqce-crm-shell .ptqce-studio-topbar h1 {
  margin: 0;
  color: var(--ptq-back-text);
  font-size: 32px;
  line-height: 1;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  .ptqce-studio-create-box,
  .ptqce-collab-card,
  .ptqce-summary-card,
  .ptqce-studio-item,
  .ptqce-style-card,
  .ptqce-generated-item,
  .ptqce-reserved-order-card,
  .ptqce-account-panel,
  .ptqce-account-history-card,
  .ptqce-account-hero,
  .ptqce-reserved-preview-box,
  .ptqce-sample-preview-card
) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ptq-back-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ptq-back-shadow);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  .ptqce-studio-create-box,
  .ptqce-collab-card,
  .ptqce-summary-card,
  .ptqce-account-panel,
  .ptqce-account-history-card,
  .ptqce-account-hero,
  .ptqce-reserved-order-card
) {
  padding: 20px 22px;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  .ptqce-section-head h2,
  .ptqce-crm-toolbar h3,
  .ptqce-collab-card-head h4,
  .ptqce-account-panel h2,
  .ptqce-account-orders-section h2,
  .ptqce-reserved-preview-box h4
) {
  margin: 0 0 6px;
  color: var(--ptq-back-text);
  line-height: 1.08;
}

.ptqce-shell.ptqce-studio-shell :is(.ptqce-section-head h2, .ptqce-crm-toolbar h3, .ptqce-account-panel h2, .ptqce-account-orders-section h2),
.ptqce-shell.ptqce-crm-shell :is(.ptqce-section-head h2, .ptqce-crm-toolbar h3, .ptqce-account-panel h2, .ptqce-account-orders-section h2),
.ptqce-shell.ptqce-reserved-shell :is(.ptqce-section-head h2, .ptqce-crm-toolbar h3, .ptqce-account-panel h2, .ptqce-account-orders-section h2) {
  font-size: 28px;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  .ptqce-table-caption,
  .ptqce-help,
  .ptqce-kicker,
  .ptqce-upload-note,
  .ptqce-account-hero p,
  .ptqce-collab-card-head p,
  .ptqce-crm-sidebar-copy p,
  .ptqce-account-eyebrow
) {
  color: var(--ptq-back-muted);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  .ptqce-button,
  .ptqce-button-primary,
  .ptqce-button-secondary,
  .ptqce-button-small,
  .ptqce-mini-button,
  .ptqce-product-editor-button,
  .ptqce-product-editor-toggle,
  .ptqce-save-chip,
  .ptqce-button-ghost
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px !important;
  border: 1px solid var(--ptq-back-border);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(.ptqce-button, .ptqce-button-primary) {
  background: var(--ptq-back-accent) !important;
  border-color: var(--ptq-back-accent) !important;
  color: #ffffff !important;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  .ptqce-button-secondary,
  .ptqce-button-small,
  .ptqce-mini-button,
  .ptqce-product-editor-button,
  .ptqce-product-editor-toggle,
  .ptqce-button-ghost,
  .ptqce-save-chip
) {
  background: var(--ptq-back-surface) !important;
  border-color: var(--ptq-back-border) !important;
  color: var(--ptq-back-text) !important;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(.ptqce-button, .ptqce-button-primary, .ptqce-button-secondary, .ptqce-mini-button):hover {
  transform: none;
  filter: none;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(.ptqce-button-secondary, .ptqce-button-small) {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px !important;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-action-cell .ptqce-button-secondary,
.ptqce-shell.ptqce-reserved-shell .ptqce-button-secondary.ptqce-button-small {
  border-color: #bfdbfe !important;
  background: #f8fbff !important;
  color: var(--ptq-back-blue) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-action-cell .ptqce-button-secondary:hover,
.ptqce-shell.ptqce-reserved-shell .ptqce-button-secondary.ptqce-button-small:hover {
  background: var(--ptq-back-blue) !important;
  border-color: var(--ptq-back-blue) !important;
  color: #fff !important;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(.ptqce-status-pill, .ptqce-badge, .ptqce-badge-light, .ptqce-color-chip) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ptq-back-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-badge,
.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-badge-light {
  background: var(--ptq-back-surface-soft);
  color: var(--ptq-back-muted);
  border-color: var(--ptq-back-border);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-status-pill.is-muted {
  background: #f8f4ee;
  border-color: #eadfd1;
  color: #6b5f52;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-status-pill.is-info {
  background: var(--ptq-back-blue-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-status-pill.is-success {
  background: var(--ptq-back-success-soft);
  border-color: #a7f3d0;
  color: #047857;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-status-pill.is-warning {
  background: var(--ptq-back-warning-soft);
  border-color: #fed7aa;
  color: #c2410c;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="search"],
  input[type="file"],
  textarea,
  select
) {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ptq-back-border-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ptq-back-text);
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
  box-shadow: none;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) textarea {
  min-height: 110px;
  resize: vertical;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) :is(input, textarea, select):focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ptqce-upload-field,
.ptqce-checklist-block,
.ptqce-product-editor-section,
.ptqce-empty-state,
.ptqce-catalog-job-card,
.ptqce-composition-wrap,
.ptqce-table-wrap,
.ptqce-editor,
.ptqce-editor-compact,
.ptqce-client-address-card,
.ptqce-client-address-form {
  padding: 16px 18px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 16px;
  background: var(--ptq-back-surface-soft);
  box-shadow: none;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-field {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ptq-back-text);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 148px;
  padding: 24px 18px;
  border: 2px dashed var(--ptq-back-border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--ptq-back-surface-soft), #fcfeff);
  color: var(--ptq-back-muted);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
  color: var(--ptq-back-text);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  display: block;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 24px;
  line-height: 1;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger-copy {
  display: grid;
  gap: 6px;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger-copy strong {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ptq-back-text);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-trigger-copy small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ptq-back-muted);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-preview,
.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-thumb-card {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ptq-back-border);
  background: #e9eef5;
  box-shadow: none;
  animation: ptqce-preview-pop 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-thumb-card.is-placeholder {
  opacity: 1;
  border-style: solid;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-upload-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--ptq-back-border);
  background: var(--ptq-back-surface-soft);
  color: var(--ptq-back-muted);
  font-size: 13px;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-file-selected {
  font-size: 12px;
  color: var(--ptq-back-muted);
}

.ptqce-check-item,
.ptqce-inline-switch-card,
.ptqce-composition-choice,
.ptqce-crm-timeline-item,
.ptqce-crm-order-item,
.ptqce-reserved-order-item,
.ptqce-crm-stat,
.ptqce-account-hero-stat {
  padding: 14px 16px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 14px;
  background: var(--ptq-back-surface-soft);
  box-shadow: none;
}

.ptqce-crm-simple-row[hidden],
.ptqce-crm-list-row[hidden],
[data-ptq-filter-item][hidden],
[data-ptq-client-panel][hidden] {
  display: none !important;
}

.ptqce-shell.ptqce-studio-shell [hidden],
.ptqce-shell.ptqce-crm-shell [hidden],
.ptqce-shell.ptqce-reserved-shell [hidden] {
  display: none !important;
}

.ptqce-shell.ptqce-reserved-shell #loginform {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.ptqce-shell.ptqce-reserved-shell #loginform > p {
  margin: 0;
}

.ptqce-shell.ptqce-reserved-shell #loginform label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ptq-back-text);
}

.ptqce-shell.ptqce-reserved-shell #loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ptq-back-muted);
}

.ptqce-shell.ptqce-reserved-shell #loginform .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ptqce-shell.ptqce-reserved-shell #loginform .login-remember input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.ptqce-shell.ptqce-reserved-shell #loginform .login-submit .button,
.ptqce-shell.ptqce-reserved-shell #loginform .login-submit .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ptq-back-accent);
  border-radius: 12px;
  background: var(--ptq-back-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.ptqce-shell.ptqce-reserved-shell #loginform .login-submit .button:hover,
.ptqce-shell.ptqce-reserved-shell #loginform .login-submit .button-primary:hover {
  border-color: var(--ptq-back-accent-strong);
  background: var(--ptq-back-accent-strong);
}

.ptqce-google-login-block {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
}

.ptqce-google-login-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ptq-back-muted);
}

.ptqce-google-login-button {
  min-height: 44px;
}

.ptqce-google-login-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ptq-back-muted);
}

.ptqce-google-login-divider {
  position: relative;
  margin: 4px 0 16px;
  text-align: center;
}

.ptqce-google-login-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--ptq-back-border);
  transform: translateY(-50%);
}

.ptqce-google-login-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--ptq-back-surface);
  color: var(--ptq-back-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-screen,
.ptqce-shell.ptqce-reserved-shell .ptqce-account-orders-section {
  display: grid;
  gap: 20px;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-stress-tools {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-stress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-stress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-stress-actions form {
  margin: 0;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-stress-clear {
  color: #b42318 !important;
  border-color: rgba(180, 35, 24, 0.18) !important;
  background: #fff5f4 !important;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-stress-clear:hover {
  color: #7a271a !important;
  border-color: rgba(122, 39, 26, 0.22) !important;
  background: #ffe4e0 !important;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-filter {
  min-width: min(100%, 320px);
}

.ptqce-crm-simple-list {
  display: grid;
  gap: 10px;
}

.ptqce-crm-simple-head,
.ptqce-crm-simple-row {
  display: grid;
  align-items: center;
  gap: 14px;
}

.ptqce-crm-simple-head {
  padding: 0 20px 6px;
  color: var(--ptq-back-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptqce-crm-simple-row {
  padding: 18px 20px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 16px;
  background: var(--ptq-back-surface);
  box-shadow: var(--ptq-back-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  animation: ptqce-row-lift-in 0.26s ease both;
}

@keyframes ptqce-row-lift-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ptqce-crm-simple-row:hover {
  transform: translateY(-2px);
  background: #fbfdff;
  border-color: var(--ptq-back-border-strong);
  box-shadow: 0 12px 24px rgba(16, 36, 58, 0.08);
}

.ptqce-crm-simple-row.is-targeted {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.ptqce-crm-simple-list-customers .ptqce-crm-simple-head,
.ptqce-crm-simple-list-customers .ptqce-crm-simple-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ptqce-crm-simple-list-customer-orders .ptqce-crm-simple-head,
.ptqce-crm-simple-list-customer-orders .ptqce-crm-simple-row {
  grid-template-columns: 120px 110px 120px minmax(170px, 1fr) 150px;
}

.ptqce-crm-simple-list-orders .ptqce-crm-simple-head,
.ptqce-crm-simple-list-orders .ptqce-crm-simple-row {
  grid-template-columns: 120px minmax(220px, 1.3fr) 110px 120px minmax(170px, 1fr) 150px;
}

.ptqce-crm-simple-row > span {
  min-width: 0;
  color: var(--ptq-back-text);
  font-size: 14px;
  line-height: 1.45;
}

.ptqce-crm-customer-cell {
  display: grid;
  gap: 4px;
}

.ptqce-crm-customer-cell small {
  color: var(--ptq-back-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ptqce-crm-status-cell,
.ptqce-crm-action-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ptqce-crm-status-cell {
  justify-content: flex-start;
}

.ptqce-crm-action-cell {
  justify-content: flex-end;
}

.ptqce-crm-simple-list-customers .ptqce-crm-action-cell {
  justify-content: flex-start;
}

.ptqce-crm-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.ptqce-crm-order-detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ptqce-crm-preview-topgrid {
  align-items: start;
}

.ptqce-crm-upload-module {
  display: grid;
  gap: 12px;
}

.ptqce-crm-upload-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ptq-back-text);
}

.ptqce-crm-upload-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 24px 18px;
  border: 2px dashed var(--ptq-back-border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--ptq-back-surface-soft), #fcfeff);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.ptqce-crm-upload-module.is-dragging .ptqce-crm-upload-dropzone,
.ptqce-crm-upload-dropzone:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.ptqce-crm-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 24px;
  line-height: 1;
}

.ptqce-crm-upload-copy {
  display: grid;
  gap: 6px;
}

.ptqce-crm-upload-copy strong {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ptq-back-text);
}

.ptqce-crm-upload-copy small {
  font-size: 13px;
  color: var(--ptq-back-muted);
}

.ptqce-crm-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ptqce-crm-upload-meta-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 16px;
  background: var(--ptq-back-surface-soft);
}

.ptqce-crm-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
  min-height: 0;
}

.ptqce-crm-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ptq-back-border);
  background: #e9eef5;
  animation: ptqce-preview-pop 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes ptqce-preview-pop {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

.ptqce-crm-preview-thumb,
.ptqce-crm-preview-thumb img {
  width: 100%;
  height: 100%;
}

.ptqce-crm-preview-thumb img {
  object-fit: cover;
  display: block;
}

.ptqce-crm-preview-remove,
.ptqce-crm-preview-link,
.ptqce-crm-preview-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ptqce-crm-preview-remove {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  cursor: pointer;
}

.ptqce-crm-preview-link,
.ptqce-crm-preview-badge {
  background: rgba(16, 36, 58, 0.86);
  color: #fff;
  text-decoration: none;
}

.ptqce-crm-preview-item.is-existing .ptqce-crm-preview-link {
  opacity: 0.92;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-order-workspace,
.ptqce-shell.ptqce-reserved-shell .ptqce-crm-order-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.ptqce-shell.ptqce-crm-shell .ptqce-crm-order-primary,
.ptqce-shell.ptqce-crm-shell .ptqce-crm-order-side,
.ptqce-shell.ptqce-reserved-shell .ptqce-crm-order-primary,
.ptqce-shell.ptqce-reserved-shell .ptqce-crm-order-side {
  display: grid;
  gap: 20px;
}

.ptqce-chat-thread {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.ptqce-chat-thread::-webkit-scrollbar {
  width: 6px;
}

.ptqce-chat-thread::-webkit-scrollbar-thumb {
  background: rgba(102, 118, 141, 0.28);
  border-radius: 999px;
}

.ptqce-chat-empty {
  padding: 18px;
  border: 1px dashed var(--ptq-back-border-strong);
  border-radius: 16px;
  background: var(--ptq-back-surface-soft);
  color: var(--ptq-back-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ptqce-chat-message {
  width: 100%;
}

.ptqce-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  animation: ptqce-chat-slide-up 0.28s ease both;
}

@keyframes ptqce-chat-slide-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ptqce-chat-message.is-admin .ptqce-chat-row {
  flex-direction: row-reverse;
}

.ptqce-chat-message.is-system .ptqce-chat-row {
  justify-content: center;
}

.ptqce-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #f2f7fc;
  border: 1px solid var(--ptq-back-border);
  color: var(--ptq-back-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 14px rgba(16, 36, 58, 0.08);
}

.ptqce-chat-message.is-admin .ptqce-chat-avatar {
  background: var(--ptq-back-blue);
  border-color: var(--ptq-back-blue);
  color: #fff;
}

.ptqce-chat-message.is-system .ptqce-chat-avatar {
  background: #fff8e8;
  border-color: #f3deb2;
  color: var(--ptq-back-warning);
}

.ptqce-chat-bubble-wrap {
  display: grid;
  gap: 6px;
  max-width: min(78%, 560px);
}

.ptqce-chat-message.is-system .ptqce-chat-bubble-wrap {
  max-width: min(100%, 680px);
}

.ptqce-chat-body {
  padding: 12px 16px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 16px 16px 16px 6px;
  background: #f7fbff;
  box-shadow: var(--ptq-back-shadow);
}

.ptqce-chat-message.is-admin .ptqce-chat-body {
  border-color: #bfdbfe;
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(180deg, #eff6ff, #e7f0ff);
}

.ptqce-chat-message.is-system .ptqce-chat-body {
  text-align: center;
  border-style: dashed;
  border-color: #e6d2a4;
  border-radius: 14px;
  background: #fffaf0;
}

.ptqce-chat-body p {
  margin: 0;
  color: var(--ptq-back-text);
  font-size: 14px;
  line-height: 1.6;
}

.ptqce-chat-body p + p {
  margin-top: 8px;
}

.ptqce-chat-body a {
  color: var(--ptq-back-blue);
  font-weight: 700;
  text-decoration: none;
}

.ptqce-chat-body a:hover {
  text-decoration: underline;
}

.ptqce-chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: var(--ptq-back-muted);
  font-size: 11px;
  line-height: 1.3;
}

.ptqce-chat-message.is-admin .ptqce-chat-meta {
  justify-content: flex-end;
}

.ptqce-chat-message.is-system .ptqce-chat-meta {
  justify-content: center;
}

.ptqce-chat-meta strong {
  color: var(--ptq-back-text);
  font-size: 11px;
}

.ptqce-client-app-tabs-shell,
.ptqce-client-panel-stack,
.ptqce-client-order-app-card,
.ptqce-crm-production-screen {
  display: grid;
  gap: 18px;
}

.ptqce-client-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
}

.ptqce-client-tab {
  appearance: none;
  border: 1px solid var(--ptq-back-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ptq-back-text);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.ptqce-client-tab:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #f8fbff;
  color: var(--ptq-back-blue);
}

.ptqce-client-tab.is-active {
  background: var(--ptq-back-blue);
  border-color: var(--ptq-back-blue);
  color: #fff;
}

.ptqce-client-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.ptqce-client-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ptqce-client-order-head {
  align-items: flex-start;
}

.ptqce-client-order-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ptqce-client-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ptqce-client-order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ptqce-client-progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ptq-back-border);
  background: var(--ptq-back-surface);
  color: var(--ptq-back-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ptqce-client-progress-step.is-done {
  color: var(--ptq-back-success);
  border-color: #a7f3d0;
  background: var(--ptq-back-success-soft);
}

.ptqce-client-progress-step.is-current {
  color: var(--ptq-back-blue);
  border-color: #bfdbfe;
  background: var(--ptq-back-blue-soft);
}

.ptqce-crm-production-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.ptqce-crm-production-strip-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ptqce-crm-production-strip-copy strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
}

.ptqce-crm-production-strip-copy p,
.ptqce-crm-production-strip-meta {
  margin: 0;
  color: var(--ptq-back-muted);
  font-size: 13px;
}

.ptqce-crm-production-led {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #28a56d;
  box-shadow: 0 0 0 0 rgba(40, 165, 109, 0.32);
  animation: ptqce-led-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes ptqce-led-pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 165, 109, 0.36); }
  70% { box-shadow: 0 0 0 12px rgba(40, 165, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 165, 109, 0); }
}

.ptqce-crm-production-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ptqce-crm-production-kpis .ptqce-collab-card {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.ptqce-crm-production-kpis strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ptqce-crm-production-kpis span {
  color: var(--ptq-back-muted);
  font-size: 13px;
}

.ptqce-crm-simple-list-production .ptqce-crm-simple-head,
.ptqce-crm-simple-list-production .ptqce-crm-simple-row {
  grid-template-columns: minmax(120px, 0.9fr) minmax(240px, 1.4fr) minmax(180px, 1fr) 90px 120px 100px 120px;
}

.ptqce-crm-simple-list-production .ptqce-crm-simple-row > span:nth-child(n+4) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-panel {
  display: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-panel.is-active {
  display: grid;
  gap: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-create-box,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item {
  padding: 18px 20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-create-box h2,
.ptqce-shell.ptqce-studio-shell .ptqce-product-filters-box h2,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-card-head h2 {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-create-box h3,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item h3,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head h4,
.ptqce-shell.ptqce-studio-shell .ptqce-composition-choices h3 {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-title,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-price {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-main p,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-main li,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-main dd,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-main dt,
.ptqce-shell.ptqce-studio-shell .ptqce-section-note,
.ptqce-shell.ptqce-studio-shell .ptqce-upload-note,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-small,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head p,
.ptqce-shell.ptqce-studio-shell .ptqce-table-caption {
  font-size: 13px;
  line-height: 1.55;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-form,
.ptqce-shell.ptqce-studio-shell .ptqce-form-grid {
  display: grid;
  gap: 14px 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ptqce-shell.ptqce-studio-shell .ptqce-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ptqce-shell.ptqce-studio-shell .ptqce-form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-main label,
.ptqce-shell.ptqce-studio-shell .ptqce-filter-field label,
.ptqce-shell.ptqce-studio-shell .ptqce-upload-field label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #334155;
}

.ptqce-shell.ptqce-studio-shell .ptqce-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item {
  display: grid !important;
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-toprow,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-headbar-product {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-toolbar-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 14px;
  align-items: end;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-filters-box {
  padding: 22px 24px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-filter-field {
  display: grid;
  gap: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-search,
.ptqce-shell.ptqce-studio-shell .ptqce-product-style-filter,
.ptqce-shell.ptqce-studio-shell .ptqce-input-elevated {
  appearance: none;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid rgba(19, 32, 46, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-search:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-product-style-filter:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-input-elevated:focus {
  outline: none;
  border-color: #10243a;
  box-shadow: 0 0 0 4px rgba(16, 36, 58, 0.08);
}

.ptqce-shell.ptqce-studio-shell #ptqce-products-catalog {
  grid-template-columns: 1fr;
  gap: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-filter-item {
  display: block;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination-meta {
  margin: 14px 0 10px;
  color: #6e7e85;
  font-size: 0.95rem;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination {
  margin-top: 4px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination .page-numbers li {
  margin: 0;
  list-style: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination a,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(110, 126, 133, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #1c0f13;
  text-decoration: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-pagination .current {
  background: #639292;
  border-color: #639292;
  color: #fff;
}

@keyframes ptqce-editor-reveal {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable {
  display: grid;
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-head,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-panel,
.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-panel {
  display: grid;
  gap: 16px;
  padding-top: 2px;
  animation: ptqce-editor-reveal 0.28s ease both;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-panel[hidden],
.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-panel[hidden] {
  display: none !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-layout {
  display: grid;
  gap: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section,
.ptqce-shell.ptqce-studio-shell .ptqce-editor {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border: 1px solid var(--ptq-back-border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section {
  padding: 22px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head.simple {
  margin-bottom: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head p {
  max-width: 64ch;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-button,
.ptqce-shell.ptqce-studio-shell .ptqce-editor > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--ptq-back-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ptq-back-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-button:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-editor > summary:hover {
  background: #f8fbff;
  border-color: var(--ptq-back-border-strong);
  box-shadow: 0 10px 18px rgba(16, 36, 58, 0.08);
  transform: translateY(-1px);
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor > summary {
  list-style: none;
  width: fit-content;
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor > summary::-webkit-details-marker {
  display: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor > summary::after {
  content: "▾";
  font-size: 12px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor[open] > summary::after,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-button.is-open .ptqce-editor-caret,
.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-button.is-open .ptqce-editor-caret {
  transform: rotate(180deg);
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor[open] > *:not(summary) {
  animation: ptqce-editor-reveal 0.24s ease both;
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-editor form {
  display: grid;
  gap: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-checklist-block {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fcfeff 0%, #f4f8fc 100%);
  border-style: dashed;
}

.ptqce-shell.ptqce-studio-shell .ptqce-checklist-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ptq-back-muted);
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-delete {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-upload-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d6e5f3;
  border-radius: 999px;
  background: #fff;
  color: var(--ptq-back-muted);
  font-size: 12px;
  font-weight: 700;
}

.ptqce-shell.ptqce-studio-shell .ptqce-upload-trigger.is-dragover {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #f8fbff, #eaf3ff);
  color: var(--ptq-back-text);
}

.ptqce-shell.ptqce-studio-shell .ptqce-upload-field-gallery .ptqce-gallery-preview {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-card {
  border-radius: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-card[draggable="true"] {
  cursor: grab;
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-card.is-dragging {
  opacity: 0.72;
  transform: scale(0.97);
  box-shadow: 0 16px 30px rgba(16, 36, 58, 0.18);
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-card.is-cover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-card.is-cover::after {
  content: "Copertina";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-remove {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-thumb-card:hover .ptqce-thumb-remove {
  opacity: 1;
  transform: scale(1);
}

.ptqce-shell.ptqce-studio-shell .ptqce-file-selected {
  min-height: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-button,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-toggle,
.ptqce-shell.ptqce-studio-shell .ptqce-mini-button,
.ptqce-shell.ptqce-studio-shell .ptqce-save-chip {
  min-height: 38px !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-box-labeled {
  position: relative;
}

.ptqce-shell.ptqce-studio-shell .ptqce-box-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(44, 132, 251, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #5b7086;
  box-shadow: 0 6px 18px rgba(16, 36, 58, 0.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-mini-button-view {
  background: var(--ptq-back-blue-soft) !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-mini-button-suspend {
  background: #f8fafc !important;
  border-color: var(--ptq-back-border) !important;
  color: var(--ptq-back-muted) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-mini-button-danger {
  background: var(--ptq-back-danger-soft) !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-composition-table,
.ptqce-shell.ptqce-studio-shell .ptqce-text-form-table,
.ptqce-shell.ptqce-studio-shell table.widefat {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: transparent;
}

.ptqce-shell.ptqce-studio-shell .ptqce-composition-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-composition-table td,
.ptqce-shell.ptqce-studio-shell .ptqce-text-form-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-text-form-table td,
.ptqce-shell.ptqce-studio-shell table.widefat th,
.ptqce-shell.ptqce-studio-shell table.widefat td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--ptq-back-border);
  text-align: left;
  vertical-align: middle;
}

.ptqce-shell.ptqce-studio-shell .ptqce-composition-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-text-form-table th,
.ptqce-shell.ptqce-studio-shell table.widefat th {
  color: var(--ptq-back-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Studio component transplant: product card + editor panel + editor section */
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at top right, rgba(49, 65, 91, 0.3), rgba(7, 14, 24, 0.9) 55%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: rgba(0, 0, 0, 0.16);
  transition: background 0.22s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item.is-open .ptqce-generated-summary,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-left,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-left {
  min-width: 0;
  flex: 1 1 auto;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-copy {
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d6e4f4;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-icon svg {
  width: 20px;
  height: 20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-title {
  margin: 0;
  color: #f0f6fc;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-meta-text {
  color: #8b949e;
  font-size: 13px;
  line-height: 1.45;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-toolbar-inline {
  gap: 8px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-toolbar-inline form {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-mini-button,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-product-editor-button,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card .ptqce-product-editor-button,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-panel .ptqce-button-secondary,
.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-panel .ptqce-button-secondary {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f0f6fc !important;
  box-shadow: none !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-mini-button:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-product-editor-button:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card .ptqce-product-editor-button:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-panel .ptqce-button-secondary:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-panel .ptqce-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-mini-button-view {
  color: #dbeafe !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-mini-button-danger {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-product-editor-button {
  background: rgba(255, 255, 255, 0.08) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item .ptqce-product-editor-button .ptqce-editor-caret,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card .ptqce-product-editor-button .ptqce-editor-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-panel,
.ptqce-shell.ptqce-studio-shell .ptqce-style-editor-panel {
  gap: 20px;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  animation: ptqce-editor-reveal 0.28s ease both;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-layout {
  gap: 20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head {
  margin-bottom: 20px;
  gap: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-section-eyebrow {
  margin: 0 0 8px;
  color: #86a6cb;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head h4 {
  margin: 0;
  color: #f0f6fc;
  font-size: 21px;
  line-height: 1.15;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head p {
  margin: 8px 0 0;
  color: #8b949e !important;
  font-size: 14px !important;
  line-height: 1.55;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section > p,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-form-grid > p {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section label,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-field-label,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-field label {
  color: #9aa7b6 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section input[type="text"],
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section input[type="number"],
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section select,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section textarea {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.34);
  color: #f0f6fc;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section textarea {
  min-height: 110px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section input:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section select:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section textarea:focus {
  background: rgba(0, 0, 0, 0.42);
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-save-chip {
  min-width: 110px;
  color: #4ade80 !important;
  background: rgba(46, 160, 67, 0.16) !important;
  border-color: rgba(74, 222, 128, 0.28) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-checklist-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-style: solid;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-checklist-title {
  color: #d8e4ef;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-check-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: #f0f6fc;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-check-item input {
  accent-color: #0a84ff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-field {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-head {
  margin-bottom: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-count {
  min-height: 34px;
  padding: 0 12px;
  color: #8b949e;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-trigger {
  min-height: 146px;
  padding: 30px 18px;
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-trigger:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-trigger.is-dragover {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.06);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-trigger-copy strong {
  color: #f0f6fc;
  font-size: 18px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-trigger-copy small,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-file-selected,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-empty {
  color: #8b949e;
  font-size: 13px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-upload-preview,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-gallery-preview {
  margin-top: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-gallery-preview {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-thumb-card {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-thumb-card.is-cover {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.28);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-thumb-card.is-cover::after {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 7px 10px;
  border-radius: 0;
  background: rgba(10, 132, 255, 0.92);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-thumb-remove {
  background: rgba(239, 68, 68, 0.94);
  border: 0;
  color: #fff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-wrap,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-table td,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-text-form-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-text-form-table td {
  padding: 14px 12px;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-text-form-table th {
  color: #9aa7b6;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-table tbody tr:hover td,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-text-form-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-table-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-table input[type="checkbox"],
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-table input[type="radio"],
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-text-form-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0a84ff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-remove,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section [data-ptqce-remove-text-form-field] {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section .ptqce-composition-remove:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section [data-ptqce-remove-text-form-field]:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.32);
}

/* Studio validated light transplant: generated product card only */
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template {
  padding: 0;
  overflow: hidden;
  min-width: 0;
  border-radius: 24px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 33, 48, 0.09);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition: background 0.22s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template.is-open .ptqce-generated-summary,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary:hover {
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-left,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-left {
  min-width: 0;
  flex: 1 1 auto;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2b6cb0;
  border: 1px solid rgba(43, 108, 176, 0.12);
  background: linear-gradient(180deg, #f7fbff 0%, #ebf4fb 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-icon svg {
  width: 20px;
  height: 20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-title {
  margin: 0;
  color: #13202e;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-meta-text {
  color: #667788;
  font-size: 13px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-toolbar-inline {
  gap: 8px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-toolbar-inline form {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-button,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-button-secondary,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-save-chip {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(19, 32, 46, 0.1) !important;
  background: #ffffff !important;
  color: #13202e !important;
  box-shadow: none !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-button:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-button-secondary:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-save-chip:hover {
  transform: translateY(-1px);
  background: #f8fbff !important;
  border-color: rgba(19, 32, 46, 0.16) !important;
  box-shadow: 0 12px 24px rgba(35, 63, 92, 0.08) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button-ghost,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button-suspend {
  color: #4b5b6b !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button-danger {
  color: #c53b3b !important;
  background: #fff8f8 !important;
  border-color: rgba(197, 59, 59, 0.18) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button-view {
  color: #2b6cb0 !important;
  background: #f7fbff !important;
  border-color: rgba(43, 108, 176, 0.16) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-button {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-button .ptqce-editor-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-panel {
  gap: 20px;
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  width: auto !important;
  box-sizing: border-box;
  border-top: 1px solid rgba(19, 32, 46, 0.08);
  background: #fcfeff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-layout {
  gap: 20px;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section {
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 46, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template > .ptqce-generated-toprow,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template > .ptqce-generated-main,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template > .ptqce-product-editor-panel {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section-head {
  margin-bottom: 20px;
  gap: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-section-eyebrow {
  margin: 0 0 8px;
  color: #2b6cb0;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section-head h4 {
  margin: 0;
  color: #13202e;
  font-size: 22px;
  line-height: 1.15;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section-head p {
  margin: 8px 0 0;
  color: #667788 !important;
  font-size: 14px !important;
  line-height: 1.55;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section label,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-field label {
  color: #607286 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section > p,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-form-grid > p {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section input[type="text"],
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section input[type="number"],
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section select,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section textarea {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  color: #13202e;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section textarea {
  min-height: 110px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section input:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section select:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section textarea:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-save-chip {
  min-width: 110px;
  color: #177a4a !important;
  background: #f1faf5 !important;
  border-color: rgba(23, 122, 74, 0.2) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-checklist-block {
  background: #f6f9fc;
  border: 1px solid rgba(19, 32, 46, 0.08);
  border-style: solid;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-checklist-title {
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-check-item {
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 46, 0.08);
  background: #ffffff;
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-check-item input {
  accent-color: #2b6cb0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-field {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-head {
  margin-bottom: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-count {
  min-height: 36px;
  padding: 0 12px;
  color: #667788;
  border-color: rgba(19, 32, 46, 0.1);
  background: #ffffff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger {
  min-height: 146px;
  padding: 30px 18px;
  border: 2px dashed rgba(19, 32, 46, 0.12);
  border-radius: 16px;
  background: #f8fbff;
  text-align: center;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger.is-dragover {
  border-color: #2b6cb0;
  background: #eef6ff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger-copy strong {
  color: #13202e;
  font-size: 18px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger-copy small,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-file-selected,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-empty {
  color: #667788;
  font-size: 13px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-preview,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-gallery-preview {
  margin-top: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-gallery-preview {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-thumb-card {
  border-radius: 14px;
  background: #ecf2f7;
  border: 1px solid rgba(19, 32, 46, 0.1);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-thumb-card.is-cover {
  border-color: rgba(43, 108, 176, 0.34);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-thumb-card.is-cover::after {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 7px 10px;
  border-radius: 0;
  background: rgba(43, 108, 176, 0.92);
  color: #fff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-thumb-remove {
  background: rgba(197, 59, 59, 0.92);
  color: #fff;
  border: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-wrap,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-table-wrap {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 46, 0.08);
  background: #fbfdff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable {
  width: 100%;
  min-width: 0;
  display: grid !important;
  align-content: start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(22, 33, 48, 0.08);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-studio-item-main {
  width: 100%;
  min-width: 0;
  gap: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable h3 {
  margin: 0;
  color: #13202e;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-studio-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable > form {
  justify-self: end;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable > form .ptqce-button-small {
  min-width: 110px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor {
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 46, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor > summary {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor form {
  margin-top: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-table td,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-text-form-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-text-form-table td {
  padding: 14px 12px;
  border-bottom-color: rgba(19, 32, 46, 0.06);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-table th,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-text-form-table th {
  color: #607286;
  background: rgba(43, 108, 176, 0.04);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-table tbody tr:hover td,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-text-form-table tbody tr:hover td {
  background: rgba(43, 108, 176, 0.02);
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-table input[type="checkbox"],
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-table input[type="radio"],
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-text-form-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2b6cb0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-remove,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section [data-ptqce-remove-text-form-field] {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(197, 59, 59, 0.18);
  background: #fff8f8;
  color: #c53b3b;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-composition-remove:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section [data-ptqce-remove-text-form-field]:hover {
  background: rgba(197, 59, 59, 0.12);
  border-color: rgba(197, 59, 59, 0.24);
}

/* Studio module transplant: sidebar, entity card, checkbox list */
.ptqce-shell.ptqce-studio-shell .ptqce-studio-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 33, 48, 0.09);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-brand {
  display: block;
  min-height: 58px;
  margin: 0;
  padding: 28px 24px 20px;
  border: 0;
  border-bottom: 1px solid rgba(16, 36, 58, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-brand:not(.is-logo) {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-brand-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 190px;
  max-height: 52px;
  object-fit: contain;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav {
  gap: 18px;
  padding: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav-group {
  gap: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav-heading {
  padding: 0;
  color: #607286;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-nav-stack {
  gap: 8px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-tab {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: #13202e;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-tab:hover {
  transform: translateY(-1px);
  padding-left: 14px;
  background: #f7fbff;
  border-color: rgba(19, 32, 46, 0.16);
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-tab.is-active {
  background: #eef6ff;
  border-color: rgba(43, 108, 176, 0.18);
  color: #2b6cb0;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-sidebar-tools {
  padding: 18px 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(19, 32, 46, 0.1);
  background: transparent;
  gap: 12px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-side-action {
  min-height: 46px;
  justify-content: flex-start;
}

.ptqce-shell.ptqce-studio-shell :is(
  .ptqce-checklist-block,
  .ptqce-product-editor-section .ptqce-checklist-block,
  .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-checklist-block
) {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 33, 48, 0.09);
}

.ptqce-shell.ptqce-studio-shell .ptqce-checklist-title {
  margin: 0;
  color: #13202e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

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

.ptqce-shell.ptqce-studio-shell :is(
  .ptqce-check-item,
  .ptqce-product-editor-section .ptqce-check-item,
  .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-check-item
) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #f7fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell :is(
  .ptqce-check-item:hover,
  .ptqce-product-editor-section .ptqce-check-item:hover,
  .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-check-item:hover
) {
  background: #ffffff;
  border-color: rgba(43, 108, 176, 0.18);
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell :is(
  .ptqce-check-item input,
  .ptqce-product-editor-section .ptqce-check-item input,
  .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-check-item input
) {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2b6cb0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-check-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-check-item-copy strong {
  color: #13202e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 33, 48, 0.09);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-studio-item-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable h3 {
  margin: 0;
  color: #13202e;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-description {
  margin: 0;
  color: #667788;
  font-size: 14px;
  line-height: 1.55;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-studio-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor {
  grid-column: 2;
  align-self: start;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  color: #4b5b6b;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor > summary::-webkit-details-marker {
  display: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor > summary::after {
  content: "▾";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor > summary:hover {
  transform: translateY(-1px);
  background: #f7fbff;
  border-color: rgba(19, 32, 46, 0.16);
  box-shadow: 0 12px 24px rgba(35, 63, 92, 0.08);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor[open] {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor[open] > summary {
  margin-left: auto;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor[open] > summary::after {
  transform: rotate(180deg);
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor form {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-delete {
  grid-column: 3;
  align-self: start;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-delete .ptqce-button-small {
  min-width: 96px;
}

/* Studio polish: style card mirrors product card, entity card containment, premium toggle */
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template {
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-style-card-head {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-title {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-summary {
  min-height: 90px;
  padding: 22px 24px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-summary-left {
  align-items: center;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-summary-icon {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-style-editor-panel {
  min-width: 0;
  max-width: 100%;
  width: auto !important;
  box-sizing: border-box;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-list {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-top: 4px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-style-editor-delete {
  margin: 0;
  padding-top: 4px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-list > * {
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable > *,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor form,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-form-grid,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-form-grid > *,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable textarea,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable select,
.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable input {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable {
  overflow: hidden;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor[open] {
  overflow: hidden;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor form {
  width: 100%;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section > p + .ptqce-form-grid,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section > p + .ptqce-checklist-block {
  margin-top: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-field {
  margin: 0 0 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(19, 32, 46, 0.1);
  border-radius: 16px;
  background: #f7fbff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill:hover {
  background: #ffffff;
  border-color: rgba(43, 108, 176, 0.18);
  box-shadow: 0 12px 24px rgba(35, 63, 92, 0.06);
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill-ui {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 30px;
  padding: 3px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #d8e4ef;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill-knob {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(19, 32, 46, 0.14);
  transition: transform 0.2s ease;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill input:checked + .ptqce-toggle-pill-ui {
  background: #2b6cb0;
  box-shadow: inset 0 0 0 1px rgba(43, 108, 176, 0.18);
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill input:checked + .ptqce-toggle-pill-ui .ptqce-toggle-pill-knob {
  transform: translateX(22px);
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill-copy strong {
  color: #13202e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ptqce-shell.ptqce-studio-shell .ptqce-toggle-pill-copy small {
  color: #667788;
  font-size: 13px;
  line-height: 1.45;
}

.ptqce-shell:is(.ptqce-studio-shell, .ptqce-crm-shell, .ptqce-reserved-shell) .ptqce-delete-guard-form [data-ptqce-confirm-button].is-confirming {
  color: #b45309 !important;
  background: #fff7ed !important;
  border-color: rgba(180, 83, 9, 0.18) !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable {
  grid-template-columns: 1fr;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions .ptqce-editor {
  grid-column: 2;
  width: auto;
  min-width: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions .ptqce-editor[open] {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: hidden;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions .ptqce-editor[open] > summary {
  grid-column: 2;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions .ptqce-editor form {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions .ptqce-entity-card-delete {
  grid-column: 3;
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template.is-open .ptqce-generated-summary,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-summary,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template.is-open .ptqce-generated-summary,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-summary:hover {
  background: #ffffff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-icon,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-generated-summary-icon {
  background: #f5f7fa;
  border-color: rgba(19, 32, 46, 0.08);
  color: #2b6cb0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-mini-button-view,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-button,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-product-editor-button {
  background: #ffffff !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-panel,
.ptqce-shell.ptqce-studio-shell .ptqce-style-card-template .ptqce-style-editor-panel,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-checklist-block {
  background: #ffffff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger {
  background: #f8fafc;
}

.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section .ptqce-upload-trigger.is-dragover {
  background: #f1f5f9;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-bulk-media-box {
  display: grid;
  gap: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-bulk-media-box .ptqce-bulk-media-upload .ptqce-gallery-preview {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-report {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-group {
  display: grid;
  gap: 10px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-group h3 {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 46, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-list li strong {
  color: #13202e;
  font-size: 13px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-list li span {
  color: #667788;
  font-size: 13px;
  line-height: 1.45;
}

.ptqce-shell.ptqce-studio-shell .ptqce-bulk-media-list.is-problem li {
  background: #fffaf7;
  border-color: rgba(180, 83, 9, 0.14);
}

@media (max-width: 960px) {
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-left,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-generated-summary-right,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-item-template .ptqce-product-editor-section-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 1180px) {
  .ptqce-crm-detail-grid,
  .ptqce-client-app-grid,
  .ptqce-client-address-grid,
  .ptqce-client-order-meta-grid,
  .ptqce-client-order-progress {
    grid-template-columns: 1fr 1fr;
  }

  .ptqce-crm-order-detail-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ptqce-crm-production-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ptqce-crm-simple-list-production .ptqce-crm-simple-head,
  .ptqce-crm-simple-list-production .ptqce-crm-simple-row {
    grid-template-columns: minmax(120px, 1fr) minmax(220px, 1.2fr) minmax(160px, 1fr) 80px 90px 90px 100px;
  }
}

@media (max-width: 1100px) {
  .ptqce-shell.ptqce-studio-shell .ptqce-studio-app,
  .ptqce-shell.ptqce-crm-shell .ptqce-crm-app-shell,
  .ptqce-shell.ptqce-crm-shell .ptqce-crm-order-workspace,
  .ptqce-shell.ptqce-reserved-shell .ptqce-crm-order-workspace,
  .ptqce-shell.ptqce-reserved-shell .ptqce-account-hero {
    grid-template-columns: 1fr;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-studio-sidebar,
  .ptqce-shell.ptqce-crm-shell .ptqce-studio-sidebar {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-form-grid-3,
  .ptqce-shell.ptqce-studio-shell .ptqce-form-grid-4,
  .ptqce-shell.ptqce-studio-shell .ptqce-product-filters-row,
  .ptqce-shell.ptqce-studio-shell .ptqce-product-create-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .ptqce-shell.ptqce-studio-shell,
  .ptqce-shell.ptqce-crm-shell,
  .ptqce-shell.ptqce-reserved-shell {
    padding: 18px 16px 32px;
  }

  .ptqce-client-app-grid,
  .ptqce-client-address-grid,
  .ptqce-client-order-meta-grid,
  .ptqce-client-order-progress,
  .ptqce-crm-detail-grid,
  .ptqce-crm-order-detail-meta,
  .ptqce-crm-production-kpis,
  .ptqce-shell.ptqce-studio-shell .ptqce-form-grid-2,
  .ptqce-shell.ptqce-studio-shell .ptqce-form-grid-4,
  .ptqce-shell.ptqce-studio-shell .ptqce-checklist-grid {
    grid-template-columns: 1fr;
  }

  .ptqce-crm-simple-head {
    display: none;
  }

  .ptqce-crm-simple-list-customer-orders .ptqce-crm-simple-row,
  .ptqce-crm-simple-list-customers .ptqce-crm-simple-row,
  .ptqce-crm-simple-list-orders .ptqce-crm-simple-row,
  .ptqce-crm-simple-list-production .ptqce-crm-simple-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-style-card-head,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-toprow,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-summary,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-right,
  .ptqce-shell.ptqce-studio-shell .ptqce-product-editor-section-head,
  .ptqce-shell.ptqce-studio-shell .ptqce-upload-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-product-editor-button,
  .ptqce-shell.ptqce-studio-shell .ptqce-style-editor-button,
  .ptqce-shell.ptqce-studio-shell .ptqce-editor > summary {
    width: 100%;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable {
    grid-template-columns: 1fr;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-entity-card-actions {
    grid-template-columns: 1fr;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-studio-item-editable .ptqce-editor,
  .ptqce-shell.ptqce-studio-shell .ptqce-entity-card-delete {
    grid-column: auto;
    width: 100%;
  }

  .ptqce-shell.ptqce-studio-shell .ptqce-box-tag {
    position: static;
    width: fit-content;
    margin-bottom: 8px;
  }

  .ptqce-crm-action-cell,
  .ptqce-crm-simple-list-customers .ptqce-crm-action-cell {
    justify-content: flex-start;
  }

  .ptqce-crm-production-strip,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-toprow,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-headbar-product,
  .ptqce-shell.ptqce-studio-shell .ptqce-generated-summary-left {
    flex-direction: column;
    align-items: stretch;
  }

  .ptqce-crm-preview-list {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
}

.ptqce-shell.ptqce-studio-shell .ptqce-envelope-flap-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid rgba(28, 15, 19, 0.12);
  border-radius: 16px;
  background: #fff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-envelope-flap-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-library-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-asset-card{
  display:grid;
  gap:14px;
  padding:18px;
  background:#fff;
  border:1px solid rgba(28,15,19,.12);
  border-radius:22px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-asset-thumb{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#f5f1ed;
  border-radius:16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-asset-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-asset-body{
  display:grid;
  gap:8px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-asset-url{
  display:grid;
  gap:6px;
  font-size:12px;
  color:rgba(28,15,19,.66);
}

.ptqce-shell.ptqce-studio-shell .ptqce-media-asset-url input{
  width:100%;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-box{
  margin-bottom:20px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form {
  gap: 18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(19, 32, 46, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-section-eyebrow {
  color: #2b6cb0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section-head h4 {
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section-head p,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-count,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-trigger-copy small,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-file-selected,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-empty {
  color: #667788 !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section label,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section .ptqce-field-label,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section .ptqce-upload-field label {
  color: #607286 !important;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section input[type="text"],
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section input[type="number"],
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section select,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section textarea {
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: #ffffff;
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section input:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section select:focus,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-product-editor-section textarea:focus {
  background: #ffffff;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-count {
  border-color: rgba(19, 32, 46, 0.1);
  background: #ffffff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-trigger {
  border: 2px dashed rgba(19, 32, 46, 0.12);
  background: #f8fbff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-trigger:hover,
.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-trigger.is-dragover {
  border-color: #2b6cb0;
  background: #eef6ff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-upload-trigger-copy strong {
  color: #13202e;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-thumb-card {
  background: #ecf2f7;
  border: 1px solid rgba(19, 32, 46, 0.1);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-thumb-card.is-cover {
  border-color: rgba(43, 108, 176, 0.34);
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-form .ptqce-thumb-card.is-cover::after {
  background: rgba(43, 108, 176, 0.92);
  color: #fff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-layout .ptqce-product-editor-section {
  margin: 0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-fields {
  gap: 12px 14px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-actions {
  display: flex;
  justify-content: flex-start;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-create-actions .ptqce-button {
  width: auto;
  min-width: 240px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variants{
  display:grid;
  gap:18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variants-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-list{
  display:grid;
  gap:16px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-card{
  display:grid;
  gap:16px;
  padding:18px;
  border:1px solid rgba(19, 32, 46, 0.1);
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-top{
  display:grid;
  gap:12px;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-fields{
  align-items:start;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-fields > p{
  margin:0;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-meta{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  min-height:100%;
  padding:12px 14px;
  border:1px solid rgba(19, 32, 46, 0.08);
  border-radius:14px;
  background:#fff;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-meta p{
  margin:0;
  font-size:12px;
  line-height:1.55;
  color:#607286;
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-swatch{
  display:inline-flex;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(19, 32, 46, 0.16);
  background:var(--ptq-variant-swatch, #ffffff);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.ptqce-shell.ptqce-studio-shell .ptqce-product-color-variant-card .ptqce-upload-field{
  margin:0;
}
