/* Wallpaper is independent of the glass preference and never contains business content. */
html[data-steve-background="ready"] { background: var(--sb-fallback, #f5f7f6) !important; }
html[data-steve-background="ready"] body { isolation: isolate; background: transparent !important; }
html[data-steve-background="ready"] body::before { display: none !important; }
/* The large viewport stays stable while Safari expands/collapses its toolbar.
   inset:0 would resize cover images and gradients on each toolbar movement. */
#steve-wallpaper { position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none; user-select: none; background: var(--sb-fallback, #f5f7f6); }
/* Keep document gestures native, including Safari pull-to-refresh. Wallpaper
   stability comes from its viewport-sized layer, not from cancelling touches. */
.sb-surface, .sb-paint, .sb-tint { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sb-paint img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* Two prepainted color fields move on the compositor. The scroll container,
   fixed wallpaper geometry, gradients and filters never animate. */
.sb-motion { position: absolute; inset: 0; overflow: hidden; }
.sb-motion-shape { position: absolute; display: block; pointer-events: none; animation: none; }
.sb-surface[data-dynamic="flow"] { --sb-flow-cool: #66bbbfc4; --sb-flow-blue: #7b99d6b0; --sb-flow-warm: #f1bba3b8; --sb-flow-violet: #ac98d7ae; }
.sb-surface[data-dynamic="flow"][data-theme="dark"] { --sb-flow-cool: #177a84b0; --sb-flow-blue: #38558fa8; --sb-flow-warm: #785568a3; --sb-flow-violet: #62519f9e; }
.sb-surface[data-dynamic="flow"] .sb-motion-shape { inset: -18% -22%; transform-origin: 50% 50%; }
.sb-surface[data-dynamic="flow"] .sb-motion-shape:first-child { background: radial-gradient(ellipse at 20% 35%,var(--sb-flow-cool) 0%,transparent 53%),radial-gradient(ellipse at 77% 67%,var(--sb-flow-blue) 0%,transparent 54%); transform: translate3d(-3%,-2%,0) rotate(-4deg) scale(1.03); }
.sb-surface[data-dynamic="flow"] .sb-motion-shape:last-child { background: radial-gradient(ellipse at 80% 15%,var(--sb-flow-violet) 0%,transparent 48%),radial-gradient(ellipse at 45% 80%,var(--sb-flow-warm) 0%,transparent 51%); transform: translate3d(4%,3%,0) rotate(5deg) scale(1.04); opacity: .88; }
.sb-surface[data-dynamic="aurora"] { --sb-aurora-haze: #83bfc24d; --sb-aurora-mist: #a6b7e842; --sb-aurora-glow: #69bfa06b; --sb-aurora-edge: #72bdb08a; --sb-aurora-tail: #8ac2b726; --sb-aurora-blue: #84a8d87a; --sb-aurora-lilac: #a799d34d; }
.sb-surface[data-dynamic="aurora"][data-theme="dark"] { --sb-aurora-haze: #12545d59; --sb-aurora-mist: #324d743b; --sb-aurora-glow: #38b98770; --sb-aurora-edge: #68d6ad94; --sb-aurora-tail: #208c862b; --sb-aurora-blue: #568fcc75; --sb-aurora-lilac: #7165b761; }
.sb-surface[data-dynamic="aurora"] .sb-motion { background: radial-gradient(ellipse at 16% 13%,var(--sb-aurora-haze),transparent 64%),radial-gradient(ellipse at 88% 89%,var(--sb-aurora-mist),transparent 62%); }
/* The unequal stops create a soft curtain above a narrower luminous edge.
   Elliptical arcs preserve the ribbon silhouette in portrait and landscape. */
.sb-surface[data-dynamic="aurora"] .sb-motion-shape:first-child { inset: -15% -35% -30%; background: radial-gradient(ellipse 85% 64% at 40% 9%,transparent 36%,var(--sb-aurora-tail) 45%,var(--sb-aurora-glow) 51%,var(--sb-aurora-edge) 54%,var(--sb-aurora-tail) 57%,transparent 65%); transform: translate3d(-4%,-3%,0) rotate(-17deg) scale(1.03); }
.sb-surface[data-dynamic="aurora"] .sb-motion-shape:last-child { inset: -25% -35% -22%; background: radial-gradient(ellipse 80% 64% at 70% 100%,transparent 33%,var(--sb-aurora-lilac) 44%,var(--sb-aurora-blue) 50%,var(--sb-aurora-tail) 54%,transparent 64%); transform: translate3d(3%,4%,0) rotate(-23deg) scale(1.06); opacity: .8; }
/* HALFTONE STATIC START: shared with the generated first-paint bootstrap.
   Seven soft hues blend only at the viewport edges. A fixed parent mask guarantees a color-free center at 18–66% height for every animation phase; the fixed grain is absent at 17–70%. */
html[data-theme="light"][data-steve-background-effect="halftone"] body { --muted: #111c2f; --subtle: #111c2f; }
html[data-theme="dark"][data-steve-background-effect="halftone"] body { --muted: #edf2ff; --subtle: #edf2ff; }
html[data-steve-background-effect="halftone"] :is(.salary-heading,.salary-state,.salary-copy,.salary-countdown) { color: var(--muted); }
.sb-surface[data-dynamic="halftone"] { --sb-dot-blue: #376dd16b; --sb-dot-violet: #6747c26b; --sb-dot-magenta: #ae368969; --sb-haze-blue: #6f9cf2bc; --sb-haze-violet: #918fe6b8; --sb-haze-magenta: #dc7dcaa3; --sb-red: #e99bafc0; --sb-orange: #efb486bc; --sb-yellow: #e9d28db8; --sb-green: #97cbb1c0; --sb-blue: #80aaf3d1; --sb-indigo: #9197e8bf; --sb-purple: #bf90ddbd; --sb-crest-blue: #5d94ef70; --sb-crest-violet: #c36bbb6b; }
.sb-surface[data-dynamic="halftone"][data-theme="dark"] { --sb-dot-blue: #5986e98c; --sb-dot-violet: #8368dd8c; --sb-dot-magenta: #c347a582; --sb-haze-blue: #204ca8c2; --sb-haze-violet: #393b96b8; --sb-haze-magenta: #8a2c83ae; --sb-red: #8b3858c2; --sb-orange: #96613ac0; --sb-yellow: #898044b8; --sb-green: #28765ec2; --sb-blue: #2257b8d1; --sb-indigo: #4a45a6bf; --sb-purple: #823c98bd; --sb-crest-blue: #3469c278; --sb-crest-violet: #a3429978; }
.sb-surface[data-dynamic="halftone"] .sb-motion { --sb-edge-mask: linear-gradient(#000 0%,#0008 6%,transparent 18%,transparent 66%,#0003 76%,#000a 90%,#000 100%); -webkit-mask-image: var(--sb-edge-mask); mask-image: var(--sb-edge-mask); background: radial-gradient(ellipse 100% 70% at 50% 108%,var(--sb-haze-violet),transparent 100%); }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape { inset: 4% -12% -16%; transform-origin: 50% 70%; }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(1) { background: radial-gradient(ellipse 46% 46% at 6% 62%,var(--sb-red),transparent 100%),radial-gradient(ellipse 46% 46% at 47% 88%,var(--sb-orange),transparent 100%),radial-gradient(ellipse 42% 36% at 80% 64%,var(--sb-yellow),transparent 100%); transform: translate3d(0,0,0) rotate(-3deg); }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(2) { background: radial-gradient(ellipse 48% 44% at 86% 62%,var(--sb-green),transparent 100%),radial-gradient(ellipse 52% 48% at 48% 88%,var(--sb-blue),transparent 100%),radial-gradient(ellipse 46% 48% at 8% 71%,var(--sb-purple),transparent 100%); transform: translate3d(0,0,0) rotate(3deg); }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(3) { background: linear-gradient(115deg,var(--sb-purple) 5%,var(--sb-red) 30%,var(--sb-orange) 55%,transparent 85%); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22s%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2227%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22f%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%22.08%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M-30%20570%20C130%20330%20285%20740%20510%20500%20S790%20300%201030%20510%20V1030%20H-30Z%22%20fill%3D%22url%28%23f%29%22%20filter%3D%22url%28%23s%29%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22s%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2227%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22f%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%22.08%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M-30%20570%20C130%20330%20285%20740%20510%20500%20S790%20300%201030%20510%20V1030%20H-30Z%22%20fill%3D%22url%28%23f%29%22%20filter%3D%22url%28%23s%29%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; transform: translate3d(-2%,1%,0) rotate(-6deg) scaleY(1.04); }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(4) { background: linear-gradient(65deg,transparent 10%,var(--sb-indigo) 34%,var(--sb-blue) 58%,var(--sb-green) 83%,var(--sb-yellow)); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22s%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2232%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22f%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%22.08%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M-30%20530%20C150%20760%20350%20290%20580%20520%20S875%20760%201030%20370%20V1030%20H-30Z%22%20fill%3D%22url%28%23f%29%22%20filter%3D%22url%28%23s%29%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22s%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2232%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22f%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%22.08%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M-30%20530%20C150%20760%20350%20290%20580%20520%20S875%20760%201030%20370%20V1030%20H-30Z%22%20fill%3D%22url%28%23f%29%22%20filter%3D%22url%28%23s%29%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; transform: translate3d(1%,-2%,0) rotate(5deg) scaleY(.98); }
/* The upper wash fades out before the middle. Its strength and travel stay
   much smaller than the original lower fields; no opacity or filter animation. */
.sb-surface[data-dynamic="halftone"] { --sb-top-blue: #7da4f55c; --sb-top-violet: #d17fc64a; }
.sb-surface[data-dynamic="halftone"][data-theme="dark"] { --sb-top-blue: #476ed8b3; --sb-top-violet: #a044a18c; }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(n+5) { opacity: .72; inset: -5% -8% 64%; transform-origin: 50% 0; -webkit-mask-image: linear-gradient(#000 0%,#0009 32%,transparent 92%); mask-image: linear-gradient(#000 0%,#0009 32%,transparent 92%); }
.sb-surface[data-dynamic="halftone"][data-theme="dark"] .sb-motion-shape:nth-child(n+5) { inset: -4% -8% 58%; }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(5) { background: radial-gradient(ellipse 45% 110% at 12% 0%,var(--sb-red),transparent 100%),radial-gradient(ellipse 42% 105% at 56% -16%,var(--sb-orange),transparent 100%),radial-gradient(ellipse 36% 110% at 89% -15%,var(--sb-yellow),transparent 100%); transform: translate3d(0,0,0) rotate(-1deg); }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(6) { background: radial-gradient(ellipse 42% 110% at 98% 0%,var(--sb-green),transparent 100%),radial-gradient(ellipse 50% 115% at 51% -10%,var(--sb-blue),transparent 100%),radial-gradient(ellipse 40% 100% at 9% -10%,var(--sb-purple),transparent 100%); transform: translate3d(0,0,0) rotate(1deg); }
/* Two fixed interleaved diamond scales. Spatial color fields vary density;
   neither pattern, mask, size nor position has an animation clock. */
.sb-halftone-grid { position: absolute; inset: 0; pointer-events: none; mask-image: linear-gradient(#0006 0%,#0004 5%,transparent 17%,transparent 70%,#0002 78%,#000a 92%,#000c 100%); -webkit-mask-image: linear-gradient(#0006 0%,#0004 5%,transparent 17%,transparent 70%,#0002 78%,#000a 92%,#000c 100%); }
.sb-halftone-grid::before, .sb-halftone-grid::after { content: ''; position: absolute; inset: 0; }
.sb-halftone-grid::before { background: radial-gradient(ellipse 62% 52% at 0% 64%,var(--sb-dot-magenta),transparent 100%),radial-gradient(ellipse 55% 22% at 0% 0%,var(--sb-dot-magenta),transparent 100%),linear-gradient(115deg,var(--sb-dot-violet) 20%,var(--sb-dot-blue) 85%); --sb-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M2 .7 3.3 2 2 3.3 .7 2Z' fill='white'/%3E%3C/svg%3E"); -webkit-mask: var(--sb-diamond) 0 0 / 4px 4px repeat; mask: var(--sb-diamond) 0 0 / 4px 4px repeat; }
.sb-halftone-grid::after { opacity: .48; background: radial-gradient(ellipse 75% 48% at 12% 0%,var(--sb-dot-magenta),transparent 100%),radial-gradient(ellipse 70% 50% at 90% 100%,var(--sb-dot-blue),transparent 100%),radial-gradient(ellipse 55% 36% at 8% 68%,var(--sb-dot-magenta),transparent 100%); --sb-large-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 2.3 5.7 4 4 5.7 2.3 4Z' fill='white'/%3E%3C/svg%3E"); -webkit-mask: var(--sb-large-diamond) 0 0 / 8px 8px repeat; mask: var(--sb-large-diamond) 0 0 / 8px 8px repeat; }
/* HALFTONE STATIC END */
/* Animation names are only assigned to the page and an open editor preview;
   settings thumbnails and choice swatches have no hidden animation clocks. */
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-motion-shape { animation-duration: 24s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-play-state: paused; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="flow"] .sb-motion-shape:first-child { animation-name: sb-flow-one; animation-delay: -6s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="flow"] .sb-motion-shape:last-child { animation-name: sb-flow-two; animation-duration: 29s; animation-delay: -12s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="aurora"] .sb-motion-shape:first-child { animation-name: sb-aurora-one; animation-duration: 22s; animation-delay: -4s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="aurora"] .sb-motion-shape:last-child { animation-name: sb-aurora-two; animation-duration: 28s; animation-delay: -11s; }
:is(#steve-wallpaper[data-motion="running"],#steve-background-dialog[open][data-motion="running"] .sb-preview) .sb-motion-shape { animation-play-state: running; will-change: transform,opacity; }
/* Unequal periods and asymmetric waypoints create overlapping soft wave fronts.
   Only compositor transforms animate. No animated texture, opacity, blur or stops. */
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(1) { animation-name: sb-halftone-one; animation-duration: 19s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(2) { animation-name: sb-halftone-two; animation-duration: 23s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(3) { animation-name: sb-halftone-three; animation-duration: 29s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(4) { animation-name: sb-halftone-four; animation-duration: 31s; }
:is(#steve-wallpaper[data-motion="running"],#steve-background-dialog[open][data-motion="running"] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape { will-change: transform; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(5) { animation-name: sb-halftone-top-one; animation-duration: 37s; }
:is(#steve-wallpaper,#steve-background-dialog[open] .sb-preview) .sb-surface[data-dynamic="halftone"] .sb-motion-shape:nth-child(6) { animation-name: sb-halftone-top-two; animation-duration: 43s; }
@keyframes sb-halftone-top-one { 0%,100% { transform: translate3d(-5%,0,0) rotate(-2deg); } 38% { transform: translate3d(12%,2%,0) rotate(2deg) scale(1.04,1.06); } 73% { transform: translate3d(-10%,1%,0) rotate(-3deg) scale(1.03,1.02); } }
@keyframes sb-halftone-top-two { 0%,100% { transform: translate3d(5%,0,0) rotate(2deg); } 29% { transform: translate3d(-14%,1%,0) rotate(-2deg) scale(1.06,1.02); } 67% { transform: translate3d(10%,3%,0) rotate(3deg) scale(1.03,1.04); } }
@keyframes sb-halftone-one { 0%,100% { transform: translate3d(0,0,0) rotate(-3deg); } 27% { transform: translate3d(13.5%,-10.5%,0) rotate(1deg) scale(1.05,.97); } 57% { transform: translate3d(-8.100000000000001%,-4.5%,0) rotate(-2deg) scale(.98,1.07); } 81% { transform: translate3d(-13.5%,3.0%,0) rotate(-5deg) scale(1.02,1); } }
@keyframes sb-halftone-two { 0%,100% { transform: translate3d(0,0,0) rotate(3deg); } 22% { transform: translate3d(-10.8%,3.0%,0) rotate(5deg) scale(1.04,1.06); } 61% { transform: translate3d(8.100000000000001%,-12.0%,0) rotate(-1deg) scale(1,.95); } 84% { transform: translate3d(13.5%,-3.0%,0) rotate(2deg) scale(.98,1.03); } }
@keyframes sb-halftone-three { 0%,100% { transform: translate3d(-5.4%,1.5%,0) rotate(-6deg) scaleY(1.04); } 31% { transform: translate3d(16.200000000000003%,-12.0%,0) rotate(1deg) scale(1.07,.93); } 68% { transform: translate3d(-10.8%,-4.5%,0) rotate(-3deg) scale(.98,1.09); } }
@keyframes sb-halftone-four { 0%,100% { transform: translate3d(2.7%,-3.0%,0) rotate(5deg) scaleY(.98); } 24% { transform: translate3d(-13.5%,3.0%,0) rotate(1deg) scale(1.04,1.08); } 59% { transform: translate3d(10.8%,-13.5%,0) rotate(-4deg) scale(1.08,.94); } 83% { transform: translate3d(-5.4%,-6.0%,0) rotate(3deg) scale(1,1.03); } }
@keyframes sb-flow-one { 0%,100% { transform: translate3d(-3%,-2%,0) rotate(-4deg) scale(1.03); opacity: .93; } 50% { transform: translate3d(7%,5%,0) rotate(7deg) scale(1.1); opacity: 1; } }
@keyframes sb-flow-two { 0%,100% { transform: translate3d(4%,3%,0) rotate(5deg) scale(1.04); opacity: .88; } 50% { transform: translate3d(-7%,-6%,0) rotate(-8deg) scale(1.12); opacity: .72; } }
@keyframes sb-aurora-one { 0%,100% { transform: translate3d(-4%,-3%,0) rotate(-17deg) scale(1.03); opacity: .85; } 50% { transform: translate3d(5%,6%,0) rotate(-8deg) scale(1.11); opacity: 1; } }
@keyframes sb-aurora-two { 0%,100% { transform: translate3d(3%,4%,0) rotate(-23deg) scale(1.06); opacity: .8; } 50% { transform: translate3d(-6%,-5%,0) rotate(-33deg) scale(1.12); opacity: .62; } }
@media(prefers-reduced-motion:reduce) { .sb-motion-shape { animation: none !important; will-change: auto !important; } }
:is(html,body).reduced .sb-motion-shape { animation: none !important; will-change: auto !important; }
@media(forced-colors:active) { .sb-motion { display: none; } .sb-motion-shape { animation: none !important; will-change: auto !important; } }
.sb-entry { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 12px; border: 1px solid var(--border,#e3e7e5); border-radius: 20px; background: var(--surface,#fff); text-align: left; }
.sb-entry-label { flex: 1; font-size: 13px; font-weight: 600; }
.sb-entry small { display: block; font-weight: 400; font-size: 10px; line-height: 1.6; color: var(--muted,#67736e); }
.sb-entry-thumbs { display: flex; gap: 5px; }
.sb-entry-thumbs > span { position: relative; width: 31px; height: 38px; overflow: hidden; border-radius: 9px; box-shadow: inset 0 0 0 1px #8883; }
#steve-background-dialog { box-sizing: border-box; width: min(460px,calc(100vw - 24px)); max-height: min(90dvh,850px); padding: 20px; border: 1px solid var(--border,#dfe5e1); border-radius: 28px; background: var(--surface,#fbfcfb); color: var(--text,#202924); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; font: 13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
#steve-background-dialog *, #steve-background-dialog *::before, #steve-background-dialog *::after { box-sizing: border-box; }
#steve-background-dialog::backdrop { background: #0a141d55; backdrop-filter: blur(6px); }
#steve-background-dialog fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
#steve-background-dialog button { font: inherit; color: inherit; border: 1px solid transparent; border-radius: 13px; padding: 9px 12px; background: var(--control,#edf1ee); cursor: pointer; min-height: 40px; }
#steve-background-dialog button:disabled { opacity: .45; cursor: wait; }
#steve-background-dialog button:focus-visible, #steve-background-dialog input:focus-visible { outline: 2px solid var(--accent,#36765e); outline-offset: 3px; }
#steve-background-dialog input { font: inherit; color: inherit; accent-color: var(--accent,#36765e); }
#steve-background-dialog [hidden] { display: none !important; }
.sb-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#steve-background-dialog .sb-heading h2 { font-size: 18px; font-weight: 650; margin: 0; }
.sb-heading p { color: var(--muted,#68736c); font-size: 11px; margin: 4px 0 0; }
#steve-background-dialog .sb-close { width: 36px; min-height: 36px; padding: 0; font-size: 23px; flex: none; border-radius: 50%; }
.sb-tabs, .sb-types { display: flex; gap: 4px; padding: 4px; background: var(--control,#edf1ee); border-radius: 15px; }
#steve-background-dialog :is(.sb-tabs,.sb-types) button { flex: 1; min-width: 0; background: transparent; min-height: 34px; padding: 6px 8px; font-size: 12px; white-space: nowrap; }
#steve-background-dialog :is(.sb-tabs,.sb-types) button[aria-pressed="true"] { background: var(--surface,#fff); box-shadow: 0 2px 7px #172b2012; }
.sb-preview { position: relative; height: 208px; border-radius: 20px; overflow: hidden; isolation: isolate; margin: 14px 0; color: #22342c; box-shadow: inset 0 0 0 1px #8882; }
.sb-preview[data-image="true"] { cursor: grab; touch-action: none; }
.sb-preview[data-image="true"]:active { cursor: grabbing; }
.sb-preview-background { position: absolute; inset: 0; z-index: -1; }
.sb-preview-content { padding: 18px; pointer-events: none; user-select: none; }
.sb-preview-wordmark { font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.sb-preview-search { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 13px; font-size: 11px; border: 1px solid #ffffffb3; border-radius: 17px; background: #ffffff70; backdrop-filter: blur(8px); box-shadow: 0 3px 12px #17332612; }
.sb-preview-cards { display: flex; gap: 8px; margin-top: 10px; }
.sb-preview-cards > span { flex: 1; padding: 10px 12px; background: #ffffffb0; border: 1px solid #ffffffc0; border-radius: 14px; font-size: 9px; }
.sb-preview-cards strong { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; }
.sb-preview-copy { margin: 12px 0 0; font-size: 10px; text-align: center; }
.sb-preview[data-theme="dark"] { color: #f0f5f3; }
.sb-preview[data-theme="dark"] .sb-preview-search { background: #15262375; border-color: #ffffff30; }
.sb-preview[data-theme="dark"] .sb-preview-cards > span { background: #142321d9; border-color: #ffffff20; }
.sb-preview[data-theme="dark"] .sb-preview-copy { background: #142321b0; border-radius: 8px; }
.sb-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
#steve-background-dialog .sb-presets button { height: 68px; padding: 6px; display: flex; align-items: flex-end; justify-content: center; border: 2px solid transparent; }
#steve-background-dialog .sb-presets button[aria-pressed="true"] { border-color: var(--accent,#36765e); }
.sb-presets span { background: #ffffffdc; color: #29362f; padding: 2px 6px; border-radius: 7px; font-size: 10px; }
.sb-dynamic-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0 8px; }
#steve-background-dialog .sb-dynamic-options button { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; padding: 6px 6px 8px; border: 2px solid transparent; border-radius: 16px; background: var(--control,#edf1ee); text-align: left; font-size: 12px; font-weight: 600; }
#steve-background-dialog .sb-dynamic-options button[aria-pressed="true"] { border-color: var(--accent,#36765e); }
.sb-dynamic-options button > span:not(.sb-effect-swatch),.sb-dynamic-options button > strong { padding: 0 4px; }
.sb-dynamic-options small { padding: 0 4px; color: var(--muted,#68736c); font-size: 10px; font-weight: 400; line-height: 1.5; }
.sb-effect-swatch { display: block; width: 100%; height: 66px; margin-bottom: 3px; border-radius: 10px; box-shadow: inset 0 0 0 1px #8882; }
.sb-effect-swatch[data-effect="flow"] { background: radial-gradient(ellipse at 15% 35%,#66bbbfd1,transparent 65%),radial-gradient(ellipse at 83% 10%,#ac98d7c4,transparent 58%),radial-gradient(ellipse at 64% 95%,#f1bba3d1,transparent 64%),#e7edf4; }
.sb-effect-swatch[data-effect="flow"][data-theme="dark"] { background: radial-gradient(ellipse at 15% 35%,#177a84d1,transparent 65%),radial-gradient(ellipse at 83% 10%,#62519fc4,transparent 58%),radial-gradient(ellipse at 64% 95%,#785568d1,transparent 64%),#182333; }
.sb-effect-swatch[data-effect="aurora"] { background: radial-gradient(ellipse 100% 120% at 30% -45%,transparent 51%,#69bfa06b 60%,#72bdb09e 64%,transparent 72%),radial-gradient(ellipse 100% 100% at 80% 130%,transparent 40%,#84a8d891 59%,transparent 71%),#dfeeea; }
.sb-effect-swatch[data-effect="aurora"][data-theme="dark"] { background: radial-gradient(ellipse 100% 120% at 30% -45%,transparent 51%,#38b98770 60%,#68d6adb0 64%,transparent 72%),radial-gradient(ellipse 100% 100% at 80% 130%,transparent 40%,#568fcc91 59%,transparent 71%),#0b2428; }
/* Canvas wallpaper choices retain a complete static gradient underneath.
   These fields and all editor thumbnails have no animation clocks. */
.sb-surface[data-dynamic="liquid"] .sb-paint,.sb-effect-swatch[data-effect="liquid"] { background: radial-gradient(ellipse at 12% 14%,#c2dccc 0,transparent 55%),radial-gradient(ellipse at 84% 74%,#b7c4e2 0,transparent 62%),linear-gradient(135deg,#e0e9ec,#ccdcd9) !important; }
.sb-surface[data-dynamic="liquid"][data-theme="dark"] .sb-paint,.sb-effect-swatch[data-effect="liquid"][data-theme="dark"] { background: radial-gradient(ellipse at 12% 14%,#24594d 0,transparent 55%),radial-gradient(ellipse at 84% 74%,#2a385b 0,transparent 62%),#112730 !important; }
.sb-surface[data-dynamic="ripple"] .sb-motion,.sb-effect-swatch[data-effect="ripple"] { background: radial-gradient(ellipse at 15% 10%,#d8e9de 0,transparent 56%),radial-gradient(ellipse at 84% 75%,#94b4cd 0,transparent 66%),#bdd4da; }
.sb-surface[data-dynamic="ripple"][data-theme="dark"] .sb-motion,.sb-effect-swatch[data-effect="ripple"][data-theme="dark"] { background: radial-gradient(ellipse at 15% 10%,#24564f 0,transparent 56%),radial-gradient(ellipse at 84% 75%,#29415e 0,transparent 66%),#173442; }
.sb-canvas-output { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none !important; user-select: none; }
.sb-canvas-output[hidden] { display: none !important; }
/* Flow is a small decorative current over the serene full-size gradient.
   Bounding the host also shrinks the actual WebGL drawing buffer. */
.sb-surface[data-dynamic="liquid"] .sb-motion { inset: auto; left: 64%; top: 30%; width: min(70%,420px); height: min(40%,320px); transform: translate(-50%,-50%); -webkit-mask-image: radial-gradient(ellipse at center,#000 20%,#0009 48%,transparent 72%); mask-image: radial-gradient(ellipse at center,#000 20%,#0009 48%,transparent 72%); }
.sb-surface[data-dynamic="liquid"] .sb-canvas-output { opacity: .34; }
.sb-surface[data-dynamic="liquid"][data-theme="dark"] .sb-canvas-output { opacity: .32; }
.sb-surface[data-dynamic="ripple"] .sb-canvas-output { opacity: .65; }
.sb-surface[data-dynamic="ripple"][data-theme="dark"] .sb-canvas-output { opacity: .42; }
@media(prefers-reduced-motion:reduce),(forced-colors:active) { .sb-canvas-output { display: none !important; } }
:is(html,body).reduced .sb-canvas-output { display: none !important; }
#steve-background-dialog .sb-color-label { display: flex; flex-direction: row; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
#steve-background-dialog input[type="color"] { width: 52px; height: 36px; padding: 3px; border: 0; border-radius: 10px; background: var(--control,#edf1ee); }
.sb-swatches { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
#steve-background-dialog .sb-swatches button { width: 30px; height: 30px; min-height: 30px; border-radius: 50%; padding: 0; border: 1px solid #8885; }
#steve-background-dialog .sb-pick { margin-top: 12px; width: 100%; }
.sb-note { color: var(--muted,#68736c); font-size: 10px; margin: 6px 0; line-height: 1.6; }
.sb-sliders { padding-top: 4px; }
#steve-background-dialog .sb-sliders label { display: grid; grid-template-columns: 60px minmax(0,1fr) 38px; align-items: center; gap: 10px; margin: 4px 0; font-size: 11px; }
#steve-background-dialog .sb-sliders input[type="range"] { width: 100%; min-width: 0; height: 36px; padding: 0; margin: 0; border: 0; background: transparent; }
.sb-sliders output { text-align: right; color: var(--muted,#68736c); font-size: 10px; font-variant-numeric: tabular-nums; }
.sb-secondary { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
#steve-background-dialog .sb-secondary button { background: transparent; padding: 6px 0; font-size: 11px; color: var(--muted,#68736c); }
.sb-status { margin: 8px 0 12px; min-height: 18px; color: var(--muted,#68736c); font-size: 11px; line-height: 1.65; }
.sb-status[data-error="true"] { color: #ad4333; }
.sb-conflict { padding: 10px; margin-top: 8px; background: var(--control,#f4ede0); border-radius: 12px; font-size: 11px; }
.sb-conflict p { margin: 0 0 5px; }
.sb-actions { display: flex; gap: 8px; padding-bottom: env(safe-area-inset-bottom,0px); }
.sb-actions button { flex: 1; }
#steve-background-dialog .sb-primary { background: var(--primary,#203b2e); color: var(--on-primary,#fff); }
#sb-toast { position: fixed; z-index: 10000; bottom: max(24px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 16px; background: #20332ef2; color: #fff; box-shadow: 0 6px 25px #0002; font: 12px/1.5 -apple-system,sans-serif; pointer-events: none; max-width: calc(100vw - 32px); }
@media(max-width:600px) { #steve-background-dialog { margin: auto auto 10px; padding: 18px; max-height: 91dvh; } .sb-preview { height: 194px; } .sb-preview-content { padding: 14px; } }
@media(max-width:370px) { .sb-preview-cards strong { font-size: 11px; } }
@media(prefers-contrast:more) { #steve-background-dialog button { border-color: currentColor; } .sb-preview-search,.sb-preview-cards>span { background: #fff; } }
@media(forced-colors:active) { #steve-background-dialog { background: Canvas; color: CanvasText; } #steve-background-dialog button { border: 1px solid ButtonText; } }
/* Keep the decision buttons visible while only the editor body scrolls.
   Use a div: Chromium's anonymous fieldset box cannot scroll reliably. */
#steve-background-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#steve-background-dialog .sb-fields-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px; }
#steve-background-dialog :is(.sb-heading,.sb-status,.sb-actions,.sb-conflict) { flex-shrink: 0; }

/* Static choice sample: shares the wallpaper palette and stationary diamond grid. */
.sb-effect-swatch[data-effect="halftone"] { position: relative; overflow: hidden; background: linear-gradient(transparent 6%,#f5f6fb 18%,#f5f6fb 66%,transparent 90%),radial-gradient(ellipse 90% 38% at 18% 0%,#d17fc640,transparent),radial-gradient(ellipse 85% 32% at 96% 0%,#7da4f540,transparent),radial-gradient(ellipse at 55% 55%,#efb486a6,transparent 55%),radial-gradient(ellipse at 12% 100%,#bf90ddbd,transparent 68%),radial-gradient(ellipse at 95% 75%,#97cbb1c0,transparent 60%),radial-gradient(ellipse at 65% 100%,#80aaf3d1,transparent 66%),#f5f6fb; }
.sb-effect-swatch[data-effect="halftone"][data-theme="dark"] { background: linear-gradient(transparent 6%,#03040a 18%,#03040a 66%,transparent 90%),radial-gradient(ellipse 90% 44% at 18% 0%,#a044a185,transparent),radial-gradient(ellipse 85% 40% at 96% 0%,#476ed885,transparent),radial-gradient(ellipse at 55% 55%,#96613aa0,transparent 55%),radial-gradient(ellipse at 12% 100%,#823c98bd,transparent 68%),radial-gradient(ellipse at 95% 75%,#28765ec2,transparent 60%),radial-gradient(ellipse at 65% 100%,#2257b8d1,transparent 66%),#03040a; }
.sb-effect-swatch[data-effect="halftone"]::after { content: ''; position: absolute; inset: 0; background: radial-gradient(#7589b98c .8px,transparent 1.1px) 0 0 / 4px 4px; mask-image: linear-gradient(#0006,transparent 17%,transparent 70%,#000c 100%); -webkit-mask-image: linear-gradient(#0006,transparent 17%,transparent 70%,#000c 100%); }
@media(forced-colors:active) { .sb-halftone-grid { display: none; } }

/* Preview wave renderer: two cropped buffers, 18% + 34% of viewport height. */
.sb-wave-band { position:absolute; left:0; right:0; pointer-events:none; overflow:hidden; }
.sb-wave-top { top:0; height:18%; }
.sb-wave-bottom { bottom:0; height:34%; }
.sb-wave-band canvas { width:100%; height:100%; display:block; }
.sb-surface[data-wave-ready] > .sb-paint > .sb-motion,
.sb-surface[data-wave-ready] > .sb-paint > .sb-halftone-grid { display:none; }
.sb-surface[data-dynamic="halftone"] .sb-motion-shape { animation:none !important; }
@media(forced-colors:active) { .sb-wave-band { display:none; } }
