/* Decorative PCB traces. All links, type, product controls and reading surfaces stay above them. */
body[data-cc-circuit] { position: relative; isolation: isolate; }
body[data-cc-circuit="blue"] { --cc-circuit-rgb: 66, 229, 255; --cc-circuit-ink: 61, 151, 211; }
body[data-cc-circuit="green"] { --cc-circuit-rgb: 92, 255, 176; --cc-circuit-ink: 72, 189, 124; }
body[data-cc-circuit="blue"].cc-personal-mobile { background-color: #07131f !important; }
.cc-circuit-board {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
  opacity: .98;
}
.cc-circuit-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 8% var(--cc-circuit-spot, 28%), rgba(var(--cc-circuit-rgb), .20), transparent 42%),
    radial-gradient(ellipse at 94% 72%, rgba(var(--cc-circuit-rgb), .13), transparent 38%);
}
.cc-circuit-board svg { display: block; width: 100%; height: 100%; overflow: hidden; transform: translate3d(0, var(--cc-circuit-shift, 0px), 0) scale(1.06); }
.cc-circuit-traces { fill: none; stroke: rgba(var(--cc-circuit-ink), .52); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.cc-circuit-solder { fill: rgba(var(--cc-circuit-rgb), .20); stroke: rgba(var(--cc-circuit-rgb), .62); stroke-width: 1; }
.cc-circuit-chip { fill: rgba(var(--cc-circuit-ink), .045); stroke: rgba(var(--cc-circuit-rgb), .45); stroke-width: 1.2; }
.cc-circuit-chip-inner { fill: none; stroke: rgba(var(--cc-circuit-rgb), .34); stroke-width: 1; }
.cc-circuit-pulse {
  fill: none;
  stroke: rgb(var(--cc-circuit-rgb));
  stroke-width: 3.3;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  opacity: var(--cc-circuit-energy, .94);
  filter: drop-shadow(0 0 3px rgba(var(--cc-circuit-rgb), 1)) drop-shadow(0 0 11px rgba(var(--cc-circuit-rgb), .85));
}
.cc-circuit-beacon {
  fill: #f5ffff;
  stroke: rgb(var(--cc-circuit-rgb));
  stroke-width: 2;
  opacity: var(--cc-circuit-energy, .94);
  filter: drop-shadow(0 0 5px rgb(var(--cc-circuit-rgb)));
}
.cc-circuit-board[data-tone="light"] .cc-circuit-traces { stroke: rgba(var(--cc-circuit-ink), .22); }
.cc-circuit-board[data-tone="light"] .cc-circuit-solder { stroke: rgba(var(--cc-circuit-ink), .34); }
.cc-circuit-board[data-tone="light"] .cc-circuit-pulse { stroke: #007bc4; }
.cc-circuit-board[data-tone="light"]::before {
  background: radial-gradient(ellipse at 5% var(--cc-circuit-spot, 28%), #2bb4ff12, transparent 42%),
    radial-gradient(ellipse at 96% 72%, #009dff0e, transparent 36%);
}
/* Restore real inner spacing after the legacy mobile .wrap rule removes it. */
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] :is(.cc-shop-welcome, .shop-story) {
  box-sizing: border-box !important;
  padding: clamp(22px, 3vw, 36px) !important;
  border: 1px solid #477a59 !important;
  border-radius: 20px !important;
  background: linear-gradient(140deg, #0b3329ed, #061e1bea) !important;
  color: #d5eddd !important;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .shop-story :is(h2, h3) { color: #effff5 !important; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .shop-story :is(p, a) { color: #cce9d9 !important; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .shop-story .eyebrow { color: #a4f0c4 !important; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .cc-shop-welcome > p { max-width: 66ch; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .cc-shop-welcome-actions { min-width: 0; max-width: 100%; gap: 10px; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .cc-shop-welcome-actions a { box-sizing: border-box; max-width: 100%; min-width: 0; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .product-copy details[open] { padding-bottom: 10px; }
body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .product-copy details[open] p { margin-bottom: 12px; }
@media (max-width: 820px) {
  .cc-circuit-board { opacity: 1; }
  .cc-circuit-pulse { stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(var(--cc-circuit-rgb), .95)); }
  .cc-circuit-beacon { filter: drop-shadow(0 0 3px rgb(var(--cc-circuit-rgb))); }
  body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] :is(.cc-shop-welcome, .shop-story) { padding: 22px !important; border-radius: 18px !important; }
  body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] .shop-story { gap: 12px !important; }
}
@media (max-width: 359px) {
  body.cc-unified.cc-header-shell.cc-shop-wallpaper[data-cc-circuit="green"] :is(.cc-shop-welcome, .shop-story) { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-circuit-board svg { transform: none !important; }
  .cc-circuit-pulse, .cc-circuit-beacon { display: none; }
}
@media (forced-colors: active) { .cc-circuit-board { display: none; } }

/* Warm signals run along the board paths without lighting the whole viewport. */
body[data-cc-circuit-motion="gold"] .cc-circuit-board::before { content: none; }
body[data-cc-circuit-motion="gold"] .cc-circuit-traces {
  stroke: rgba(225, 175, 79, .52);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
body[data-cc-circuit-motion="gold"] .cc-circuit-solder {
  fill: #c8902133;
  stroke: #f0bb5788;
}
body[data-cc-circuit-motion="gold"] .cc-circuit-pulse {
  stroke: #ffd36a;
  stroke-width: 2.3;
  opacity: .98;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #fac054b3);
}
body[data-cc-circuit-motion="gold"] .cc-circuit-beacon {
  fill: #fff9e8;
  stroke: #ffba46;
  stroke-width: 1.25;
  opacity: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #ffb338);
}



/* Chip lighting follows the same frozen scroll phase as the board traces. */
.cc-circuit-board :is(.cc-circuit-chip,.cc-circuit-chip-inner){
 opacity:var(--cc-circuit-chip-level,.82);transition:none!important;animation:none!important;
}
@media(prefers-reduced-motion:reduce){.cc-circuit-board :is(.cc-circuit-chip,.cc-circuit-chip-inner){opacity:.82!important}}
