/* PepperMaker V209 PRO MASK
   Fixed professional 3-column workbench. No draggable windows, no overlap. */

:root {
  --pro-bg: #eaf0f6;
  --pro-surface: #ffffff;
  --pro-surface-2: #f7f9fc;
  --pro-surface-3: #eef4f9;
  --pro-border: #d6e0eb;
  --pro-border-strong: #b8c8d8;
  --pro-text: #0f172a;
  --pro-muted: #637083;
  --pro-soft: #edf4fb;
  --pro-blue: #145f95;
  --pro-blue-2: #0f4f7d;
  --pro-green: #16855a;
  --pro-red: #b4233c;
  --pro-amber: #a15c00;
  --pro-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --pro-radius: 14px;
  --pro-radius-sm: 9px;
  --pro-topbar-h: 56px;
  --pro-gap: 14px;
  --pro-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html.pm-pro-v209,
body.pm-pro-v209 {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden !important;
  background: var(--pro-bg) !important;
  color: var(--pro-text) !important;
  font-family: var(--pro-font) !important;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.pm-pro-v209 * { box-sizing: border-box; }
body.pm-pro-v209 .hidden { display: none !important; }

body.pm-pro-v209 .desktop-shell,
body.pm-pro-v209 #mainApp {
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden !important;
}

body.pm-pro-v209 #mainApp:not(.hidden) {
  display: flex !important;
  flex-direction: column;
}

/* ===== TOP BAR ===== */
body.pm-pro-v209 .desk-topbar {
  position: relative !important;
  flex: 0 0 var(--pro-topbar-h) !important;
  height: var(--pro-topbar-h) !important;
  min-height: var(--pro-topbar-h) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-border) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 8px 20px rgba(15, 23, 42, .05) !important;
  z-index: 50 !important;
}

body.pm-pro-v209 .brand-block {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: max-content !important;
  margin: 0 !important;
}

body.pm-pro-v209 .brand-eyebrow-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.pm-pro-v209 .eyebrow {
  color: #56657a !important;
  font-size: 11px !important;
  letter-spacing: .22em !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

body.pm-pro-v209 .brand-block h1 {
  margin: 0 !important;
  color: #0b1528 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.02em !important;
}

body.pm-pro-v209 .fps-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 20px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(22, 133, 90, .28) !important;
  border-radius: 999px !important;
  background: #f0fbf6 !important;
  color: #087346 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.pm-pro-v209 .top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: calc(100vw - 360px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 0 !important;
  scrollbar-width: thin;
}

body.pm-pro-v209 .top-actions::-webkit-scrollbar { height: 6px; }
body.pm-pro-v209 .top-actions::-webkit-scrollbar-thumb { background: #c8d5e3; border-radius: 999px; }

body.pm-pro-v209 .top-actions button,
body.pm-pro-v209 .top-actions a,
body.pm-pro-v209 .top-actions label {
  flex: 0 0 auto !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 1px solid var(--pro-border) !important;
  background: #ffffff !important;
  color: #16243a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.pm-pro-v209 .top-actions button,
body.pm-pro-v209 .top-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 13px !important;
}

body.pm-pro-v209 .top-actions label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
}

body.pm-pro-v209 .top-actions .ghost.active,
body.pm-pro-v209 .top-actions .compact-top-btn,
body.pm-pro-v209 .top-actions #designBtn {
  background: var(--pro-blue) !important;
  border-color: var(--pro-blue) !important;
  color: #fff !important;
}

body.pm-pro-v209 .top-actions button:hover,
body.pm-pro-v209 .top-actions a:hover,
body.pm-pro-v209 .top-actions label:hover {
  border-color: #94a9bd !important;
  transform: translateY(-1px);
}

body.pm-pro-v209 .top-grid-control input[type="range"] {
  width: 86px !important;
  accent-color: var(--pro-blue) !important;
}

/* ===== APP GRID ===== */
body.pm-pro-v209 #pmWorkspace.pm-workspace {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: calc(100vh - var(--pro-topbar-h)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 48px minmax(315px, 380px) minmax(650px, 1fr) minmax(320px, 400px) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: var(--pro-gap) !important;
  padding: 14px !important;
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 95, 149, .06), transparent 28%),
    linear-gradient(180deg, #eef4f9 0%, #e8eff6 100%) !important;
}

body.pm-pro-v209 .pm-pro-rail,
body.pm-pro-v209 .pm-pro-left,
body.pm-pro-v209 .pm-pro-main,
body.pm-pro-v209 .pm-pro-right {
  min-height: 0 !important;
  max-height: 100% !important;
}

body.pm-pro-v209 .pm-pro-rail {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  overflow: hidden !important;
}

body.pm-pro-v209 .pm-pro-rail-title {
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: #0f172a !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}

body.pm-pro-v209 .pm-pro-rail-btn,
body.pm-pro-v209 .db-dock-flag.pm-pro-rail-btn,
body.pm-pro-v209 .side-dock-flag.pm-pro-rail-btn {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  writing-mode: horizontal-tb !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: var(--pro-shadow) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  cursor: default !important;
  z-index: 1 !important;
}

body.pm-pro-v209 .pm-pro-rail-btn span {
  transform: none !important;
  writing-mode: horizontal-tb !important;
  rotate: 0deg !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.pm-pro-v209 #dbDockFlag { background: #145f95 !important; color: #fff !important; }
body.pm-pro-v209 #statusDockFlag { background: #16855a !important; color: #fff !important; }
body.pm-pro-v209 #debugDockFlag { background: #a15c00 !important; color: #fff !important; }

body.pm-pro-v209 .pm-pro-left,
body.pm-pro-v209 .pm-pro-main,
body.pm-pro-v209 .pm-pro-right {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 30px rgba(15,23,42,.07) !important;
  scrollbar-width: thin;
  scrollbar-color: #b6c5d5 transparent;
}

body.pm-pro-v209 .pm-pro-left::-webkit-scrollbar,
body.pm-pro-v209 .pm-pro-main::-webkit-scrollbar,
body.pm-pro-v209 .pm-pro-right::-webkit-scrollbar { width: 8px; }
body.pm-pro-v209 .pm-pro-left::-webkit-scrollbar-thumb,
body.pm-pro-v209 .pm-pro-main::-webkit-scrollbar-thumb,
body.pm-pro-v209 .pm-pro-right::-webkit-scrollbar-thumb { background: #b6c5d5; border-radius: 999px; }

body.pm-pro-v209 .pm-pro-column-head {
  flex: 0 0 auto !important;
  padding: 4px 4px 10px !important;
  border-bottom: 1px solid var(--pro-border) !important;
}
body.pm-pro-v209 .pm-pro-column-head h2 {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  color: #0b1528 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
}
body.pm-pro-v209 .pm-pro-column-head p {
  margin: 5px 0 0 !important;
  color: var(--pro-muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* ===== DOCKS AS NORMAL COLUMNS ===== */
body.pm-pro-v209 #dbDock,
body.pm-pro-v209 #statusDock,
body.pm-pro-v209 #debugDock,
body.pm-pro-v209 #dbDock.collapsed,
body.pm-pro-v209 #statusDock.collapsed,
body.pm-pro-v209 #debugDock.collapsed {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: auto !important;
}

body.pm-pro-v209 #dbDockBody,
body.pm-pro-v209 #statusDockBody,
body.pm-pro-v209 #debugDockBody,
body.pm-pro-v209 #dbDock.collapsed #dbDockBody,
body.pm-pro-v209 #statusDock.collapsed #statusDockBody,
body.pm-pro-v209 #debugDock.collapsed #debugDockBody {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

body.pm-pro-v209 #dbDockSplitter,
body.pm-pro-v209 .slider-right-resize-handle,
body.pm-pro-v209 .pm-widget-resize-grip { display: none !important; }

/* ===== WIDGET RESET ===== */
body.pm-pro-v209 #pmWorkspace .pm-widget,
body.pm-pro-v209 #pmWorkspace .db-dock-panel,
body.pm-pro-v209 #pmWorkspace .side-dock-panel,
body.pm-pro-v209 #pmWorkspace .field-widget,
body.pm-pro-v209 #pmWorkspace .panel {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  z-index: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04) !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: var(--pro-radius) !important;
  background: var(--pro-surface) !important;
}

body.pm-pro-v209 #pmWorkspace .widget-off { display: none !important; }
body.pm-pro-v209 #designPanel.design-closed { display: none !important; }
body.pm-pro-v209 #categoryPickerPanel.category-picker-closed { display: none !important; }

body.pm-pro-v209 .pm-pro-core-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1.35fr) minmax(220px, .95fr) minmax(140px, .55fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body.pm-pro-v209 .pm-pro-aspect-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  align-items: start !important;
}

@media (max-width: 1380px) {
  body.pm-pro-v209 #pmWorkspace.pm-workspace {
    grid-template-columns: 44px minmax(290px, 330px) minmax(560px, 1fr) minmax(300px, 350px) !important;
    gap: 10px !important;
    padding: 10px !important;
  }
  body.pm-pro-v209 .pm-pro-core-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 1040px) {
  body.pm-pro-v209 #pmWorkspace.pm-workspace {
    overflow-y: auto !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-auto-rows: max-content !important;
  }
  body.pm-pro-v209 .pm-pro-left,
  body.pm-pro-v209 .pm-pro-main,
  body.pm-pro-v209 .pm-pro-right {
    grid-column: 2 !important;
    min-height: 420px !important;
    max-height: none !important;
  }
  body.pm-pro-v209 .pm-pro-right { min-height: 320px !important; }
}

/* ===== CARD / PANEL DESIGN ===== */
body.pm-pro-v209 .drag-handle,
body.pm-pro-v209 .db-dock-panel-head,
body.pm-pro-v209 .debug-handle {
  position: relative !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pro-border) !important;
  border-radius: var(--pro-radius) var(--pro-radius) 0 0 !important;
  background: linear-gradient(180deg, #f9fbfd, #f2f6fa) !important;
  color: #0b1528 !important;
  cursor: default !important;
  user-select: none !important;
  box-shadow: none !important;
}

body.pm-pro-v209 .drag-handle span,
body.pm-pro-v209 .window-toggle-title {
  color: #0b1528 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

body.pm-pro-v209 .drag-handle small,
body.pm-pro-v209 .drag-handle b,
body.pm-pro-v209 .badge,
body.pm-pro-v209 .auction-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 22px !important;
  padding: 0 9px !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #4f5f75 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.pm-pro-v209 .status-draft,
body.pm-pro-v209 .auction-status-badge.status-draft { color: var(--pro-amber) !important; background: #fff8ec !important; border-color: #f4d7ac !important; }
body.pm-pro-v209 .badge.ok { color: var(--pro-green) !important; background: #effaf4 !important; border-color: #c9ead8 !important; }
body.pm-pro-v209 .badge.bad { color: var(--pro-red) !important; background: #fff0f3 !important; border-color: #f2bdc8 !important; }

body.pm-pro-v209 .pm-widget > p,
body.pm-pro-v209 .pm-widget > .muted,
body.pm-pro-v209 .pm-widget > .hint,
body.pm-pro-v209 #selectedLine,
body.pm-pro-v209 #objectMeta,
body.pm-pro-v209 #marketLinks,
body.pm-pro-v209 #checkList,
body.pm-pro-v209 #requiredAspectsInfo,
body.pm-pro-v209 #requiredAspectsList,
body.pm-pro-v209 #aspectMapperList {
  padding: 12px !important;
}

body.pm-pro-v209 .muted,
body.pm-pro-v209 .hint,
body.pm-pro-v209 small {
  color: var(--pro-muted) !important;
}

/* ===== STATUS CARDS ===== */
body.pm-pro-v209 .pm-pro-status-cards {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
body.pm-pro-v209 .pm-pro-status-card {
  min-height: 64px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 12px !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: var(--pro-radius) !important;
  background: var(--pro-surface) !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.04) !important;
}
body.pm-pro-v209 .pm-pro-status-card span { color: var(--pro-muted) !important; font-size: 10px !important; font-weight: 900 !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
body.pm-pro-v209 .pm-pro-status-card b { color: #0b1528 !important; font-size: 16px !important; font-weight: 900 !important; line-height: 1.05 !important; }
body.pm-pro-v209 .pm-pro-status-card.is-bad b { color: var(--pro-red) !important; }
body.pm-pro-v209 .pm-pro-status-card.is-status b { color: var(--pro-amber) !important; }

/* ===== FORMS ===== */
body.pm-pro-v209 input,
body.pm-pro-v209 select,
body.pm-pro-v209 textarea,
body.pm-pro-v209 .category-path,
body.pm-pro-v209 .description-editor,
body.pm-pro-v209 .description-html-source,
body.pm-pro-v209 .raw-preview,
body.pm-pro-v209 .db-info,
body.pm-pro-v209 .status-log,
body.pm-pro-v209 .debug-content {
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #122036 !important;
  font-family: var(--pro-font) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.04) !important;
  outline: none !important;
}

body.pm-pro-v209 input,
body.pm-pro-v209 select,
body.pm-pro-v209 .category-path {
  height: 38px !important;
  padding: 0 12px !important;
}

body.pm-pro-v209 textarea { min-height: 116px !important; padding: 10px 12px !important; resize: vertical !important; }
body.pm-pro-v209 input:focus,
body.pm-pro-v209 select:focus,
body.pm-pro-v209 textarea:focus,
body.pm-pro-v209 .description-editor:focus,
body.pm-pro-v209 .category-path:focus {
  border-color: #6ea3ca !important;
  box-shadow: 0 0 0 3px rgba(20,95,149,.13), inset 0 1px 2px rgba(15,23,42,.04) !important;
}

body.pm-pro-v209 .field-widget > input,
body.pm-pro-v209 .field-widget > select,
body.pm-pro-v209 .category-widget .category-path-row,
body.pm-pro-v209 .category-widget .category-row,
body.pm-pro-v209 .condition-widget > select,
body.pm-pro-v209 .condition-widget > input,
body.pm-pro-v209 .sale-mode-widget > select,
body.pm-pro-v209 .price-input-wrap {
  margin: 10px 12px 0 !important;
  width: calc(100% - 24px) !important;
}

body.pm-pro-v209 .field-widget > input:last-child,
body.pm-pro-v209 .field-widget > select:last-child,
body.pm-pro-v209 .condition-widget > input:last-child,
body.pm-pro-v209 .price-input-wrap:last-child,
body.pm-pro-v209 .sale-mode-widget .sale-mode-grid:last-child { margin-bottom: 12px !important; }

body.pm-pro-v209 .category-widget .category-path-row,
body.pm-pro-v209 .category-widget .category-row {
  display: grid !important;
  gap: 8px !important;
}
body.pm-pro-v209 .category-widget .category-path-row { grid-template-columns: minmax(0, 1fr) 42px !important; }
body.pm-pro-v209 .category-widget .category-row { grid-template-columns: minmax(0, 1fr) 84px !important; margin-bottom: 12px !important; }
body.pm-pro-v209 .category-hidden-path-input { display: none !important; }

body.pm-pro-v209 .condition-widget { min-height: 152px !important; }
body.pm-pro-v209 .price-widget { min-height: 90px !important; }
body.pm-pro-v209 .price-input-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  align-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.pm-pro-v209 .price-input-wrap input { margin: 0 !important; width: 100% !important; }
body.pm-pro-v209 .price-input-wrap span { color: var(--pro-muted) !important; font-weight: 900 !important; text-align: center !important; }

body.pm-pro-v209 .sale-mode-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 10px 12px 12px !important;
}
body.pm-pro-v209 .sale-mode-grid label,
body.pm-pro-v209 .policy-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  color: var(--pro-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
body.pm-pro-v209 .sale-mode-grid input,
body.pm-pro-v209 .policy-label input,
body.pm-pro-v209 .policy-label select { margin: 0 !important; width: 100% !important; }

body.pm-pro-v209 .description-widget { min-height: 430px !important; }
body.pm-pro-v209 .description-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--pro-border) !important;
  background: #fbfdff !important;
}
body.pm-pro-v209 .description-toolbar select,
body.pm-pro-v209 .description-toolbar input,
body.pm-pro-v209 .description-toolbar button {
  width: auto !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  font-size: 12px !important;
}
body.pm-pro-v209 .description-editor {
  min-height: 260px !important;
  margin: 12px !important;
  width: calc(100% - 24px) !important;
  padding: 14px !important;
  overflow: auto !important;
}
body.pm-pro-v209 .description-html-code-wrap {
  margin: 0 12px 12px !important;
  width: calc(100% - 24px) !important;
}
body.pm-pro-v209 .description-html-highlight { display: none !important; }
body.pm-pro-v209 .description-html-source { min-height: 150px !important; padding: 12px !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }

/* ===== BUTTONS ===== */
body.pm-pro-v209 button,
body.pm-pro-v209 .ghost-link,
body.pm-pro-v209 .mini-btn,
body.pm-pro-v209 .ghost,
body.pm-pro-v209 .primary,
body.pm-pro-v209 .danger-outline {
  font-family: var(--pro-font) !important;
  border-radius: 10px !important;
  border: 1px solid var(--pro-border) !important;
  background: #fff !important;
  color: #16243a !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
body.pm-pro-v209 button:hover,
body.pm-pro-v209 .ghost-link:hover { border-color: #91a8be !important; background: #f7fbff !important; }
body.pm-pro-v209 .primary,
body.pm-pro-v209 .primary.soft,
body.pm-pro-v209 #saveDraftBtn,
body.pm-pro-v209 #savePolicyBtn,
body.pm-pro-v209 #savePhraseBtn {
  background: var(--pro-blue) !important;
  border-color: var(--pro-blue) !important;
  color: #fff !important;
}
body.pm-pro-v209 .primary:hover { background: var(--pro-blue-2) !important; border-color: var(--pro-blue-2) !important; }
body.pm-pro-v209 .danger-outline,
body.pm-pro-v209 #sendEbayBtn {
  background: #fff !important;
  border-color: #f1b7c2 !important;
  color: var(--pro-red) !important;
}
body.pm-pro-v209 .icon-btn { padding: 0 !important; min-width: 42px !important; }

/* ===== LEFT DATABASE ===== */
body.pm-pro-v209 .object-panel,
body.pm-pro-v209 .draft-panel { flex: 0 0 auto !important; }
body.pm-pro-v209 #searchInput {
  margin: 12px !important;
  width: calc(100% - 24px) !important;
}
body.pm-pro-v209 .object-list,
body.pm-pro-v209 .draft-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  padding: 0 12px 12px !important;
  overflow: visible !important;
  max-height: none !important;
}
body.pm-pro-v209 .object-item,
body.pm-pro-v209 .draft-card,
body.pm-pro-v209 .draft-item {
  width: 100% !important;
  max-width: 100% !important;
}
body.pm-pro-v209 .object-item,
body.pm-pro-v209 .draft-main {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px !important;
  min-height: 82px !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #122036 !important;
  text-align: left !important;
  box-shadow: none !important;
}
body.pm-pro-v209 .object-item:hover,
body.pm-pro-v209 .draft-main:hover { border-color: #96adc3 !important; background: #f8fbff !important; }
body.pm-pro-v209 .object-item.active,
body.pm-pro-v209 .draft-card.active .draft-main,
body.pm-pro-v209 .draft-card.active { border-color: var(--pro-blue) !important; background: #eef6ff !important; }
body.pm-pro-v209 .draft-card {
  position: relative !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.pm-pro-v209 .draft-delete-x {
  position: absolute !important;
  right: 7px !important;
  top: 7px !important;
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: var(--pro-red) !important;
}
body.pm-pro-v209 .db-thumb {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid var(--pro-border) !important;
  background: #eef3f7 !important;
}
body.pm-pro-v209 .db-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
body.pm-pro-v209 .db-item-text { min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 4px !important; }
body.pm-pro-v209 .db-item-text strong,
body.pm-pro-v209 .draft-ready-title {
  color: #0b1528 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body.pm-pro-v209 .db-item-text small,
body.pm-pro-v209 .draft-ready-row { color: var(--pro-muted) !important; font-size: 12px !important; line-height: 1.2 !important; }
body.pm-pro-v209 .draft-sort-bar {
  margin: 12px !important;
  padding: 10px !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 12px !important;
  background: #fbfdff !important;
}
body.pm-pro-v209 .draft-sort-row { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; align-items: center !important; margin: 0 0 7px !important; }
body.pm-pro-v209 .draft-sort-row:last-child { margin-bottom: 0 !important; }
body.pm-pro-v209 .draft-sort-label { color: var(--pro-muted) !important; font-size: 11px !important; font-weight: 900 !important; }
body.pm-pro-v209 .draft-sort-btn {
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
}
body.pm-pro-v209 .draft-sort-btn.active { background: var(--pro-blue) !important; border-color: var(--pro-blue) !important; color: #fff !important; }
body.pm-pro-v209 .draft-ready-counts { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; padding: 0 12px 10px !important; }
body.pm-pro-v209 .draft-count-chip { display: inline-flex !important; min-height: 22px !important; padding: 0 8px !important; align-items: center !important; border: 1px solid var(--pro-border) !important; border-radius: 999px !important; background: #fff !important; font-size: 11px !important; font-weight: 850 !important; color: #27364d !important; }

/* ===== PHOTOS / LISTS / CHECKS ===== */
body.pm-pro-v209 .photo-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
  gap: 10px !important;
  min-height: 136px !important;
  padding: 12px !important;
}
body.pm-pro-v209 .photo-strip.muted { display: flex !important; align-items: center !important; }
body.pm-pro-v209 .check-list,
body.pm-pro-v209 .market-links,
body.pm-pro-v209 .required-aspects-list,
body.pm-pro-v209 .aspect-mapper-list,
body.pm-pro-v209 .status-log,
body.pm-pro-v209 .debug-content,
body.pm-pro-v209 .raw-preview,
body.pm-pro-v209 .db-info {
  max-height: none !important;
  overflow: visible !important;
}
body.pm-pro-v209 .check-list { display: flex !important; flex-direction: column !important; gap: 7px !important; }
body.pm-pro-v209 .status-log,
body.pm-pro-v209 .debug-content,
body.pm-pro-v209 .raw-preview,
body.pm-pro-v209 .db-info {
  margin: 12px !important;
  width: calc(100% - 24px) !important;
  padding: 10px 12px !important;
  background: #fbfdff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 12px !important;
  white-space: pre-wrap !important;
}
body.pm-pro-v209 .status-log { max-height: 220px !important; overflow-y: auto !important; }
body.pm-pro-v209 .debug-content { max-height: 260px !important; overflow-y: auto !important; }
body.pm-pro-v209 .raw-preview { max-height: 280px !important; overflow-y: auto !important; }
body.pm-pro-v209 .debug-line,
body.pm-pro-v209 .status-entry {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 5px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}
body.pm-pro-v209 .status-entry:last-child,
body.pm-pro-v209 .debug-line:last-child { border-bottom: 0 !important; }

/* ===== ASPECTS ===== */
body.pm-pro-v209 .required-aspects-list,
body.pm-pro-v209 .aspect-mapper-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 120px !important;
}
body.pm-pro-v209 .required-aspect-row,
body.pm-pro-v209 .optional-aspect-row {
  border: 1px solid var(--pro-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 10px !important;
}

/* ===== RIGHT COLUMN ===== */
body.pm-pro-v209 .pm-pro-right .pm-widget { flex: 0 0 auto !important; }
body.pm-pro-v209 .action-panel button,
body.pm-pro-v209 .shipping-actions button,
body.pm-pro-v209 .phrase-actions button {
  width: 100% !important;
}
body.pm-pro-v209 .action-panel {
  display: grid !important;
}
body.pm-pro-v209 .action-panel > button,
body.pm-pro-v209 .action-panel > pre { margin: 12px 12px 0 !important; width: calc(100% - 24px) !important; }
body.pm-pro-v209 .action-panel > pre { margin-bottom: 12px !important; }
body.pm-pro-v209 .policy-label { padding: 10px 12px 0 !important; }
body.pm-pro-v209 .shipping-actions,
body.pm-pro-v209 .phrase-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1.4fr !important;
  gap: 8px !important;
  padding: 10px 12px 12px !important;
}
body.pm-pro-v209 #phraseSelect,
body.pm-pro-v209 #phraseText { margin: 10px 12px 0 !important; width: calc(100% - 24px) !important; }
body.pm-pro-v209 #phraseInfo,
body.pm-pro-v209 #policyInfo { padding: 0 12px 12px !important; }

/* ===== LOGIN ===== */
body.pm-pro-v209 .login-card {
  max-width: 420px !important;
  margin: 15vh auto 0 !important;
  padding: 26px !important;
  border: 1px solid var(--pro-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--pro-shadow) !important;
}

/* ===== CLEANUP OF OLD DECORATION ===== */
body.pm-pro-v209 .pm-force-front,
body.pm-pro-v209 .force-front-toggle,
body.pm-pro-v209 .panel.force-front { z-index: auto !important; }
body.pm-pro-v209 .layout-edit-mode .pm-widget,
body.pm-pro-v209 .pm-widget.element-edit-active { outline: none !important; }
body.pm-pro-v209 [data-pm-element-positioned] { position: static !important; inset: auto !important; transform: none !important; }
body.pm-pro-v209 .desc-color-combo { display: inline-flex !important; align-items: center !important; gap: 4px !important; }
body.pm-pro-v209 .desc-color-tool input[type="color"] { width: 24px !important; padding: 0 !important; }
body.pm-pro-v209 .desc-color-swatch { width: 28px !important; min-width: 28px !important; padding: 0 !important; background: #111 !important; }

/* ===== V209 HARD SCROLL / VIEWPORT SAFETY ===== */
html.pm-pro-v209,
body.pm-pro-v209 {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
}
body.pm-pro-v209 {
  position: fixed !important;
  inset: 0 !important;
}
body.pm-pro-v209 .topbar {
  min-width: 0 !important;
  width: 100vw !important;
}
body.pm-pro-v209 #pmWorkspace.pm-workspace {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--pro-topbar-h)) !important;
}
body.pm-pro-v209 .pm-pro-left,
body.pm-pro-v209 .pm-pro-main,
body.pm-pro-v209 .pm-pro-right {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overscroll-behavior: contain !important;
}
body.pm-pro-v209 .pm-pro-left,
body.pm-pro-v209 .pm-pro-main,
body.pm-pro-v209 .pm-pro-right,
body.pm-pro-v209 .top-actions {
  scrollbar-width: thin !important;
}
body.pm-pro-v209 .pm-pro-left::-webkit-scrollbar,
body.pm-pro-v209 .pm-pro-main::-webkit-scrollbar,
body.pm-pro-v209 .pm-pro-right::-webkit-scrollbar,
body.pm-pro-v209 .top-actions::-webkit-scrollbar {
  width: 9px !important;
  height: 9px !important;
}
body.pm-pro-v209 .pm-pro-left::-webkit-scrollbar-thumb,
body.pm-pro-v209 .pm-pro-main::-webkit-scrollbar-thumb,
body.pm-pro-v209 .pm-pro-right::-webkit-scrollbar-thumb,
body.pm-pro-v209 .top-actions::-webkit-scrollbar-thumb {
  background: #c3ceda !important;
  border-radius: 999px !important;
}
body.pm-pro-v209 .pm-pro-left::-webkit-scrollbar-track,
body.pm-pro-v209 .pm-pro-main::-webkit-scrollbar-track,
body.pm-pro-v209 .pm-pro-right::-webkit-scrollbar-track,
body.pm-pro-v209 .top-actions::-webkit-scrollbar-track {
  background: transparent !important;
}
