:root {
  --bg: #08111f;
  --panel: #101b2c;
  --panel-2: #142239;
  --line: #25344d;
  --text: #eef5ff;
  --muted: #91a3ba;
  --blue: #3aa0ff;
  --green: #38d98b;
  --yellow: #f4c95d;
  --red: #ff6b6b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #0b1627;
  border-left: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--yellow);
  color: #161200;
  font-weight: 900;
}

.brand h1,
.brand p,
.brand-title-row,
.topbar h2,
.topbar p,
.panel h3 {
  margin: 0;
}

.brand-body {
  min-width: 0;
  flex: 1;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand h1 {
  font-size: 18px;
}

.brand p,
.eyebrow,
.panel-head span,
.metrics small,
.metrics span,
.sidebar-card span,
.sidebar-card small {
  color: var(--muted);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 217, 139, 0.14);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.market-strip {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.market-strip div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1b2e;
}

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

.market-strip strong {
  display: block;
  font-size: 17px;
  color: var(--text);
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  color: #c9d7ea;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
}

nav a.active,
nav a:hover {
  background: #14243b;
  color: var(--text);
}

.sidebar-card {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1b2e;
  display: grid;
  gap: 6px;
}

main {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.topbar,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar h2 {
  font-size: 28px;
}

button {
  border: 1px solid #2f83d8;
  background: #123a61;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #174b7e;
}

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

.metrics article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics article {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.metrics strong {
  font-size: 30px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 18px;
}

.chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding-top: 16px;
}

.bar {
  flex: 1;
  min-width: 6px;
  display: grid;
  align-items: end;
  grid-template-rows: 1fr;
  height: 100%;
  background: #0c1524;
  border-radius: 6px;
  overflow: hidden;
}

.bar span {
  display: block;
  min-height: 2px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.symbol-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.symbol-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel-2);
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

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

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

th {
  color: var(--muted);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #172943;
  color: #cde4ff;
}

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

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

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .metrics,
  .grid-two {
    grid-template-columns: 1fr;
  }
}
