@font-face { font-family:'Goldman'; src:url('/fonts/goldman-regular.woff2') format('woff2'); font-style:normal; font-weight:400; font-display:swap; }
:root { --site-header-height:64px; scrollbar-gutter:stable; }
.portal-page { background: #000; }
.portal-page body { background: #000; }
.portal-canvas { min-height: calc(100dvh - var(--site-header-height)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  flex-shrink: 0;
  padding: 0 24px;
  border-bottom: 1px solid #282828;
  gap: 22px;
  background: #000;
  color: #fff;
  font-family: 'Golos Text', sans-serif;
  font-size: 13px;
}
.site-brand { display:flex; align-items:center; gap:9px; color:#fff; text-decoration:none; font-family:'Goldman',sans-serif; font-size:26px; font-weight:400; font-synthesis:none; letter-spacing:.01em; line-height:1; }
.aexx-brand-mark { display:block; width:30px; height:30px; flex:0 0 auto; object-fit:contain; }
.aexx-wordmark { font-family:'Goldman',sans-serif; font-weight:400; font-synthesis:none; }
.site-brand svg { width: 24px; height: 24px; }
.site-divider { width: 1px; height: 18px; background: #292929; }
.site-header > nav { display:flex; align-items:center; gap:24px; height:100%; }
.site-brand, .site-divider, .site-header > nav { flex-shrink:0; }
.site-nav-link { display:flex; align-items:center; height:100%; color:#ccc; text-decoration:none; white-space:nowrap; }
.site-nav-link:hover, .site-nav-link[aria-current=page] { color:#fff; }
.site-nav-link[aria-current=page] { box-shadow:inset 0 -2px #fff; }
.trade-navigation { position:relative; height:100%; }
.trade-navigation > summary { display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 2px; list-style: none; cursor: pointer; user-select: none; }
.trade-navigation > summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 12px; height: 12px; transition: transform .15s; }
.trade-navigation[open] > summary .nav-chevron { transform: rotate(180deg); }
.trade-navigation > summary:hover, .trade-navigation[open] > summary { color: #d6d6d6; }
.trade-mega {
  --mega-width: min(750px, calc(100vw - 220px));
  position: absolute;
  top: 100%;
  left: -16px;
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  width: 188px;
  background: var(--panel);
  border: 1px solid var(--strong-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 32px #0006;
  overflow: hidden;
  transition: width .18s ease-out;
}
.trade-navigation[open] .trade-mega { animation: trade-menu-open .14s ease-out; }
.trade-navigation[data-preview=true] .trade-mega { width: var(--mega-width); }
.trade-tools { padding: 22px 12px; }
.trade-navigation[data-preview=true] .trade-tools { border-right: 1px solid #292929; }
.trade-tools-label { color: #929292; font-size: 11px; margin: 0 8px 13px; line-height: 1.5; }
.trade-tool { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 12px; border-radius: 5px; color: #d4d4d4; text-decoration: none; font-size: 14px; font-weight: 600; }
.trade-tool > svg { width: 21px; height: 21px; flex: 0 0 21px; }
.trade-tool > .tool-arrow { width: 14px; height: 14px; flex-basis: 14px; margin-left: auto; color: #888; transition: transform .15s ease-out; }
.trade-tool[data-active=true] > .tool-arrow { transform: translateX(2px); }
.trade-tool:hover, .trade-tool[data-active=true] { color: var(--text); background: var(--hover); }
.trade-tool[aria-current=page] { box-shadow: inset 2px 0 #fff; }
.trade-preview { display: flex; flex-direction: column; width: calc(var(--mega-width) - 188px); min-width: 0; min-height: 414px; padding: 21px 22px 12px; animation: trade-preview-open .18s ease-out; }
@keyframes trade-menu-open { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes trade-preview-open { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
.trade-preview-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.trade-preview-heading a { color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.trade-preview-heading span { color: #8e8e8e; font-size: 11px; }
.trade-market-tabs { display: flex; gap: 17px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #292929; }
.trade-market-tabs::-webkit-scrollbar { display: none; }
.trade-market-tabs button { position: relative; border: 0; padding: 0 0 12px; background: none; color: #969696; white-space: nowrap; font-size: 12px; }
.trade-market-tabs button:hover, .trade-market-tabs button[aria-pressed=true] { color: #fff; }
.trade-market-tabs button[aria-pressed=true]::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: #fff; }
.trade-market-tabs button:disabled { cursor: default; }
.trade-list-head { display: grid; grid-template-columns: minmax(0, 1fr) 100px 74px; gap: 8px; padding: 14px 8px 5px; color: #888; font-size: 10px; }
.trade-list-head span:not(:first-child) { text-align: right; }
.trade-instruments { min-height: 264px; }
.trade-instrument { display: grid; grid-template-columns: minmax(0, 1fr) 100px 74px; gap: 8px; align-items: center; min-height: 45px; padding: 6px 8px; margin: 0 -1px; border-radius: 4px; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.trade-instrument:hover { background: var(--hover); }
.trade-instrument-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.trade-instrument-glyph { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: #292929; color: #eee; font-size: 11px; font-weight: 600; }
.trade-instrument-glyph.asset-icon-pair { background:transparent; }
.trade-instrument-label { min-width: 0; display: grid; gap: 2px; }
.trade-instrument-label strong { font-size: 12px; }
.trade-instrument-label small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #909090; font-size: 10px; }
.trade-instrument-price, .trade-instrument-change { text-align: right; font-size: 11px; }
.trade-instrument-change { color: #aaa; }
.trade-instrument-change[data-direction=up] { color: var(--buy); }
.trade-instrument-change[data-direction=down] { color: var(--sell); }
.trade-list-state { padding: 44px 8px; color: #999; font-size: 12px; line-height: 1.6; }
.trade-list-retry { margin-top: 10px; padding: 5px 0; border: 0; background: none; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.trade-all { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 13px 8px 3px; border-top: 1px solid #292929; color: #d4d4d4; font-size: 11px; text-decoration: none; }
.trade-all:hover { color: #fff; }
.trade-all svg { width: 15px; height: 15px; }
.site-header + .topbar { position: sticky; top: var(--site-header-height); z-index: 19; min-height: 40px; }
@media (max-width: 900px) {
  .trade-mega { --mega-width: calc(100vw - 32px); position: fixed; top: var(--site-header-height); left: 16px; }
}
@media (max-width: 800px) {
  :root { --site-header-height:56px; }
  .site-header { padding-inline:20px; }
}
@media (max-width: 560px) {
  :root { --site-header-height:52px; }
  .site-header > nav { gap:14px; }
  .site-header { padding:0 16px; gap:12px; }
  .site-brand { font-size:22px; gap:7px; }
  .aexx-brand-mark { width:26px; height:26px; }
  .site-brand svg { width: 21px; height: 21px; }
  .trade-mega, .trade-navigation[data-preview=true] .trade-mega { left: 8px; width: calc(100vw - 16px); grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain; }
  .trade-tools { display: flex; align-items: center; gap: 4px; padding: 10px 12px; }
  .trade-navigation[data-preview=true] .trade-tools { border-right: 0; border-bottom: 1px solid #292929; }
  .trade-tools-label { margin: 0 auto 0 0; font-size: 10px; max-width: 80px; }
  .trade-tool { min-height: 38px; padding: 0 10px; gap: 7px; font-size: 12px; }
  .trade-tool > svg { width: 17px; height: 17px; flex-basis: 17px; }
  .trade-tool > .tool-arrow { display: none; }
  .trade-preview { width: auto; padding: 15px 12px 10px; }
  .trade-market-tabs { gap: 17px; }
  .trade-list-head, .trade-instrument { grid-template-columns: minmax(0, 1fr) 82px 65px; gap: 5px; }
  .trade-instrument-glyph { width: 24px; height: 24px; flex-basis: 24px; }
  .trade-instrument-name { gap: 7px; }
}
@media(max-width:520px) {
  .site-brand .aexx-wordmark { display:none; }
  .site-header .site-divider { display:none; }
}
@media(max-width:460px) {
  .site-header { padding-inline:10px; gap:6px; }
  .site-header > nav { gap:10px; }
  .site-nav-link, .trade-navigation > summary { font-size:12px; }
}
@media(max-width:380px) {
  .site-header { gap:4px; padding-inline:8px; }
  .site-header > nav { gap:6px; }
  .site-nav-link { font-size:11px; }
  .trade-navigation > summary { font-size:11px; gap:4px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron, .trade-mega, .trade-tool > .tool-arrow { transition: none; }
  .trade-navigation[open] .trade-mega, .trade-preview { animation: none; }
}
