:root {
  --bg: #050505;
  --text: #eeeeeb;
  --muted: #777773;
  --line: #232321;
  --orange: #ff9700;
  --green: #28d990;
  --red: #ff6267;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 70px;
  min-height: 100vh;
}

.site-header {
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.title-block { padding-top: 20px; }
.brand-kicker {
  color: var(--orange);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .03em;
  font-weight: 700;
}
.page-title {
  margin-top: 9px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 400;
}
.bit-logo {
  width: 120px;
  height: 104px;
  object-fit: cover;
  display: block;
}

.accent-rule {
  height: 1px;
  position: relative;
}
.accent-rule span {
  display: block;
  width: 86px;
  height: 1px;
  background: var(--orange);
  position: absolute;
  top: 0;
  left: 0;
}

.positions { width: 100%; }
.position {
  padding: 59px 0 30px;
  border-bottom: 1px solid var(--line);
}
.position + .position { padding-top: 59px; }

.position-top {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 50px;
  align-items: start;
}
.symbol {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.02em;
}
.company {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: .01em;
}
.market-price { padding-top: 6px; }
.metric-label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.market-price .metric-value {
  margin-top: 11px;
  font-size: 22px;
  line-height: 1;
}

.metrics {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.48fr 1.37fr 1.3fr;
  margin-top: 58px;
}
.metric {
  min-width: 0;
  min-height: 60px;
  padding-left: 27px;
  border-left: 1px solid var(--line);
}
.metric:first-child {
  padding-left: 0;
  border-left: 0;
}
.metric .metric-value {
  margin-top: 13px;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}
.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral { color: var(--text); }

.data-status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  color: #53534f;
  margin-top: 77px;
  padding-right: 6px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .03em;
}
.data-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.loading {
  padding: 80px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .page-shell { width: min(100% - 34px, 1180px); padding-top: 22px; }
  .site-header { height: 92px; }
  .title-block { padding-top: 16px; }
  .bit-logo { width: 106px; height: 92px; }
  .position { padding-top: 46px; }
  .position-top { grid-template-columns: 1fr auto; gap: 24px; }
  .symbol { font-size: 33px; }
  .metrics { grid-template-columns: repeat(2, 1fr); margin-top: 42px; row-gap: 25px; }
  .metric { border-left: 0; padding-left: 0; }
  .metric:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .data-status { margin-top: 45px; }
}

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 28px); }
  .brand-kicker { font-size: 10px; }
  .page-title { font-size: 21px; }
  .bit-logo { width: 96px; height: 84px; }
  .site-header { height: 84px; }
  .accent-rule span { width: 68px; }
  .position-top { grid-template-columns: 1fr; }
  .market-price { padding-top: 16px; }
  .market-price .metric-value { font-size: 20px; }
  .metrics { grid-template-columns: 1fr; gap: 0; }
  .metric,
  .metric:nth-child(even) {
    min-height: 0;
    padding: 17px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric:first-child { border-top: 0; }
}
