/* ORAX terminal surfaces: translucent tools, quiet profile hierarchy, legible numbers. */
html:root body:not(.orax-nonterminal):has(#app){--terminal-glass:rgba(24,32,39,.60);--terminal-glass-line:rgba(179,204,221,.17);--terminal-ink:#edf4f8;--terminal-muted:#9baeba;--terminal-panel:#111b23}
html:root body:not(.orax-nonterminal).theme-light-mode:has(#app){--terminal-glass:rgba(255,255,255,.54);--terminal-glass-line:rgba(99,128,148,.18);--terminal-ink:#203442;--terminal-muted:#607788;--terminal-panel:#f9fbfd}
html:root body:not(.orax-nonterminal):has(#app) :is(#desktopDrawingTools,#bottomChartTools){background:transparent!important;box-shadow:none!important;border:0!important}
html:root body:not(.orax-nonterminal):has(#app) :is(#desktopDrawingTools .chart-tool-btn,#bottomChartTools .chart-tool-btn,.asset-mini-action){background:var(--terminal-glass)!important;color:var(--terminal-ink)!important;border:1px solid var(--terminal-glass-line)!important;box-shadow:inset 0 1px 0 #ffffff12,0 2px 8px #14232f08!important;backdrop-filter:blur(9px) saturate(115%);-webkit-backdrop-filter:blur(9px) saturate(115%);border-radius:8px!important;transition:background .14s,border-color .14s,box-shadow .14s!important}
html:root body:not(.orax-nonterminal):has(#app) :is(#desktopDrawingTools .chart-tool-btn,#bottomChartTools .chart-tool-btn,.asset-mini-action):is(:hover,:focus-visible){background:color-mix(in srgb,var(--brand-primary) 12%,var(--terminal-glass))!important;border-color:var(--brand-primary)!important;outline:2px solid transparent;box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-primary) 15%,transparent)!important}
html:root body:not(.orax-nonterminal):has(#app) .asset-mini-action{min-width:30px!important;height:30px!important;padding:0 7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:12px!important}
html:root body:not(.orax-nonterminal):has(#app) #assetInfoBtn{width:auto!important}
html:root body:not(.orax-nonterminal):has(#app) #assetInfoBtn b{font-size:10px;font-weight:650}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu{width:352px!important;max-width:calc(100vw - 24px)!important;padding:0!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;overscroll-behavior:contain;background:var(--terminal-panel)!important;color:var(--terminal-ink)!important;border:1px solid var(--terminal-glass-line)!important;border-radius:17px!important;box-shadow:0 20px 65px #0003!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-pop-head{padding:14px 17px!important;background:transparent!important;border-bottom:1px solid var(--terminal-glass-line)!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-pop-head b{font-size:13px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-pop-head small{font-size:10px!important;font-weight:400!important;color:var(--terminal-muted)!important;margin-top:3px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-pop-head button{width:28px!important;height:28px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;background:transparent!important;color:var(--terminal-muted)!important;box-shadow:none!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-menu-card{margin:0!important;padding:18px 17px 13px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu h2{font-size:18px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:-.3px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .email{font-size:11px!important;font-weight:400!important;color:var(--terminal-muted)!important;margin-top:4px!important;overflow-wrap:anywhere}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-meta-row{gap:10px!important;margin-top:13px!important;justify-content:flex-start!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-meta-row>span{padding:0!important;min-height:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;color:var(--terminal-muted)!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-meta-row>span:last-child{margin-left:auto!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-meta-row img{width:19px!important;height:14px!important;border-radius:3px!important;object-fit:cover!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-vip-progress{margin:0 17px 13px!important;padding:13px!important;border:1px solid color-mix(in srgb,var(--brand-primary) 22%,var(--terminal-glass-line))!important;background:linear-gradient(120deg,color-mix(in srgb,var(--brand-primary) 8%,transparent),transparent)!important;border-radius:12px!important;box-shadow:none!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-vip-progress-head small{font-size:9px!important;letter-spacing:1px!important;color:var(--terminal-muted)!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-vip-progress-head b{font-size:17px!important;letter-spacing:-.3px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-vip-progress-track{height:5px!important;background:var(--terminal-glass-line)!important;margin:11px 0!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-vip-progress-meta{gap:8px!important;font-size:10px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-vip-progress-meta small{font-size:9px!important;color:var(--terminal-muted)!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-links{display:grid!important;grid-template-columns:1fr 1fr!important;gap:2px 8px!important;margin:0!important;padding:0 12px 12px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-links a{min-height:40px!important;padding:9px 7px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--terminal-ink)!important;box-shadow:none!important;font-size:11px!important;font-weight:550!important;gap:8px!important;cursor:pointer}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-links a:hover{background:color-mix(in srgb,var(--brand-primary) 9%,transparent)!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-links a .material-symbols-outlined{font-size:18px!important;color:var(--terminal-muted)!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-links a[href='/logout']{border-top:1px solid var(--terminal-glass-line)!important;border-radius:0!important;grid-column:1/-1!important;margin-top:7px!important;padding-top:13px!important;color:#db515d!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu .profile-links a[href='/logout'] .material-symbols-outlined{color:inherit!important}
html:root body:not(.orax-nonterminal):has(#app) :is(.vip-xp-avatar,#profileMenu) [data-user-group-tag]{background:linear-gradient(120deg,color-mix(in srgb,var(--tag-color,var(--brand-primary)) 23%,var(--terminal-panel)),var(--terminal-panel))!important;border:1px solid color-mix(in srgb,var(--tag-color,var(--brand-primary)) 60%,var(--terminal-glass-line))!important;color:var(--terminal-ink)!important;box-shadow:inset 0 1px 0 #ffffff24,0 3px 9px #0002!important;border-radius:6px!important;letter-spacing:.6px!important;font-weight:800!important;min-height:21px!important;padding:2px 8px!important}
html:root body:not(.orax-nonterminal):has(#app) #profileMenu [data-user-group-tag]{min-height:29px!important;padding:5px 10px!important}
html:root body:not(.orax-nonterminal):has(#app) #openTradeHud{background:var(--terminal-glass)!important;border:1px solid var(--terminal-glass-line)!important;border-radius:10px!important;backdrop-filter:blur(8px);padding:9px 0!important;gap:0!important;top:12px!important;right:100px!important}
html:root body:not(.orax-nonterminal):has(#app) #openTradeHud>div{padding:0 13px!important;min-width:79px!important;border-right:1px solid var(--terminal-glass-line)!important}
html:root body:not(.orax-nonterminal):has(#app) #openTradeHud>div:last-child{border-right:0!important}
html:root body:not(.orax-nonterminal):has(#app) #openTradeHud b{font-size:13px!important;line-height:1.3!important;font-variant-numeric:tabular-nums}
html:root body:not(.orax-nonterminal):has(#app) #openTradeHud small{font-size:8px!important;line-height:1.4!important;letter-spacing:.25px!important;color:var(--terminal-muted)!important;margin-top:4px!important}
html:root body:not(.orax-nonterminal):has(#app) #livePortfolio .live-portfolio-item.portfolio-pro{padding:10px 8px!important;border-radius:10px!important;background:var(--terminal-glass)!important;border-color:var(--terminal-glass-line)!important;box-shadow:none!important}
html:root body:not(.orax-nonterminal):has(#app) #livePortfolio .portfolio-pro-head{margin-bottom:8px!important}
html:root body:not(.orax-nonterminal):has(#app) #livePortfolio .portfolio-pro-grid{grid-template-columns:1fr!important;gap:5px!important}
html:root body:not(.orax-nonterminal):has(#app) #livePortfolio .portfolio-pro-grid>span{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4px!important}
html:root body:not(.orax-nonterminal):has(#app) #livePortfolio .portfolio-pro-grid small{font-size:8px!important;color:var(--terminal-muted)!important;white-space:normal!important;line-height:1.35!important}
html:root body:not(.orax-nonterminal):has(#app) #livePortfolio .portfolio-pro-grid b{font-size:10px!important;line-height:1.4!important;overflow:visible!important;text-overflow:clip!important;font-variant-numeric:tabular-nums}
@media(max-width:750px){html:root body:not(.orax-nonterminal):has(#app) #openTradeHud{right:8px!important;top:8px!important;max-width:calc(100% - 16px)!important}html:root body:not(.orax-nonterminal):has(#app) #openTradeHud>div{min-width:0!important;padding:0 8px!important}html:root body:not(.orax-nonterminal):has(#app) #openTradeHud b{font-size:11px!important}html:root body:not(.orax-nonterminal):has(#app) #profileMenu{max-height:calc(100dvh - 85px)!important}}
@media(prefers-reduced-transparency:reduce){html:root body:not(.orax-nonterminal):has(#app){--terminal-glass:var(--terminal-panel)}}
