:root {
  --ps-orange: #f57224;
  --ps-orange-dark: #d95b0b;
  --ps-orange-soft: #fff4ec;
  --ps-ink: #101828;
  --ps-muted: #667085;
  --ps-line: #e6eaf0;
  --ps-surface: #ffffff;
  --ps-canvas: #f4f6f9;
  --ps-success: #079455;
  --ps-danger: #d92d20;
  --ps-warning: #dc6803;
  --ps-violet: #6941c6;
  --ps-shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --ps-shadow-lg: 0 22px 55px rgba(16, 24, 40, .11);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ps-canvas); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ps-ink);
  background:
    radial-gradient(circle at 91% 4%, rgba(245, 114, 36, .08), transparent 28rem),
    var(--ps-canvas);
  font: 500 14px/1.5 Inter, Poppins, system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.ps-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ps-auth-card {
  width: min(100%, 480px);
  padding: 42px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--ps-shadow-lg);
  backdrop-filter: blur(18px);
}
.ps-auth-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #ff8a3d, var(--ps-orange));
  box-shadow: 0 16px 28px rgba(245, 114, 36, .28);
  font-size: 26px;
}
.ps-auth h1 { margin: 4px 0 10px; font: 750 28px/1.15 Poppins, sans-serif; letter-spacing: -.035em; }
.ps-auth p:not(.ps-kicker) { margin: 0 0 24px; color: var(--ps-muted); }

.ps-app { min-height: 100vh; display: grid; grid-template-columns: 318px minmax(0, 1fr); }
.ps-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  border-right: 1px solid var(--ps-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 8px 0 24px rgba(16, 24, 40, .03);
  backdrop-filter: blur(16px);
}
.ps-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 16px; }
.ps-brand { min-width: 0; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.ps-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #ff8a3d, #ef4c23);
  box-shadow: 0 10px 22px rgba(245, 114, 36, .24);
  font: 800 20px Poppins, sans-serif;
}
.ps-brand > span:last-child { min-width: 0; display: grid; line-height: 1.15; }
.ps-brand strong { font: 750 16px Poppins, sans-serif; letter-spacing: -.02em; }
.ps-brand small { margin-top: 3px; color: var(--ps-muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ps-icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  color: #475467;
  background: #fff;
  cursor: pointer;
  transition: .18s ease;
}
.ps-icon-button:hover { color: var(--ps-orange); border-color: #fdba8c; background: #fff8f3; transform: translateY(-1px); }
.ps-sidebar-close, .ps-menu-button { display: none; }
.ps-back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #475467;
  text-decoration: none;
  font-weight: 650;
}
.ps-back-link:hover { color: var(--ps-orange); background: var(--ps-orange-soft); }
.ps-new-product {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a2b, var(--ps-orange));
  box-shadow: 0 12px 24px rgba(245, 114, 36, .22);
  font-weight: 750;
  cursor: pointer;
}
.ps-new-product:hover { background: linear-gradient(135deg, var(--ps-orange), var(--ps-orange-dark)); transform: translateY(-1px); }
.ps-products-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 10px; }
.ps-products-heading > div { display: grid; gap: 2px; }
.ps-products-heading span { color: var(--ps-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ps-products-heading strong { font-size: 13px; }
.ps-products-heading .ps-icon-button { width: 34px; height: 34px; border: 0; background: #f8fafc; }
.ps-search { position: relative; display: block; margin-bottom: 10px; }
.ps-search i { position: absolute; top: 50%; left: 13px; color: #98a2b3; transform: translateY(-50%); }
.ps-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--ps-line);
  border-radius: 13px;
  outline: none;
  background: #f9fafb;
}
.ps-search input:focus { border-color: #fdba8c; background: #fff; box-shadow: 0 0 0 4px rgba(245, 114, 36, .09); }
.ps-filter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; padding: 4px; border-radius: 12px; background: #f2f4f7; }
.ps-filter-row button { padding: 7px 6px; border: 0; border-radius: 9px; color: #667085; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.ps-filter-row button.active { color: #344054; background: #fff; box-shadow: var(--ps-shadow-sm); }
.ps-product-list { min-height: 0; display: grid; align-content: start; gap: 6px; overflow-y: auto; padding: 2px 3px 22px; scrollbar-width: thin; }
.ps-product-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.ps-product-item:hover { border-color: #f2d5c5; background: #fff9f5; }
.ps-product-item.active { border-color: #f9b58a; background: linear-gradient(135deg, #fff7ed, #fff); box-shadow: 0 8px 18px rgba(245, 114, 36, .08); }
.ps-product-item img { width: 46px; height: 46px; object-fit: contain; border: 1px solid #eef0f4; border-radius: 12px; background: #fff; }
.ps-product-item > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.ps-product-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ps-product-item small { overflow: hidden; color: var(--ps-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ps-product-status { width: 8px; height: 8px; border-radius: 50%; background: var(--ps-success); box-shadow: 0 0 0 4px #ecfdf3; }
.ps-product-status.hidden { display: block !important; background: #98a2b3; box-shadow: 0 0 0 4px #f2f4f7; }
.ps-product-list-empty { padding: 28px 12px; color: var(--ps-muted); text-align: center; font-size: 12px; }
.ps-list-empty { padding: 28px 12px; color: var(--ps-muted); text-align: center; font-size: 12px; }

.ps-main { min-width: 0; }
.ps-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 3vw, 42px);
  border-bottom: 1px solid rgba(230, 234, 240, .9);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}
.ps-topbar-title, .ps-topbar-actions { display: flex; align-items: center; gap: 12px; }
.ps-topbar-title h1 { margin: 0; font: 750 21px/1.15 Poppins, sans-serif; letter-spacing: -.035em; }
.ps-kicker { margin: 0 0 3px; color: var(--ps-orange); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ps-save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--ps-success); font-size: 12px; font-weight: 700; }
.ps-save-state.dirty { color: var(--ps-warning); }
.ps-save-state.saving { color: var(--ps-violet); }
.ps-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: .18s ease;
}
.ps-button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.ps-button-primary { color: #fff; background: linear-gradient(135deg, #ff8a2b, var(--ps-orange)); box-shadow: 0 9px 20px rgba(245, 114, 36, .2); }
.ps-button-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--ps-orange), var(--ps-orange-dark)); transform: translateY(-1px); }
.ps-button-ghost { color: #344054; border-color: var(--ps-line); background: #fff; }
.ps-button-ghost:hover { color: var(--ps-orange); border-color: #fdba8c; }
.ps-button-secondary { color: #344054; border-color: #d0d5dd; background: #fff; }

.ps-status { display: none; margin: 18px clamp(20px, 3vw, 42px) 0; padding: 13px 16px; border: 1px solid; border-radius: 13px; font-weight: 650; }
.ps-status.show { display: flex; align-items: center; gap: 10px; }
.ps-status.info { color: #344054; border-color: #d0d5dd; background: #f9fafb; }
.ps-status.success { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.ps-status.error { color: #b42318; border-color: #fecdca; background: #fef3f2; }
.ps-status.warning { color: #b54708; border-color: #fedf89; background: #fffaeb; }

.ps-workspace {
  max-width: 1560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  align-items: start;
  gap: 22px;
  margin: 0 auto;
  padding: 22px clamp(20px, 3vw, 42px) 70px;
}
.ps-editor-column { min-width: 0; display: grid; gap: 20px; }
.ps-card {
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(230, 234, 240, .95);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--ps-shadow-sm);
}
.ps-card:hover { border-color: #dce1e8; box-shadow: 0 10px 32px rgba(16, 24, 40, .06); }
.ps-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ps-section-heading > div { display: flex; align-items: center; gap: 11px; }
.ps-section-heading h2 { margin: 0; font: 720 18px Poppins, sans-serif; letter-spacing: -.025em; }
.ps-step { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; color: var(--ps-orange); background: var(--ps-orange-soft); font-size: 11px; font-weight: 850; }
.ps-required-note, .ps-optional-pill, .ps-format-pill { padding: 6px 10px; border-radius: 999px; color: var(--ps-muted); background: #f2f4f7; font-size: 10px; font-weight: 750; }
.ps-required-note b, .ps-field > span b { color: var(--ps-danger); }
.ps-format-pill { color: #067647; background: #ecfdf3; }
.ps-format-pill i { margin-right: 4px; }
.ps-section-copy { max-width: 78ch; margin: -6px 0 19px; color: var(--ps-muted); font-size: 12px; }
.ps-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ps-field-span-2 { grid-column: 1 / -1; }
.ps-field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.ps-field > span { color: #344054; font-size: 12px; font-weight: 750; }
.ps-field > span em { color: #98a2b3; font-size: 10px; font-style: normal; font-weight: 650; }
.ps-field input, .ps-field textarea, .ps-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  color: #101828;
  background: #fff;
  transition: .16s ease;
}
.ps-field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.ps-field input:focus, .ps-field textarea:focus, .ps-field select:focus { border-color: #f9a56e; box-shadow: 0 0 0 4px rgba(245, 114, 36, .09); }
.ps-field input[readonly] { color: #667085; background: #f2f4f7; }
.ps-field small { color: #98a2b3; font-size: 10px; }
.ps-money-input { display: grid; grid-template-columns: 44px minmax(0, 1fr); border: 1px solid #d0d5dd; border-radius: 12px; overflow: hidden; }
.ps-money-input:focus-within { border-color: #f9a56e; box-shadow: 0 0 0 4px rgba(245, 114, 36, .09); }
.ps-money-input > span { display: grid; place-items: center; color: #475467; border-right: 1px solid #e4e7ec; background: #f9fafb; font-weight: 750; }
.ps-money-input input { min-width: 0; border: 0; border-radius: 0; box-shadow: none !important; }

.ps-dropzone {
  width: 100%;
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 24px;
  border: 1.5px dashed #f3a675;
  border-radius: 18px;
  color: #344054;
  background: linear-gradient(145deg, #fffaf7, #fff);
  cursor: pointer;
  transition: .18s ease;
}
.ps-dropzone:hover, .ps-dropzone.dragover { border-color: var(--ps-orange); background: #fff5ed; transform: translateY(-1px); }
.ps-drop-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 16px; color: var(--ps-orange); background: #fff0e5; font-size: 19px; }
.ps-dropzone strong { font-size: 14px; }
.ps-dropzone > span:not(.ps-drop-icon) { color: var(--ps-muted); font-size: 11px; }
.ps-dropzone em { color: #98a2b3; font-size: 10px; font-style: normal; }
.ps-upload-progress { margin: 16px 0; padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 14px; background: #f9fafb; }
.ps-upload-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #475467; font-size: 11px; }
.ps-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e4e7ec; }
.ps-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #ff9a55, var(--ps-orange)); transition: width .2s ease; }
.ps-clipboard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ps-clipboard-row > span { color: var(--ps-muted); font-size: 10px; }
.ps-clipboard-row kbd { min-width: 23px; display: inline-flex; justify-content: center; margin: 0 2px; padding: 3px 5px; border: 1px solid #d0d5dd; border-bottom-width: 2px; border-radius: 6px; color: #475467; background: #fff; font: 700 10px/1 inherit; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.ps-gallery-empty { display: grid; place-items: center; gap: 6px; padding: 24px 0 5px; color: #98a2b3; }
.ps-gallery-empty i { font-size: 24px; }
.ps-gallery-empty p { margin: 0; font-size: 11px; }
.ps-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ps-gallery-card { position: relative; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 16px; background: #fff; box-shadow: var(--ps-shadow-sm); cursor: grab; }
.ps-gallery-card.dragging { opacity: .45; }
.ps-gallery-card.is-primary { border-color: #f8a978; box-shadow: 0 0 0 3px rgba(245, 114, 36, .1); }
.ps-gallery-card img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; background: #f8fafc; }
.ps-gallery-primary { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(16, 24, 40, .78); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(8px); }
.ps-gallery-meta { display: grid; gap: 3px; padding: 9px 10px; }
.ps-gallery-meta strong, .ps-gallery-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-gallery-meta strong { font-size: 10px; }
.ps-gallery-meta small { color: var(--ps-success); font-size: 9px; }
.ps-gallery-actions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #f0f2f5; }
.ps-gallery-actions button { height: 32px; border: 0; border-right: 1px solid #f0f2f5; color: #667085; background: #fff; cursor: pointer; }
.ps-gallery-actions button:last-child { border-right: 0; color: var(--ps-danger); }
.ps-gallery-actions button:hover { color: var(--ps-orange); background: #fff8f3; }
.ps-gallery-actions button:disabled { opacity: .35; cursor: not-allowed; }
.ps-url-adder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f2f5; }
.ps-media-note { margin: 12px 0 0; color: var(--ps-muted); font-size: 10px; }
.ps-media-note i { color: var(--ps-orange); margin-right: 4px; }

.ps-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid #d0d5dd; border-bottom: 0; border-radius: 12px 12px 0 0; background: #f9fafb; }
.ps-editor-toolbar button { padding: 7px 9px; border: 0; border-radius: 8px; color: #475467; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.ps-editor-toolbar button:hover { color: var(--ps-orange); background: #fff; box-shadow: var(--ps-shadow-sm); }
.ps-editor-toolbar + textarea { border-radius: 0 0 12px 12px; }
.ps-content-grid { margin-top: 18px; }
.ps-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ps-toggle-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 15px; border: 1px solid #e4e7ec; border-radius: 15px; background: #fcfcfd; cursor: pointer; }
.ps-toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.ps-toggle-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.ps-toggle-card strong { font-size: 11px; }
.ps-toggle-card small { color: var(--ps-muted); font-size: 9px; }
.ps-switch { position: relative; width: 38px; height: 22px; display: block; border-radius: 99px; background: #d0d5dd; transition: .18s ease; }
.ps-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: .18s ease; }
.ps-toggle-card input:checked + .ps-switch { background: var(--ps-orange); }
.ps-toggle-card input:checked + .ps-switch::after { transform: translateX(16px); }
.ps-toggle-card:has(input:checked) { border-color: #f8c3a2; background: #fff9f5; }
.ps-flash-price { max-width: 330px; margin-top: 16px; }
.ps-seo-field { margin-top: 18px; }

.ps-preview-sticky { position: sticky; top: 104px; display: grid; gap: 14px; }
.ps-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 3px; }
.ps-preview-heading h2 { margin: 0; font: 720 18px Poppins, sans-serif; letter-spacing: -.03em; }
.ps-preview-heading > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; color: #067647; background: #ecfdf3; font-size: 9px; font-weight: 800; }
.ps-product-preview { overflow: hidden; border: 1px solid #e4e7ec; border-radius: 23px; background: #fff; box-shadow: 0 18px 42px rgba(16, 24, 40, .1); }
.ps-preview-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 22px; background: radial-gradient(circle at 75% 18%, rgba(245, 114, 36, .09), transparent 45%), #fffaf7; }
.ps-preview-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.ps-preview-count, .ps-preview-hot { position: absolute; top: 13px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; backdrop-filter: blur(9px); }
.ps-preview-count { right: 13px; color: #344054; background: rgba(255, 255, 255, .86); }
.ps-preview-hot { left: 13px; color: #fff; background: linear-gradient(135deg, #ff8a2b, var(--ps-orange)); }
.ps-preview-copy { padding: 20px; }
.ps-preview-category { margin: 0 0 7px; color: var(--ps-orange); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ps-preview-copy h3 { margin: 0 0 10px; font: 750 19px/1.25 Poppins, sans-serif; letter-spacing: -.035em; }
.ps-preview-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.ps-preview-rating span { color: #fdb022; font-size: 11px; letter-spacing: 1px; }
.ps-preview-rating b { font-size: 10px; }
.ps-preview-rating small { color: #98a2b3; font-size: 9px; }
.ps-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.ps-preview-tags span { padding: 5px 7px; border-radius: 8px; color: #067647; background: #ecfdf3; font-size: 9px; font-weight: 700; }
.ps-preview-tags span:last-child { color: #b54708; background: #fffaeb; }
.ps-preview-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
.ps-preview-price strong { color: var(--ps-orange); font: 800 27px Poppins, sans-serif; letter-spacing: -.05em; }
.ps-preview-price del { color: #98a2b3; font-size: 11px; }
.ps-preview-copy > p:not(.ps-preview-category) { margin: 0 0 12px; color: var(--ps-muted); font-size: 11px; }
.ps-preview-copy ul { display: grid; gap: 5px; margin: 0 0 16px; padding: 0; list-style: none; }
.ps-preview-copy li { color: #475467; font-size: 10px; }
.ps-preview-copy li::before { content: '✓'; margin-right: 7px; color: var(--ps-success); font-weight: 900; }
.ps-preview-copy button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #ff8a2b, var(--ps-orange)); font-weight: 800; }
.ps-quality-card { display: flex; gap: 12px; padding: 14px; border: 1px solid #d1fadf; border-radius: 16px; background: #f6fef9; }
.ps-quality-card > span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--ps-success); background: #dcfae6; }
.ps-quality-card div { min-width: 0; }
.ps-quality-card strong { font-size: 10px; }
.ps-quality-card p { margin: 3px 0 0; color: #667085; font-size: 9px; }
.ps-checklist { padding: 16px; border: 1px solid #e4e7ec; border-radius: 16px; background: rgba(255, 255, 255, .86); }
.ps-checklist h3 { margin: 0 0 10px; font-size: 11px; }
.ps-checklist p { display: flex; align-items: center; gap: 8px; margin: 7px 0; color: #667085; font-size: 10px; }
.ps-checklist p i { color: #d0d5dd; font-size: 8px; }
.ps-checklist p.complete { color: #067647; }
.ps-checklist p.complete i { color: var(--ps-success); }

.ps-toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.ps-toast { min-width: 280px; max-width: 410px; display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; box-shadow: var(--ps-shadow-lg); animation: ps-toast-in .24s ease both; }
.ps-toast i { margin-top: 3px; color: var(--ps-success); }
.ps-toast.error i { color: var(--ps-danger); }
.ps-toast div { display: grid; gap: 2px; }
.ps-toast strong { font-size: 11px; }
.ps-toast span { color: var(--ps-muted); font-size: 10px; }
@keyframes ps-toast-in { from { opacity: 0; transform: translateY(12px); } }
.ps-sidebar-backdrop { display: none; }

body.dark-mode {
  --ps-ink: #f5f7fa;
  --ps-muted: #98a2b3;
  --ps-line: rgba(255, 255, 255, .1);
  --ps-surface: #171a21;
  --ps-canvas: #0d0f14;
  background: radial-gradient(circle at 90% 3%, rgba(245, 114, 36, .12), transparent 28rem), #0d0f14;
}
body.dark-mode .ps-sidebar, body.dark-mode .ps-topbar, body.dark-mode .ps-card,
body.dark-mode .ps-product-preview, body.dark-mode .ps-checklist { background: rgba(23, 26, 33, .96); }
body.dark-mode .ps-field input, body.dark-mode .ps-field textarea, body.dark-mode .ps-field select,
body.dark-mode .ps-money-input, body.dark-mode .ps-money-input input, body.dark-mode .ps-search input,
body.dark-mode .ps-gallery-card, body.dark-mode .ps-gallery-actions button { color: #f5f7fa; border-color: rgba(255,255,255,.12); background: #11141a; }
body.dark-mode .ps-money-input > span, body.dark-mode .ps-editor-toolbar { color: #d0d5dd; border-color: rgba(255,255,255,.1); background: #1d2129; }
body.dark-mode .ps-toggle-card { border-color: rgba(255,255,255,.1); background: #11141a; }
body.dark-mode .ps-toggle-card:has(input:checked) { border-color: rgba(245,114,36,.45); background: rgba(245,114,36,.08); }
body.dark-mode .ps-field > span, body.dark-mode .ps-product-item, body.dark-mode .ps-preview-copy h3 { color: #f5f7fa; }

@media (max-width: 1180px) {
  .ps-app { grid-template-columns: 286px minmax(0, 1fr); }
  .ps-workspace { grid-template-columns: minmax(0, 1fr) 340px; }
  .ps-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .ps-app { display: block; }
  .ps-sidebar { position: fixed; left: 0; width: min(88vw, 330px); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 22px 0 55px rgba(16,24,40,.18); }
  .ps-sidebar.open { transform: translateX(0); }
  .ps-sidebar-close, .ps-menu-button { display: inline-grid; }
  .ps-sidebar-backdrop { position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(16,24,40,.44); backdrop-filter: blur(3px); }
  .ps-sidebar-backdrop.show { display: block; }
  .ps-workspace { grid-template-columns: 1fr; }
  .ps-preview-column { order: -1; }
  .ps-preview-sticky { position: static; grid-template-columns: minmax(300px, 390px) minmax(260px, 1fr); align-items: start; }
  .ps-preview-heading { grid-column: 1 / -1; }
  .ps-product-preview { grid-row: span 3; }
}

@media (max-width: 680px) {
  .ps-topbar { min-height: 72px; padding: 11px 14px; }
  .ps-topbar-title h1 { font-size: 17px; }
  .ps-save-state, .ps-button-ghost { display: none; }
  .ps-button { min-height: 40px; padding: 0 12px; }
  .ps-button span { display: none; }
  .ps-workspace { gap: 14px; padding: 14px 12px 50px; }
  .ps-status { margin: 12px 12px 0; }
  .ps-card { padding: 18px 15px; border-radius: 18px; }
  .ps-section-heading { align-items: flex-start; }
  .ps-section-heading h2 { font-size: 15px; }
  .ps-required-note, .ps-optional-pill { display: none; }
  .ps-field-grid, .ps-toggle-grid, .ps-content-grid { grid-template-columns: 1fr; gap: 14px; }
  .ps-field-span-2 { grid-column: auto; }
  .ps-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-clipboard-row { align-items: stretch; flex-direction: column; }
  .ps-url-adder { grid-template-columns: 1fr; }
  .ps-url-adder .ps-button { width: 100%; }
  .ps-url-adder .ps-button span { display: inline; }
  .ps-preview-sticky { display: grid; grid-template-columns: 1fr; }
  .ps-preview-heading { grid-column: auto; }
  .ps-product-preview { grid-row: auto; }
  .ps-dropzone { min-height: 165px; }
  .ps-toast-region { left: 12px; right: 12px; bottom: 12px; }
  .ps-toast { min-width: 0; width: 100%; }
}

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