:root {
  --bg: #0b0e0d;
  --surface: #111614;
  --surface-raised: #171d1a;
  --surface-soft: #1c2420;
  --text: #e8f0ec;
  --text-soft: #a8b5af;
  --text-muted: #738079;
  --line: #28312d;
  --accent: #34e6a1;
  --accent-soft: rgba(52, 230, 161, .12);
  --danger: #ff657a;
  --warning: #ffbf5a;
  --blue: #4f83ff;
  --standard: #3273dc;
  --limited: #9b51e0;
  --exclusive: #ff9d2e;
  --rare: #ee3f52;
  --ultra_rare: #f7d448;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-raised: #f8faf9;
  --surface-soft: #edf3f0;
  --text: #14201b;
  --text-soft: #405149;
  --text-muted: #6d7c75;
  --line: #d9e2de;
  --accent: #008f68;
  --accent-soft: rgba(0, 143, 104, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 16px; }
button, input, select { font: inherit; }
button { color: inherit; }
.clipboard-helper { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 340px;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% -40%, rgba(52, 230, 161, .24), transparent 55%),
    radial-gradient(circle at 82% -65%, rgba(79, 131, 255, .17), transparent 48%);
  opacity: .8;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: .7rem; letter-spacing: .08em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1rem;
  font-weight: 800;
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: .92rem; }
.brand small { margin-top: .25rem; color: var(--text-muted); font-size: .62rem; font-weight: 700; letter-spacing: .18em; }

.top-status { display: flex; align-items: center; gap: 1.2rem; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-soft); font-size: .78rem; font-weight: 700; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(255, 191, 90, .1); }
.status-pill.live i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px rgba(52, 230, 161, .55); }
.status-pill.error i { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 101, 122, .12); }
.metric { display: grid; min-width: 58px; gap: .1rem; }
.metric small { color: var(--text-muted); font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.metric strong { font-size: .84rem; font-variant-numeric: tabular-nums; }
.icon-button { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: .45rem .65rem; cursor: pointer; }

main { position: relative; width: min(1880px, 100%); margin: 0 auto; padding: 2.2rem 2rem 3rem; }
.headline-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1; letter-spacing: -.045em; }
.live-clock { display: flex; align-items: center; gap: .85rem; color: var(--text-muted); font-size: .78rem; }
.feed-actions { display: flex; align-items: stretch; gap: .5rem; }
.view-control { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); padding: 0 .55rem; }
.view-control > span { color: var(--text-muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.view-control select { min-width: 104px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .78rem; font-weight: 700; }
.view-control option { background: var(--surface); }
.secondary-button, .reset-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  padding: .42rem .72rem;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}
.secondary-button:hover, .reset-button:hover, .icon-button:hover { border-color: var(--accent); color: var(--accent); }

.filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.8fr) repeat(7, minmax(118px, 1fr)) auto;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.filter-primary, .filter-advanced { display: contents; }
.filters label { display: grid; gap: .35rem; min-width: 0; padding: .62rem .7rem; background: var(--surface); }
.filters label > span { color: var(--text-muted); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filters input, .filters select {
  width: 100%; min-width: 0; height: 30px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .875rem;
}
.filters input:focus, .filters select:focus { color: var(--accent); }
.filters input::placeholder { color: var(--text-muted); }
.filters option { background: var(--surface); }
.reset-button { min-height: 100%; border: 0; border-radius: 0; background: var(--surface-raised); }
.mobile-filter-toggle { display: none; }

.feed-state { margin: .8rem 0; border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--line)); border-radius: 8px; padding: .65rem .8rem; color: var(--warning); background: rgba(255, 191, 90, .07); font-size: .8rem; }
.market-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 18px 70px rgba(0, 0, 0, .16); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1580px; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
th {
  position: static; height: 42px; padding: 0 .65rem; border-bottom: 1px solid var(--line); background: var(--surface-raised); color: var(--text-muted); text-align: left; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
td { padding: .67rem .65rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); vertical-align: middle; }
tbody tr.listing-row { cursor: pointer; transition: background .15s ease, opacity .15s ease; }
tbody tr.listing-row:hover { background-color: var(--surface-soft) !important; }
tbody tr.listing-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
tbody tr.inactive { opacity: .58; }
tbody tr.new-listing { animation: new-row 2.8s ease-out; }
@keyframes new-row { 0% { background-color: rgba(52, 230, 161, .42); } 100% { background-color: transparent; } }

.collection-standard { --collection: var(--standard); background: linear-gradient(90deg, color-mix(in srgb, var(--standard) 13%, transparent), transparent 28%, color-mix(in srgb, var(--standard) 9%, transparent)); box-shadow: inset 4px 0 var(--standard), inset -4px 0 var(--standard); }
.collection-limited { --collection: var(--limited); background: linear-gradient(90deg, color-mix(in srgb, var(--limited) 15%, transparent), transparent 28%, color-mix(in srgb, var(--limited) 10%, transparent)); box-shadow: inset 4px 0 var(--limited), inset -4px 0 var(--limited); }
.collection-exclusive { --collection: var(--exclusive); background: linear-gradient(90deg, color-mix(in srgb, var(--exclusive) 16%, transparent), transparent 28%, color-mix(in srgb, var(--exclusive) 11%, transparent)); box-shadow: inset 4px 0 var(--exclusive), inset -4px 0 var(--exclusive); }
.collection-rare { --collection: var(--rare); background: linear-gradient(90deg, color-mix(in srgb, var(--rare) 16%, transparent), transparent 28%, color-mix(in srgb, var(--rare) 11%, transparent)); box-shadow: inset 4px 0 var(--rare), inset -4px 0 var(--rare); }
.collection-ultra_rare { --collection: var(--ultra_rare); background: linear-gradient(90deg, color-mix(in srgb, var(--ultra_rare) 16%, transparent), transparent 28%, color-mix(in srgb, var(--ultra_rare) 11%, transparent)); box-shadow: inset 4px 0 var(--ultra_rare), inset -4px 0 var(--ultra_rare); }
.collection-none { --collection: var(--line); }

tbody tr.placement-boat {
  background:
    linear-gradient(90deg, rgba(7, 15, 17, .78), rgba(7, 15, 17, .60) 48%, rgba(7, 15, 17, .78)),
    url("/images/placement-marina.webp") center / cover no-repeat;
  background-color: var(--surface);
}
tbody tr.placement-farmland {
  background:
    linear-gradient(90deg, rgba(12, 17, 10, .78), rgba(12, 17, 10, .60) 48%, rgba(12, 17, 10, .78)),
    url("/images/placement-farmland.webp") center / cover no-repeat;
  background-color: var(--surface);
}
:root[data-theme="light"] tbody tr.placement-boat {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .60) 48%, rgba(255, 255, 255, .78)),
    url("/images/placement-marina.webp") center / cover no-repeat;
}
:root[data-theme="light"] tbody tr.placement-farmland {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .60) 48%, rgba(255, 255, 255, .78)),
    url("/images/placement-farmland.webp") center / cover no-repeat;
}

.primary { display: block; max-width: 240px; overflow: hidden; color: var(--text); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.subline { display: block; margin-top: .18rem; color: var(--text-muted); font-size: .66rem; white-space: nowrap; }
.mobile-mint { display: none; }
.upx-amount { display: inline-flex; align-items: center; gap: .24em; }
.upx-icon { width: .95em; height: .95em; flex: 0 0 auto; object-fit: contain; }
.listing-address { position: relative; cursor: copy; }
.listing-address.copied::after,
.listing-address.copy-failed::after {
  content: "Copied";
  position: absolute;
  top: .4rem;
  right: .55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 4px;
  background: var(--surface-soft);
  padding: .15rem .35rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
}
.listing-address.copy-failed::after { content: "Copy failed"; border-color: var(--danger); color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: .32rem; max-width: 185px; border: 1px solid color-mix(in srgb, var(--collection, var(--line)) 60%, var(--line)); border-radius: 5px; background: color-mix(in srgb, var(--collection, var(--surface-soft)) 14%, var(--surface)); padding: .24rem .42rem; color: var(--text); font-size: .68rem; font-weight: 750; }
.badge-standard { --collection: var(--standard); }
.badge-limited { --collection: var(--limited); }
.badge-exclusive { --collection: var(--exclusive); }
.badge-rare { --collection: var(--rare); }
.badge-ultra_rare { --collection: var(--ultra_rare); }
.badge-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiplier { color: var(--collection, var(--accent)); font-variant-numeric: tabular-nums; }
.building-list { display: grid; gap: .17rem; max-width: 180px; line-height: 1.15; }
.asset-list { display: grid; min-width: 180px; max-width: 260px; max-height: 170px; gap: .24rem; overflow-y: auto; padding-right: .2rem; }
.asset-count { position: sticky; top: 0; z-index: 1; width: fit-content; border-radius: 4px; background: var(--surface); padding: .13rem .3rem; color: var(--text-muted); font-size: .68rem; }
.asset-name { display: block; border-left: 2px solid var(--line); padding: .12rem .3rem; color: var(--text-soft); font-size: .78rem; line-height: 1.25; }
.asset-priority { border-left-color: var(--danger); border-radius: 3px; background: rgba(255, 101, 122, .12); color: var(--danger); font-weight: 800; }
.price, .markup { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price strong { font-size: .83rem; }
.price-stack { display: grid; width: max-content; gap: .2rem; }
.price-empty { color: var(--text-muted); }
.floor-value { display: flex; align-items: center; gap: .28rem; color: var(--text-muted); font-size: .61rem; font-weight: 700; line-height: 1.2; }
.floor-label { color: var(--text-muted); font-size: .56rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.floor-value .upx-icon { width: .9em; height: .9em; }
.markup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .3rem; min-width: 142px; font-weight: 800; }
.markup .slash { color: var(--text-muted); }
.markup-value { display: grid; justify-items: center; gap: .06rem; border: 1px solid transparent; border-radius: 5px; padding: .24rem .34rem; }
.markup-value small { color: var(--text-muted); font-size: .58rem; letter-spacing: .08em; }
.markup-value .floor-value { margin-top: .08rem; padding-top: .18rem; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: .58rem; }
.markup-value .floor-label { font-size: .5rem; letter-spacing: .02em; }
.markup-value.markup-native { border-color: color-mix(in srgb, currentColor 55%, var(--line)); background: color-mix(in srgb, currentColor 11%, var(--surface)); box-shadow: inset 0 -2px currentColor; }
.markup-light-green { color: #9befa3; }
.markup-green { color: #26cf76; }
.markup-light-orange { color: #ffd09a; }
.markup-orange { color: #ff9a3c; }
.markup-light-red { color: #ff929b; }
.markup-dark-red { color: #e34555; }
html[data-theme="light"] .markup-light-green { color: #39823e; }
html[data-theme="light"] .markup-green { color: #126c36; }
html[data-theme="light"] .markup-light-orange { color: #a36421; }
html[data-theme="light"] .markup-orange { color: #934600; }
html[data-theme="light"] .markup-light-red { color: #c24f5d; }
html[data-theme="light"] .markup-dark-red { color: #a31d30; }
.status-mini { display: inline-block; margin-left: .35rem; border-radius: 4px; padding: .12rem .3rem; background: var(--surface-soft); color: var(--text-muted); font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.status-mini.active { color: var(--accent); }
.loading-dot::after { content: ""; display: inline-block; width: 12px; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

.empty-state { display: grid; justify-items: center; gap: .45rem; padding: 4.5rem 1rem; color: var(--text-muted); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state strong { color: var(--text-soft); }
.empty-symbol { color: var(--accent); font-size: 2rem; }
.result-footer { display: flex; align-items: center; justify-content: center; gap: 1rem; border-top: 1px solid var(--line); padding: .85rem; color: var(--text-muted); font-size: .78rem; }
.result-footer[hidden] { display: none; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 2rem 2rem; color: var(--text-muted); font-size: .68rem; }

html[data-layout="cards"] .market-card { overflow: visible; border: 0; background: transparent; box-shadow: none; }
html[data-layout="cards"] .table-scroll { overflow: visible; }
html[data-layout="cards"] table { display: block; min-width: 0; font-size: .875rem; }
html[data-layout="cards"] thead { display: none; }
html[data-layout="cards"] tbody {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}
html[data-layout="cards"] tbody tr.listing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "address address"
    "city neighborhood"
    "collection collection"
    "price-upx price-usd"
    "markup markup"
    "assets assets"
    "buildings buildings"
    "mint upxland";
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--collection, var(--line)) 45%, var(--line));
  border-radius: 11px;
  box-shadow: inset 4px 0 var(--collection, var(--line)), inset -4px 0 var(--collection, var(--line)), 0 12px 38px rgba(0, 0, 0, .13);
}
html[data-layout="cards"] tbody tr.placement-boat,
html[data-layout="cards"] tbody tr.placement-farmland {
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% auto;
}
html[data-layout="cards"] td {
  display: block;
  min-width: 0;
  border: 0;
  padding: .66rem .9rem;
}
html[data-layout="cards"] td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: .28rem;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
html[data-layout="cards"] .listing-address { grid-area: address; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); padding: .9rem 1rem .75rem; }
html[data-layout="cards"] .listing-address::before { display: none; }
html[data-layout="cards"] .listing-address .primary { max-width: none; overflow: visible; font-size: 1rem; line-height: 1.25; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
html[data-layout="cards"] .listing-address .subline { font-size: .75rem; white-space: normal; }
html[data-layout="cards"] .listing-city { grid-area: city; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-neighborhood { grid-area: neighborhood; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-city, html[data-layout="cards"] .listing-neighborhood { overflow-wrap: anywhere; }
html[data-layout="cards"] .listing-collection { grid-area: collection; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-collection .badge { max-width: 100%; font-size: .75rem; }
html[data-layout="cards"] .listing-price-upx { grid-area: price-upx; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-price-usd { grid-area: price-usd; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .price-native { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 -2px var(--accent); }
html[data-layout="cards"] .price-native strong { color: var(--accent); font-size: 1rem; }
html[data-layout="cards"] .listing-markup { grid-area: markup; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-markup .markup { max-width: 230px; }
html[data-layout="cards"] .listing-assets { grid-area: assets; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-assets .asset-list { width: 100%; min-width: 0; max-width: none; max-height: 220px; }
html[data-layout="cards"] .listing-assets .asset-count { font-size: .75rem; }
html[data-layout="cards"] .listing-assets .asset-name { font-size: .875rem; overflow-wrap: anywhere; }
html[data-layout="cards"] .listing-buildings { grid-area: buildings; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
html[data-layout="cards"] .listing-buildings .building-list { max-width: none; font-size: .875rem; }
html[data-layout="cards"] .listing-mint { grid-area: mint; }
html[data-layout="cards"] .listing-upxland { grid-area: upxland; }
html[data-layout="cards"] .listing-upxland .primary { max-width: none; overflow-wrap: anywhere; white-space: normal; }
html[data-layout="cards"] .listing-upxland .subline { overflow-wrap: anywhere; white-space: normal; }
html[data-layout="cards"] .empty-state, html[data-layout="cards"] .result-footer { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
html[data-layout="cards"] .result-footer { margin-top: .85rem; }

@media (min-width: 780px) {
  html[data-layout="cards"] tbody { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
}

@media (max-width: 1250px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .wide-field { grid-column: span 2; }
  .reset-button { min-height: 54px; }
}

@media (max-width: 900px) {
  .topbar {
    min-height: calc(62px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(.85rem, env(safe-area-inset-right)) 0 max(.85rem, env(safe-area-inset-left));
  }
  .metric { display: none; }
  .top-status { gap: .7rem; }
  main { padding: 1.25rem max(.7rem, env(safe-area-inset-right)) 2rem max(.7rem, env(safe-area-inset-left)); }
  .headline-row { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .live-clock { display: grid; width: 100%; gap: .6rem; }
  .feed-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .view-control { min-height: 44px; justify-content: space-between; }
  .view-control > span { font-size: .75rem; }
  .view-control select { min-width: 0; }
  .secondary-button, .icon-button { min-height: 44px; }
  .filters { display: block; overflow: visible; border: 0; background: transparent; }
  .filter-primary, .filter-advanced.expanded {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--line);
  }
  .filter-advanced { display: none; margin-top: .55rem; }
  .filters .wide-field { grid-column: 1 / -1; }
  .filters label { min-height: 66px; }
  .filters label > span { font-size: .75rem; }
  .filters input, .filters select { min-height: 36px; font-size: 1rem; }
  .mobile-filter-toggle {
    display: flex;
    grid-column: 1 / -1;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    background: var(--surface-raised);
    color: var(--text-soft);
    cursor: pointer;
    font-size: .875rem;
    font-weight: 800;
  }
  .mobile-filter-toggle strong { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 99px; background: var(--accent); color: var(--bg); font-size: .75rem; }
  .mobile-filter-toggle strong[hidden] { display: none; }
  .filter-advanced .reset-button { grid-column: 1 / -1; min-height: 44px; }
  html[data-layout="table"] table { min-width: 1450px; }
  html[data-layout="cards"] tbody { gap: .55rem; }
  html[data-layout="cards"] tbody tr.listing-row {
    border-radius: 9px;
    box-shadow: inset 4px 0 var(--collection, var(--line)), inset -4px 0 var(--collection, var(--line)), 0 7px 22px rgba(0, 0, 0, .12);
  }
  html[data-layout="cards"] td { padding: .48rem .75rem; }
  html[data-layout="cards"] td::before {
    margin-bottom: .14rem;
    font-size: .75rem;
    letter-spacing: .05em;
  }
  html[data-layout="cards"] .listing-address { padding: .65rem .8rem .55rem; }
  html[data-layout="cards"] .listing-address .primary { font-size: 1rem; line-height: 1.16; }
  html[data-layout="cards"] .listing-address .subline { margin-top: .25rem; font-size: .75rem; }
  html[data-layout="cards"] .property-id,
  html[data-layout="cards"] .status-mini.active,
  html[data-layout="cards"] .listing-mint,
  html[data-layout="cards"] td.is-empty { display: none; }
  html[data-layout="cards"] .mobile-mint { display: inline; }
  html[data-layout="cards"] .listing-city,
  html[data-layout="cards"] .listing-neighborhood { padding-top: .44rem; padding-bottom: .44rem; font-size: 1rem; }
  html[data-layout="cards"] .listing-collection { padding-top: .42rem; padding-bottom: .48rem; }
  html[data-layout="cards"] .listing-collection .badge { padding: .2rem .38rem; font-size: .75rem; }
  html[data-layout="cards"] .listing-price-upx,
  html[data-layout="cards"] .listing-price-usd {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
  }
  html[data-layout="cards"] .listing-price-upx::before,
  html[data-layout="cards"] .listing-price-usd::before { margin-bottom: 0; }
  html[data-layout="cards"] .listing-price-upx .price-stack,
  html[data-layout="cards"] .listing-price-usd .price-stack { justify-items: end; text-align: right; }
  html[data-layout="cards"] tr.price-upx-only .listing-price-upx,
  html[data-layout="cards"] tr.price-usd-only .listing-price-usd { grid-column: 1 / -1; }
  html[data-layout="cards"] .listing-markup {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding-top: .38rem;
    padding-bottom: .38rem;
  }
  html[data-layout="cards"] .listing-markup::before { content: "Markup"; margin-bottom: 0; }
  html[data-layout="cards"] .listing-markup .markup { flex: 1; max-width: 220px; min-width: 0; }
  html[data-layout="cards"] .markup-value { padding: .18rem .3rem; }
  html[data-layout="cards"] .listing-assets,
  html[data-layout="cards"] .listing-buildings { padding-top: .42rem; padding-bottom: .46rem; }
  html[data-layout="cards"] .listing-assets .asset-list { max-height: 145px; gap: .16rem; }
  html[data-layout="cards"] .listing-assets .asset-count { display: none; }
  html[data-layout="cards"] .listing-assets .asset-count.asset-loading { display: block; }
  html[data-layout="cards"] .listing-assets .asset-name,
  html[data-layout="cards"] .listing-buildings .building-list { font-size: .875rem; }
  html[data-layout="cards"] tr.buildings-empty .listing-assets:not(.is-empty),
  html[data-layout="cards"] .listing-buildings:not(.is-empty),
  html[data-layout="cards"] tr.assets-empty.buildings-empty .listing-markup { border-bottom: 0; }
  .result-footer { align-items: stretch; flex-direction: column; text-align: center; }
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: .8rem max(.8rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left));
    font-size: .75rem;
  }
}

@media (max-width: 460px) {
  .brand { gap: .5rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand strong { font-size: .82rem; }
  .brand small { font-size: .58rem; }
  .status-pill { font-size: .72rem; }
  h1 { font-size: 1.7rem; }
  html[data-layout="cards"] td { padding-right: .78rem; padding-left: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.owner-name { overflow-wrap: anywhere; white-space: normal; }
.upxland-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; background: var(--surface); white-space: nowrap; }
.upxland-button:hover, .upxland-button:focus-visible { border-color: var(--accent); }
.upxland-button img { display: block; width: auto; height: 40px; object-fit: contain; }

/* Mobile header action; desktop table and desktop cards retain their placement. */
@media (max-width: 900px) {
  html[data-layout="cards"] tbody tr.listing-row {
    grid-template-areas:
      "address address"
      "city neighborhood"
      "collection collection"
      "price-upx price-usd"
      "markup markup"
      "assets assets"
      "buildings buildings"
      "mint mint";
  }
  html[data-layout="cards"] .listing-address { padding-right: 76px; min-height: 76px; }
  html[data-layout="cards"] .listing-upxland {
    grid-area: 1 / 2 / 2 / 3;
    justify-self: end;
    align-self: center;
    z-index: 1;
    padding: .4rem .8rem;
  }
  html[data-layout="cards"] .listing-upxland::before { display: none; }
}

.go-to-top { display: none; }
@media (max-width: 900px) {
  .go-to-top { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; flex-shrink: 0; }
  .topbar { flex-wrap: wrap; column-gap: .5rem; }
  .top-status { gap: .4rem; }
}
