/* Shared customer UI palette. The estimator keeps its existing host styling. */
:root[data-editor-shell="canvas"], :root:has(body[data-account-page]) {
  --ink:#0e1116; --panel:#15191f; --surface-0:#0e1116; --surface-1:#15191f;
  --surface-2:#1b2028; --surface-3:#252b34; --line:#2a3039; --edge:#414852;
  --text:#eceef0; --headline:#f8f6f2; --sub:#a5abb4; --text-soft:#c5c9cf; --sub-strong:#c5c9cf;
  --accent:#80b1ff; --accent2:#80b1ff; --accent-2:#80b1ff; --accent-ink:#0c2449;
  --primary:#3469dc; --primary-hover:#4278ea;
  --accent-wash:#192e4d; --chip:#252b34; --chip2:#353c46; --ghost:#9098a4;
  --app-bg:var(--surface-0); --hdr-bg:var(--surface-1); --appbar:var(--surface-1);
  --btn-bg-start:var(--surface-3); --btn-bg-end:var(--surface-3); --btn-border:var(--edge); --btn-text:var(--text);
  --btn-ghost-text:var(--text-soft); --btn-ghost-border:var(--line); --btn-ghost-hover-bg:var(--surface-3); --btn-ghost-hover-border:var(--edge);
  --button-start:var(--surface-3); --button-end:var(--surface-3); --button-text:var(--text);
  --button-ghost-text:var(--text-soft); --button-ghost-border:var(--line); --button-ghost:transparent;
  --style-callout-bg-start:var(--surface-2); --style-callout-bg-end:var(--surface-2); --style-callout-border:var(--line);
  --style-callout-glow-opacity:0; --style-callout-shadow:none; --style-callout-inner-highlight:none;
  --style-callout-select-bg:var(--surface-3); --style-callout-select-border:var(--edge); --style-callout-select-shadow:none;
  --numeric-setting-bg:var(--surface-3); --numeric-setting-border:var(--edge); --numeric-setting-shadow:none;
  --numeric-setting-label-bg:transparent; --numeric-setting-hover-bg:var(--surface-3); --numeric-setting-hover-border:var(--sub);
  --toggle-bg:var(--surface-2); --toggle-border:var(--edge); --toggle-text:var(--text-soft); --toggle-label:var(--text-soft);
  --toggle-hover-bg:var(--surface-3); --toggle-hover-border:var(--sub); --toggle-track-bg:var(--edge); --toggle-track-ring:var(--edge); --toggle-thumb:var(--sub);
  --toggle-active-bg:var(--accent-wash); --toggle-active-border:var(--accent); --toggle-active-shadow:none;
  --toggle-active-track-bg:var(--accent); --toggle-active-track-ring:var(--accent); --toggle-active-thumb:var(--accent-ink);
  --segment-label:var(--sub); --segment-group-bg:var(--surface-0); --segment-group-border:var(--line);
  --segment-option-text:var(--sub); --segment-option-active-bg:var(--surface-3); --segment-option-active-border:var(--edge);
  --segment-option-active-text:var(--text); --segment-option-active-shadow:none; --segment-hint:var(--sub);
  --viewer-scene-bg:#101319; --viewer-grid-major:#3b3f47; --viewer-grid-minor:#252a33; --viewer-grid-opacity:.3;
  --focus-ring:2px solid var(--accent); --shadow:0 18px 48px #0004;
}
:root[data-theme="light"][data-editor-shell="canvas"], :root[data-theme="light"]:has(body[data-account-page]) {
  --ink:#f3f2ef; --panel:#fff; --surface-0:#f3f2ef; --surface-1:#fff; --surface-2:#f8f7f5; --surface-3:#eeece8;
  --line:#dedbd6; --edge:#bcb8b2; --text:#303239; --headline:#202226; --sub:#696970; --text-soft:#52535a; --sub-strong:#52535a;
  --accent:#245bc2; --accent2:#245bc2; --accent-2:#245bc2; --accent-ink:#fff; --accent-wash:#e6efff;
  --chip:#eeece8; --chip2:#e3dfd9; --ghost:#73737b;
  --viewer-scene-bg:#f3f2ef; --viewer-grid-major:#bcb8b2; --viewer-grid-minor:#d8d4ce; --viewer-grid-opacity:.45;
}
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) { background:var(--surface-0); color:var(--text); }
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) :is(button,.btn,.chip,input,select,textarea) { font-family:inherit; }
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) :is(.btn,button.primary,.chip) { box-shadow:none; }
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) :is(.btn.primary,button.primary,.btn--primary) {
  background:linear-gradient(180deg,var(--primary-hover),var(--primary)); border-color:var(--primary-hover); color:#fff; box-shadow:none; text-shadow:none;
}
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) :is(.btn.primary,button.primary,.btn--primary):hover:not(:disabled) { filter:brightness(1.08); transform:none; }
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) :is(input:not([type="range"]):not([type="checkbox"]):not([type="color"]):not([type="radio"]),select,textarea) {
  background:var(--surface-3); color:var(--text); border-color:var(--edge); box-shadow:none; border-radius:8px;
}
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) input[type="number"] { font-variant-numeric:tabular-nums; }
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) input:is([type="range"],[type="checkbox"],[type="radio"]) { accent-color:var(--accent); }
html[data-theme] body:is([data-editor-shell="canvas"],[data-account-page]) :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
html[data-theme] body[data-editor-shell="canvas"] :is(.btn-toggle.is-active,.toggle-control.is-active,.btn[aria-pressed="true"]) { background:var(--accent-wash); color:var(--accent); border-color:var(--accent); box-shadow:none; }
html[data-theme] body[data-editor-shell="canvas"] :is(.printed-controls__panel,.printed-price__breakdown,.pop,.acctMenu,.cart-panel__drawer,.quick-start__dialog,.ai-picker__dialog,.designs-overlay__dialog) { background:var(--surface-1); color:var(--text); border-color:var(--line); box-shadow:var(--shadow); }
html[data-theme] body[data-editor-shell="canvas"] :is(.cart-item,.cart-summary,.cart-coupon,.cart-shipping,.printed-purchase-option,.quick-start__mini-card,.quick-start__mini-step-badge) { background:var(--surface-2); border-color:var(--line); color:var(--text); box-shadow:none; }
html[data-theme] body[data-editor-shell="canvas"] :is(.printed-price__amount,.printed-price__value,.cart-button__count,.quick-start__eyebrow,.cart-summary__total) { color:var(--text); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price--expandable .printed-price__chip:not(:disabled):hover,
html[data-theme] body[data-editor-shell="canvas"] .printed-price--expandable .printed-price__chip:not(:disabled):focus-visible,
html[data-theme] body[data-editor-shell="canvas"] .printed-price.is-expanded .printed-price__chip { border-color:var(--accent); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__arrow { border-top-color:#dce9ff; }
html[data-theme] body[data-editor-shell="canvas"] :is(.printed-controls--price-open .printed-price__chip,.printed-controls--chooser-open .printed-controls__entry) { border-color:var(--accent)!important; }
html[data-theme] body[data-editor-shell="canvas"] .printed-controls__entry::after { border-top-color:#dce9ff; }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__breakdown-title { color:var(--sub); }
html[data-theme] body[data-editor-shell="canvas"] :is(.printed-price__availability,.printed-price__label) { color:var(--accent); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__row { border-bottom-color:var(--line); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__value-label { color:var(--sub); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__metric { color:var(--text-soft); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__metric--sub,
html[data-theme] body[data-editor-shell="canvas"] .printed-price__piece--muted { color:var(--sub); }
html[data-theme] body[data-editor-shell="canvas"] .printed-price__amount { color:var(--text); }
html[data-theme] body[data-editor-shell="canvas"] :is(.quick-start__mini-step-badge,.cart-button__count) { background:var(--surface-3); border-color:var(--edge); }
html[data-theme] body[data-editor-shell="canvas"] {
  --pb-bg:var(--surface-0); --pb-bg-panel:var(--surface-1); --pb-bg-soft:var(--surface-2); --pb-border:var(--line);
  --pb-text:var(--text); --pb-text-muted:var(--sub); --pb-accent:var(--accent);
  --pb-accent-strong:var(--accent); --pb-border-strong:var(--edge); --pb-shell-glow:transparent;
  --pb-shell-bg-start:var(--surface-0); --pb-shell-bg-end:var(--surface-0);
  --pb-header-bg-start:var(--surface-1); --pb-header-bg-end:var(--surface-1);
  --pb-stage-glow:transparent; --pb-stage-bg-start:var(--surface-2); --pb-stage-bg-end:var(--surface-2);
  --pb-tool-bg:var(--surface-2); --pb-tool-active-start:var(--accent-wash); --pb-tool-active-end:var(--accent-wash); --pb-tool-active-text:var(--accent);
  --pb-layer-bg:var(--surface-1); --pb-mini-bg:var(--surface-3);
}
html[data-theme] body[data-editor-shell="canvas"] :is(.quick-start__mini-panel,.ai-picker__panel,.designs-panel) { background:var(--surface-1); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
html[data-theme] body[data-editor-shell="canvas"] .quick-start__mini-panel::before { display:none; }
html[data-theme] body[data-editor-shell="canvas"] :is(.quick-start__mini-title,.quick-start__mini-card-title,.ai-picker__head h3,.designs-head h3) { color:var(--headline); }
html[data-theme] body[data-editor-shell="canvas"] :is(.quick-start__mini-features,.quick-start__mini-hero-caption,.ai-picker__subtitle) { color:var(--sub); }
html[data-theme] body[data-editor-shell="canvas"] :is(.ai-picker__title-chip,.ai-picker__close,.quick-start__close,.quick-start__mini-hero-caption) { background:var(--surface-2); border-color:var(--edge); box-shadow:none; }
html[data-theme] body[data-editor-shell="canvas"] .designs-head { padding:22px; }
html[data-theme] body[data-editor-shell="canvas"] .designs-head h3 { text-transform:none; font-size:20px; letter-spacing:-.4px; }
html[data-theme] body[data-editor-shell="canvas"] .designs-grid { padding:20px; gap:16px; }
html[data-theme] body[data-editor-shell="canvas"] .design-card { border-color:var(--line); border-radius:12px; padding:8px; }
html[data-theme] body[data-editor-shell="canvas"] .design-card:hover { border-color:var(--accent); }
html[data-theme] body[data-editor-shell="canvas"] :is(.purchase-chooser__option,.cart-panel__shipping,.cart-panel__coupon,.cart-qty,.cart-panel__close,.size-control) { background:var(--surface-2); border-color:var(--line); color:var(--text); box-shadow:none; }
html[data-theme] body[data-editor-shell="canvas"] :is(.purchase-chooser__option-title,.purchase-chooser__option-meta,.cart-item__title,.cart-item__price-total,.cart-panel__row,.cart-panel__summary span,.cart-panel__summary strong) { color:var(--text); }
html[data-theme] body[data-editor-shell="canvas"] :is(.purchase-chooser__option-body,.cart-item__meta,.cart-panel__eyebrow,.cart-panel__hint,.cart-panel__shipping-head,.cart-panel__free-note) { color:var(--sub); }
html[data-theme] body[data-editor-shell="canvas"] .cart-panel__header h2 { font-size:23px; font-weight:600; letter-spacing:-.5px; }
html[data-theme] body[data-editor-shell="canvas"] .cart-panel__checkout--stripe { background:linear-gradient(180deg,var(--primary-hover),var(--primary)); border-color:var(--primary-hover); color:#fff; box-shadow:none; border-radius:10px; min-height:44px; }
html[data-theme] body[data-editor-shell="canvas"] .cart-panel__checkout--stripe[disabled] { background:var(--surface-3); border-color:var(--line); color:var(--sub); }
html[data-theme] body[data-editor-shell="canvas"] .pb-btn-primary { background:linear-gradient(180deg,var(--primary-hover),var(--primary)); border-color:var(--primary-hover); color:#fff; }
html[data-theme] body[data-account-page] :is(.appbar,.sidebar,.panel,.card,.stat-card,.hero,.account-hero) { background:var(--surface-1); border-color:var(--line); box-shadow:none; }
html[data-theme] body[data-account-page] :is(.accent,.stat-value,.stat__value) { color:var(--text); }
html[data-theme] body[data-account-page] :is(.side,.module-card,.profile-card,.metric-card,.card2,.activity-card,.order-card) { background:var(--surface-1); border-color:var(--line); box-shadow:none; }
html[data-theme] body[data-account-page] :is(.profile-avatar,.snav a.active) { background:var(--accent-wash); color:var(--accent); border-color:var(--line); box-shadow:none; }
html[data-theme] body[data-account-page] .snav a:hover { background:var(--surface-3); }
html[data-theme] body[data-account-page] .account-table th { background:var(--surface-2); }
html[data-theme] body[data-account-page] .newsletter-toggle input:checked + .newsletter-toggle__track { background:var(--accent); border-color:var(--accent); box-shadow:none; }
html[data-theme] body[data-account-page] .logo img { width:156px; height:48px; object-fit:contain; display:block; }
@media(prefers-reduced-motion:reduce) { html[data-theme] body[data-editor-shell="canvas"] *,html[data-theme] body[data-editor-shell="canvas"] *::before { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
