@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Space+Grotesk:wght@600;700&family=Work+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #080b0f;
  --bg-2: #0e151b;
  --paper: #111a23;
  --paper-2: #172431;
  --paper-3: #203241;
  --ink: #f4fff9;
  --muted: #b8c9c2;
  --line: rgba(194, 231, 218, 0.22);
  --line-strong: rgba(194, 231, 218, 0.42);
  --green: #47f2b4;
  --red: #ff7a73;
  --blue: #7bd5ff;
  --violet: #c7a6ff;
  --amber: #ffd166;
  --mint: #47f2b4;
  --graphite: #06090c;
  --panel-glow: rgba(49, 214, 161, 0.12);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -10%, rgba(49, 214, 161, 0.16), transparent 310px),
    radial-gradient(circle at 88% 2%, rgba(255, 188, 88, 0.10), transparent 280px),
    linear-gradient(180deg, #0b1117 0, var(--bg) 360px),
    var(--bg);
  font: 14px/1.45 "Work Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

button, input { font: inherit; }
button {
  color: inherit;
  cursor: pointer;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1640px;
  margin: 0 auto;
  padding: 18px 22px 36px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 17, 22, 0.86);
  box-shadow: var(--soft-shadow);
  position: sticky;
  top: 12px;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(125%);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 620px;
  min-width: min(720px, 50vw);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--graphite);
  box-shadow: var(--soft-shadow);
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.global-search {
  position: relative;
  width: min(760px, 100%);
  min-width: 320px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(49, 214, 161, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 33, 42, 0.96), rgba(14, 20, 26, 0.96));
  padding: 6px;
  box-shadow: var(--soft-shadow);
}

.global-search input {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 11px 8px;
  min-width: 0;
}

.global-search input:focus {
  outline: none;
}

.global-search:focus-within {
  border-color: rgba(49, 214, 161, 0.68);
  box-shadow: 0 0 0 3px rgba(49, 214, 161, 0.14), var(--soft-shadow);
}

.search-prefix, .search-suffix {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(49, 214, 161, 0.10);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.global-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  width: min(430px, 92vw);
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 19, 25, 0.98);
  box-shadow: var(--shadow);
}

.global-search-results[hidden] {
  display: none;
}

.global-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 8px;
  text-align: left;
}

.global-result:hover, .global-result:focus {
  border-color: rgba(49, 214, 161, 0.32);
  background: rgba(49, 214, 161, 0.08);
  outline: none;
}

.global-result span {
  display: grid;
  min-width: 0;
}

.global-result strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-result small, .global-result em, .global-result-empty {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.global-result-empty {
  padding: 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
}

h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1, h2 { font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif; }
h1 { font-size: 1.45rem; line-height: 1.08; }
h2 { font-size: 1.45rem; line-height: 1.12; }
h3 { font-size: 1rem; line-height: 1.2; }

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.status-strip span, .row-note {
  color: var(--muted);
  font-size: 12px;
}

.status-strip strong {
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status-strip strong[data-state="fresh"] { color: var(--green); }
.status-strip strong[data-state="lagging"] { color: var(--amber); }
.status-strip strong[data-state="stale"] { color: var(--red); }

.status-strip button, .seg, .lookup button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
}

.seg.compact {
  padding-inline: 8px;
  min-width: 42px;
}

.range-apply {
  border: 1px solid var(--line);
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
}

.status-strip button:hover, .seg:hover, .lookup button:hover, .range-apply:hover {
  border-color: var(--line-strong);
  box-shadow: var(--soft-shadow);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  overflow-x: auto;
  position: sticky;
  top: 92px;
  z-index: 35;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 18, 0.84);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--soft-shadow);
}

.tabs button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(14, 20, 26, 0.78);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 126px;
  text-align: left;
  font-weight: 700;
}

.tabs button em,
.tabs button span,
.tabs button small {
  display: block;
}

.tabs button em {
  grid-row: span 2;
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
}

.tabs button span {
  color: var(--ink);
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
}

.tabs button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.tabs button.active, .seg.active {
  color: var(--ink);
  border-color: rgba(49, 214, 161, 0.58);
  background: linear-gradient(180deg, rgba(49, 214, 161, 0.16), rgba(18, 24, 32, 0.96));
  box-shadow: 0 8px 24px rgba(49, 214, 161, 0.10);
}

#app-main {
  min-width: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.time-control-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  max-width: 980px;
}

.explorer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.range-presets, .interval-presets, .custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.custom-range {
  padding-left: 4px;
}

.range-field {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.range-field input {
  width: 172px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: var(--paper);
  color: var(--ink);
}

.range-summary-pill {
  max-width: 100%;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 32, 0.72);
  padding: 7px 9px;
  overflow-wrap: anywhere;
}

.view-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-band, .insight-band, .data-card, .chart-card, .detail-pane, .asset-rail, .account-detail, .asset-summary, .network-context, .component-toolbar, .account-ledger-strip, .leader-lane, .account-desk, .account-market-card, .performance-panel {
  background:
    linear-gradient(145deg, rgba(71, 242, 180, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(18, 26, 35, 0.97), rgba(9, 14, 20, 0.97));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-band {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid rgba(49, 214, 161, 0.28);
}

.hero-band h2 {
  max-width: 720px;
}

.hero-copy {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-note {
  align-self: center;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: right;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(560px, 100%);
}

.live-fees-widget {
  flex: 1 1 180px;
  min-height: 88px;
  display: grid;
  align-content: space-between;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(71, 242, 180, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(71, 242, 180, 0.24), transparent 90px),
    linear-gradient(180deg, rgba(16, 30, 33, 0.98), rgba(6, 10, 14, 0.98));
  box-shadow: inset 0 0 0 1px rgba(71, 242, 180, 0.08), 0 18px 34px rgba(71, 242, 180, 0.08);
}

.live-fees-widget > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-fees-widget strong {
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
}

.live-fees-widget small {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.network-hero .hero-metrics {
  flex: 0 1 620px;
}

.metric-strip, .asset-summary, .exposure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exposure-strip {
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 32, 0.76);
}

.exposure-strip .kpi {
  min-height: 66px;
}

.exposure-strip p {
  flex: 1 1 320px;
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  max-width: 760px;
}

.network-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.network-context strong {
  color: var(--ink);
}

.product-path {
  align-items: stretch;
}

.product-path span {
  display: grid;
  gap: 2px;
  flex: 1 1 210px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(49, 214, 161, 0.06);
}

.component-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.component-toolbar .time-control-panel {
  max-width: 780px;
}

.kpi {
  flex: 1 1 150px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}

.statement-panel {
  flex: 0 1 310px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at 20% 0, rgba(49, 214, 161, 0.20), transparent 150px), var(--graphite);
  color: #f4fbf7;
}

.statement-panel span,
.statement-panel small {
  color: rgba(244, 251, 247, 0.70);
  font-size: 12px;
}

.statement-panel strong {
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.55rem;
}

.account-ledger-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding: 10px;
}

.ledger-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 33, 42, 0.96), rgba(14, 20, 26, 0.96));
}

.ledger-metric > span,
.ledger-metric > small {
  display: none;
}

.ledger-metric strong {
  display: block;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.vault-strip .ledger-metric > span,
.vault-strip .ledger-metric > small,
.vault-detail-strip .ledger-metric > span,
.vault-detail-strip .ledger-metric > small {
  display: block;
}

.asset-map-strip .ledger-metric > span,
.asset-map-strip .ledger-metric > small {
  display: block;
}

.account-statement {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 2fr);
  gap: 10px;
  margin: 12px 0;
}

.leader-lane {
  padding: 12px;
}

.leader-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.leader-lane-head > span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.leader-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.leader-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 33, 42, 0.96), rgba(14, 20, 26, 0.96));
  text-align: left;
}

.leader-card:hover,
.leader-card:focus {
  border-color: rgba(49, 214, 161, 0.58);
  box-shadow: var(--soft-shadow);
  outline: none;
}

.leader-rank {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.leader-identity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.leader-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.leader-card strong {
  overflow-wrap: anywhere;
}

.statement-primary {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: var(--graphite);
  color: #f4fbf7;
}

.statement-primary span,
.statement-primary small {
  color: rgba(244, 251, 247, 0.72);
  font-size: 12px;
}

.statement-primary strong {
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.7rem;
}

.statement-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.account-desk {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 12px;
}

.account-market-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
  min-width: 0;
}

.account-market-card.primary {
  background:
    linear-gradient(135deg, rgba(49, 214, 161, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(18, 24, 32, 0.98), rgba(8, 11, 15, 0.98));
}

.market-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.market-card-head span,
.market-tile span,
.performance-row span,
.account-split small {
  color: var(--muted);
  font-size: 12px;
}

.market-card-head strong {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.desk-value {
  display: grid;
  gap: 2px;
}

.desk-value strong {
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.desk-value span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.account-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 9, 12, 0.34);
}

.market-tile strong {
  overflow-wrap: anywhere;
}

.performance-panel {
  padding: 12px;
}

.performance-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.performance-head h3 {
  font-size: 0.92rem;
}

.performance-head .time-control-panel {
  max-width: 100%;
}

.performance-grid {
  display: grid;
  gap: 8px;
}

.performance-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 9, 12, 0.28);
}

.performance-row strong {
  text-align: right;
}

.performance-meter {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(237, 246, 241, 0.08);
  overflow: hidden;
}

.performance-meter i {
  display: block;
  width: min(100%, max(4%, var(--w, 0%)));
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.performance-row.neg .performance-meter i { background: var(--red); }
.performance-row.neutral .performance-meter i { background: var(--muted); }

.account-query-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(6, 9, 12, 0.22);
}

.account-query-empty strong {
  color: var(--ink);
}

.account-query-empty > span {
  display: grid;
  gap: 4px;
}

.account-query-empty small {
  display: block;
  line-height: 1.35;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.kpi strong {
  display: block;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.kpi-code strong {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-lane {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.chart-lane > .chart-card, .network-chart-grid > .chart-card {
  flex: 1 1 0;
  min-width: 0;
}

.network-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 4px 2px 0;
}

.comparison-head span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: right;
}

.asset-chart-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.asset-chart-stack > .chart-card {
  width: 100%;
  min-width: 0;
}

.chart-card {
  padding: 12px;
  min-width: 0;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  min-width: 0;
}

.chart-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chart-head span {
  color: var(--muted);
  font-size: 12px;
}

.chart-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  max-width: min(620px, 100%);
  min-width: 0;
}

.chart-control-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.chart-scope {
  max-width: 100%;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  text-align: right;
}

.chart-intervals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.chart-reset {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 800;
}

.chart-reset:hover {
  border-color: rgba(242, 179, 94, 0.34);
  color: var(--blue);
}

.chart-zoom {
  min-width: 32px;
}

.chart-card.chart-refreshing .pro-chart,
.chart-card.chart-refreshing .night-chart {
  opacity: 0.62;
  transform: scale(0.992);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.market-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.pro-chart {
  width: 100%;
  height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.night-chart {
  width: 100%;
  height: 420px;
  min-height: 420px;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--graphite);
  contain: size layout paint;
  position: relative;
}

.night-chart.with-indicators {
  height: 560px;
  min-height: 560px;
  max-height: 560px;
}

.chart-empty {
  display: grid;
  place-content: center;
  gap: 6px;
  height: 100%;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.chart-empty-title {
  color: var(--ink);
  font-weight: 800;
}

.chart-empty-detail {
  max-width: 560px;
  line-height: 1.4;
  font-size: 13px;
}

.chart-footnote {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.insight-band {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.insight-band > div:first-child {
  flex: 0 0 180px;
}

.rank-bars {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.rank-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px;
}

.rank-bar {
  display: grid;
  grid-template-columns: auto minmax(110px, 160px) minmax(120px, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.rank-bar strong {
  color: var(--ink);
  text-align: right;
}

.rank-bar > span:not(.meter) {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rank-bar > span:not(.meter) strong {
  text-align: left;
}

.rank-bar small, .asset-row small, .subtle-label {
  color: var(--muted);
  font-size: 12px;
}

.meter {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.meter.blue i { background: var(--blue); }

.asset-workbench {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.asset-rail {
  width: 330px;
  padding: 10px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  flex: 0 0 330px;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.asset-rail-head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.asset-rail-head strong {
  color: var(--ink);
  font-weight: 850;
}

.asset-rail-head span {
  color: var(--muted);
  font-size: 12px;
}

.asset-list-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.asset-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 14px 12px;
  text-align: center;
}

.asset-row {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}

.asset-row.active {
  border-color: rgba(49, 214, 161, 0.56);
  box-shadow: 0 0 0 2px rgba(49, 214, 161, 0.10);
}

.asset-row-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.asset-row-main > span {
  display: grid;
  min-width: 0;
}

.asset-row em {
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.asset-row small {
  color: var(--muted);
  font-size: 12px;
}

.detail-pane, .account-detail {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.detail-title, .card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.detail-title {
  align-items: flex-start;
}

.card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 720px;
}

.title-with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-identity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  max-width: 900px;
}

.identity-actions .code {
  max-width: min(620px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-action {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 3px 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.detail-title span, .card-head span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.data-card {
  padding: 12px;
  min-width: 0;
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.table-filter-wrap {
  position: relative;
  width: min(320px, 100%);
}

.table-filter {
  max-width: 320px;
  padding-right: 56px;
}

.clear-filter {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.95);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.clear-filter:hover {
  color: var(--ink);
  background: #e2e8f0;
}

.table-export, .table-clear-all, .page-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.table-export:hover, .table-clear-all:hover, .page-btn:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--blue);
}

.table-clear-all {
  color: var(--red);
}

.table-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.page-btn {
  min-width: 56px;
  color: var(--ink);
}

.page-btn:disabled {
  cursor: default;
  opacity: 0.42;
}

.panel-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.table-scroll-hint {
  display: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  position: relative;
}

.table-wrap:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: min(860px, 100%);
  border-collapse: collapse;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

td {
  background: var(--paper);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--paper);
  box-shadow: 1px 0 0 var(--line);
}

th:first-child {
  z-index: 3;
  background: var(--paper-2);
}

tr:last-child td { border-bottom: none; }

.table-empty-cell {
  color: var(--muted);
  padding: 22px 16px;
  white-space: normal;
}

.table-empty-title {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 4px;
}

.table-empty-detail {
  display: block;
  max-width: 560px;
  line-height: 1.4;
}

.cell-num {
  text-align: right;
}

.cell-code {
  max-width: 260px;
}

.sort-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-transform: inherit;
  font-size: inherit;
  font-weight: 800;
  text-align: left;
}

.sort-head.active {
  color: var(--blue);
}

.num {
  font-variant-numeric: tabular-nums;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.code-chip .code, .account-chip .code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-code {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  position: relative;
}

.action-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-action[data-copied="true"] {
  border-color: rgba(112, 211, 164, 0.52);
  color: var(--green);
}

.copy-code:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.external-link {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--green);
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.external-link.icon-action {
  padding: 0;
}

.external-link:hover {
  border-color: rgba(49, 214, 161, 0.25);
  background: rgba(49, 214, 161, 0.07);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.account-chip .copy-code,
.account-chip .external-link,
.code-chip .copy-code,
.code-chip .external-link {
  opacity: 0.54;
}

.account-chip:hover .copy-code,
.account-chip:hover .external-link,
.account-chip:focus-within .copy-code,
.account-chip:focus-within .external-link,
.code-chip:hover .copy-code,
.code-chip:hover .external-link,
.code-chip:focus-within .copy-code,
.code-chip:focus-within .external-link {
  opacity: 1;
}

.account-cell {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.account-cell .account-link {
  display: grid;
  gap: 1px;
  text-align: left;
}

.account-cell strong {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.account-cell small {
  color: var(--muted);
  font-size: 11px;
}

.account-link {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 32, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.badge.long { color: var(--green); }
.badge.short { color: var(--red); }
.badge.market-perp { color: var(--blue); }
.badge.market-spot { color: var(--green); }
.badge.market-lend, .badge.lend { color: var(--violet); }
.badge.aggregate { border-style: dashed; background: rgba(183, 148, 255, 0.08); }
.badge.borrow { color: var(--amber); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--muted); }

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(6, 9, 12, 0.92);
  color: var(--ink);
}

.input:focus {
  outline: 2px solid rgba(49, 214, 161, 0.18);
  border-color: rgba(49, 214, 161, 0.55);
}

.lookup {
  display: flex;
  gap: 8px;
  min-width: min(480px, 100%);
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 850;
}

.link-button:hover,
.link-button:focus {
  color: var(--blue);
  outline: none;
}

.asset-link span, .vault-link span {
  color: inherit;
}

.asset-logo {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, hsl(var(--h), 75%, 45%), hsl(calc(var(--h) + 42), 72%, 39%));
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  flex: 0 0 auto;
}

.asset-logo.image {
  padding: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.asset-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-logo.stable {
  background: linear-gradient(135deg, #35241d, #e7bd74);
}

.asset-logo.fiat {
  background: linear-gradient(135deg, #2b1b15, #d98a45);
}

.asset-logo.market {
  background: linear-gradient(135deg, hsl(var(--h), 75%, 44%), hsl(calc(var(--h) + 92), 75%, 42%));
}

.asset-logo.lg {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(var(--h), 72%, 94%), hsl(calc(var(--h) + 64), 72%, 88%));
  border: 1px solid hsla(var(--h), 58%, 42%, 0.28);
  color: hsl(var(--h), 72%, 34%);
  overflow: hidden;
  flex: 0 0 auto;
}

.account-avatar svg {
  width: 78%;
  height: 78%;
  fill: currentColor;
}

.account-avatar.lg {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.loading, .empty {
  border: 1px solid var(--line);
  background: rgba(18, 24, 32, 0.78);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.loading small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.loading-pulse {
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: var(--blue);
  animation: pulse-bar 1.1s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 0.35; transform: scaleY(0.55); }
  50% { opacity: 1; transform: scaleY(1); }
}

.error { color: var(--red); }

/* 2026 product shell overhaul */
:root {
  --bg: #05070c;
  --bg-2: #0a1019;
  --paper: #101824;
  --paper-2: #151f2d;
  --paper-3: #1c2b3d;
  --ink: #f3f8ff;
  --muted: #93a4b8;
  --line: rgba(151, 174, 203, 0.16);
  --line-strong: rgba(151, 174, 203, 0.34);
  --green: #27d6a7;
  --blue: #45b9ff;
  --violet: #9b7bff;
  --amber: #ffb35c;
  --red: #ff6e7a;
  --graphite: #060a11;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

body,
button,
input,
select,
textarea,
.eyebrow,
.tabs button,
.search-prefix,
.search-suffix {
  letter-spacing: 0;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #060810 0%, #09111c 42%, #06070c 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.app-shell {
  max-width: 1760px;
  gap: 18px;
  padding: 18px 22px 42px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(17, 26, 39, 0.96), rgba(8, 12, 19, 0.94)),
    var(--paper);
  border-color: rgba(151, 174, 203, 0.20);
}

.brand-lockup {
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.14);
}

.brand-subtitle {
  max-width: 360px;
  color: #93a4b8;
}

.header-tools {
  flex: none;
  min-width: 0;
  justify-content: flex-end;
}

.global-search {
  width: min(860px, 100%);
  min-width: 0;
  min-height: 58px;
  border-radius: 18px;
  border-color: rgba(69, 185, 255, 0.30);
  background: linear-gradient(180deg, rgba(18, 28, 42, 0.96), rgba(9, 14, 22, 0.96));
}

.global-search:focus-within {
  border-color: rgba(39, 214, 167, 0.72);
  box-shadow: 0 0 0 4px rgba(39, 214, 167, 0.12), var(--soft-shadow);
}

.search-prefix,
.search-suffix {
  min-height: 34px;
  border-radius: 12px;
  background: rgba(69, 185, 255, 0.10);
  color: #c2d1e2;
}

.tabs {
  position: sticky;
  top: 96px;
  z-index: 35;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(7, 10, 16, 0.78);
  border-color: rgba(151, 174, 203, 0.14);
}

.tabs button {
  min-width: 142px;
  min-height: 54px;
  border-radius: 14px;
  background: rgba(16, 24, 36, 0.74);
  border-color: rgba(151, 174, 203, 0.14);
  color: #aebfd2;
}

.tabs button.active,
.seg.active {
  border-color: rgba(39, 214, 167, 0.62);
  background:
    linear-gradient(120deg, rgba(39, 214, 167, 0.22), rgba(69, 185, 255, 0.12)),
    rgba(14, 22, 33, 0.96);
  box-shadow: inset 0 0 0 1px rgba(39, 214, 167, 0.10), 0 14px 32px rgba(39, 214, 167, 0.10);
}

.section-head {
  padding: 8px 2px 0;
}

.section-head h2 {
  font-size: 1.65rem;
}

.hero-band,
.insight-band,
.data-card,
.chart-card,
.detail-pane,
.asset-rail,
.account-detail,
.asset-summary,
.network-context,
.component-toolbar,
.account-ledger-strip,
.leader-lane,
.account-desk,
.account-market-card,
.performance-panel {
  border-radius: 18px;
  border-color: rgba(151, 174, 203, 0.15);
  background:
    linear-gradient(180deg, rgba(20, 31, 46, 0.96), rgba(9, 14, 22, 0.96)),
    var(--paper);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(39, 214, 167, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(39, 214, 167, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(15, 24, 37, 0.98), rgba(6, 10, 16, 0.98));
  box-shadow: var(--shadow);
}

.landing-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.landing-copy h2 {
  max-width: 920px;
  font-size: 2.35rem;
  line-height: 1.02;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.primary-action,
.secondary-action {
  border-radius: 14px;
  padding: 12px 15px;
  font-weight: 850;
}

.primary-action {
  border: 1px solid rgba(39, 214, 167, 0.60);
  background: linear-gradient(120deg, rgba(39, 214, 167, 0.95), rgba(69, 185, 255, 0.82));
  color: #031016;
}

.secondary-action {
  border: 1px solid rgba(151, 174, 203, 0.24);
  background: rgba(16, 24, 36, 0.86);
  color: var(--ink);
}

.landing-hero-panel {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(69, 185, 255, 0.25);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(69, 185, 255, 0.12), rgba(6, 10, 16, 0.82)),
    rgba(11, 18, 29, 0.92);
}

.landing-hero-panel span,
.landing-hero-panel small {
  color: var(--muted);
}

.landing-hero-panel strong {
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
}

.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-tile {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(151, 174, 203, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 28, 42, 0.96), rgba(9, 14, 22, 0.96));
}

.stat-tile span,
.stat-tile small {
  color: var(--muted);
  font-size: 12px;
}

.stat-tile strong {
  color: var(--ink);
  font-family: "Space Grotesk", "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.stat-tile.primary { border-color: rgba(39, 214, 167, 0.34); }
.stat-tile.long { border-color: rgba(69, 185, 255, 0.28); }
.stat-tile.short { border-color: rgba(255, 110, 122, 0.30); }

.perp-market-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.perp-market-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(151, 174, 203, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 26, 39, 0.98), rgba(8, 12, 19, 0.98));
  color: var(--ink);
  text-align: left;
}

.perp-market-card:hover,
.perp-market-card:focus {
  border-color: rgba(39, 214, 167, 0.54);
  transform: translateY(-1px);
  outline: none;
}

.perp-market-main,
.market-foot,
.market-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.perp-market-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-foot {
  justify-content: space-between;
  color: var(--muted);
}

.market-metrics {
  justify-content: space-between;
}

.market-metrics em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.position-foot .pos { color: var(--green); }
.position-foot .neg { color: var(--red); }

.section-split-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 4px 2px;
}

.section-split-head > span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-align: right;
}

.overview-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-card {
  padding: 15px;
}

.card-head h3,
.chart-head h3 {
  font-size: 1.05rem;
}

.table-tools {
  margin-top: 12px;
  padding: 9px;
  border: 1px solid rgba(151, 174, 203, 0.12);
  border-radius: 14px;
  background: rgba(6, 10, 16, 0.46);
}

.input,
.range-field input {
  border-radius: 12px;
  background: rgba(6, 10, 16, 0.70);
  border-color: rgba(151, 174, 203, 0.18);
}

.table-wrap {
  border-radius: 15px;
  background: rgba(6, 10, 16, 0.64);
}

th {
  background: #131d2a;
}

td,
th:first-child,
td:first-child {
  background: #0d1520;
}

tbody tr:hover td {
  background: #121d2b;
}

.meter.red i {
  background: var(--red);
}

@media (max-width: 1180px) {
  .landing-hero,
  .overview-chart-grid,
  .overview-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .hero-band, .insight-band, .chart-lane, .asset-workbench {
    flex-direction: column;
  }
  .component-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .account-statement {
    grid-template-columns: 1fr;
  }
  .account-desk {
    grid-template-columns: 1fr;
  }
  .statement-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .leader-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insight-band {
    align-items: stretch;
  }
  .asset-workbench {
    align-items: stretch;
  }
  .insight-band > div:first-child {
    flex-basis: auto;
  }
  .rank-bars {
    width: 100%;
  }
  .network-chart-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    justify-content: flex-start;
    min-width: 0;
  }
  .asset-rail {
    order: 2;
    width: 100%;
    flex-basis: auto;
    position: static;
    max-height: none;
  }
  .detail-pane {
    order: 1;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px;
  }
  .topbar, .section-head, .chart-head {
    align-items: stretch;
    flex-direction: column;
  }
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    position: static;
  }
  .landing-hero {
    padding: 16px;
  }
  .landing-copy h2 {
    font-size: 1.65rem;
  }
  .landing-hero-panel {
    min-height: 150px;
  }
  .section-split-head {
    align-items: stretch;
    flex-direction: column;
  }
  .section-split-head > span {
    text-align: left;
  }
  .perp-market-strip {
    grid-template-columns: 1fr;
  }
  .header-tools {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }
  .global-search {
    min-width: 0;
    width: 100%;
  }
  .global-search-results {
    left: 0;
    right: auto;
    width: 100%;
  }
  .status-strip, .control-row, .chart-tools, .chart-control-group, .chart-intervals, .market-switcher { justify-content: flex-start; }
  .chart-tools,
  .chart-control-group,
  .chart-intervals,
  .market-switcher {
    width: 100%;
    max-width: 100%;
  }
  .chart-scope {
    width: 100%;
    text-align: left;
  }
  .tabs {
    display: flex;
    flex-wrap: wrap;
    position: static;
  }
  .tabs button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
  .account-ledger-strip,
  .statement-breakdown,
  .account-split,
  .leader-card-grid {
    grid-template-columns: 1fr;
  }
  .performance-head {
    align-items: stretch;
    flex-direction: column;
  }
  .performance-row {
    grid-template-columns: 1fr;
  }
  .performance-row strong {
    text-align: left;
  }
  .search-prefix, .search-suffix {
    display: none;
  }
  .time-control-panel {
    justify-content: flex-start;
  }
  .range-field, .range-field input {
    width: 100%;
  }
  .custom-range {
    width: 100%;
  }
  .lookup {
    flex-direction: column;
    width: 100%;
  }
  .lookup button {
    width: fit-content;
  }
  .table-scroll-hint {
    display: block;
  }
  .table-tools > *,
  .table-filter-wrap,
  .table-filter,
  .table-export,
  .table-clear-all {
    width: 100%;
    max-width: 100%;
  }
  .table-pagination {
    margin-left: 0;
    justify-content: space-between;
  }
  .rank-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rank-bar .meter, .rank-bar > strong {
    grid-column: 1 / -1;
  }
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.1rem; }
}

/* Worldalytics Lightalytics layout port */
:root {
  --bg: #120c0a;
  --bg-2: #1b120f;
  --paper: #1b1411;
  --paper-2: #241917;
  --paper-3: #35241d;
  --ink: #f5ede2;
  --muted: rgba(245, 237, 226, 0.72);
  --line: rgba(245, 237, 226, 0.11);
  --line-strong: rgba(242, 179, 94, 0.42);
  --green: #70d3a4;
  --red: #f0716a;
  --blue: #e3a066;
  --violet: #c27a5a;
  --amber: #f2b35e;
  --mint: #e7bd74;
  --graphite: #070504;
  --accent: #f2b35e;
  --accent2: #d66a4b;
  --accent3: #f0d38a;
  --card: #1b1411;
  --surface: #261b17;
  --border: rgba(245, 237, 226, 0.11);
  --ivory: #fff0df;
  --font-base: "Work Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-deco: "Space Grotesk", Inter, system-ui, sans-serif;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.58), 0 0 18px rgba(242, 179, 94, 0.10);
  --soft-shadow: 0 10px 28px rgba(0, 0, 0, 0.48), 0 0 10px rgba(214, 106, 75, 0.10);
  --ring: 0 0 0 3px rgba(242, 179, 94, 0.22);
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font: 14px/1.55 var(--font-base);
  background:
    radial-gradient(110% 90% at 16% -8%, rgba(242, 179, 94, 0.16), transparent 54%),
    radial-gradient(95% 80% at 92% 4%, rgba(214, 106, 75, 0.13), transparent 58%),
    linear-gradient(135deg, #100906 0%, #1a100d 45%, #070504 100%);
  position: relative;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  filter: none;
}

.app-shell.container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  margin-bottom: 8px;
  padding: 18px 22px;
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.88), rgba(16, 24, 39, 0.54));
  box-shadow: var(--soft-shadow);
  backdrop-filter: saturate(140%) blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 160% at -10% -20%, rgba(242, 179, 94, 0.18), transparent 55%);
  opacity: 0.65;
}

.brand-block {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 16px;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.brand-block:hover,
.brand-block:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.42);
  outline: none;
}

.brand-logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(242, 179, 94, 0.28));
}

.brand-mark {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.25;
}

.brand-title {
  color: var(--ink);
  font-family: var(--font-deco);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tagline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-tools {
  position: relative;
  z-index: 65;
  flex: 1 1 auto;
  min-width: 260px;
  justify-content: flex-end;
}

.global-search.searchbar {
  width: min(760px, 100%);
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid rgba(228, 240, 245, 0.16);
  background: transparent;
  box-shadow: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.18s ease;
}

.global-search.searchbar:focus-within {
  border-color: rgba(228, 240, 245, 0.25);
  background: rgba(10, 20, 36, 0.42);
  box-shadow: none;
}

.global-search input {
  color: var(--ink);
  padding: 8px 6px;
  font-size: 17px;
  line-height: 1.5;
  width: 100%;
}

.global-search input::placeholder {
  color: rgba(228, 240, 245, 0.68);
}

.search-prefix,
.search-suffix,
.range-summary-pill,
.chart-scope,
.metric-tag {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(242, 179, 94, 0.08);
  color: rgba(228, 240, 245, 0.78);
  letter-spacing: 0.08em;
}

.global-search-results {
  width: min(620px, 92vw);
  top: calc(100% + 12px);
  border: 1px solid rgba(228, 240, 245, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 24, 42, 0.97), rgba(7, 16, 28, 0.97));
  box-shadow: 0 26px 60px rgba(4, 10, 22, 0.65);
  backdrop-filter: blur(20px);
}

.global-result {
  border-radius: 12px;
  padding: 12px 14px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.global-result:hover,
.global-result:focus {
  border-color: transparent;
  background: rgba(242, 179, 94, 0.12);
  box-shadow: 0 8px 24px rgba(242, 179, 94, 0.08);
  transform: translateY(-1px);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  position: relative;
  top: auto;
  z-index: 20;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  transition: transform 0.14s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tabs button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.tabs button.active,
.seg.active {
  border-color: rgba(242, 179, 94, 0.55);
  background: linear-gradient(90deg, rgba(242, 179, 94, 0.22), rgba(214, 106, 75, 0.22));
  box-shadow: 0 0 0 1px rgba(242, 179, 94, 0.20) inset;
}

.tabs button em {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.tabs button span {
  color: inherit;
  font-family: var(--font-base);
}

.topbar.topbar-with-search {
  flex-wrap: wrap;
  gap: 16px 22px;
}

.topbar .header-tools {
  flex: 1 1 540px;
}

.topbar .tabs {
  order: 3;
  flex: 1 0 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
h2,
h3,
.section-title,
.card-head h3,
.chart-head h3,
.detail-title h3 {
  font-family: var(--font-deco);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.10em;
}

.section-head {
  position: relative;
  z-index: 2;
  align-items: baseline;
  padding: 0;
  margin: 2px 0 6px;
}

.section-head h2 {
  color: var(--ivory);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(242, 179, 94, 0.18);
}

.view-content {
  gap: 20px;
}

.card,
.hero-band,
.insight-band,
.data-card,
.chart-card,
.detail-pane,
.asset-rail,
.account-detail,
.asset-summary,
.network-context,
.component-toolbar,
.account-ledger-strip,
.leader-lane,
.account-desk,
.account-market-card,
.performance-panel,
.perp-market-card,
.ledger-metric,
.statement-panel,
.statement-primary,
.market-tile,
.leader-card,
.rank-bar {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card::before,
.card::after,
.data-card::before,
.data-card::after,
.chart-card::before,
.chart-card::after,
.insight-band::before,
.insight-band::after,
.detail-pane::before,
.detail-pane::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 179, 94, 0.35), transparent);
  pointer-events: none;
}

.card::before,
.data-card::before,
.chart-card::before,
.insight-band::before,
.detail-pane::before {
  top: 10px;
}

.card::after,
.data-card::after,
.chart-card::after,
.insight-band::after,
.detail-pane::after {
  bottom: 10px;
}

.card:hover,
.data-card:hover,
.chart-card:hover,
.perp-market-card:hover,
.leader-card:hover,
.rank-bar:hover,
.asset-row:hover {
  border-color: rgba(242, 179, 94, 0.30);
}

.card-pop {
  animation: pop 0.28s ease;
}

@keyframes pop {
  from { transform: scale(0.985); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reveal.reveal-visible {
  animation: revealIn 0.42s ease forwards;
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-band {
  padding: 24px 30px;
  border-radius: 28px;
  background:
    radial-gradient(140% 120% at 20% 15%, rgba(242, 179, 94, 0.20) 0%, rgba(242, 179, 94, 0) 60%),
    radial-gradient(125% 115% at 86% 12%, rgba(214, 106, 75, 0.15) 0%, rgba(214, 106, 75, 0) 66%),
    linear-gradient(140deg, rgba(10, 19, 35, 0.97), rgba(6, 14, 24, 0.92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(242, 179, 94, 0.08) inset;
}

.kpi,
.ledger-metric,
.stat-tile,
.asset-row,
.market-tile,
.table-tools,
.table-filter,
.input,
.range-field input,
.select {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(11, 19, 34, 0.76);
  color: var(--ink);
}

.kpi strong,
.ledger-metric strong,
.stat-tile strong,
.desk-value strong,
.statement-primary strong,
.statement-panel strong {
  font-family: var(--font-deco);
  color: var(--ivory);
}

.kpi span,
.ledger-metric span,
.ledger-metric small,
.stat-tile span,
.stat-tile small,
.chart-head span,
.card-head p,
.detail-title span,
.card-head span,
.row-note,
.subtle-label {
  color: var(--muted);
}

.chart-card,
.data-card,
.detail-pane,
.asset-rail,
.account-detail {
  padding: 16px;
}

.card-head h3,
.chart-head h3 {
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-head h3::after,
.chart-head h3::after,
.detail-title h3::after {
  content: "";
  display: block;
  width: 40%;
  min-width: 72px;
  height: 2px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.seg,
.status-strip button,
.lookup button,
.table-export,
.table-clear-all,
.page-btn,
.chart-reset,
.mini-action,
.range-apply,
.clear-filter {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  color: var(--ink);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.seg:hover,
.status-strip button:hover,
.lookup button:hover,
.table-export:hover,
.table-clear-all:hover,
.page-btn:hover:not(:disabled),
.chart-reset:hover,
.mini-action:hover,
.range-apply:hover,
.clear-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 179, 94, 0.45);
  box-shadow: none;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  background: rgba(6, 12, 24, 0.52);
}

.table-filter-wrap {
  flex: 1 1 280px;
}

.table-wrap {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 13, 24, 0.72);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
  font-family: var(--font-deco);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

td,
th:first-child,
td:first-child {
  background: transparent;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover td {
  background: rgba(148, 163, 184, 0.08);
}

.sort-head {
  color: var(--ink);
}

.cell-code,
.cell-num,
.num,
.code,
.chart-scope,
.table-pagination,
.asset-symbol,
.position-rank {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-feature-settings: "tnum" 1;
}

.chart-wrap,
.pro-chart,
.night-chart {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.pro-chart {
  height: 320px;
}

.meter,
.metric-bar,
.performance-meter {
  background: rgba(148, 163, 184, 0.12);
}

.meter i,
.performance-meter i {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(242, 179, 94, 0.22);
}

.meter.blue i {
  background: linear-gradient(90deg, var(--accent3), var(--accent2));
}

.green,
.pos,
.status-strip strong[data-state="fresh"] {
  color: var(--green);
}

.red,
.neg,
.num.negative {
  color: var(--red);
}

.num.positive {
  color: var(--green);
}

.rank-bar {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.90);
  animation: hero-suggestion-rise 0.38s cubic-bezier(0.32, 0.67, 0.24, 0.99) both;
}

@keyframes hero-suggestion-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rank-bar:nth-child(1) { animation-delay: 0ms; }
.rank-bar:nth-child(2) { animation-delay: 70ms; }
.rank-bar:nth-child(3) { animation-delay: 120ms; }
.rank-bar:nth-child(4) { animation-delay: 170ms; }
.rank-bar:nth-child(5) { animation-delay: 220ms; }
.rank-bar:nth-child(6) { animation-delay: 270ms; }

.asset-logo,
.account-avatar,
.asset-logo-wrap {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.20);
}

.loading {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(185deg, rgba(10, 22, 36, 0.74), rgba(6, 14, 26, 0.70));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.loading-pulse {
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  animation: pulse-bar 1.1s ease-in-out infinite;
}

.contact-overlay {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 12, 10, 0.48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  opacity: 0.62;
  backdrop-filter: blur(12px);
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.contact-overlay a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.contact-overlay svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.contact-overlay:hover,
.contact-overlay:focus-within {
  border-color: rgba(242, 179, 94, 0.22);
  background: rgba(18, 12, 10, 0.72);
  opacity: 1;
}

.contact-overlay a:hover,
.contact-overlay a:focus-visible {
  background: rgba(242, 179, 94, 0.10);
  color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 960px) {
  .topbar,
  .topbar-with-search {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .header-tools,
  .global-search.searchbar {
    width: 100%;
  }

  .topbar .header-tools,
  .topbar .tabs {
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  .app-shell.container {
    padding: 20px 16px 34px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .brand-title {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .tabs {
    flex-wrap: wrap;
    position: relative;
  }

  .tabs button {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .table-tools,
  .chart-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-overlay {
    right: 12px;
    bottom: 12px;
  }
}
