/* Only this new body attribute changes the actual page substrate. Existing
   studio theme, cards, navigation, typography and layout stay in force. */
[data-page-background="original"] {
  --page-background-fill:radial-gradient(ellipse at 0% 14%,rgba(22,113,133,.18),transparent 42%),radial-gradient(ellipse at 100% 18%,rgba(116,30,88,.16),transparent 44%),linear-gradient(90deg,#071116,#080b0f 28%,#090a0e 52%,#0d0910 76%,#150b13);
}
[data-page-background="eggnog"] {
  --page-background-fill:url("/assets/images/page-background/nutmeg.svg"),radial-gradient(ellipse at 22% 14%,#ebd9ad 0%,transparent 64%),linear-gradient(110deg,#ceb182 0%,#dfc99e 47%,#c5a477 100%);
  --page-background-ink:#493323;
  --page-background-accent:#64401d;
}
[data-page-background="champagne"] {
  --page-background-fill:url("/assets/images/page-background/nutmeg.svg"),radial-gradient(ellipse at 38% 4%,#f0e5cf80,transparent 66%),linear-gradient(125deg,#c3ad88,#e0d1b8 52%,#c1a887);
  --page-background-ink:#443c2c;
  --page-background-accent:#674820;
}
[data-page-background="bronze"] {
  --page-background-fill:url("/assets/images/page-background/velvet-grain.svg"),repeating-linear-gradient(90deg,#fff1 0 1px,transparent 1px 8px),linear-gradient(108deg,#4b3324,#805b3a 48%,#3b261e);
  --page-background-ink:#fff0d8;
  --page-background-accent:#ffe9a7;
}
[data-page-background="emerald"] {
  --page-background-fill:url("/assets/images/page-background/velvet-grain.svg"),radial-gradient(ellipse at 15% 15%,#2f6556,transparent 62%),linear-gradient(112deg,#173d33,#214b41 50%,#122d2c);
}
[data-page-background="burgundy"] {
  --page-background-fill:url("/assets/images/page-background/velvet-grain.svg"),radial-gradient(ellipse at 20% 10%,#76425a,transparent 56%),linear-gradient(112deg,#422c3b,#593141 52%,#301c30);
}
[data-page-background="glacier"] {
  --page-background-fill:url("/assets/images/page-background/nutmeg.svg"),radial-gradient(ellipse at 20% 12%,#c0cdd7,transparent 65%),linear-gradient(110deg,#8199a7,#a7bbc6 52%,#7692a2);
  --page-background-ink:#223746;
  --page-background-accent:#26384c;
}
[data-page-background="sapphire"] {
  --page-background-fill:url("/assets/images/page-background/velvet-grain.svg"),radial-gradient(ellipse at 18% 12%,#395780,transparent 62%),linear-gradient(112deg,#1d3151,#273f65 48%,#182944);
}
[data-page-background="onyx"] {
  --page-background-fill:url("/assets/images/page-background/velvet-grain.svg"),radial-gradient(ellipse at 22% 12%,#46484b,transparent 64%),linear-gradient(115deg,#2b2d31,#36373b 50%,#202126);
}
body[data-home-theme][data-page-background] {
  background:var(--page-background-fill)!important;
}
/* Only the text floating directly on the unboxed substrate needs contrast on
   light finishes. Do not recolor any content container or its contents. */
body:is([data-page-background="eggnog"],[data-page-background="champagne"],[data-page-background="glacier"],[data-page-background="bronze"]) .home-hosts-bridge span {
  color:var(--page-background-accent)!important;
}
body:is([data-page-background="eggnog"],[data-page-background="champagne"],[data-page-background="glacier"],[data-page-background="bronze"]) .home-hosts-bridge b {
  color:var(--page-background-ink)!important;
}
body:is([data-page-background="eggnog"],[data-page-background="champagne"],[data-page-background="glacier"]) .home-hosts-bridge span {
  text-shadow:none!important;
}
.page-background-admin {grid-column:1/-1;min-width:0}
.page-background-admin-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.page-background-admin-head p {margin:4px 0 0}
.page-background-admin-head .card-label {margin:0}
.page-background-options {display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:9px;margin-top:14px}
.page-background-choice {appearance:none;min-width:0;display:grid;gap:7px;background:#10151d;color:#e9dfc8;border:1px solid #424855;border-radius:9px;padding:7px;cursor:pointer;text-align:left}
.page-background-choice:hover,.page-background-choice:focus-visible {border-color:#f4d38b;outline:2px solid #f4d38b;outline-offset:2px}
.page-background-choice[aria-pressed="true"] {border-color:#f4d38b;box-shadow:inset 0 0 0 1px #f4d38b,0 0 10px #dbad5540}
.page-background-swatch {
  display:grid;grid-template-rows:1fr 1fr;gap:6px;padding:6px;
  width:100%;height:58px;background:var(--page-background-fill);
  border:1px solid #ffffff15;border-radius:6px;overflow:hidden;
}
.page-background-swatch i,.page-background-preview i {
  display:block;border:1px solid #c3a66b70;border-radius:5px;
  background:linear-gradient(115deg,#1b303b,#15161d 53%,#2b1a2a);
  box-shadow:0 2px 5px #0003;
}
.page-background-choice strong {font-size:11px;line-height:1.2}
.page-background-preview {
  min-height:88px;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 18px;
  background:var(--page-background-fill);border:1px solid #77736c;border-radius:9px;margin-top:12px;
}
.page-background-preview i {display:flex;align-items:center;justify-content:center;color:#f2cf80;font-size:11px;font-style:normal;letter-spacing:.1em;font-weight:900}
.page-background-preview i:last-child {grid-column:1/-1;min-height:28px}
.page-background-admin-bottom {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}
.page-background-admin-bottom p {margin:0}
.page-background-active {font-size:11px;color:#bfff72;font-weight:900}
.page-background-description {font-size:12px;color:#dbd5c7}
.page-background-status {color:#71dee9;font-size:12px;min-height:16px}
.page-background-choice:disabled,.page-background-apply:disabled {opacity:.55;cursor:default}
.page-background-apply {width:auto!important;min-width:180px}
@media(max-width:1250px) {.page-background-options{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:680px) {.page-background-options{grid-template-columns:repeat(3,minmax(0,1fr))}.page-background-preview{padding:9px;gap:6px}}
