/* Live themes: the background layer sits behind #app; the chart and trading UI are untouched. */
#live-bg,#live-pc{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;display:none;opacity:1;transition:opacity .32s ease;background:var(--bg)}
html.live-on #live-bg:not([hidden]),html.live-on #live-pc:not([hidden]){display:block}
#live-bg.swap,#live-pc.swap{opacity:0}

html.live-on body{background:transparent}
html.live-on #app{z-index:1}
/* panels become glass; chart surface stays solid so candles keep full contrast */
html.live-on .pane,html.live-on #nav,html.live-on .ph,html.live-on #statusline,html.live-on .subtabs,html.live-on .acct>div,html.live-on .sumgrid>div,html.live-on .st-hero>div,html.live-on .sgrp,html.live-on .hero,html.live-on .stg,html.live-on .strip,html.live-on body.desk #dtop,html.live-on body.desk .win,html.live-on #ddock,html.live-on .day,html.live-on .tl-item{background:color-mix(in srgb,var(--bg) calc(var(--lgo,70)*1%),transparent)}
html.live-on .chart-wrap,html.live-on .gw-chart{background:var(--bg)}
html.live-on #nav,html.live-on .ph,html.live-on #statusline,html.live-on #sheet,html.live-on .sgrp,html.live-on body.desk #dtop{-webkit-backdrop-filter:blur(var(--lgb,8px));backdrop-filter:blur(var(--lgb,8px))}
html.live-low *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.live-font body,html.live-font button,html.live-font input,html.live-font select{font-family:var(--livefont)!important}
html.live-trans body,html.live-trans .pane,html.live-trans #nav,html.live-trans .ph,html.live-trans .sgrp,html.live-trans #statusline,html.live-trans .btn,html.live-trans .chart-wrap{transition:background-color .7s ease,color .7s ease,border-color .7s ease!important}
/* selector */
.lv-n{font-size:12.5px;color:var(--dim);line-height:1.4;margin:0 0 10px}.lv-w{font-size:12.5px;color:var(--warn);margin:8px 0 0}
.lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.lv-card{display:flex;flex-direction:column;gap:3px;text-align:left;padding:8px;border-radius:12px;border:1px solid var(--line);background:var(--bg2);color:var(--txt);font:inherit;cursor:pointer;transition:transform .18s ease,border-color .2s ease,box-shadow .2s ease}
.lv-card b{font-size:13.5px}.lv-card small{font-size:11.5px;color:var(--dim)}
.lv-card.on{border-color:var(--acc);box-shadow:0 0 0 2px color-mix(in srgb,var(--acc) 35%,transparent)}
.lv-card:active{transform:scale(.97)}
.lv-sw{display:block;height:54px;border-radius:8px;margin-bottom:4px;border:1px solid var(--line)}
.lv-sl{display:block;margin:0 0 12px}.lv-sl span{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px}.lv-sl b{color:var(--dim);font-weight:600}
.lv .accrow{flex-wrap:wrap;gap:8px}
.lv-bar{position:sticky;bottom:0;display:flex;gap:8px;align-items:center;padding:10px 0 4px;background:linear-gradient(transparent,var(--bg2) 30%)}.lv-bar span{flex:1;font-size:13px}
@media (prefers-reduced-motion:reduce){#live-bg,#live-pc{transition:none}}
html.live-on #dwork,html.live-on #desk{background:transparent}
html.live-on body.desk .pane:not(.win){visibility:hidden}
