:root {
  color-scheme: dark;
  --bg: #0b1010;
  --panel: #121b19;
  --line: #23342f;
  --quiet: #98aea7;
  --text: #eef7f3;
  --mint: #8ff0d4;
  --blue: #8aacf5;
  --down: #f6a89d;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.shell { width: min(100% - 72px, 1320px); margin-inline: auto; }
.mono, .value, .amount, td.num { font-family: 'Cascadia Mono', Consolas, 'Liberation Mono', monospace; font-variant-numeric: tabular-nums; }
.topbar { border-bottom: 1px solid var(--line); background: #0e1614; }
.topbar-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.brand-light { font-weight: 450; color: var(--quiet); }
.wallet, .sync-status { display: inline-flex; align-items: center; gap: 8px; color: var(--quiet); font-size: 13px; }
.wallet { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.wallet:hover, .button:hover { border-color: #52796d; color: var(--text); }
.wallet-address { color: var(--text); margin-left: 4px; }
.network-dot, .sync-status::before { height: 7px; width: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--mint); }
.sync-status::before { content: ''; }
.sync-status[data-tone="wait"]::before { background: var(--quiet); }
.sync-status[data-tone="delay"]::before { background: #ebc984; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 54px 0 25px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(33px, 5vw, 52px); letter-spacing: -.065em; line-height: 1.03; font-weight: 720; }
.intro p, .history-head p { color: var(--quiet); margin-top: 9px; font-size: 14px; }
.overview { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 14px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 24px; background: var(--panel); display: flex; flex-direction: column; min-height: 192px; }
.value-card { background: linear-gradient(115deg, #18342a 0%, #12201b 78%); border-color: #2a493e; }
.card h2 { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.value { font-size: clamp(24px, 4.2vw, 41px); color: var(--mint); font-weight: 650; letter-spacing: -.075em; margin: 10px 0 16px; overflow-wrap: anywhere; }
.unit { font: 650 12px 'Segoe UI', system-ui, sans-serif; letter-spacing: .06em; padding-left: 9px; color: #bfe2d7; }
.allocation { margin-top: auto; }
progress { display: block; width: 100%; height: 6px; margin-bottom: 9px; border: 0; border-radius: 999px; background: var(--blue); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--blue); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--mint); }
progress::-moz-progress-bar { background: var(--mint); }
.allocation-labels { display: flex; justify-content: space-between; gap: 5px; color: var(--quiet); font-size: 12px; }
.allocation-labels > span { display: flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.swatch.hype { background: var(--mint); }
.swatch.usdc { background: var(--blue); }
.asset-heading { display: flex; gap: 10px; align-items: center; }
.asset-heading p, .footnote { color: var(--quiet); font-size: 12px; margin-top: 3px; }
.asset-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.hype-icon { background: #16352d; }
.usdc-icon { background: #243251; color: #c0d3ff; font-size: 22px; }
.amount { font-size: clamp(22px, 3.25vw, 33px); letter-spacing: -.055em; font-weight: 650; margin-top: auto; padding-top: 17px; overflow-wrap: anywhere; }
.footnote { margin-top: 8px; }
.sync-detail { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; font-size: 12px; color: var(--quiet); }
.sync-detail span:empty { display: none; }
.baseline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 22px; margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.baseline h2 { grid-column: 1 / -1; font-size: 16px; }
.baseline-label { color: var(--quiet); font-size: 12px; }
.baseline-value { font-size: clamp(15px, 2.2vw, 22px); font-weight: 650; letter-spacing: -.04em; margin-top: 5px; overflow-wrap: anywhere; }
.history { margin: 44px 0 36px; }
.history-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.history-head h2 { font-size: 25px; letter-spacing: -.045em; }
#trade-count { margin-left: 4px; font-size: 13px; letter-spacing: 0; color: var(--quiet); font-weight: 500; }
.button { display: inline-flex; gap: 7px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 13px; color: var(--quiet); }
.table-card { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: #adc2b9; font-weight: 550; background: #16211e; }
td { font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #17231e; }
td.num { text-align: right; }
th:nth-child(3), th:nth-child(4), th:nth-child(5), th:nth-child(7) { text-align: right; }
td .secondary { display: block; margin-top: 3px; color: var(--quiet); font-size: 11px; }
td .tx-link { color: var(--quiet); text-underline-offset: 3px; }
td .tx-link:hover { color: var(--mint); }
td .source-link { display: inline-block; }
.pill { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.buy { color: var(--mint); }
.sell { color: var(--down); }
.pill.buy { background: #19382d; }
.pill.sell { background: #36221f; }
.empty { padding: 29px 14px; text-align: center; color: var(--quiet); font-size: 14px; }
.history-note { margin-top: 12px; font-size: 12px; color: var(--quiet); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .intro { padding-top: 34px; align-items: start; flex-direction: column; gap: 11px; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .value-card { grid-column: 1 / -1; min-height: 154px; }
  .card { padding: 16px; }
  .asset-card { min-height: 136px; }
  .history { margin-top: 32px; }
  .baseline { gap: 12px; padding: 14px 16px; }
}
@media (max-width: 440px) {
  .baseline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baseline > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 375px) { .wallet-address { display: none; } }
