﻿/* App-only palette: explicit specificity prevents the captured dark theme from winning. */
.theme-terminal.ax-app-shell{
 --surface-scene:#10291f;--overlay-foreground:#fbfcf7;--accent:#d7f7a7;--muted:#d2dfd5;--rule:#9db6a54d;--wash:#c3d9b414;--loss:#ffb198;--gain:#c4f592;
 position:relative;isolation:isolate;background:#0b1814;color:#fbfcf7;color-scheme:dark;
}
.ax-app-shell>.ax-app-atmosphere{position:fixed;inset:0;width:100%;height:100svh;border:0;pointer-events:none;z-index:0;opacity:.025}
.ax-app-shell>header,.ax-app-shell>main,.ax-app-shell>div{position:relative;z-index:1}
.ax-app-shell>header{background:#0d211afc;backdrop-filter:blur(12px);border-bottom-color:var(--rule);color:var(--overlay-foreground)}
.ax-app-shell>main{background:#0d211a}
.ax-app-shell [aria-label="Chart"]{background:#0d211a}
.ax-app-shell [aria-label="Order ticket"]{background:#122d22;min-height:100%}
.ax-app-shell [aria-label="Get ready to trade"]{display:none!important}
.ax-app-shell input:not([type="range"]),.ax-app-shell select{background:#081a12;border-color:#9eb6a466;color:var(--overlay-foreground);border-radius:4px}
.ax-app-shell input::placeholder{color:#b9ccbd}.ax-app-shell input[type="range"]{accent-color:#d7f7a7}
.ax-app-shell [role="listbox"],.ax-app-shell [role="menu"]{background:#173a2b;box-shadow:0 12px 40px #0006}
.ax-app-shell button:focus-visible,.ax-app-shell a:focus-visible,.ax-app-shell input:focus-visible,.ax-app-shell select:focus-visible{outline:2px solid #d7f7a7;outline-offset:3px}
body:has(.ax-app-shell){background:#0b1814;--overlay-scanline-opacity:0;--overlay-vignette-opacity:0;--overlay-grain-opacity:0}
body:has(.ax-app-shell) .crt-scanlines,body:has(.ax-app-shell) .crt-vignette,body:has(.ax-app-shell) .crt-grain{display:none}
@media(max-width:700px){.ax-app-shell>.ax-app-atmosphere{opacity:.015}.ax-app-shell>header{background:#0d211afc;backdrop-filter:blur(6px)}.ax-app-shell [aria-label="Order ticket"]{background:#122d22}.ax-app-shell{overflow-x:hidden}.ax-app-shell>main:has(>[aria-label="Chart"]){width:calc(100% - 24px);margin-inline:auto}.ax-app-shell [aria-label="Strikes and positions"]{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.ax-app-shell [aria-label="Strikes and positions"] table{min-width:32rem}}

.ax-mobile-nav-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;border:1px solid var(--rule);border-radius:5px;background:#10291f;color:var(--overlay-foreground);cursor:pointer}
.ax-mobile-nav-toggle svg{width:18px;height:18px}
@media(max-width:700px){
 .ax-app-shell>header{z-index:30}
 .ax-app-shell>header>a[aria-label="AXIORA — home"]>span{gap:0}
 .ax-app-shell>header>a[aria-label="AXIORA — home"]>span>span:last-child{display:none}
 .ax-app-shell .ax-mobile-nav-toggle{display:inline-flex}
 .ax-app-shell header nav[aria-label="Sections"]{display:none;position:absolute;top:calc(100% + 1px);left:12px;right:12px;z-index:50;flex-direction:column;gap:0;padding:8px;background:#10291f;border:1px solid #78927c;border-radius:8px;box-shadow:0 16px 40px #0009}
 .ax-app-shell header[data-section-menu-open] nav[aria-label="Sections"]{display:flex}
 .ax-app-shell header nav[aria-label="Sections"] a{display:flex;align-items:center;min-height:42px;padding:8px 12px;border:0;border-bottom:1px solid var(--rule);color:var(--muted)}
 .ax-app-shell header nav[aria-label="Sections"] a:last-child{border-bottom:0}
 .ax-app-shell header nav[aria-label="Sections"] a:hover,.ax-app-shell header nav[aria-label="Sections"] a:focus-visible{background:#d7f7a712;color:var(--overlay-foreground)}
}

html:has(.ax-app-shell){background:#0b1814;color-scheme:dark}

/* Constrain the app content while retaining the edge-to-edge atmosphere. */
.ax-app-shell>header{padding-inline:var(--ax-page-inset)}
.ax-app-shell>main,.ax-app-shell>div{width:calc(100% - 2 * var(--ax-min-gutter));margin-inline:auto}
.ax-app-shell>div{max-width:var(--ax-content-max)}
.ax-app-shell>main:has(>[aria-label="Chart"]){max-width:var(--ax-content-max);margin-block:24px 40px;border:1px solid var(--rule)}
@media(max-width:700px){.ax-app-shell>main:has(>[aria-label="Chart"]){margin-block:18px 28px}.ax-app-shell [aria-label="Order ticket"]{padding:16px}}

/* Use readable metadata sizes and opaque surfaces for the trading workspace. */
.ax-app-shell :is(.text-xs,.text-sm,[class*="text-[0.6875rem]"]){font-size:14px;line-height:1.55}
.ax-app-shell .font-mono{font-weight:500}
.ax-app-shell [aria-label="Chart"] svg text{font-weight:500}
.ax-app-shell input:not([type="range"]),.ax-app-shell select{font-weight:600;box-shadow:inset 0 0 0 1px #7f9b8826}

/* The market strip must establish a higher stacking layer than the chart. */
.ax-app-shell>div:has(>.ax-market-menu){z-index:40}
.ax-app-shell .ax-market-menu{top:var(--ax-menu-top,100%);margin-top:0;width:min(820px,calc(100% - 40px));max-height:var(--ax-menu-space,70dvh);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;background:#10291f;border-color:#78927c;border-radius:10px;box-shadow:0 16px 48px #0009;grid-template-columns:repeat(3,minmax(0,1fr))}
.ax-app-shell .ax-market-menu button{min-height:34px}.ax-app-shell .ax-market-menu button:hover{background:#d7f7a712}
@media(max-width:700px){.ax-app-shell .ax-market-menu{left:12px;width:calc(100% - 24px);grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;padding:14px}}
