:root {
  --site-width: 1680px;
  --topbar-width: 1680px;
  --tooltip-width: 520px;
  --tooltip-min-height: 0px;
  --tooltip-max-height: none;
  --card-min-width: 260px;
  --base-font-size: 16px;
  --font-body: "Crimson Text", Georgia, serif;
  --font-display: "Cinzel", serif;
  --bg: #120f0b;
  --bg2: #1a1611;
  --bg3: #241e17;
  --bg-start: #15110d;
  --bg-end: #0e0b08;
  --bg-glow: rgba(215, 176, 98, 0.12);
  --panel: rgba(21, 17, 12, 0.92);
  --line: rgba(190, 162, 102, 0.18);
  --line-strong: rgba(214, 181, 104, 0.42);
  --text: #efe5cf;
  --muted: #a79a82;
  --gold: #d7b062;
  --gold-soft: #eed39c;
  --red: #d36d57;
  --green: #87b06a;
  --blue: #85a6d6;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--font-body);
  font-size: var(--base-font-size);
  background:
    radial-gradient(circle at top, var(--bg-glow), transparent 30%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell { max-width: var(--site-width); margin: 0 auto; padding: 0 20px 40px; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(10, 8, 6, 0.82); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--topbar-width); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); }
.brand span { color: var(--text); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-link { padding: 5px 10px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; transition: 0.18s ease; font-size: 0.82rem; line-height: 1.1; }
.nav-link:hover, .nav-link.active { color: var(--gold-soft); border-color: var(--line-strong); background: rgba(215, 176, 98, 0.08); }
.topbar-spacer { flex: 1; }
.user-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill, .btn { border-radius: 999px; border: 1px solid var(--line-strong); padding: 3px 8px; background: rgba(215, 176, 98, 0.08); color: var(--gold-soft); font-size: 0.76rem; line-height: 1.1; }
.btn.primary { background: linear-gradient(180deg, #d9b269, #af8743); color: #16110b; border-color: rgba(255, 230, 171, 0.5); font-weight: 700; }
.btn.secondary { background: var(--bg3); color: var(--text); }
.btn.danger { background: rgba(211, 109, 87, 0.1); color: #f3bab0; border-color: rgba(211, 109, 87, 0.32); }
.btn:disabled { opacity: 0.45; cursor: default; }

.hero { padding: 36px 0 20px; display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 18px; }
.hero-card, .panel, .field, .search-box, .card, .listing-card, .item-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.hero-copy { padding: 28px; }
.eyebrow { color: var(--gold); font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-title { margin: 10px 0 8px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; }
.hero-subtitle { color: var(--muted); font-size: 1.15rem; max-width: 42rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat-card { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-soft); }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.hero-side { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.side-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 1rem; letter-spacing: 0.08em; }
.side-copy { color: var(--muted); font-size: 1rem; }

.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
.field { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.field-help { color: var(--muted); font-size: 0.78rem; line-height: 1.22; }
.field input[type="range"] { width: 100%; accent-color: var(--gold-soft); padding: 0; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.module-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.module-card-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 1rem; }
.module-card-copy { color: var(--muted); margin-top: 6px; font-size: 0.96rem; line-height: 1.4; }
.module-card .mini-grid { margin-top: 14px; }
.paired-slider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.module-subsection { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.module-subsection-title { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.filter-label { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.field select, .field input, .field textarea, .search-box input { width: 100%; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 12px; padding: 10px 12px; outline: none; }
.field select,
.itemdb-builder-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 38px 8px 10px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1.15;
  background-color: rgba(20, 16, 11, 0.96);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(215, 176, 98, 0.95) 50%),
    linear-gradient(135deg, rgba(215, 176, 98, 0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  border-color: rgba(215, 176, 98, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.field select:hover,
.itemdb-builder-select:hover {
  border-color: rgba(215, 176, 98, 0.34);
  background-color: rgba(27, 21, 14, 0.98);
}
.field select:focus,
.itemdb-builder-select:focus {
  border-color: rgba(215, 176, 98, 0.48);
  box-shadow: 0 0 0 1px rgba(215, 176, 98, 0.18);
}
.field select option,
.itemdb-builder-select option {
  background: #17120c;
  color: #f1e6cf;
}
.itemdb-builder-input {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.92rem;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(18, 14, 10, 0.86);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(215, 176, 98, 0.54), rgba(120, 86, 40, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(18, 14, 10, 0.86);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(240, 205, 124, 0.7), rgba(144, 103, 48, 0.9));
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: rgba(214, 94, 94, 0.72); box-shadow: 0 0 0 1px rgba(214, 94, 94, 0.28); }
.field textarea { min-height: 110px; resize: vertical; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 10px 0 18px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 240px; padding: 10px 14px; }
.search-box input { border: none; padding: 2px 0; background: transparent; }
.button-group { display: flex; gap: 8px; flex-wrap: wrap; }
.market-filter-panel { margin-top: 10px; padding: 18px; }
.market-filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.market-filter-block { min-width: 0; }
.market-filter-block .button-group { min-height: 42px; }
.market-bucket-row { gap: 10px; }
.market-bucket-sold { margin-left: auto; }
.toggle-button { border-radius: 999px; border: 1px solid var(--line); padding: 3px 8px; background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 0.74rem; line-height: 1.1; transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.toggle-button:hover { border-color: var(--line-strong); color: var(--gold-soft); }
.toggle-button.active { border-color: rgba(255, 230, 171, 0.5); background: rgba(215, 176, 98, 0.14); color: var(--gold-soft); transform: scale(1.06); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width, 260px), 1fr)); gap: 14px; }
.listing-card, .item-card { padding: 12px; text-align: left; }
.listing-card:hover, .item-card:hover, .row-card:hover { border-color: var(--line-strong); }
.marketplace-listings { grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width, 260px), 1fr)); align-items: start; gap: 10px; }
.marketplace-card { display: flex; flex-direction: column; gap: 6px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.marketplace-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.marketplace-card .tooltip-shell { max-width: 100%; margin: 0; }
.marketplace-card .listing-top,
.marketplace-card .row-meta { padding: 0 4px; gap: 6px; }
.marketplace-card .listing-name { font-size: 0.86rem; line-height: 1.1; }
.marketplace-card .listing-sub,
.marketplace-card .row-meta .muted { font-size: 0.7rem; line-height: 1.1; }
.marketplace-card .badge { font-size: 0.68rem; padding: 2px 6px; }
body[data-page="marketplace"] .tooltip-shell { max-width: var(--marketplace-tooltip-width, var(--tooltip-width)); min-height: var(--marketplace-tooltip-min-height, var(--tooltip-min-height)); max-height: var(--marketplace-tooltip-max-height, var(--tooltip-max-height)); }
body[data-page="list-item"] .tooltip-shell { max-width: var(--list-item-tooltip-width, var(--tooltip-width)); min-height: var(--list-item-tooltip-min-height, var(--tooltip-min-height)); max-height: var(--list-item-tooltip-max-height, var(--tooltip-max-height)); }
body[data-page="listing-detail"] .tooltip-shell,
body[data-page="trade-detail"] .tooltip-shell { max-width: var(--listing-detail-tooltip-width, var(--tooltip-width)); min-height: var(--listing-detail-tooltip-min-height, var(--tooltip-min-height)); max-height: var(--listing-detail-tooltip-max-height, var(--tooltip-max-height)); }
body[data-page="profile"] .tooltip-shell { max-width: var(--profile-tooltip-width, var(--tooltip-width)); min-height: var(--profile-tooltip-min-height, var(--tooltip-min-height)); max-height: var(--profile-tooltip-max-height, var(--tooltip-max-height)); }
body[data-page="itemdb"] .tooltip-shell { max-width: var(--itemdb-tooltip-width, var(--tooltip-width)); min-height: var(--itemdb-tooltip-min-height, var(--tooltip-min-height)); max-height: var(--itemdb-tooltip-max-height, var(--tooltip-max-height)); }
body[data-page="itemdb"] .tooltip-shell,
body[data-page="marketplace"] .tooltip-shell {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 10px;
}
body[data-page="itemdb"] .tooltip-name,
body[data-page="marketplace"] .tooltip-name { font-size: 1.02rem; margin-bottom: 2px; }
body[data-page="itemdb"] .tooltip-set-title,
body[data-page="marketplace"] .tooltip-set-title { font-size: 0.98rem; margin-bottom: 2px; }
body[data-page="itemdb"] .tooltip-subtitle,
body[data-page="itemdb"] .tooltip-set-name,
body[data-page="itemdb"] .tooltip-runes,
body[data-page="itemdb"] .tooltip-section-label,
body[data-page="marketplace"] .tooltip-subtitle,
body[data-page="marketplace"] .tooltip-set-name,
body[data-page="marketplace"] .tooltip-runes,
body[data-page="marketplace"] .tooltip-section-label {
  font-size: 0.72rem;
  margin-bottom: 3px;
  line-height: 1.08;
}
body[data-page="itemdb"] .tooltip-lines,
body[data-page="marketplace"] .tooltip-lines { gap: 1px; }
body[data-page="itemdb"] .tooltip-line,
body[data-page="marketplace"] .tooltip-line { font-size: 0.76rem; line-height: 1.12; }
body[data-page="itemdb"] .tooltip-divider,
body[data-page="marketplace"] .tooltip-divider { margin: 6px 0; }
body[data-page="itemdb"] .item-card-art,
body[data-page="marketplace"] .tooltip-image { min-height: 28px; margin-bottom: 4px; }
body[data-page="itemdb"] .item-art,
body[data-page="itemdb"] .tooltip-art,
body[data-page="marketplace"] .item-art,
body[data-page="marketplace"] .tooltip-art { width: 32px; height: 32px; }
body[data-page="itemdb"][data-itemdb-category="all"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="all"] .tooltip-shell { max-width: var(--itemdb-all-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-all-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-all-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"][data-itemdb-category="unique"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="unique"] .tooltip-shell { max-width: var(--itemdb-unique-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-unique-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-unique-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"][data-itemdb-category="set"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="set"] .tooltip-shell { max-width: var(--itemdb-set-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-set-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-set-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"][data-itemdb-category="runeword"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="runeword"] .tooltip-shell { max-width: var(--itemdb-runeword-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-runeword-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-runeword-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"] .list-grid.expanded-grid {
  display: block;
  column-width: var(--card-min-width, 240px);
  column-gap: 8px;
}
body[data-page="itemdb"] .list-grid.expanded-grid .item-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
}
body[data-page="itemdb"][data-itemdb-category="runeword"] .item-inline-detail { margin-top: 8px; }
body[data-page="itemdb"][data-itemdb-category="base"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="base"] .tooltip-shell { max-width: var(--itemdb-base-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-base-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-base-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"][data-itemdb-category="rune"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="rune"] .tooltip-shell { max-width: var(--itemdb-rune-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-rune-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-rune-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"][data-itemdb-category="gem"] { --itemdb-current-card-min-width: var(--card-min-width, 280px); }
body[data-page="itemdb"][data-itemdb-category="gem"] .tooltip-shell { max-width: var(--itemdb-gem-tooltip-width, var(--itemdb-tooltip-width, var(--tooltip-width))); min-height: var(--itemdb-gem-tooltip-min-height, var(--itemdb-tooltip-min-height, var(--tooltip-min-height))); max-height: var(--itemdb-gem-tooltip-max-height, var(--itemdb-tooltip-max-height, var(--tooltip-max-height))); }
body[data-page="itemdb"] { --itemdb-current-card-min-width: var(--card-min-width, 260px); }
body[data-page="marketplace"] .tooltip-shell,
body[data-page="list-item"] .tooltip-shell,
body[data-page="listing-detail"] .tooltip-shell,
body[data-page="trade-detail"] .tooltip-shell,
body[data-page="profile"] .tooltip-shell,
body[data-page="itemdb"] .tooltip-shell {
  max-width: var(--tooltip-width);
  min-height: var(--tooltip-min-height);
  max-height: var(--tooltip-max-height);
}
.marketplace-asking-compact { border-top: 1px solid rgba(215, 176, 98, 0.14); padding: 6px 4px 0; }
.marketplace-asking-title { font-family: "Cinzel", serif; color: var(--gold-soft); margin-bottom: 4px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.market-ask-bundle { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.market-ask-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 10px; padding: 3px 6px; min-width: 0; }
.market-ask-art { display: flex; align-items: center; justify-content: center; min-width: 24px; }
.market-ask-copy { min-width: 0; }
.market-ask-name { color: var(--text); font-size: 0.76rem; line-height: 1.1; }
.market-ask-qty { color: var(--muted); font-size: 0.68rem; }
.market-ask-plus, .market-ask-separator { color: var(--gold-soft); font-family: "Cinzel", serif; }
.market-ask-separator { margin: 3px 0; text-align: center; font-size: 0.76rem; }
.item-card.expanded { border-color: rgba(215, 176, 98, 0.5); }
.item-card-art { display: flex; justify-content: center; margin-bottom: 8px; min-height: 40px; }
.item-art, .tooltip-art { object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.item-inline-detail { margin-top: 14px; }
.item-inline-detail .tooltip-shell { max-width: 100%; margin: 0; }
.item-piece-list { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.item-piece-line { color: #8ed3a1; font-size: 0.9rem; line-height: 1.25; }
.list-grid.set-drilldown { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); justify-content: center; gap: 12px; }
.list-grid.expanded-grid { grid-template-columns: repeat(auto-fit, minmax(var(--itemdb-current-card-min-width, 280px), 1fr)); justify-content: center; gap: 10px; }
.list-grid.unique-drilldown { grid-template-columns: repeat(auto-fit, minmax(var(--itemdb-current-card-min-width, 280px), 1fr)); justify-content: center; gap: 12px; }
.list-grid.set-drilldown .item-card {
  background: linear-gradient(180deg, rgba(12, 11, 18, 0.94), rgba(18, 16, 24, 0.94));
  border: 1px solid rgba(132, 116, 82, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  padding: 12px;
  border-radius: 16px;
}
.list-grid.expanded-grid .item-card {
  background: linear-gradient(180deg, rgba(12, 11, 18, 0.94), rgba(18, 16, 24, 0.94));
  border: 1px solid rgba(132, 116, 82, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  padding: 12px;
  border-radius: 16px;
}
.list-grid.expanded-grid .item-inline-detail {
  margin-top: 0;
}
.list-grid.expanded-grid .item-inline-detail .tooltip-shell {
  max-width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.itemdb-runeword-controls { margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.itemdb-runeword-toggle {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: linear-gradient(180deg, rgba(32, 25, 16, 0.92), rgba(18, 14, 10, 0.94));
  border-color: rgba(215, 176, 98, 0.18);
  min-height: 18px;
  font-size: 0.68rem;
}
.itemdb-runeword-toggle.active {
  border-color: rgba(255, 230, 171, 0.4);
  color: var(--gold-soft);
}
.itemdb-runeword-toggle-value {
  color: var(--text);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 6px;
}
.itemdb-runeword-field { padding: 0; margin: 0; border-radius: 0; background: transparent; border: none; box-shadow: none; }
.itemdb-runeword-field label { display: none; }
.itemdb-runeword-field select { width: 100%; }
.itemdb-runeword-builder {
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}
.itemdb-builder-head { margin-bottom: 0; display: none; }
.itemdb-builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
.itemdb-builder-field {
  padding: 0;
  margin: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.itemdb-builder-inline-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.itemdb-builder-add-field {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.itemdb-builder-input { width: 100%; }
.itemdb-builder-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 3px 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.68rem;
}
.itemdb-builder-checkbox input {
  width: 12px;
  height: 12px;
  accent-color: var(--gold-soft);
}
.itemdb-runeword-builder .section-title { font-size: 0.68rem; }
.itemdb-builder-field label { font-size: 0.62rem; line-height: 1.02; margin-bottom: 0; }
.itemdb-builder-add-field label { display: none; }
.itemdb-builder-select,
.itemdb-builder-input { min-height: 16px; max-width: 84%; padding: 1px 18px 1px 5px; font-size: 0.64rem; }
.itemdb-builder-select {
  min-height: 18px;
  width: 100%;
  max-width: 100%;
  padding: 1px 18px 1px 5px;
  font-size: 0.64rem;
}
.itemdb-runeword-field .itemdb-builder-select,
.itemdb-builder-add-field .itemdb-builder-select {
  min-height: 18px;
  padding: 1px 18px 1px 5px;
}
.itemdb-builder-input {
  width: 100%;
  max-width: 100%;
  min-height: 18px;
  flex: 1 1 auto;
}
.itemdb-builder-remove {
  flex: 0 0 auto;
  padding: 1px 6px;
  min-height: 14px;
  font-size: 0.6rem;
  line-height: 1;
  border-radius: 999px;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(18, 14, 10, 0.86);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(215, 176, 98, 0.54), rgba(120, 86, 40, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(18, 14, 10, 0.86);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(240, 205, 124, 0.7), rgba(144, 103, 48, 0.9));
}
.list-grid.expanded-grid .item-card:hover {
  border-color: rgba(215, 176, 98, 0.38);
}
.list-grid.set-drilldown .item-card:hover {
  border-color: rgba(215, 176, 98, 0.38);
}
.list-grid.set-drilldown .item-inline-detail {
  margin-top: 0;
}
.list-grid.set-drilldown .item-inline-detail .tooltip-shell {
  max-width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.listing-top, .row-meta, .section-header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.section-header:has(#dbResultsTitle:empty) { display: none; }
.listing-name, .item-name, .card-title, .section-title { font-family: var(--font-display); color: var(--gold-soft); }
.listing-name, .item-name, .card-title { font-size: 1rem; }
.section-title { font-size: 1.1rem; }
.listing-sub, .item-sub, .muted { color: var(--muted); }
.badge, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 0.78rem; border: 1px solid var(--line); }

.section { margin-top: 18px; }
.sidebar-layout { display: grid; grid-template-columns: 220px 1fr; gap: 12px; margin-top: 18px; }
.sidebar { padding: 12px; position: sticky; top: 84px; height: fit-content; }
.side-button { width: 100%; text-align: left; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.side-button.active, .side-button:hover { color: var(--gold-soft); border-color: var(--line-strong); background: rgba(215, 176, 98, 0.08); }
.itemdb-topnav {
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.itemdb-topnav .side-button {
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
}
.itemdb-searchbar {
  margin: 0;
  justify-content: flex-start;
}
.row-card { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.empty, .notice { padding: 20px; border-radius: 18px; border: 1px dashed var(--line-strong); background: rgba(215, 176, 98, 0.05); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.dropzone { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.dropzone.is-dragover { border-color: rgba(255, 230, 171, 0.65); background: rgba(215, 176, 98, 0.08); color: var(--gold-soft); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chip-list { display: flex; gap: 8px; flex-wrap: wrap; }
#dbBottomControls { justify-content: flex-end; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; }
.callout { padding: 14px; border-radius: 16px; border: 1px solid rgba(133, 166, 214, 0.26); background: rgba(133, 166, 214, 0.08); color: #dce8ff; }
.listing-workbench { padding: 18px; }
.listing-input-shell { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.listing-input { min-height: 220px; width: 100%; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 16px; padding: 14px 16px; resize: vertical; outline: none; }
.listing-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.list-item-root { margin-top: 10px; gap: 8px; }
.list-item-root .form-grid { gap: 10px; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr); }
.list-item-root .stack { gap: 8px; }
.list-item-realm-panel { padding: 8px 10px; }
.list-item-compact-panel,
.listing-workbench { padding: 9px; }
.list-item-root .market-filter-row { gap: 8px; }
.list-item-root .market-filter-block .button-group { min-height: 18px; }
.list-item-root .market-filter-block .toggle-button {
  min-height: 15px;
  padding: 1px 6px;
  font-size: 0.62rem;
  line-height: 1;
}
.list-item-root .market-filter-block .toggle-button.active {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.list-item-root .filter-label { font-size: 0.64rem; margin-bottom: 4px; }
.list-item-root .button-group { gap: 5px; }
.list-item-root .section-title { font-size: 0.82rem; }
.list-item-root .muted,
.list-item-root .field-help,
.list-item-root .item-sub { font-size: 0.78rem; line-height: 1.2; }
.list-item-root .search-box { padding: 5px 9px; border-radius: 12px; }
.list-item-root .search-box input { font-size: 0.8rem; }
.list-item-root .field {
  padding: 5px 6px;
  gap: 3px;
  border-radius: 10px;
}
.list-item-root .field label {
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.06em;
}
.list-item-root .field select,
.list-item-root .field input,
.list-item-root .field textarea {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.05;
}
.list-item-root .field select {
  padding-right: 20px;
  background-position:
    calc(100% - 13px) calc(50% - 2px),
    calc(100% - 8px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
}
.list-item-root .field textarea {
  min-height: 72px;
}
.list-item-root .mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.list-item-root .checkbox-row {
  min-height: 20px;
  gap: 5px;
  font-size: 0.68rem;
  line-height: 1.05;
}
.list-item-root .checkbox-row input {
  width: 12px;
  height: 12px;
}
.listing-input-shell { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.listing-suggestions {
  position: absolute;
  z-index: 12;
  top: 42px;
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(215, 176, 98, 0.32);
  border-radius: 14px;
  background: rgba(18, 14, 10, 0.98);
  box-shadow: var(--shadow);
}
.listing-dropzone { min-height: 36px; padding: 6px 10px; display: flex; flex-direction: column; justify-content: center; font-size: 0.76rem; }
.listing-match-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.listing-match-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.listing-match-tooltip { margin-top: 14px; }
.listing-match-tooltip .tooltip-shell { max-width: 100%; margin: 0; }
.listing-search-result { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: left; padding: 7px 9px; border-radius: 12px; }
.listing-search-art { display: flex; align-items: center; justify-content: center; min-width: 34px; }
.listing-search-copy { min-width: 0; }
.listing-draft-panel { padding: 9px; border-radius: 14px; border: 1px solid rgba(215, 176, 98, 0.34); background: rgba(215, 176, 98, 0.05); }
.listing-draft-tooltip { margin-top: 14px; }
.listing-pre { margin: 10px 0 0; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); color: var(--text); white-space: pre-wrap; word-break: break-word; font-family: Consolas, "Courier New", monospace; font-size: 0.92rem; line-height: 1.45; }
.listing-preview-shell { display: flex; flex-direction: column; gap: 8px; }
.listing-preview-shell .tooltip-shell { max-width: 100%; margin: 0; }
#listingSelectedItem .listing-preview-shell {
  align-items: center;
  gap: 6px;
}
#listingSelectedItem .listing-preview-shell > * {
  width: 100%;
}
#listingSelectedItem .tooltip-shell {
  width: 100%;
  max-width: 300px;
}
#listingSelectedItem .listing-preview-shell > .stack {
  max-width: 300px;
}
#listingSelectedItem .callout {
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.15;
  margin-top: 6px !important;
}
.listing-base-modifier-section {
  gap: 5px;
  width: 100%;
}
.listing-base-modifier-add {
  width: 100%;
}
.listing-base-modifier-rows {
  width: 100%;
}
.listing-base-modifier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 5px;
}
.listing-base-modifier-row label {
  grid-column: 1 / -1;
}
.listing-base-modifier-row select,
.listing-base-modifier-row input {
  min-width: 0;
}
.listing-base-modifier-row .btn {
  min-height: 18px;
  padding: 2px 6px;
  font-size: 0.6rem;
}
body[data-page="list-item"] .tooltip-shell {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 8px;
}
body[data-page="list-item"] .tooltip-name { font-size: 0.94rem; margin-bottom: 1px; }
body[data-page="list-item"] .tooltip-set-title { font-size: 0.9rem; margin-bottom: 1px; }
body[data-page="list-item"] .tooltip-subtitle,
body[data-page="list-item"] .tooltip-set-name,
body[data-page="list-item"] .tooltip-runes,
body[data-page="list-item"] .tooltip-section-label {
  font-size: 0.68rem;
  margin-bottom: 2px;
  line-height: 1.08;
}
body[data-page="list-item"] .tooltip-lines { gap: 1px; }
body[data-page="list-item"] .tooltip-line { font-size: 0.72rem; line-height: 1.08; }
body[data-page="list-item"] .tooltip-divider { margin: 4px 0; }
body[data-page="list-item"] .tooltip-image { min-height: 24px; margin-bottom: 3px; }
body[data-page="list-item"] .item-art,
body[data-page="list-item"] .tooltip-art { width: 28px; height: 28px; }
.map-hero { grid-template-columns: 1.3fr 0.9fr; }
.map-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.map-legend-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 0.8rem; }
.map-legend-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.map-legend-dot.page { background: #d7b062; }
.map-legend-dot.api { background: #85a6d6; }
.map-legend-dot.engine { background: #87b06a; }
.map-legend-dot.data { background: #d36d57; }
.map-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: center; }
.map-node, .map-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(26, 21, 15, 0.96), rgba(17, 13, 10, 0.98));
  box-shadow: var(--shadow);
}
.map-node { padding: 18px; min-height: 128px; position: relative; overflow: hidden; }
.map-node.small { min-height: 0; }
.map-node::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}
.map-node.page::before { background: linear-gradient(90deg, rgba(215,176,98,0.95), rgba(238,211,156,0.45)); }
.map-node.api::before { background: linear-gradient(90deg, rgba(133,166,214,0.95), rgba(133,166,214,0.35)); }
.map-node.engine::before { background: linear-gradient(90deg, rgba(135,176,106,0.95), rgba(135,176,106,0.35)); }
.map-node.data::before { background: linear-gradient(90deg, rgba(211,109,87,0.95), rgba(211,109,87,0.35)); }
.map-node-title, .map-card-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 1rem; }
.map-node-copy, .map-card-copy { color: var(--muted); margin-top: 8px; line-height: 1.4; }
.map-card { padding: 18px; }
.map-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-grid { display: grid; gap: 14px; }
.map-grid-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.map-grid-engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-grid-flows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.map-list { margin: 12px 0 0; padding-left: 18px; color: var(--text); }
.map-list li { margin: 6px 0; }
.map-arrow, .map-stack-arrow { text-align: center; color: var(--gold-soft); font-family: var(--font-display); font-size: 1.7rem; }
.map-stack { display: grid; grid-template-columns: 1fr 56px 1.35fr 56px 1fr; gap: 10px; align-items: center; }
.map-stack-column { display: flex; flex-direction: column; gap: 12px; }
.map-stack-label { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; }
.map-inline-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.map-arrow-inline { color: var(--gold-soft); font-family: var(--font-display); }
.map-boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body[data-page="site-map"] .section { margin-top: 22px; }
body[data-page="site-map"] .chip { background: rgba(255, 255, 255, 0.05); }
.asking-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.asking-summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; cursor: pointer; }
.asking-summary::-webkit-details-marker { display: none; }
.asking-summary-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.asking-summary-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.asking-qty-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.76rem; }
.asking-qty-input { width: 58px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 8px; padding: 4px 7px; }
.asking-joiner-input { min-width: 74px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 8px; padding: 4px 7px; }
.asking-preview { padding: 0 9px 9px; }
.asking-preview .tooltip-shell { max-width: 100%; margin: 0; }
.asking-option-block { padding: 8px 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.app-dialog-panel {
  width: min(560px, 100%);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(18, 15, 11, 0.98), rgba(10, 8, 6, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 22px;
}
.app-dialog-title {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.35rem;
}
.app-dialog-body {
  margin-top: 10px;
}
.app-dialog-input-field {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.asking-separator-row { display: flex; justify-content: center; gap: 8px; margin: 2px 0; }
.asking-bundle-block { display: flex; flex-direction: column; gap: 10px; }
.asking-or-break, .asking-add-mode { display: flex; justify-content: center; gap: 8px; }
.profile-window-tabs { margin-bottom: 4px; }
.profile-subsection { display: flex; flex-direction: column; gap: 12px; }
.profile-subsection + .profile-subsection { margin-top: 8px; }
.profile-row-stack { gap: 10px; }
.profile-listing-row { width: 100%; }
.u-mt-6 { margin-top: 6px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-34 { margin-top: 34px; }
.u-my-12-14 { margin: 12px 0 14px; }
.u-my-18-0 { margin: 18px 0 0; }
.u-my-6-0-2 { margin: 6px 0 2px; }
.u-mb-10 { margin-bottom: 10px; }
.u-mr-8 { margin-right: 8px; }
.u-p-0 { padding: 0; }
.u-p-16 { padding: 16px; }
.u-p-18 { padding: 18px; }
.u-p-20 { padding: 20px; }
.u-p-22 { padding: 22px; }
.u-p-24 { padding: 24px; }
.u-p-26 { padding: 26px; }
.u-fs-2 { font-size: 2rem; }
.u-fs-22 { font-size: 2.2rem; }
.u-maxw-420 { max-width: 420px; }
.u-maxw-760 { max-width: 760px; }
.u-maxw-1280 { max-width: 1280px; }
.u-minw-280 { min-width: 280px; }
.u-minw-220 { min-width: 220px; }
.u-hidden { display: none !important; }

.tooltip-shell {
  max-width: var(--tooltip-width);
  min-height: var(--tooltip-min-height);
  max-height: var(--tooltip-max-height);
  overflow-y: auto;
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96));
  border: 1px solid rgba(132, 116, 82, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.tooltip-image { display: flex; justify-content: center; margin-bottom: 8px; min-height: 56px; }

.tooltip-name {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.tooltip-name.unique { color: #c6a659; }
.tooltip-name.rare { color: #d2c46d; }
.tooltip-name.crafted { color: #cf9162; }
.tooltip-name.set { color: #4fb36f; }
.tooltip-name.set-item { color: #4fb36f; }
.tooltip-name.runeword { color: #db8b45; }
.tooltip-name.rune { color: #d98f47; }
.tooltip-name.base { color: #e9dfc7; }
.tooltip-set-title { text-align: center; color: #d7b062; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 4px; }
  
.tooltip-subtitle,
.tooltip-set-name,
.tooltip-runes,
.tooltip-section-label {
  text-align: center;
  color: #9ba0b3;
  margin-bottom: 6px;
}

.tooltip-set-name { color: #77cc8f; }
.tooltip-runes { color: #d7b062; }
.tooltip-subtitle.item-base { color: #ddd4c3; }
.tooltip-subtitle.set-base { color: #79d38f; }
.tooltip-divider {
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, transparent, rgba(215, 176, 98, 0.28), transparent);
}

.tooltip-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tooltip-line {
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
}

.tooltip-line.base { color: #ddd4c3; }
.tooltip-line .base { color: #ddd4c3; }
.tooltip-line.magic { color: #8fb6ff; }
.tooltip-line .magic { color: #8fb6ff; }
.tooltip-line.set { color: #79d38f; }
.tooltip-line.gold { color: #d7b062; }
.tooltip-line.req { color: #d36d57; }
.tooltip-line.misc { color: #d7b062; }
.tooltip-line.rw-runes { color: #db8b45; }
.tooltip-line.set-piece { color: #8ed3a1; }
.tooltip-line.set-piece-active { color: #d0f0af; font-weight: 700; }
.tooltip-inline-note { color: #9ba0b3; font-size: 0.85em; }

@media (max-width: 980px) {
  .hero, .form-grid, .sidebar-layout { grid-template-columns: 1fr; }
  .filter-grid, .mini-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .market-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .itemdb-topnav { padding: 8px; }
  .marketplace-listings { grid-template-columns: 1fr; }
  .market-bucket-sold { margin-left: 0; }
  .map-flow,
  .map-grid-pages,
  .map-grid-flows,
  .map-boundary-grid { grid-template-columns: 1fr 1fr; }
  .map-stack { grid-template-columns: 1fr; }
  .map-stack-arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .topbar-inner, .toolbar, .section-header, .listing-top, .row-meta { align-items: stretch; flex-direction: column; }
  .filter-grid, .mini-grid, .stat-grid { grid-template-columns: 1fr; }
  .market-filter-row { grid-template-columns: 1fr; }
  .paired-slider-grid { grid-template-columns: 1fr; }
  .shell { padding: 0 14px 30px; }
  .map-flow,
  .map-grid-pages,
  .map-grid-engines,
  .map-grid-flows,
  .map-boundary-grid { grid-template-columns: 1fr; }
}
