/* LanegecKo's global header, numbered navigation and footer. Scoped to the full-page desk. */
.site-topbar, .site-market-rail, .site-page-tabs, .site-shared-footer {
  --site-text: #e8eee9; --site-muted: #a0abb0; --site-line: #263034; --site-line-soft: #182125;
  color: var(--site-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-topbar { min-height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--site-line); background: rgba(10,14,16,.96); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); }
.site-brand-block, .site-topbar-actions { display: flex; align-items: center; }
.site-brand-block { gap: 12px; min-width: max-content; color: var(--site-text); }
.site-brand-block:hover { text-decoration: none; }
.site-brand-block b { display: block; font-size: 18px; letter-spacing: -.02em; }
.site-brand-block small { display: block; margin-top: 3px; color: var(--site-muted); font: 11px/1.25 Consolas, monospace; letter-spacing: .08em; }
.site-brand-mark { width: 24px; height: 25px; display: flex; align-items: flex-end; gap: 3px; }
.site-brand-mark i { width: 4px; border-radius: 1px; background: #b7f34b; }
.site-brand-mark i:nth-child(1) { height: 38%; }.site-brand-mark i:nth-child(2) { height: 72%; background: #42d4d1; }.site-brand-mark i:nth-child(3) { height: 100%; background: #f3b83f; }.site-brand-mark i:nth-child(4) { height: 55%; background: #ff7066; }
.site-topbar-actions { gap: 9px; justify-content: flex-end; }
.site-access-badge { padding: 7px 9px; border: 1px solid rgba(183,243,75,.45); color: #b7f34b; font: 11px Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }
.site-button { min-height: 34px; padding: 0 13px; border: 1px solid var(--site-line); border-radius: 4px; color: var(--site-text); background: transparent; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.site-button-primary { color: #0a0d0c; border-color: var(--site-text); background: var(--site-text); }
.site-button-ghost { color: var(--site-muted); }
.site-button:hover { border-color: #42d4d1; text-decoration: none; }
.site-market-rail { min-height: 54px; padding: 0 28px; display: grid; grid-template-columns: .8fr 1fr 1.35fr .8fr 1.35fr; border-bottom: 1px solid var(--site-line); background: #0b0f11; }
.site-market-rail > div { min-width: 0; padding: 9px 14px; border-left: 1px solid var(--site-line-soft); display: flex; flex-direction: column; justify-content: center; }
.site-market-rail > div:first-child { border-left: 0; padding-left: 0; }
.site-market-rail span, .site-eyebrow { color: var(--muted); font: 11px Consolas, monospace; letter-spacing: .09em; }
.site-market-rail span { color: var(--site-muted); }
.site-market-rail strong { margin-top: 4px; color: #d9e1dc; font: 13px Consolas, monospace; white-space: nowrap; }
.site-page-tabs { min-height: 58px; padding: 0 28px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: stretch; border-bottom: 1px solid var(--site-line); background: rgba(8,11,13,.96); position: sticky; top: 72px; z-index: 40; }
.site-page-tabs a { min-width: 0; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border-left: 1px solid var(--site-line-soft); color: var(--site-muted); font-size: clamp(11px, .9vw, 14px); font-weight: 700; text-align: center; }
.site-page-tabs a span { color: #718087; font: 11px Consolas, monospace; }
.site-page-tabs a:hover { color: var(--site-text); text-decoration: none; background: #11181b; }
.site-page-tabs a.active { color: var(--site-text); background: #0d1215; box-shadow: inset 0 -2px #42d4d1; }
.site-page-tabs a.active span { color: #42d4d1; }
.site-page-heading { width: min(1580px, 100%); min-height: 130px; margin: 0 auto; padding: 24px 28px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-page-heading h1 { margin: 4px 0 0; font-size: clamp(30px, 4vw, 50px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.site-page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.site-page-state { flex: 0 0 auto; padding-left: 18px; border-left: 2px solid var(--cyan); }
.site-page-state span, .site-page-state strong { display: block; font: 11px Consolas, monospace; letter-spacing: .04em; }
.site-page-state span { color: var(--muted); }.site-page-state strong { margin-top: 6px; color: var(--info); }
.site-skip-link { position: fixed; top: -80px; left: 16px; z-index: 120; padding: 10px 16px; background: #e8eee9; color: #080b0d; font-weight: 700; }
.site-skip-link:focus { top: 10px; }
html[data-site-shell="1"] #app { width: min(1524px, calc(100% - 56px)); min-height: calc(100vh - 430px); margin: 0 auto 28px; scroll-margin-top: 146px; border: 1px solid var(--border); border-radius: 8px; overflow: clip; background: var(--panel); }
html[data-site-shell="1"] .app-header { top: 130px; }
html[data-site-shell="1"] .settings-nav { top: calc(130px + var(--header-h) + 12px); }
html[data-site-shell="1"] .site-shared-footer { padding: 18px 28px 20px; border-top: 1px solid var(--site-line); background: #090d0f; color: var(--site-muted); font: 10px/1.6 Consolas, monospace; text-align: left; letter-spacing: .02em; }
.site-footer-links { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--site-line-soft); }
.site-shared-footer .site-footer-brand { color: var(--site-text); }
.site-footer-links nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-shared-footer a { color: var(--site-muted); }.site-shared-footer a:hover { color: #42d4d1; }

@media (min-width: 1281px) {
  html[data-site-shell="1"] .trade-grid.advanced,
  html[data-site-shell="1"] .trade-grid.simple { grid-template-rows: minmax(440px, calc(100vh - 430px)) auto; }
}
@media (max-width: 1180px) {
  .site-page-tabs { display: flex; flex-wrap: nowrap; height: 52px; min-height: 52px; position: relative; top: auto; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-padding-inline: 12px; }
  .site-page-tabs a { flex: 0 0 auto; min-height: 52px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
  html[data-site-shell="1"] .app-header { top: 72px; }
  html[data-site-shell="1"] .settings-nav { top: calc(72px + var(--header-h) + 12px); }
}
@media (max-width: 900px) {
  .site-topbar { padding: 12px 16px; gap: 16px; }.site-access-badge { display: none; }
  .site-brand-block small { font-size: 9px; }
  .site-market-rail { padding: 0 16px; grid-template-columns: 1fr 1fr 1fr; }
  .site-market-rail > div:nth-child(n+4) { display: none; }
  .site-page-tabs { padding: 0; }.site-page-tabs a span { display: none; }
  .site-page-heading { padding: 24px 16px 18px; }.site-page-heading p { font-size: 14px; }
  .site-page-state { display: none; }
  html[data-site-shell="1"] #app { width: calc(100% - 32px); }
  html[data-site-shell="1"] .site-shared-footer { padding-bottom: 84px; }
  .site-footer-links { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .site-topbar { min-height: 72px; position: static; gap: 8px; }
  .site-brand-block small, .site-support-shortcut { display: none; }
  .site-topbar-actions { min-width: 0; gap: 6px; }.site-topbar-actions .site-button { padding: 0 8px; font-size: 11px; }
  .site-market-rail { min-height: 52px; }.site-market-rail > div { padding: 9px; }
  .site-market-rail strong { font-size: 11px; }.site-market-rail span { font-size: 10px; }
  .site-page-heading { min-height: 0; padding: 22px 16px 18px; }.site-page-heading h1 { font-size: 37px; }
  .site-page-heading p { font-size: 13px; line-height: 1.55; }
  html[data-site-shell="1"] #app { width: calc(100% - 24px); margin-bottom: 16px; min-height: 0; scroll-margin-top: 12px; }
  html[data-site-shell="1"] .app-header { top: 0; }
  html[data-site-shell="1"] .site-shared-footer { padding: 16px 16px 84px; }
}
