.app-shell {
  background: #080b12 url('/reference-assets/star-field.png') center top / 100% auto repeat-y;
}

.balance-card {
  background-image: linear-gradient(132deg, #fb7f65e8 0%, #fa5c59e5 55%, #e94469eb 100%), url('/reference-assets/wallet-surface.png');
  background-size: cover;
  background-position: center;
}

.earth-scene { margin: 24px 0 0; }
.earth-scene-heading { display: flex; align-items: center; justify-content: center; gap: 8px; color: #c8e8f1; }
.earth-scene-heading > img { width: 18px; height: 18px; filter: invert(1); }
.earth-scene-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.earth-scene-tagline { margin: 7px 0 16px; text-align: center; color: #8faebc; font-size: 11px; letter-spacing: 2px; }
.earth-network { padding: 14px 12px 12px; overflow: hidden; border: 1px solid #28404d; border-radius: 10px; background: radial-gradient(ellipse at 50% 45%, #112e3e80, #060c1466 65%); }
.earth-network-stats { display: flex; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.earth-node { display: grid; gap: 7px; min-width: 76px; padding: 0 0 0 9px; border: 0; border-left: 2px solid #62cbd7; background: none; color: #e0f5fa; text-align: left; }
.earth-node:last-child { text-align: right; padding: 0 9px 0 0; border-left: 0; border-right: 2px solid #62cbd7; }
.earth-node > span { color: #97b3c2; font-size: 11px; }
.earth-node > strong { font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.earth-node strong small { margin-left: 5px; color: #9bb7c4; font-size: 10px; font-weight: 400; }
button.earth-node:hover { border-color: #ffab94; }
.rotating-earth { display: block; width: calc(100% + 24px); max-width: none; height: auto; aspect-ratio: 600 / 255; margin: -9px -12px -3px; object-fit: contain; }
.earth-output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.earth-output { min-width: 0; padding: 10px; border: 1px solid #36556480; border-radius: 6px; background: #0b1c29d9; }
.earth-output > span { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #c5e9ee; font-size: 11px; }
.earth-output i { width: 4px; height: 4px; border-radius: 50%; background: #75e4dc; box-shadow: 0 0 6px #75e4dc80; }
.earth-output > span small { color: #849eaf; font-size: 9px; }
.earth-output > strong { display: block; margin-top: 7px; color: #a9ece8; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.earth-output strong small { margin-left: 4px; color: #849eaf; font-size: 10px; font-weight: 400; }
.earth-no-products { grid-column: 1 / -1; margin: 5px 0; color: #849eaf; font-size: 11px; text-align: center; }

.calc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.calc-title > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.calc-title strong { font-size: 16px; }
.calc-title small { color: #8e949f; font-size: 11px; }
.calc-title .currency-switch { flex: none; }

.calc-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #363943;
  background: #363943;
  border-radius: 5px;
}

.calc-metrics > div {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  background: #191c24;
  min-width: 0;
}

.calc-metrics span { color: #969ba6; font-size: 11px; }
.calc-metrics strong { color: #fff; font-size: 15px; overflow-wrap: anywhere; }

.product-market-note { padding: 0 14px 13px; color: #9299a8; font-size: 10px; line-height: 1.45; }
.product-contract-yield { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 12px 14px; margin: 0 14px 12px; background: #30221e; border-radius: 5px; }
.product-contract-yield span { color: #d0b1a7; font-size: 12px; }
.product-contract-yield strong { color: #ffab94; font-size: 16px; overflow-wrap: anywhere; }
.sheet-data .sheet-contract-yield { grid-column: 1 / -1; }
.sheet-contract-yield strong { color: #ffab94; overflow-wrap: anywhere; }
.market-ticker { margin: 18px 0 4px; }
.market-ticker .section-row { margin: 0 0 10px; }
.market-ticker .section-row small { color: #8f95a3; font-size: 10px; }
.market-ticker-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: #111722e0; border: 1px solid #262b37; border-radius: 5px; font-size: 11px; }
.market-ticker-item span { color: #bfc4cf; text-align: right; }
.sheet-market-note { color: #a0a6b2; font-size: 11px; line-height: 1.5; margin: 14px 0 0; }

.catalog-filters { display: grid; gap: 10px; margin-bottom: 16px; }
.catalog-filters > label { font-size: 12px; color: #adb3c0; }
.catalog-filters input { min-width: 0; width: 100%; padding: 11px 12px; background: #141923; border: 1px solid #353c49; border-radius: 5px; color: #fff; }
.catalog-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-categories button { padding: 7px 12px; border: 1px solid #353c49; border-radius: 20px; background: #141923; color: #bec5d1; font-size: 12px; }
.catalog-categories button.active { background: #452b2a; border-color: #e87864; color: #ffb09e; }
.asset-total { position: relative; }
.asset-total > .icon-button { position: absolute; top: 17px; right: 17px; }
.asset-balance-lines { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 9px; color: #ffe4e1; font-size: 11px; }
.asset-balance-lines span { display: grid; gap: 5px; }
.asset-balance-lines b { color: #fff; font-size: 14px; overflow-wrap: anywhere; }
.asset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.asset-actions button { background: #252332; color: #ffb09e; border: 1px solid #56404a; border-radius: 5px; padding: 12px; }
.coin-balance { display: grid; gap: 5px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.coin-balance small { color: #9099a8; font-size: 10px; }
.activity-copy small { overflow-wrap: anywhere; }

@media (max-width: 360px) {
  .calc-title { align-items: flex-start; }
  .calc-title .currency-switch button { padding: 6px 7px; }
  .calc-metrics > div { padding: 10px; }
  .calc-metrics strong { font-size: 13px; }
}
