/* Theme choices are scoped to member pages and the isolated admin preview. */
body.panda-experience[data-site-background]:not([data-site-background="default"]),
.theme-preview { --theme-pattern-size:32px; background-color:var(--home-bg); }
body.panda-experience[data-site-background]:not([data-site-background="default"]) .public-shell { background:transparent; }
body.panda-experience[data-site-background="solid"], .theme-preview[data-site-background="solid"] { background-image:none; }
body.panda-experience[data-site-background="glow"], .theme-preview[data-site-background="glow"] { background-image:radial-gradient(ellipse at 15% 0%,color-mix(in srgb,var(--home-accent) 18%,transparent),transparent 55%),radial-gradient(ellipse at 100% 60%,#ffffff08,transparent 45%);background-attachment:fixed; }
body.panda-experience[data-site-background="grid"], .theme-preview[data-site-background="grid"] { background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:var(--theme-pattern-size) var(--theme-pattern-size); }
body.panda-experience[data-site-background="geometric"], .theme-preview[data-site-background="geometric"] { background-image:linear-gradient(30deg,#ffffff05 12%,transparent 12.5%,transparent 87%,#ffffff05 87.5%),linear-gradient(150deg,#ffffff05 12%,transparent 12.5%,transparent 87%,#ffffff05 87.5%);background-size:80px 140px; }
body.panda-experience[data-site-palette]:not([data-site-palette="legacy"]) .public-shell :is(.primary-button,.header-cashier.primary-button,.mobile-cashier-actions>a:first-child) { background:var(--home-action);border-color:var(--home-action);color:#fff; }
body.panda-experience[data-site-palette]:not([data-site-palette="legacy"]) .public-shell :is(.view-all,.mobile-category-strip a>span,.header-member-menu nav a:hover) { color:var(--home-link); }
body.panda-experience[data-site-palette]:not([data-site-palette="legacy"]) .experience-bottom-nav a[aria-current=page] { color:var(--home-link);background:color-mix(in srgb,var(--home-accent) 15%,var(--home-panel)); }
body.panda-experience[data-site-palette]:not([data-site-palette="legacy"]) .public-shell :is(.pill-list a.active,.side-link-list a.active,.mobile-wallet-summary) { background:color-mix(in srgb,var(--home-accent) 12%,var(--home-panel));border-color:color-mix(in srgb,var(--home-accent) 50%,var(--home-line));color:var(--home-text); }
body.panda-experience[data-site-palette]:not([data-site-palette="legacy"]) .public-shell .provider-brand-card.active { border-color:var(--home-accent); }
body.panda-experience[data-site-palette]:not([data-site-palette="legacy"]) .public-shell .reference-footer a { color:var(--home-link); }
.theme-settings .panel-heading p { max-width:70ch; }
.theme-preview { margin-top:24px;padding:24px;border:1px solid var(--home-line);border-radius:var(--home-radius-lg);color:var(--home-text);min-width:0; }
.theme-preview>div:first-child { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px; }
.theme-preview>div:first-child>span { color:var(--home-muted);font-size:14px; }
.theme-preview-card { padding:24px;border:1px solid var(--home-line);border-radius:var(--home-radius-md);background:var(--home-panel); }
.theme-preview-card strong { font-size:20px;line-height:1.4; }
.theme-preview-card p { font-size:16px;line-height:1.6;color:var(--home-muted); }
.theme-preview-action,.theme-preview-link { display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;margin:8px 12px 0 0;border-radius:var(--home-radius-sm);font-size:14px;line-height:1.5; }
.theme-preview-action { background:var(--home-action);color:#fff; }
.theme-preview-link { color:var(--home-link); }
@media(max-width:600px) { .theme-preview,.theme-preview-card { padding:16px; } .theme-preview-card strong { font-size:18px; } }
