:root {
  --bg: #080d16;
  --panel: #101827;
  --panel2: #141e2e;
  --line: #263244;
  --text: #e9effa;
  --muted: #91a0b6;
  --green: #23c483;
  --red: #f05267;
  --blue: #5b9bff;
  --gold: #f5c35c
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: radial-gradient(900px 600px at 8% -10%, #18345d55, transparent 60%), var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Malgun Gothic", sans-serif
}

.wrap {
  max-width: 1480px;
  margin: auto;
  padding: 26px 24px 56px
}

.top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px
}

h1 {
  font-size: 25px;
  letter-spacing: -.6px;
  margin: 0
}

.eyebrow {
  color: #68a6ff;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 4px
}

.sub {
  color: var(--muted);
  margin: 5px 0 0
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

button {
  border: 1px solid #344359;
  background: #182336;
  color: var(--text);
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 650;
  cursor: pointer
}

button:hover {
  background: #24334b
}

button.primary {
  background: #2666d9;
  border-color: #3d7aeb
}

button.danger {
  color: #ff8c9a
}

.summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px
}

.metric,
.panel,
.stock-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #111a2a, #0e1522);
  border-radius: 14px;
  box-shadow: 0 14px 30px #02050b30
}

.metric {
  padding: 15px 16px
}

.metric label,
.small-label {
  display: block;
  color: var(--muted);
  font-size: 12px
}

.metric strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.6px;
  margin-top: 5px
}

.positive {
  color: var(--green) !important
}

.negative {
  color: var(--red) !important
}

.panel {
  padding: 17px
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 13px;
  letter-spacing: -.2px
}

.heatmap {
  height: 470px;
  display: flex;
  gap: 7px
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7px;
  color: #fff;
  cursor: default
}

.tile b {
  font-size: 15px;
  letter-spacing: .2px
}

.tile span {
  font-weight: 700;
  font-size: 12px
}

.tile em {
  font-style: normal;
  font-size: 10px;
  opacity: .86
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 0 12px
}

.section-title h2 {
  margin: 0;
  font-size: 18px
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
  gap: 11px
}

.stock-card {
  padding: 14px
}

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

.ticker {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px
}

.name {
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px
}

.returns {
  font-size: 22px;
  font-weight: 800;
  margin: 11px 0 8px
}

.card-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 8px 0 12px
}

.card-numbers div {
  font-size: 11px;
  color: var(--muted)
}

.card-numbers b {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-top: 1px
}

.gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.gauge-title {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between
}

.track {
  height: 6px;
  border-radius: 99px;
  background: #2a3545;
  overflow: visible;
  position: relative
}

.track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5b9bff, #f5c35c, #f05267);
  width: var(--p);
  max-width: 100%
}

.track:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid #dbe9ff;
  background: #101827;
  border-radius: 50%;
  left: calc(var(--p) - 5px);
  top: -2px
}

.table-panel {
  margin-top: 28px;
  overflow: auto
}

.edit-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse
}

.edit-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  padding: 10px 7px;
  border-bottom: 1px solid var(--line)
}

.edit-table td {
  padding: 6px;
  border-bottom: 1px solid #1e2a3a
}

.edit-table input {
  width: 100%;
  min-width: 80px;
  background: #0a111c;
  border: 1px solid #2b3a4f;
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
  font: inherit
}

.edit-table .num {
  min-width: 95px
}

.status {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 0
}

.hidden-num {
  filter: blur(7px);
  user-select: none
}

@media(max-width:920px) {
  .summary {
    grid-template-columns: repeat(3, 1fr)
  }

  .heatmap {
    height: 380px
  }
}

@media(max-width:560px) {
  .wrap {
    padding: 18px 13px 35px
  }

  .top {
    align-items: start;
    flex-direction: column
  }

  .summary {
    grid-template-columns: repeat(2, 1fr)
  }

  .summary .metric:last-child {
    grid-column: span 2
  }

  .metric strong {
    font-size: 18px
  }

  .heatmap {
    height: 330px
  }

  .panel {
    padding: 13px
  }

  .tile b {
    font-size: 12px
  }

  .tile span {
    font-size: 10px
  }
}

.heatmap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #0a111c
}

.tile {
  position: absolute;
  min-width: 0;
  border: 2px solid #0a111c;
  border-radius: 9px;
  padding: 8px;
  line-height: 1.2
}

.tile .tile-name {
  font-size: 11px;
  opacity: .92;
  margin: 3px 0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis
}

.stock-card .up {
  color: #ff5c6d !important
}

.stock-card .down {
  color: #5b9bff !important
}

@media(max-width:560px) {
  .tile .tile-name {
    font-size: 9px
  }
}

.daily-heatmap-panel {
  margin-top: 18px
}

.daily-heatmap {
  position: relative;
  display: block;
  height: 470px;
  overflow: hidden;
  border-radius: 10px;
  background: #0a111c
}

.daily-heatmap .daily-tile {
  position: absolute;
  min-width: 0;
  border: 2px solid #0a111c;
  border-radius: 9px;
  padding: 8px;
  line-height: 1.2;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  cursor: pointer
}

.daily-tile b {
  font-size: 15px;
  letter-spacing: .2px
}

.daily-tile .tile-name {
  font-size: 11px;
  opacity: .92;
  margin: 3px 0;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis
}

.daily-tile span {
  font-weight: 800;
  font-size: 13px
}

.daily-tile em {
  font-style: normal;
  font-size: 10px;
  opacity: .8
}

@media(max-width:920px) {
  .daily-heatmap {
    height: 380px
  }
}

@media(max-width:560px) {
  .daily-heatmap {
    height: 330px
  }

  .daily-tile b {
    font-size: 12px
  }

  .daily-tile span {
    font-size: 10px
  }

  .daily-tile .tile-name {
    font-size: 9px
  }
}

.tile-tooltip {
  position: fixed;
  z-index: 10;
  width: min(250px, calc(100vw - 24px));
  padding: 13px 14px;
  border: 1px solid #455873;
  border-radius: 11px;
  background: #111c2d;
  box-shadow: 0 18px 45px #000a;
  color: var(--text)
}

.tile-tooltip:before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 11px;
  height: 11px;
  background: #111c2d;
  border-left: 1px solid #455873;
  border-top: 1px solid #455873;
  transform: rotate(45deg)
}

.tooltip-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px
}

.tooltip-title span {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  margin-left: 5px
}

.tooltip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px
}

.tooltip-grid div {
  color: var(--muted);
  font-size: 10px
}

.tooltip-grid b {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-top: 1px
}

.tooltip-grid .up {
  color: #ff5c6d
}

.tooltip-grid .down {
  color: #5b9bff
}