/* Print Go appearance. Product imagery, swatches and printable artwork keep their own colors. */
.pg-appearance {
  display:flex; justify-content:flex-end; align-items:center; gap:4px;
  padding:6px max(16px, env(safe-area-inset-right, 0px)) 6px 16px;
  background:#151519; color:#fff; font:700 14px/1 Arial,sans-serif;
}
.pg-appearance button {
  min-height:44px; min-width:54px; padding:0 10px; border:1px solid #777780;
  border-radius:7px; background:#252529; color:#fff; font:inherit; cursor:pointer;
}
.pg-appearance button[aria-pressed="true"] { color:#171719; background:#ffce33; border-color:#ffce33 }
.pg-appearance button:focus-visible { outline:2px solid currentColor; outline-offset:2px }
html[data-pg-theme="light"] .pg-appearance { background:#fff; color:#171719; box-shadow:inset 0 -1px #dedee2 }
html[data-pg-theme="light"] .pg-appearance button:not([aria-pressed="true"]) { background:#fff; color:#171719 }
.ds-header .pg-appearance { display:inline-flex; padding:0; background:transparent; box-shadow:none }
.ds-header .pg-studio-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end }

html[data-pg-theme="dark"] {
  color-scheme:dark;
  --pg-theme-bg:#101014; --pg-theme-panel:#1b1b20; --pg-theme-raised:#25252b;
  --pg-theme-text:#f7f7f8; --pg-theme-muted:#c4c4cc; --pg-theme-border:#606069;
  --pg-theme-link:#ffdb63;
}
html[data-pg-theme="light"] {
  color-scheme:light;
  --pg-theme-bg:#fff; --pg-theme-panel:#f6f6f8; --pg-theme-raised:#eeeef2;
  --pg-theme-text:#171719; --pg-theme-muted:#515158; --pg-theme-border:#73737e;
  --pg-theme-link:#654d00;
}
html[data-pg-theme] body { background:var(--pg-theme-bg); color:var(--pg-theme-text) }
html[data-pg-theme] :is(.admin-shell,.pg-page,.account,.h-shop-login,.invoice-page) {
  background:var(--pg-theme-bg); color:var(--pg-theme-text);
}
html[data-pg-theme] :is(.pg-panel,.account .account-card,.h-shop-login .h-shop-panel,.admin-shell .finance-stats>div,.admin-shell .admin-stats>div,.admin-report p,.admin-settings a,.finance-callout,.admin-table-wrap th,.h-shop-login .h-input) {
  background:var(--pg-theme-panel); color:var(--pg-theme-text); border-color:var(--pg-theme-border);
}
html[data-pg-theme] :is(.account,.h-shop-login,.admin-shell,.pg-page) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:var(--pg-theme-bg); color:var(--pg-theme-text); border-color:var(--pg-theme-border);
}
html[data-pg-theme] :is(.account p,.account-form label,.account-help,.account-optional,.h-shop-panel>p,.h-more button,.admin-top p,.admin-shop-details dt,.finance-stats small,.invoice-page small) { color:var(--pg-theme-muted) }
html[data-pg-theme] :is(.account-link,.account-tag,.account-login-options a,.h-shop-panel a,.pg-inline a) { color:var(--pg-theme-link) }
html[data-pg-theme] :is(.h-shop-hero,.shop-auth-hero) p { color:white }
html[data-pg-theme="light"] :is(.admin-sidebar,.pg-legacy .sidebar) { background:#f6f6f8; color:#171719; border-color:#d5d5db }
html[data-pg-theme="light"] :is(.admin-sidebar,.pg-legacy .sidebar) :is(.admin-logo,.admin-back,.logo,.tagline,.location,.sidefoot,nav a,nav button) { color:#171719 }
html[data-pg-theme="light"] :is(.admin-sidebar,.pg-legacy .sidebar) :is(nav a[aria-current],nav a.active,nav button.active) { background:#ffefb0; color:#171719 }

html[data-pg-theme="dark"] .pg-legacy :is(.shell:not(.splash-mode),.workspace,.content,.header,.bottomnav,.ds-dialog,.ds-header,.ds-footer) {
  background:var(--pg-theme-bg); color:var(--pg-theme-text); border-color:var(--pg-theme-border);
}
html[data-pg-theme="dark"] .pg-legacy :is(.card,.category,.search,.variant-card,.variant-preview,.upload,.summary,.job,.empty,.secondary,.tabs button,.shop-segment,.shop-segment button,.shop-job,.shop-list,.tracking-card,.message-bubble,.color-choice,.order-timeline,.tracked-product,.notification-panel,.notification-item,.push-enable,.push-test,.header-notifications,.checkout-policy,.service-details,.service-close,.promo-card,.promo-product-card,.promo-variant,.promo-selection-footer,.promo-flyer-upload,.q-how-dialog,.shop-demo-card,.demo-order-head,.demo-section,.demo-stage-tabs button,.workflow-panel,.workflow-tabs button,.ai-designer,.ds-panel,.ds-launch,.ds-mobile-actions button,.ds-launch button,.ds-close,.ds-action:not(.primary),.ds-vector-toggle,.ds-vector-panel,.ds-vector-categories button,.ds-vector-items button) {
  background:var(--pg-theme-panel); color:var(--pg-theme-text); border-color:var(--pg-theme-border);
}
html[data-pg-theme="dark"] .pg-legacy :is(.shell,.ds-dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea) {
  background:var(--pg-theme-bg); color:var(--pg-theme-text); border-color:var(--pg-theme-border);
}
html[data-pg-theme="dark"] .pg-legacy :is(.muted,.intro p,.home-brand .tagline,.home-brand .location,.shop-back,.workflow-note,.ds-subtle,.ds-stage-note,.ds-header small,.bottomnav button,.promo-shop,.checkout-policy p,.empty p,.h-shop-panel>p) { color:var(--pg-theme-muted) }
html[data-pg-theme="dark"] .pg-legacy :is(.account-entry,.workflow-panel a,.promo-price) { color:var(--pg-theme-link) }
html[data-pg-theme="dark"] .pg-legacy :is(.home-brand .account-entry,.message-bubble.mine,.notification-item.unread,.variant-total) { background:var(--pg-theme-raised); color:var(--pg-theme-text); border-color:var(--pg-theme-border) }
html[data-pg-theme="dark"] .pg-legacy :is(.garment-picker .color-choice.picked,.tabs button.active,.shop-segment button.active,.demo-stage-tabs button.active,.workflow-tabs .active,.bottomnav button.active) { background:#ffce33; color:#171719 }
html[data-pg-theme="dark"] .pg-legacy :is(.splash-mode .content) { background:transparent }
html[data-pg-theme="dark"] .pg-legacy .garment-picker .variant-preview:has(.variant-garment-photo) { background:var(--pg-theme-panel) }

@media print {
  .pg-appearance { display:none !important }
  html[data-pg-theme] body,html[data-pg-theme] .invoice-page { background:white;color:black }
  html[data-pg-theme] .invoice-page small { color:#333 }
}

html[data-pg-theme="dark"] .pg-legacy .home-brand .logo{color:#fff}
.pg-settings-link{display:inline-flex;align-items:center;text-decoration:none}
html[data-pg-theme="dark"] .pg-legacy .pg-settings-link{background:#25252b;color:#fff;border-color:#606069}
.pg-panel .pg-appearance{justify-content:flex-start;background:transparent;box-shadow:none;padding:0}
