/* Shared decorative market backdrop: no scripts, interaction or chart data. */
:root{--app-market-base:#f3f8fb;--app-market-glow:#d8eeef;--app-market-end:#e5f1f5;--app-market-ink:#087d86;--app-market-opacity:.16;--app-market-grid:#087d8608}
html[data-bs-theme="dark"]{--app-market-base:#0a1827;--app-market-glow:#16465a;--app-market-end:#103747;--app-market-ink:#56d9d3;--app-market-opacity:.25;--app-market-grid:#72dce008}
html body{position:relative;isolation:isolate;background:var(--app-market-base)!important;min-height:100dvh}
.app-market-background{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,var(--app-market-glow),transparent 58%),linear-gradient(145deg,var(--app-market-base),var(--app-market-end));color:var(--app-market-ink);contain:strict}
.app-market-background::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--app-market-grid) 1px,transparent 1px),linear-gradient(90deg,var(--app-market-grid) 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(ellipse,#000,transparent 80%)}
.app-market-background svg{width:100%;height:100%;opacity:var(--app-market-opacity);mask-image:linear-gradient(90deg,#000,transparent 43%,transparent 57%,#000)}
.app-market-candles{opacity:.45}
.app-market-line{fill:none;stroke:currentColor;stroke-width:1.5;stroke-dasharray:1800;animation:app-market-trace 12s ease-in-out infinite}
html body :is(.layout-wrapper,.layout-container,.layout-page,.content-wrapper){background:transparent!important}
.session-unlock-page::before{content:none}
@keyframes app-market-trace{0%{stroke-dashoffset:1800;opacity:0}35%,80%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@media(max-width:767.98px){.app-market-background svg{width:160%;max-width:none;transform:translateX(-30%);opacity:calc(var(--app-market-opacity) * .65);mask-image:linear-gradient(90deg,#000,transparent 46%,#000)}.app-market-background::before{background-size:48px 48px}.app-market-line{animation-duration:18s}}
@media(prefers-reduced-motion:reduce){.app-market-line{animation:none;stroke-dashoffset:0;opacity:.8}}
@media print{.app-market-background{display:none}}

.app-market-background.is-live-market .app-market-line{animation:none;stroke-dasharray:none;opacity:.65}
@media(max-width:767.98px){.app-market-background.is-live-market svg{width:100%;transform:none}}

/* Soften only the decorative market layer, never the app content. */
.app-market-background.is-live-market svg{filter:blur(2px);opacity:calc(var(--app-market-opacity) * .7)}
@media(max-width:767.98px){.app-market-background.is-live-market svg{filter:blur(1.5px);opacity:calc(var(--app-market-opacity) * .5)}}

/* Stable mobile canvas: browser chrome collapsing must not rescale the SVG. */
@media(max-width:767.98px){
 .app-market-background{inset:auto;top:0;left:0;width:100vw;height:100vh;width:100lvw;height:100lvh;transform:translateZ(0);backface-visibility:hidden}
}
