:root {
  --bg: #fcfcfc;
  --ink: #111;
  --muted: #666;
  --line: #d9d9d9;
  --soft: #f6f6f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a,
button {
  color: var(--ink);
}

a {
  text-decoration: none;
}

a:hover,
button:hover {
  text-decoration: underline;
}

.page {
  width: min(980px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1rem 1.2rem 0.75rem;
  display: grid;
  gap: 0.85rem;
}

header,
nav,
.footer-row,
.panel-head,
.tickers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header {
  align-items: flex-start;
}

.logo {
  width: min(500px, 72vw);
  height: auto;
  display: block;
}

nav {
  justify-content: flex-end;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro {
  display: grid;
  gap: 0.6rem;
}

.intro p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.tickers {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.tickers span {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 800;
  font-size: 0.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

article {
  min-width: 0;
  padding: 0.75rem;
  border-right: 1px solid var(--line);
}

article:last-child {
  border-right: 0;
}

article span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

strong {
  display: block;
  margin-top: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.panel {
  border: 1px solid var(--line);
  padding: 0.78rem;
}

h1,
h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-head {
  margin-bottom: 0.6rem;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.stock-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.46rem 0.4rem;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receivers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.receivers li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
}

button {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

#ca-pill-addr {
  overflow-wrap: anywhere;
}

.copy-toast,
.footer-row,
.disclaimer {
  color: var(--muted);
  font-size: 0.78rem;
}

footer {
  display: grid;
  gap: 0.35rem;
}

.disclaimer {
  max-width: 58rem;
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 760px) {
  header,
  .footer-row,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  article:nth-child(2) {
    border-right: 0;
  }

  article:nth-child(1),
  article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}
