:root {
  color-scheme: light;
  --paper: #f6e6bd;
  --paper-light: #fff8df;
  --cream: #fffef3;
  --ink: #17120d;
  --muted: #5f5345;
  --line: #17120d;
  --red: #e94f37;
  --blue: #2469a8;
  --teal: #119487;
  --green: #4b9f45;
  --yellow: #ffd84f;
  --violet: #7d5ac8;
  --orange: #ef8d32;
  --silver: #d8d6c9;
  --shadow: 8px 8px 0 var(--ink);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 18, 13, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 13, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f8edcb 0%, #f1d99b 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  color: var(--cream);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #062313;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  border: 3px solid var(--line);
  padding: 8px 11px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.hero {
  border: 3px solid var(--line);
  background:
    repeating-linear-gradient(
      -2deg,
      rgba(233, 79, 55, 0.08) 0,
      rgba(233, 79, 55, 0.08) 8px,
      transparent 8px,
      transparent 18px
    ),
    var(--paper-light);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.hero-copy {
  max-width: 980px;
}

.eyebrow,
.section-heading span,
.controls span {
  display: inline-block;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  border: 2px solid var(--line);
  margin: 0 0 16px;
  padding: 7px 10px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 14px;
  font-size: clamp(2.9rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  width: min(760px, 100%);
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.45;
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.view-tab {
  border: 3px solid var(--line);
  padding: 10px 13px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.view-tab:hover,
.view-tab:focus-visible,
.view-tab.is-active {
  background: var(--yellow);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
  outline: none;
}

.view-panel[hidden] {
  display: none;
}

.registry-watch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border: 3px solid var(--line);
  padding: 14px;
  background: #ffdfe0;
  box-shadow: 5px 5px 0 var(--red);
}

.registry-watch[hidden] {
  display: none;
}

.registry-watch-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.registry-watch-copy > span {
  width: fit-content;
  border: 2px solid var(--line);
  padding: 4px 7px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.registry-watch-copy > strong {
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1;
}

.registry-watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.registry-watch-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--line);
  padding: 6px 8px;
  background: #ffffff;
  box-shadow: 2px 2px 0 rgba(23, 18, 13, 0.18);
}

.registry-watch-list strong,
.registry-watch-list small {
  display: inline-block;
}

.registry-watch-list strong {
  color: #b22a20;
  font-size: 0.9rem;
}

.registry-watch-list small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.registry-watch-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.registry-watch-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.registry-watch-actions a,
.registry-watch-actions button {
  border: 2px solid var(--line);
  padding: 8px 10px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.registry-watch-actions button {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--ink);
}

.registry-watch-actions a:hover,
.registry-watch-actions a:focus-visible,
.registry-watch-actions button:hover,
.registry-watch-actions button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.registry-watch-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.table-section,
.notes {
  margin-top: 24px;
  border: 3px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.table-section {
  overflow: hidden;
}

.table-header {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading span {
  width: fit-content;
  border: 2px solid var(--line);
  padding: 5px 8px;
  background: #ffffff;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.rail-chips,
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail-chip,
.source-links a {
  border: 2px solid var(--line);
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

.rail-chip {
  font: inherit;
  cursor: pointer;
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.rail-chip:hover,
.rail-chip:focus-visible,
.rail-chip.is-active {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
  outline: none;
}

.rail-chip:nth-child(3) {
  background: #ffe48b;
}

.rail-chip:nth-child(4) {
  background: #d9f5ee;
}

.rail-chip:nth-child(5) {
  background: #dbe7ff;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.42fr);
  gap: 10px;
}

.controls label {
  display: grid;
  gap: 6px;
}

.controls span {
  color: var(--muted);
}

.controls input,
.controls select {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 0;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
}

.controls input:focus,
.controls select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(233, 79, 55, 0.22);
}

.pnl-controls {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

.refresh-button {
  align-self: end;
  border: 3px solid var(--line);
  min-height: 48px;
  padding: 10px 13px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.refresh-button:hover,
.refresh-button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.pnl-data-note {
  width: min(620px, 100%);
}

.table-wrap {
  overflow-x: auto;
  border-top: 3px solid var(--line);
}

table {
  width: 100%;
  min-width: 1340px;
  border-collapse: collapse;
  background: var(--cream);
}

.wallet-table {
  min-width: 1180px;
}

th,
td {
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

.sort-button:hover,
.sort-button[data-active="true"] {
  color: var(--yellow);
}

.sort-mark {
  min-width: 28px;
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 950;
}

.metric-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  width: 100%;
}

.metric-head .sort-button {
  flex: 1 1 auto;
  min-width: 0;
}

.metric-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  cursor: help;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.metric-help::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 8;
  width: max-content;
  max-width: 230px;
  border: 2px solid var(--line);
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  white-space: normal;
}

.metric-help:hover,
.metric-help:focus-visible {
  color: var(--cream);
  background: var(--ink);
  outline: none;
}

.metric-help:hover::after,
.metric-help:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.metric-head .metric-help::after {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

.metric-head .metric-help:hover::after,
.metric-head .metric-help:focus-visible::after {
  transform: translate(-50%, 0);
}

tbody tr:nth-child(odd) {
  background: #fffbe8;
}

tbody tr:nth-child(even) {
  background: #ffefbd;
}

tbody tr:hover {
  background: #ffdfe0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.asset-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.68rem;
  font-weight: 950;
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
}

.asset-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-icon img + span {
  visibility: hidden;
}

.asset-icon.green {
  background: #9be37d;
}

.asset-icon.gold {
  background: var(--yellow);
}

.asset-icon.blue {
  background: #9fd2ff;
}

.asset-icon.red {
  background: #ff9b90;
}

.asset-icon.violet {
  background: #c7adff;
}

.asset-icon.orange {
  background: #ffc078;
}

.asset-icon.silver {
  background: var(--silver);
}

.coin-cell strong,
.backed-cell strong {
  display: block;
  color: var(--ink);
  font-size: 1.03rem;
}

.coin-cell span,
.backed-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.backed-cell strong {
  font-size: 1.14rem;
}

.mc-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.mc-cell strong,
.market-cap {
  color: #b22a20;
  font-size: 1.02rem;
  font-weight: 950;
  white-space: nowrap;
}

.spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  width: 78px;
  height: 28px;
  border-left: 2px solid rgba(23, 18, 13, 0.22);
  border-bottom: 2px solid rgba(23, 18, 13, 0.22);
  padding: 3px 0 0 3px;
}

.spark-bars span {
  flex: 1 1 0;
  min-width: 1px;
  background: var(--green);
}

.spark-bars.is-down span {
  background: var(--red);
}

.change-cell {
  font-size: 1.02rem;
  font-weight: 950;
  white-space: nowrap;
}

.change-cell.is-up {
  color: #176b35;
}

.change-cell.is-down {
  color: #b22a20;
}

.stat-cell {
  color: #2d251c;
  font-weight: 950;
  white-space: nowrap;
}

.drop-pill {
  display: inline-flex;
  border: 2px solid var(--line);
  padding: 6px 8px;
  color: var(--ink);
  background: #d9f5ee;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.yield-cell {
  color: #176b35;
  font-size: 1.02rem;
  font-weight: 950;
  white-space: nowrap;
}

.source-stack {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 86px;
}

.copy-contract {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--line);
  min-width: 78px;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-mark {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.copy-mark::before,
.copy-mark::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  background: inherit;
  content: "";
}

.copy-mark::before {
  top: 3px;
  left: 0;
}

.copy-mark::after {
  top: 0;
  left: 4px;
  background: #ffffff;
}

.copy-contract:hover,
.copy-contract:focus-visible,
.copy-contract.is-copied {
  color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.copy-contract.is-error {
  color: var(--cream);
  background: var(--red);
}

.contract-empty {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-link {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.source-link:hover,
.source-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.wallet-cell {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.wallet-cell a {
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.wallet-cell a:hover {
  color: #b22a20;
  text-decoration: underline;
}

.wallet-cell span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.rank-cell,
.wallet-number,
.pnl-cell {
  font-weight: 950;
  white-space: nowrap;
}

.rank-cell {
  color: #b22a20;
  font-size: 1rem;
}

.pnl-cell {
  color: #176b35;
  font-size: 1.02rem;
}

.pnl-cell.is-down {
  color: #b22a20;
}

.wallet-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.notes {
  padding: clamp(18px, 3vw, 28px);
}

.notes p {
  width: min(780px, 100%);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.data-note {
  margin-bottom: 0;
  color: var(--ink);
}

#data-status {
  border: 2px solid var(--line);
  padding: 3px 7px;
  background: #d9f5ee;
  font-weight: 950;
}

.source-links {
  margin-top: 16px;
}

.admin-hero h1 {
  max-width: 820px;
}

.admin-panel {
  margin-top: 24px;
  border: 3px solid var(--line);
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-form label,
.admin-table label,
.auth-row label {
  display: grid;
  gap: 6px;
}

.admin-form span,
.auth-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wide-field {
  grid-column: span 2;
}

.admin-form input,
.admin-form select,
.admin-table input,
.admin-table select,
.auth-row input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  outline: none;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-table input:focus,
.admin-table select:focus,
.auth-row input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(233, 79, 55, 0.22);
}

.auth-panel {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(36, 105, 168, 0.08) 0,
      rgba(36, 105, 168, 0.08) 6px,
      transparent 6px,
      transparent 14px
    ),
    var(--paper-light);
}

.auth-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.auth-row button {
  border: 2px solid var(--line);
  padding: 9px 12px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
}

.form-actions button,
.row-actions button {
  border: 2px solid var(--line);
  padding: 9px 11px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--red);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-actions button:nth-child(2),
.row-actions button:nth-child(2) {
  color: var(--ink);
  background: var(--yellow);
}

.form-actions button:nth-child(3),
.row-actions button:nth-child(3) {
  color: var(--ink);
  background: #ffffff;
}

.admin-status {
  margin: 16px 0 0;
  border: 2px solid var(--line);
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 950;
}

.admin-status[data-tone="ok"] {
  background: #d9f5ee;
}

.admin-status[data-tone="error"] {
  background: #ffdfe0;
}

.compact-header {
  padding: 0 0 16px;
}

.split-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

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

.registry-actions button {
  border: 2px solid var(--line);
  padding: 9px 11px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--red);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.registry-actions button:nth-child(2) {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--blue);
}

.registry-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.registry-stat,
.registry-alert {
  border: 2px solid var(--line);
  padding: 12px;
  background: #ffffff;
  box-shadow: 3px 3px 0 rgba(23, 18, 13, 0.18);
}

.registry-stat strong,
.registry-stat span,
.registry-alert strong,
.registry-alert span {
  display: block;
}

.registry-stat strong {
  color: #b22a20;
  font-size: 1.35rem;
  line-height: 1;
}

.registry-stat span,
.registry-alert span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.registry-stat.is-hot,
.registry-alert.is-hot {
  background: #ffdfe0;
}

.registry-alerts {
  margin-top: 12px;
}

.registry-alert strong {
  font-size: 1rem;
}

.registry-filter {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
}

.registry-filter span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registry-filter input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  outline: none;
}

.admin-table-wrap {
  border: 3px solid var(--line);
}

.admin-table {
  min-width: 1420px;
}

.registry-table {
  min-width: 1240px;
}

.admin-table th,
.admin-table td {
  padding: 9px;
}

.admin-table td:nth-child(5) input {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.row-actions {
  display: flex;
  gap: 7px;
}

.row-actions button {
  padding: 7px 8px;
  box-shadow: none;
}

.registry-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.registry-asset img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.registry-asset strong,
.registry-asset span {
  display: block;
}

.registry-asset span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.registry-table code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.76rem;
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  border: 2px solid var(--line);
  padding: 5px 7px;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.is-active {
  background: #d9f5ee;
}

.status-pill.is-muted {
  background: #eadfcb;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.stack-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.stack-item {
  border: 2px solid var(--line);
  padding: 11px;
  background: #ffffff;
}

.stack-item strong,
.stack-item span,
.stack-item small {
  display: block;
}

.stack-item span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}

.stack-item small {
  margin-top: 6px;
  color: #8a7b69;
  font-weight: 900;
}

@media (max-width: 820px) {
  .registry-watch {
    align-items: stretch;
    flex-direction: column;
  }

  .registry-watch-actions a,
  .registry-watch-actions button {
    flex: 1 1 120px;
    text-align: center;
  }

  .controls,
  .pnl-controls {
    grid-template-columns: 1fr;
  }

  .refresh-button {
    width: 100%;
  }

  .admin-form,
  .admin-grid,
  .auth-row {
    grid-template-columns: 1fr;
  }

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

  .split-header {
    align-items: stretch;
    flex-direction: column;
  }

  .wide-field {
    grid-column: auto;
  }

  table {
    min-width: 1220px;
  }
}

@media (max-width: 560px) {
  main,
  .topbar {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero,
  .table-header,
  .notes {
    padding: 16px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* RWA Capital market terminal */
body.market-page {
  color-scheme: dark;
  --paper: #06170d;
  --paper-light: #0a2415;
  --cream: #0d2d1b;
  --ink: #f6f1df;
  --muted: #b5c2aa;
  --line: #2b563a;
  --red: #ff6759;
  --blue: #3e9a72;
  --teal: #55c18e;
  --green: #93df77;
  --yellow: #eadfba;
  --violet: #9abf83;
  --orange: #d4a14f;
  --silver: #d3d4c4;
  --shadow: none;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(246, 241, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 223, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #0f3a21 0%, #06170d 52%, #03110a 100%);
  background-size: 34px 34px, 34px 34px, auto;
  font-family: Consolas, "Courier New", monospace;
}

body.market-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  content: "";
}

.market-page .site-shell {
  min-height: 100vh;
}

.market-page main,
.market-page .topbar {
  width: min(1680px, calc(100% - 16px));
}

.market-page .topbar {
  align-items: stretch;
  margin-top: 8px;
  border: 1px solid var(--line);
  padding: 0;
  background: rgba(6, 29, 15, 0.94);
  box-shadow: 0 0 0 1px rgba(234, 223, 186, 0.1);
}

.market-page .brand {
  min-width: 290px;
  border-right: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(246, 241, 223, 0.05), transparent);
}

.market-page .brand-mark {
  width: 54px;
  height: 44px;
  border: 1px solid #405246;
  border-radius: 4px;
  color: #06170d;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  box-shadow: none;
  font-size: 0.8rem;
}

.market-page .brand-logo {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(246, 241, 223, 0.78);
  background: #062313;
  box-shadow:
    0 0 0 3px rgba(5, 35, 18, 0.95),
    0 0 26px rgba(147, 223, 119, 0.18);
}

.market-page .brand strong {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-page .top-nav {
  padding: 10px;
}

.market-page .top-nav a {
  border: 1px solid #3f654b;
  border-radius: 4px;
  padding: 9px 12px;
  color: var(--muted);
  background: #0b2516;
  box-shadow: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.market-page .top-nav a:hover,
.market-page .top-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--green);
  outline: none;
}

.market-page main {
  padding: 10px 0 38px;
}

.market-page .message-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) 280px;
  align-items: stretch;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(246, 241, 223, 0.07), transparent 42%),
    repeating-linear-gradient(0deg, rgba(234, 223, 186, 0.025) 0, rgba(234, 223, 186, 0.025) 1px, transparent 1px, transparent 6px),
    rgba(7, 34, 18, 0.96);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 223, 0.04);
}

.market-page .hero-copy {
  max-width: 980px;
}

.market-page .eyebrow,
.market-page .section-heading span,
.market-page .controls span,
.market-page .filter-title span,
.market-page .meme-sidebar-head span,
.market-page .hero-sources span {
  color: var(--green);
  letter-spacing: 0.04em;
}

.market-page .eyebrow {
  border: 1px solid #4b704f;
  border-radius: 4px;
  margin-bottom: 14px;
  padding: 6px 8px;
  color: #06170d;
  background: var(--green);
  box-shadow: none;
}

.market-page h1 {
  max-width: 920px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 4.4rem;
  line-height: 0.96;
}

.market-page .hero-lede {
  width: min(900px, 100%);
  color: #d8dfce;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.58;
}

.market-page .hero-seal {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-left: 1px solid rgba(234, 223, 186, 0.16);
  border-right: 1px solid rgba(234, 223, 186, 0.16);
  padding: 0 10px;
}

.market-page .hero-seal img {
  width: min(214px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 241, 223, 0.78);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(6, 35, 19, 0.82),
    0 0 42px rgba(147, 223, 119, 0.18);
}

.market-page .hero-sources {
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.market-page .hero-sources span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.market-page .hero-sources a {
  border: 1px solid #3c6149;
  border-radius: 4px;
  padding: 9px 10px;
  color: #e9e2ca;
  background: rgba(11, 38, 22, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.market-page .hero-sources a:hover,
.market-page .hero-sources a:focus-visible {
  color: #06170d;
  background: var(--yellow);
  outline: none;
}

.market-page .market-workspace {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) 316px;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

.market-page .filter-panel,
.market-page .meme-sidebar,
.market-page .table-section,
.market-page .notes {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 28, 16, 0.96);
  box-shadow: none;
}

.market-page .filter-panel,
.market-page .meme-sidebar {
  position: sticky;
  top: 10px;
  overflow: hidden;
}

.market-page .view-tabs {
  display: grid;
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.market-page .view-tab {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--muted);
  background: #0a2415;
  box-shadow: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: left;
  transform: none;
}

.market-page .view-tab:last-child {
  border-bottom: 0;
}

.market-page .view-tab:hover,
.market-page .view-tab:focus-visible,
.market-page .view-tab.is-active {
  color: var(--green);
  background: #123522;
  box-shadow: inset 3px 0 0 var(--green);
  transform: none;
}

.market-page .filter-card {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.market-page .filter-title {
  display: grid;
  gap: 5px;
}

.market-page .filter-title strong {
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.market-page .filter-panel .controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.market-page .controls label {
  gap: 7px;
}

.market-page .controls input,
.market-page .controls select {
  border: 1px solid #354e42;
  border-radius: 4px;
  min-height: 42px;
  padding: 10px;
  color: var(--ink);
  background: #082012;
  font-size: 0.78rem;
}

.market-page .controls input::placeholder {
  color: #687568;
}

.market-page .controls input:focus,
.market-page .controls select:focus {
  border-color: var(--green);
  background: #10301d;
  box-shadow: 0 0 0 2px rgba(147, 223, 119, 0.18);
}

.market-page .filter-panel .rail-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.market-page .rail-chip,
.market-page .source-links a {
  border: 1px solid #334b41;
  border-radius: 4px;
  padding: 8px 9px;
  color: #d4dfcf;
  background: #0b2817;
  box-shadow: none;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.market-page .rail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-page .rail-chip small {
  color: var(--yellow);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-page .rail-chip:hover,
.market-page .rail-chip:focus-visible,
.market-page .rail-chip.is-active {
  color: #06170d;
  background: var(--green);
  box-shadow: none;
  transform: none;
}

.market-page .rail-chip.is-coming-soon small {
  color: #d4a14f;
}

.market-page .rail-chip:nth-child(3),
.market-page .rail-chip:nth-child(4),
.market-page .rail-chip:nth-child(5) {
  background: #0b2817;
}

.market-page .rail-chip:nth-child(3):hover,
.market-page .rail-chip:nth-child(3):focus-visible,
.market-page .rail-chip:nth-child(4):hover,
.market-page .rail-chip:nth-child(4):focus-visible,
.market-page .rail-chip:nth-child(5):hover,
.market-page .rail-chip:nth-child(5):focus-visible,
.market-page .rail-chip:nth-child(3).is-active,
.market-page .rail-chip:nth-child(4).is-active,
.market-page .rail-chip:nth-child(5).is-active {
  background: var(--green);
}

.market-page .rail-chip.is-coming-soon,
.market-page .rail-chip.is-coming-soon:hover,
.market-page .rail-chip.is-coming-soon:focus-visible,
.market-page .rail-chip.is-coming-soon.is-active {
  border-style: dashed;
  color: #84977f;
  background: #081b10;
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

.market-page .workspace-main {
  min-width: 0;
}

.market-page .registry-watch {
  margin-top: 0;
  border: 1px solid #654437;
  border-radius: 6px;
  background: rgba(45, 21, 16, 0.92);
  box-shadow: none;
}

.market-page .registry-watch-copy > span,
.market-page .registry-watch-list span {
  border: 1px solid #654437;
  border-radius: 4px;
  background: #130e0b;
  box-shadow: none;
}

.market-page .registry-watch-copy > strong,
.market-page .registry-watch-list strong {
  color: #ffb39a;
}

.market-page .registry-watch-copy > strong {
  font-size: 1.2rem;
}

.market-page .registry-watch-actions a,
.market-page .registry-watch-actions button {
  border: 1px solid #654437;
  border-radius: 4px;
  box-shadow: none;
}

.market-page .table-section {
  margin-top: 0;
  overflow: hidden;
}

.market-page .registry-watch + .table-section {
  margin-top: 10px;
}

.market-page .table-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.market-page .section-heading {
  gap: 6px;
}

.market-page .section-heading span {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.72rem;
}

.market-page .section-heading h2 {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.05;
}

.market-page .data-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: right;
}

.market-page #data-status,
.market-page #wallet-data-status {
  border: 1px solid #335144;
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--green);
  background: #0b2817;
}

.market-page .table-wrap {
  border-top: 1px solid var(--line);
  scrollbar-color: #3b5549 #06100c;
}

.market-page table {
  min-width: 1080px;
  color: var(--ink);
  background: transparent;
}

.market-page .wallet-table {
  min-width: 1180px;
}

.market-page th,
.market-page td {
  border-right: 1px solid #244532;
  border-bottom: 1px solid #244532;
  padding: 10px 11px;
}

.market-page th {
  color: #9fb39a;
  background: #0a2415;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.market-page .sort-button:hover,
.market-page .sort-button[data-active="true"] {
  color: var(--yellow);
}

.market-page .sort-mark {
  min-width: 22px;
  color: var(--yellow);
  font-size: 0.58rem;
}

.market-page .metric-head {
  gap: 5px;
}

.market-page .metric-help {
  width: 18px;
  height: 18px;
  border: 1px solid #40594b;
  color: var(--yellow);
  background: #0b2817;
  font-size: 0.58rem;
}

.market-page .metric-help::after {
  max-width: 240px;
  border: 1px solid #496352;
  border-radius: 4px;
  color: #dfe9d5;
  background: #0b2817;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.44);
  font-size: 0.68rem;
  font-weight: 850;
}

.market-page .metric-help:hover,
.market-page .metric-help:focus-visible {
  color: #06170d;
  background: var(--yellow);
}

.market-page tbody tr:nth-child(odd),
.market-page tbody tr:nth-child(even) {
  background: rgba(8, 35, 19, 0.84);
}

.market-page tbody tr:nth-child(even) {
  background: rgba(10, 42, 24, 0.84);
}

.market-page tbody tr:hover {
  background: rgba(45, 72, 32, 0.62);
}

.market-page .asset-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #45694e;
  box-shadow: none;
  font-size: 0.62rem;
}

.market-page .asset-icon.green {
  background: var(--green);
}

.market-page .asset-icon.gold {
  background: var(--yellow);
}

.market-page .asset-icon.blue {
  background: var(--blue);
}

.market-page .asset-icon.red {
  background: var(--red);
}

.market-page .asset-icon.violet {
  background: var(--violet);
}

.market-page .asset-icon.orange {
  background: var(--orange);
}

.market-page .asset-icon.silver {
  background: var(--silver);
}

.market-page .coin-cell strong,
.market-page .backed-cell strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.market-page .coin-cell span,
.market-page .backed-cell span {
  color: var(--muted);
  font-size: 0.72rem;
}

.market-page .backed-cell strong {
  font-size: 1rem;
}

.market-page .mc-cell {
  min-width: 122px;
}

.market-page .mc-cell strong,
.market-page .market-cap {
  color: var(--yellow);
  font-size: 0.9rem;
}

.market-page .spark-bars {
  width: 58px;
  height: 24px;
  border-left: 1px solid rgba(236, 239, 226, 0.16);
  border-bottom: 1px solid rgba(236, 239, 226, 0.16);
}

.market-page .spark-bars span {
  background: var(--green);
}

.market-page .spark-bars.is-down span {
  background: var(--red);
}

.market-page .change-cell,
.market-page .yield-cell,
.market-page .stat-cell {
  font-size: 0.88rem;
}

.market-page .change-cell.is-up,
.market-page .yield-cell,
.market-page .pnl-cell {
  color: var(--green);
}

.market-page .change-cell.is-down,
.market-page .pnl-cell.is-down {
  color: var(--red);
}

.market-page .stat-cell {
  color: #d7dccf;
}

.market-page .drop-pill,
.market-page .copy-contract {
  border: 1px solid #334b41;
  border-radius: 4px;
  color: #dce6d7;
  background: #0b2817;
  box-shadow: none;
}

.market-page .copy-mark::after {
  background: #0b2817;
}

.market-page .copy-contract:hover,
.market-page .copy-contract:focus-visible,
.market-page .copy-contract.is-copied {
  color: #06170d;
  background: var(--green);
}

.market-page .copy-contract:hover .copy-mark::after,
.market-page .copy-contract:focus-visible .copy-mark::after,
.market-page .copy-contract.is-copied .copy-mark::after {
  background: var(--green);
}

.market-page .source-link {
  color: var(--yellow);
  text-decoration-thickness: 1px;
}

.market-page .source-link:hover,
.market-page .source-link:focus-visible {
  color: var(--green);
}

.market-page .wallet-cell a {
  color: var(--ink);
}

.market-page .wallet-cell a:hover {
  color: var(--yellow);
}

.market-page .wallet-cell span,
.market-page .wallet-meta {
  color: var(--muted);
}

.market-page .rank-cell {
  color: var(--yellow);
}

.market-page .meme-sidebar {
  display: grid;
  gap: 0;
}

.market-page .meme-sidebar-head {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.market-page .meme-sidebar-head span {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.market-page .meme-sidebar-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.market-page .featured-memes-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.market-page .featured-meme {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  position: relative;
  min-height: 86px;
  border: 1px solid #243a30;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  text-decoration: none;
}

.market-page .featured-meme:hover,
.market-page .featured-meme:focus-visible {
  border-color: var(--green);
  background: rgba(17, 31, 23, 0.96);
  outline: none;
}

.market-page .featured-meme-media {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(236, 239, 226, 0.25);
  border-radius: 6px;
  color: #06170d;
  background: var(--green);
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 950;
}

.market-page .featured-meme-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-page .featured-meme-media img + span {
  display: none;
}

.market-page .featured-meme-media.gold {
  background: var(--yellow);
}

.market-page .featured-meme-media.blue {
  background: var(--blue);
}

.market-page .featured-meme-media.red {
  background: var(--red);
}

.market-page .featured-meme-media.violet {
  background: var(--violet);
}

.market-page .featured-meme-media.orange {
  background: var(--orange);
}

.market-page .featured-meme-media.silver {
  background: var(--silver);
}

.market-page .featured-meme-copy {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding-right: 54px;
}

.market-page .featured-meme-copy strong,
.market-page .featured-meme-copy small,
.market-page .featured-meme-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-page .featured-meme-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.market-page .featured-meme-copy small {
  color: #c4d0bd;
  font-size: 0.74rem;
  font-weight: 850;
}

.market-page .featured-meme-copy span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.market-page .featured-meme-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.market-page .featured-meme-metrics b,
.market-page .featured-meme-metrics em {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.market-page .featured-meme-metrics b {
  color: var(--yellow);
}

.market-page .featured-meme-metrics em.is-up {
  color: var(--green);
}

.market-page .featured-meme-metrics em.is-down {
  color: var(--red);
}

.market-page .empty-state {
  color: var(--muted);
}

.market-page .compact-notes {
  margin-top: 10px;
  padding: 16px;
  background: rgba(7, 28, 16, 0.86);
}

.market-page .notes p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.market-page .source-links {
  gap: 7px;
  margin-top: 14px;
}

.market-page .source-links a:hover,
.market-page .source-links a:focus-visible {
  color: #06170d;
  background: var(--yellow);
  outline: none;
}

@media (max-width: 1120px) {
  .market-page .market-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .market-page .meme-sidebar {
    position: static;
    grid-column: 1 / -1;
  }

  .market-page .featured-memes-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .market-page .message-hero {
    grid-template-columns: 1fr;
  }

  .market-page .hero-seal {
    justify-items: start;
    min-height: 0;
    border-right: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }

  .market-page .hero-seal img {
    width: 132px;
  }

  .market-page .hero-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    padding-left: 0;
  }

  .market-page .hero-sources span {
    grid-column: 1 / -1;
  }

  .market-page .market-workspace {
    grid-template-columns: 1fr;
  }

  .market-page .filter-panel {
    position: static;
  }

  .market-page .view-tabs,
  .market-page .filter-panel .rail-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-page .filter-panel .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-page .featured-memes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .market-page main,
  .market-page .topbar {
    width: min(100% - 12px, 1680px);
  }

  .market-page .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .market-page .brand {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-page .top-nav {
    justify-content: flex-start;
  }

  .market-page .message-hero,
  .market-page .table-header,
  .market-page .compact-notes {
    padding: 14px;
  }

  .market-page h1 {
    font-size: 2.35rem;
    line-height: 1.04;
  }

  .market-page .hero-lede {
    font-size: 0.94rem;
  }

  .market-page .hero-sources,
  .market-page .filter-panel .controls,
  .market-page .featured-memes-list {
    grid-template-columns: 1fr;
  }

  .market-page .view-tabs,
  .market-page .filter-panel .rail-chips {
    grid-template-columns: 1fr;
  }

  .market-page .table-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-page .data-note {
    text-align: left;
  }
}
