:root {
  --site-width: 1680px;
  --topbar-width: 1680px;
  --tooltip-width: 320px;
  --tooltip-card-shell-spacing: 0px;
  --tooltip-card-gap: 12px;
  --tooltip-card-outer-width: calc(var(--tooltip-width) - (var(--component-pad-lg) * 2) - var(--component-gap-md) + (var(--tooltip-card-shell-spacing) * 2));
  --marketplace-card-outer-width: var(--tooltip-card-outer-width);
  --marketplace-column-count: auto;
  --tooltip-min-height: 0px;
  --tooltip-max-height: none;
  --card-min-width: 260px;
  --base-font-size: 16px;
  --ui-scale: 1;
  --shell-pad-x: 20px;
  --shell-pad-bottom: 40px;
  --topbar-pad-y: 14px;
  --topbar-pad-x: 20px;
  --topbar-gap: 18px;
  --nav-gap: 8px;
  --nav-link-pad-y: 5px;
  --nav-link-pad-x: 10px;
  --user-actions-gap: 10px;
  --btn-pad-y: 3px;
  --btn-pad-x: 8px;
  --toolbar-gap: 12px;
  --search-box-min-width: 240px;
  --search-box-pad-y: 10px;
  --search-box-pad-x: 14px;
  --panel-radius-lg: 22px;
  --field-radius: 12px;
  --component-pad-sm: 8px;
  --component-pad-md: 10px;
  --component-pad-lg: 12px;
  --component-gap-sm: 4px;
  --component-gap-md: 6px;
  --component-gap-lg: 8px;
  --tooltip-shell-padding-x: 10px;
  --tooltip-shell-padding-y: 10px;
  --tooltip-shell-padding-bottom: 8px;
  --tooltip-shell-radius: 10px;
  --tooltip-image-min-height: 28px;
  --tooltip-name-size: 1.12rem;
  --tooltip-subtitle-size: 0.78rem;
  --tooltip-line-size: 0.82rem;
  --card-title-size: 1.08rem;
  --section-title-size: 1.1rem;
  --font-body: "Crimson Text", Georgia, serif;
  --font-display: "Cinzel", serif;
  --bg: #111315;
  --bg2: #181a1c;
  --bg3: #241e17;
  --bg-start: #181a1c;
  --bg-mid: #111315;
  --bg-end: #0c0d0f;
  --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; }
html { font-size: var(--base-font-size); }
[hidden] { display: none !important; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg-mid);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 50%, 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 var(--shell-pad-x) var(--shell-pad-bottom); }
.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: var(--topbar-pad-y) var(--topbar-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--topbar-gap);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: calc(var(--topbar-gap) * 0.85);
  min-width: 0;
}
.brand-icon,
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}
.brand-wordmark {
  justify-self: center;
}
.brand-icon-mark {
  display: block;
  width: auto;
  height: 26px;
  transform: scale(1.55);
  transform-origin: left center;
}
.brand-text-mark {
  display: block;
  width: auto;
  height: 26px;
  max-width: min(38vw, 290px);
  transform: scale(1.95);
  transform-origin: center center;
}
.nav { display: flex; gap: var(--nav-gap); flex-wrap: wrap; min-width: 0; }
.nav-link { padding: var(--nav-link-pad-y) var(--nav-link-pad-x); 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); }
.user-actions { display: flex; align-items: center; gap: var(--user-actions-gap); flex-wrap: wrap; justify-self: end; justify-content: flex-end; }
.pill, .btn { border-radius: 999px; border: 1px solid var(--line-strong); padding: var(--btn-pad-y) var(--btn-pad-x); background: rgba(215, 176, 98, 0.08); color: var(--gold-soft); font-size: 0.76rem; line-height: 1.1; }
.topbar-profile-link.active,
.topbar-icon-button.active,
.user-actions > a.btn.active:not(.topbar-icon-button) {
  border-color: rgba(255, 230, 171, 0.5);
  background: rgba(215, 176, 98, 0.14);
  color: var(--gold-soft);
}
.topbar-profile-link {
  display: inline-flex;
  align-items: center;
}
.topbar-icon-button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-icon-svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}
.btn-with-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.topbar-icon-button .btn-badge {
  position: absolute;
  top: -6px;
  right: -6px;
}
.btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9b269, #af8743);
  color: #16110b;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}
.btn.primary { background: linear-gradient(180deg, #d9b269, #af8743); color: #16110b; border-color: rgba(255, 230, 171, 0.5); font-weight: 700; }

/* ── List-an-Item special button ──────────────────────────────────────── */
.lib-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x); cursor: pointer; border-radius: 999px; overflow: hidden;
  text-decoration: none; flex-shrink: 0; font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.1;
  color: #C9A84C; white-space: nowrap;
  background: linear-gradient(160deg, #1E0D00 0%, #0D0500 60%, #150900 100%);
  border: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: inset 0 0 16px rgba(201, 168, 76, 0.04);
  transition: color 0.22s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, transform 0.07s ease;
}
.lib-btn::after {
  content: ''; position: absolute; left: -10%; right: -10%; height: 2px; top: -2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 96, 0.75) 50%, transparent);
  pointer-events: none;
}
.lib-btn:hover {
  color: #E8C060;
  background: linear-gradient(160deg, #261100 0%, #130700 60%, #1C0C00 100%);
  border-color: rgba(201, 168, 76, 0.72);
  box-shadow: inset 0 0 22px rgba(201, 168, 76, 0.09), 0 0 14px rgba(201, 168, 76, 0.07);
}
.lib-btn:hover::after { animation: libScan 0.75s ease-out forwards; }
@keyframes libScan {
  0%   { top: -2px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.85; }
  100% { top: calc(100% + 2px); opacity: 0; }
}
.lib-btn:active { transform: scale(0.97); }
.lib-btn.lib-btn-active {
  color: #E8C060;
  border-color: rgba(201, 168, 76, 0.68);
  background: linear-gradient(160deg, #261100 0%, #130700 60%, #1C0C00 100%);
  box-shadow: inset 0 0 20px rgba(201, 168, 76, 0.08);
}
.btn.secondary { background: var(--bg3); color: var(--text); }
.btn.secondary.active { background: linear-gradient(180deg, rgba(217, 178, 105, 0.22), rgba(175, 135, 67, 0.18)); border-color: rgba(255, 230, 171, 0.42); color: var(--gold-soft); }
.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: var(--panel-radius-lg); 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; }
#siteSettingsForm .module-grid .field input[type="color"],
.admin-color-native-input {
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.admin-color-picker-input {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.field-has-admin-palette { position: relative; }
.admin-color-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.admin-color-picker-head {
  display: grid;
  grid-template-columns: 52px auto;
  gap: 10px;
  align-items: center;
}
.admin-color-trigger {
  --admin-color-preview: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--admin-color-preview);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.18);
}
.admin-color-trigger {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  cursor: pointer;
}
.admin-color-trigger:hover,
.admin-color-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}
.admin-color-hex-input {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: var(--field-radius);
  padding: var(--component-pad-md) calc(var(--component-pad-md) + var(--component-gap-sm));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-color-default-button {
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-soft);
  border-radius: var(--field-radius);
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.admin-color-default-label { line-height: 1; }
.admin-color-default-value {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
}
.admin-color-default-button:hover,
.admin-color-default-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.admin-color-default-button:disabled {
  opacity: 0.55;
  cursor: default;
}
.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,
.listing-roll-row-control select, .listing-roll-row-control input, .listing-roll-row-control textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: var(--field-radius);
  padding: var(--component-pad-md) calc(var(--component-pad-md) + var(--component-gap-sm));
  outline: none;
}
.field select,
.listing-roll-row-control 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,
.listing-roll-row-control 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,
.listing-roll-row-control 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,
.listing-roll-row-control 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: var(--toolbar-gap); align-items: center; justify-content: space-between; margin: 10px 0 18px; flex-wrap: wrap; }
.exchange-toolbar { justify-content: flex-start; }
.exchange-detail-toolbar { align-items: flex-end; }
.exchange-board-toolbar { align-items: flex-end; margin-bottom: 12px; }
.exchange-board-toolbar .button-group { justify-content: flex-end; }
.search-box { flex: 1; min-width: var(--search-box-min-width); padding: var(--search-box-pad-y) var(--search-box-pad-x); }
.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: 10px 12px; }
.market-filter-row,
.league-selector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.market-filter-block,
.league-selector-block { min-width: 0; }
.market-filter-block .button-group,
.league-selector-block .button-group { min-height: 18px; align-items: center; gap: 12px; }
.market-filter-block .toggle-button,
.league-selector-block .toggle-button {
  min-height: 16px;
  padding: 0 7px;
  font-size: 0.66rem;
  line-height: 1;
}
.league-selector-panel .toggle-button.active {
  transform: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.market-filter-block .filter-label {
  margin-bottom: 4px;
  font-size: 0.68rem;
}
.market-bucket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.market-bucket-left,
.market-bucket-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.market-bucket-left {
  flex: 1 1 auto;
  min-width: 0;
}
.market-bucket-right {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
}
.market-toolbar-toggle {
  width: 84px;
  min-width: 84px;
  flex: 0 0 84px;
  justify-content: center;
  text-align: center;
}
.market-bucket-row .toggle-button {
  min-height: 16px;
  padding: 0 7px;
  font-size: 0.66rem;
  line-height: 1;
}
.market-bucket-row .toggle-button.active {
  transform: none;
  box-shadow: none;
}
.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: var(--tooltip-card-gap); }
body[data-page="marketplace"] .list-grid {
  grid-template-columns: repeat(auto-fill, minmax(var(--marketplace-card-outer-width, var(--tooltip-card-outer-width)), 1fr));
}
body[data-page="profile"] .profile-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(var(--tooltip-card-outer-width), 1fr));
}
.listing-card, .item-card { padding: var(--component-pad-lg); text-align: left; }
.listing-card:hover, .item-card:hover, .row-card:hover { border-color: var(--line-strong); }
body[data-page="marketplace"] .marketplace-listings {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.marketplace-masonry-grid {
  display: grid;
  grid-template-columns: repeat(var(--marketplace-column-count, 1), minmax(0, 1fr));
  gap: var(--tooltip-card-gap);
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-items: start;
}
.marketplace-masonry-column {
  display: flex;
  flex-direction: column;
  gap: var(--tooltip-card-gap);
  min-width: 0;
  width: 100%;
}
.profile-card-grid,
.list-grid.expanded-grid,
.list-grid.unique-drilldown {
  display: block;
  column-width: var(--tooltip-card-outer-width);
  column-gap: var(--tooltip-card-gap);
  width: 100%;
  max-width: 100%;
  margin: 0;
}
body[data-page="profile"] .profile-card-grid {
  display: block !important;
  columns: auto !important;
  column-count: auto !important;
  column-width: var(--tooltip-card-outer-width) !important;
  column-gap: var(--tooltip-card-gap) !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
body[data-page="itemdb"] .list-grid.expanded-grid,
body[data-page="itemdb"] .list-grid.unique-drilldown,
body[data-page="itemdb"] .list-grid.set-drilldown {
  column-gap: var(--tooltip-card-gap) !important;
  gap: var(--tooltip-card-gap) !important;
}
.marketplace-card {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: var(--tooltip-card-shell-spacing);
  background: transparent;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0;
}
.listing-card.marketplace-card {
  padding: var(--tooltip-card-shell-spacing);
  text-align: left;
}
.marketplace-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--component-gap-md);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.marketplace-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.marketplace-card .tooltip-shell { margin: 0; }
.marketplace-card .listing-top,
.marketplace-card .row-meta { padding: 0 var(--component-gap-sm); gap: var(--component-gap-md); }
.marketplace-card,
.profile-marketplace-card,
.marketplace-card-body,
.profile-marketplace-card-link,
.marketplace-card .listing-top,
.marketplace-card .row-meta,
.profile-marketplace-card .listing-top,
.profile-marketplace-card .row-meta {
  min-width: 0;
  max-width: 100%;
}
.marketplace-card .listing-top,
.marketplace-card .row-meta,
.profile-marketplace-card .listing-top,
.profile-marketplace-card .row-meta,
.profile-card-actions,
.profile-card-meta {
  width: 100%;
  box-sizing: border-box;
}
.profile-card-actions,
.profile-card-meta {
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(215, 176, 98, 0.14);
}
.marketplace-card .row-meta,
.profile-marketplace-card .row-meta {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}
.marketplace-card .listing-top,
.profile-marketplace-card .listing-top {
  align-items: flex-start;
}
.marketplace-card .listing-top .badge,
.profile-marketplace-card .listing-top .badge {
  align-self: flex-start;
}
.marketplace-card .listing-name,
.marketplace-card .listing-sub,
.marketplace-card .muted,
.profile-marketplace-card .listing-name,
.profile-marketplace-card .listing-sub,
.profile-marketplace-card .muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.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; }
.marketplace-list-view { display: block; }
.market-list-shell { --market-list-columns: minmax(196px, 0.98fr) minmax(82px, 0.28fr) minmax(66px, 0.2fr) minmax(90px, 0.3fr) minmax(360px, 2.56fr) minmax(220px, 0.9fr); display: grid; gap: 8px; }
.market-list-head { display: grid; grid-template-columns: var(--market-list-columns); gap: 6px; padding: 0 10px 4px; color: var(--muted); font-size: 0.74rem; }
.market-list-head-item { min-width: 0; width: 100%; box-sizing: border-box; }
.market-list-head-item strong { display: block; color: var(--gold-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.market-list-head-main,
.market-list-head-type { text-align: left; }
.market-list-head-sockets,
.market-list-head-ethereal {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.market-list-head-summary {
  text-align: left;
}
.market-list-head-price { text-align: right; }
.market-list-entry { display: grid; gap: 6px; }
.market-list-row { display: grid; grid-template-columns: var(--market-list-columns); gap: 6px; align-items: center; width: 100%; padding: 7px 10px; border: 1px solid rgba(132, 116, 82, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32); color: inherit; text-align: left; cursor: pointer; }
.market-list-row:hover { border-color: rgba(215, 176, 98, 0.38); }
.market-list-row.active { border-color: rgba(220, 181, 97, 0.5); background: linear-gradient(180deg, rgba(16, 14, 20, 0.98), rgba(24, 20, 28, 0.98)); }
.market-list-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.market-list-main .item-sub { margin-top: 0; font-size: 0.68rem; color: #d3b36b; }
.market-list-name { font-weight: 400; font-family: var(--font-display); color: #e9dfc7; font-size: 0.86rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-list-item-estimate { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 0.66rem; color: #dbc996; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-list-estimate-label { flex: 0 0 auto; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(210, 190, 160, 0.72); }
.market-list-estimate-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-list-type { color: #e9dfc7; font-size: 0.8rem; }
.market-list-sockets,
.market-list-ethereal { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-list-sockets,
.market-list-ethereal {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.market-list-sockets { color: #ddd4c3; }
.market-list-ethereal { color: #9ba0b3; }
.market-list-summary { color: #8fb6ff; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; width: 100%; box-sizing: border-box; text-align: left; }
.market-list-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; min-width: 0; width: 100%; box-sizing: border-box; color: #ead5a6; font-size: 0.8rem; text-align: right; }
.market-list-price-main { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-list-price-estimates { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; max-width: 100%; }
.market-list-price-estimate { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; max-width: 100%; font-size: 0.66rem; color: #dbc996; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-list-price-estimate-group { flex: 0 0 auto; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(210, 190, 160, 0.72); }
.market-list-expanded { display: grid; grid-template-columns: var(--market-list-columns); gap: 6px; align-items: start; padding: 0 10px 2px 10px; }
.profile-market-list-shell { --market-list-columns: minmax(196px, 0.98fr) minmax(82px, 0.28fr) minmax(66px, 0.2fr) minmax(90px, 0.3fr) minmax(360px, 2.56fr) minmax(220px, 0.9fr); display: grid; gap: 8px; }
.profile-market-list-head { display: grid; grid-template-columns: minmax(0, 1fr) var(--profile-market-actions-width, max-content); gap: 8px; align-items: end; }
.profile-market-list-head-main { margin: 0; }
.profile-market-list-head-actions { min-width: 0; padding: 0 10px 4px; }
.profile-market-list-head-actions strong { display: block; color: var(--gold-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: left; }
.profile-market-list-entry { display: grid; gap: 6px; }
.profile-market-list-row-shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--profile-market-actions-width, max-content); gap: 8px; align-items: stretch; }
.profile-market-list-actions { min-width: 0; width: var(--profile-market-actions-width, fit-content); max-width: 100%; justify-self: end; display: flex; align-items: center; justify-content: flex-end; padding: 7px 10px; border: 1px solid rgba(132, 116, 82, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32); overflow: hidden; box-sizing: border-box; }
.profile-market-list-actions .chip-list { display: inline-flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 6px; width: auto; min-width: 0; }
.profile-market-list-actions .btn { width: auto; min-width: 0; white-space: nowrap; padding-left: 10px; padding-right: 10px; font-size: 0.76rem; }
.profile-market-list-row-shell.is-selected .market-list-row,
.profile-market-list-row-shell.is-selected .profile-market-list-actions { border-color: rgba(220, 181, 97, 0.5); background: linear-gradient(180deg, rgba(16, 14, 20, 0.98), rgba(24, 20, 28, 0.98)); }
.profile-market-list-expanded { padding: 0 0 2px; }
.profile-market-list-expanded .market-list-expanded-card { margin: 0; }
.market-list-expanded-card {
  grid-column: 1 / 6;
  margin: 0;
  padding-top: 0;
  width: auto;
  max-width: min(100%, calc(var(--tooltip-card-outer-width) + (var(--tooltip-card-shell-spacing) * 2)));
  justify-self: start;
}
.market-list-expanded-aside { grid-column: 6 / 7; padding: 8px 0 0 0; min-width: 0; }
.market-list-expanded-title { color: var(--gold-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.market-list-name.market-quality-unique,
.market-list-type.market-quality-unique { color: #c6a659; }
.market-list-name.market-quality-rare,
.market-list-type.market-quality-rare { color: #d2c46d; }
.market-list-name.market-quality-crafted,
.market-list-type.market-quality-crafted { color: #cf9162; }
.market-list-name.market-quality-set-item,
.market-list-type.market-quality-set-item { color: #4fb36f; }
.market-list-name.market-quality-runeword,
.market-list-type.market-quality-runeword { color: #db8b45; }
.market-list-name.market-quality-rune,
.market-list-type.market-quality-rune { color: #d98f47; }
.market-list-name.market-quality-magic,
.market-list-type.market-quality-magic { color: #8fb6ff; }
.market-list-name.market-quality-base,
.market-list-type.market-quality-base,
.market-list-name.market-quality-gem,
.market-list-type.market-quality-gem,
.market-list-name.market-quality-currency,
.market-list-type.market-quality-currency,
.market-list-name.market-quality-jewel,
.market-list-type.market-quality-jewel { color: #e9dfc7; }
.exchange-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.exchange-summary-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.exchange-rate-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.exchange-rate-metric { padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(132, 116, 82, 0.36); background: linear-gradient(180deg, rgba(7, 7, 11, 0.94), rgba(16, 14, 20, 0.94)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24); }
.exchange-rate-value { font-size: 1.2rem; font-weight: 700; color: var(--gold-soft); }
.exchange-board-panel { position: relative; overflow: visible; }
.exchange-overview-root { position: relative; margin-top: 0; padding: var(--tooltip-card-gap); overflow: visible; }
.exchange-composer-overlay-root { display: none !important; }
.exchange-overview-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tooltip-card-gap); align-items: start; }
.exchange-overview-lane { display: flex; flex-direction: column; gap: var(--tooltip-card-gap); align-content: start; align-items: stretch; min-width: 0; min-height: 24px; padding: 0; }
.exchange-overview-lane.drop-lane { outline: 2px dashed rgba(236, 198, 120, 0.6); outline-offset: 4px; border-radius: 20px; }
.exchange-overview-column { position: relative; border: 1px solid rgba(132, 116, 82, 0.42); border-radius: 20px; background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96)); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3); overflow: hidden; width: 100%; min-width: 0; box-sizing: border-box; contain: layout paint; }
.exchange-overview-head { padding: 10px 16px 8px 12px; border-bottom: 1px solid rgba(132, 116, 82, 0.28); background: linear-gradient(180deg, rgba(16, 14, 20, 0.98), rgba(24, 20, 28, 0.98)); cursor: grab; }
.exchange-overview-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exchange-overview-title-wrap { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.exchange-overview-drag-grip { color: rgba(210, 190, 160, 0.58); cursor: grab; font-size: 0.9rem; letter-spacing: -0.08em; user-select: none; }
.exchange-overview-head:active .exchange-overview-drag-grip { cursor: grabbing; }
.exchange-overview-title { font-family: var(--font-display); color: var(--gold); font-size: 0.98rem; line-height: 1.1; }
.exchange-overview-collapse-indicator { color: rgba(234, 213, 166, 0.84); font-size: 1rem; line-height: 1; flex: 0 0 auto; }
.exchange-overview-subtitle { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(210, 190, 160, 0.72); margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(48px, 0.46fr) minmax(74px, 0.68fr) minmax(74px, 0.68fr); gap: 8px; }
.exchange-overview-list { display: grid; overflow: visible; position: relative; z-index: 1; }
.exchange-overview-column.is-collapsed .exchange-overview-list { display: none; }
.exchange-overview-column.is-collapsed .exchange-overview-head { border-bottom: none; }
.exchange-overview-column.is-collapsed .exchange-overview-subtitle { display: none; }
.exchange-overview-entry { display: grid; position: relative; overflow: visible; }
.exchange-overview-row { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(48px, 0.46fr) minmax(74px, 0.68fr) minmax(74px, 0.68fr); gap: 8px; align-items: center; min-height: 38px; padding: 6px 10px; border-top: 1px solid rgba(255, 255, 255, 0.035); background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96)); cursor: pointer; }
.exchange-overview-row:hover { background: linear-gradient(180deg, rgba(16, 14, 20, 0.98), rgba(24, 20, 28, 0.98)); }
.exchange-overview-row.active { background: linear-gradient(180deg, rgba(16, 14, 20, 0.98), rgba(24, 20, 28, 0.98)); border-left: 3px solid var(--gold); padding-left: 7px; box-shadow: inset 0 0 0 1px rgba(236, 198, 120, 0.14); }
.exchange-overview-row.expanded { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.exchange-overview-entry:has(.exchange-overview-row.expanded) { position: relative; }
.exchange-overview-entry:has(.exchange-overview-row.expanded)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(236, 198, 120, 0.98), rgba(180, 129, 51, 0.92));
  z-index: 1;
}
.exchange-overview-entry:has(.exchange-overview-row.expanded) { z-index: 8; }
.exchange-overview-list:has(.exchange-overview-row.expanded) .exchange-overview-entry:not(:has(.exchange-overview-row.expanded)) .exchange-overview-row {
  opacity: 0.62;
}
.exchange-overview-list:has(.exchange-overview-row.expanded) .exchange-overview-entry:not(:has(.exchange-overview-row.expanded)) .exchange-overview-row:hover {
  opacity: 0.82;
}
.exchange-overview-entry:has(.exchange-overview-row.expanded) .exchange-overview-row {
  position: relative;
  z-index: 1;
  border-left: 3px solid transparent;
  padding-left: 7px;
  background: linear-gradient(180deg, rgba(24, 20, 28, 0.99), rgba(18, 16, 24, 0.99));
  box-shadow: inset 0 0 0 1px rgba(236, 198, 120, 0.18);
}
.exchange-overview-expanded {
  position: relative;
  z-index: 1;
  padding: 2px 10px 10px 13px;
  border-top: none;
  background: linear-gradient(180deg, rgba(18, 16, 24, 0.99), rgba(14, 13, 20, 0.99));
  box-shadow: inset 0 0 0 1px rgba(236, 198, 120, 0.12), 0 18px 36px rgba(0, 0, 0, 0.34);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
.exchange-overview-expanded-inline {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.exchange-overview-expanded-overlay { margin-top: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.exchange-overview-column.drop-before { box-shadow: inset 0 4px 0 rgba(236, 198, 120, 0.8), 0 22px 70px rgba(0, 0, 0, 0.3); }
.exchange-overview-column.drop-after { box-shadow: inset 0 -4px 0 rgba(236, 198, 120, 0.8), 0 22px 70px rgba(0, 0, 0, 0.3); }
.exchange-overview-asset-cell { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.exchange-overview-asset-cell.is-crafting-recipe { align-items: center; gap: 8px; }
.exchange-overview-asset-art { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; margin-top: 1px; }
.exchange-overview-asset-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exchange-overview-asset-meta.is-crafting-recipe { justify-content: center; gap: 0; }
.exchange-overview-art { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.exchange-overview-asset-name { font-weight: 700; font-size: 0.82rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f4ead2; }
.exchange-overview-recipe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  min-width: 42px;
  min-height: 32px;
  padding: 5px 6px;
  border-radius: 12px;
  border: 1px solid rgba(214, 181, 104, 0.42);
  background:
    radial-gradient(circle at top, rgba(255, 229, 162, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(45, 33, 20, 0.96), rgba(16, 12, 9, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 235, 185, 0.12), 0 10px 18px rgba(0, 0, 0, 0.2);
  color: #f4e0b0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
.exchange-overview-component-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-width: 0; }
.exchange-overview-component-strip.is-large { gap: 4px; }
.exchange-overview-asset-cell.is-crafting-recipe .exchange-overview-component-strip { flex-wrap: nowrap; }
.exchange-overview-component-token { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(214, 181, 104, 0.32); background: linear-gradient(180deg, rgba(33, 26, 18, 0.92), rgba(15, 13, 18, 0.96)); box-shadow: inset 0 1px 0 rgba(255, 235, 185, 0.08); overflow: visible; }
.exchange-overview-component-token.is-large { width: 28px; height: 28px; border-radius: 8px; }
.exchange-overview-component-token .exchange-overview-art { width: 14px; height: 14px; }
.exchange-overview-component-token.is-large .exchange-overview-art { width: 22px; height: 22px; }
.exchange-overview-component-plus { color: rgba(237, 214, 164, 0.72); font-size: 0.62rem; line-height: 1; }
.exchange-overview-component-qty { position: absolute; right: -4px; bottom: -4px; min-width: 12px; padding: 0 3px; border-radius: 999px; background: rgba(18, 13, 9, 0.96); border: 1px solid rgba(214, 181, 104, 0.48); color: #f1ddb0; font-size: 0.52rem; line-height: 1.2; text-align: center; }
.exchange-overview-component-token.is-large .exchange-overview-component-qty { right: -5px; bottom: -5px; min-width: 14px; font-size: 0.56rem; }
.exchange-overview-component-fallback { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 4px; background: rgba(138, 112, 58, 0.34); color: #f5e6bf; font-size: 0.58rem; font-weight: 700; line-height: 1; }
.exchange-overview-component-token.is-large .exchange-overview-component-fallback { width: 18px; height: 18px; font-size: 0.72rem; }
.exchange-overview-component-jewel-shell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.exchange-overview-component-token.is-large .exchange-overview-component-jewel-shell { width: 18px; height: 18px; }
.exchange-overview-component-jewel-gem { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: linear-gradient(135deg, #ffe89c, #ff9f4d 48%, #b23df0); border: 1px solid rgba(255, 233, 171, 0.82); box-shadow: 0 0 8px rgba(227, 140, 255, 0.38); }
.exchange-overview-component-token.is-large .exchange-overview-component-jewel-gem { width: 13px; height: 13px; }
.exchange-overview-metric { font-variant-numeric: tabular-nums; text-align: right; font-size: 0.78rem; color: #ead5a6; }
.exchange-overview-count { text-align: center; font-variant-numeric: tabular-nums; font-size: 0.76rem; color: #ead5a6; }
.exchange-overview-quote-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; }
.exchange-overview-quote-rate { font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 700; color: #f1ddb0; line-height: 1.05; }
.exchange-overview-quote-count { font-size: 0.56rem; line-height: 1.1; letter-spacing: 0.02em; color: rgba(210, 190, 160, 0.72); text-transform: uppercase; white-space: nowrap; }
.exchange-history-chart-shell {
  margin-bottom: 10px;
}
.exchange-history-chart {
  padding: 12px 12px 8px;
  border-radius: 20px;
  border: 1px solid rgba(132, 116, 82, 0.38);
  background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}
.exchange-history-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.exchange-history-svg {
  width: 100%;
  height: 240px;
  display: block;
  overflow: visible;
}
.exchange-history-gridline line {
  stroke: rgba(132, 116, 82, 0.22);
  stroke-width: 1;
}
.exchange-history-gridline text,
.exchange-history-axis-label text {
  fill: var(--muted);
  font-size: 12px;
}
.exchange-history-line {
  fill: none;
  stroke: rgba(215, 176, 98, 0.96);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.exchange-history-area {
  fill: url(#exchangeHistoryAreaGradient);
}
.exchange-history-point circle {
  fill: #f1d18c;
  stroke: rgba(13, 12, 18, 0.95);
  stroke-width: 2;
}
.exchange-history-point:hover circle {
  r: 6;
}
.exchange-history-table { display: grid; gap: 6px; }
.exchange-history-row { display: grid; grid-template-columns: 1fr 1fr 100px 100px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 16px; border: 1px solid rgba(132, 116, 82, 0.34); background: linear-gradient(180deg, rgba(7, 7, 11, 0.94), rgba(16, 14, 20, 0.94)); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.exchange-history-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.exchange-listing-row { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid rgba(132, 116, 82, 0.38); border-radius: 20px; background: linear-gradient(180deg, rgba(7, 7, 11, 0.96), rgba(16, 14, 20, 0.96)); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26); text-decoration: none; color: inherit; }
.exchange-listing-row:hover { border-color: rgba(215, 176, 98, 0.38); background: linear-gradient(180deg, rgba(16, 14, 20, 0.98), rgba(24, 20, 28, 0.98)); }
.exchange-listing-top { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1.15fr); gap: 14px; align-items: start; }
.exchange-listing-trade-separator { font-family: var(--font-display); color: rgba(244, 209, 140, 0.84); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; justify-self: center; }
.exchange-listing-group-collection { display: grid; gap: 8px; min-width: 0; }
.exchange-listing-group-collection.is-right { justify-items: end; text-align: right; }
.exchange-listing-group-stack { display: grid; gap: 5px; min-width: 0; }
.exchange-listing-group-stack.is-right { justify-items: end; }
.exchange-listing-group-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.exchange-listing-group-row.is-right { justify-content: flex-end; }
.exchange-listing-group-plus,
.exchange-listing-group-divider { font-family: var(--font-display); color: rgba(244, 209, 140, 0.82); font-size: 0.72rem; letter-spacing: 0.08em; }
.exchange-listing-group-divider { justify-self: center; }
.exchange-listing-group-placeholder { color: rgba(216, 201, 171, 0.72); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.exchange-listing-group-estimate { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0 4px; color: rgba(216, 201, 171, 0.78); }
.exchange-listing-group-estimate-label { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(216, 201, 171, 0.62); }
.exchange-listing-group-estimate-value { font-family: var(--font-display); color: var(--gold-soft); font-size: 0.78rem; }
.exchange-listing-item-token { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 5px 8px; border-radius: 12px; border: 1px solid rgba(132, 116, 82, 0.3); background: linear-gradient(180deg, rgba(20, 17, 24, 0.88), rgba(10, 10, 14, 0.9)); box-shadow: inset 0 1px 0 rgba(255, 233, 180, 0.04); }
.exchange-listing-item-token.is-compact { padding: 4px 7px; border-radius: 11px; }
.exchange-listing-item-token-qty { font-family: var(--font-display); color: var(--gold); font-size: 0.84rem; white-space: nowrap; flex-shrink: 0; }
.exchange-listing-item-token-art { display: flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; }
.exchange-listing-item-token.is-compact .exchange-listing-item-token-art { width: 30px; min-width: 30px; }
.exchange-listing-item-token-name { color: #f4ead2; font-size: 0.82rem; line-height: 1.15; min-width: 0; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exchange-listing-estimate { display: flex; justify-content: center; }
.exchange-listing-estimate-inner { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-width: min(100%, 320px); max-width: 100%; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(132, 116, 82, 0.28); background: linear-gradient(180deg, rgba(20, 17, 24, 0.92), rgba(10, 10, 14, 0.92)); text-align: center; }
.exchange-listing-estimate-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(216, 201, 171, 0.68); }
.exchange-listing-estimate-value { font-family: var(--font-display); color: var(--gold-soft); font-size: 0.92rem; }
.exchange-orderbook-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.exchange-orderbook-column { display: grid; gap: 10px; min-width: 0; }
.exchange-orderbook-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 0.95rem; }
.exchange-orderbook-list { display: grid; gap: 10px; }
.exchange-quick-compose { border-top: none; padding-top: 0; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.exchange-quick-compose-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; max-width: 100%; min-width: 0; }
.exchange-quick-compose-actions .btn.active { box-shadow: inset 0 0 0 1px rgba(236, 198, 120, 0.28), 0 0 0 1px rgba(236, 198, 120, 0.18); }
.exchange-compose-mode-group { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.exchange-compose-mode-button { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.exchange-compose-mode-qty { width: 70px; min-width: 70px; border-radius: 10px; border: 1px solid rgba(190, 162, 102, 0.28); background: linear-gradient(180deg, rgba(10, 10, 14, 0.92), rgba(22, 18, 26, 0.92)); color: #f4ead2; padding: 5px 8px; text-align: right; }
.exchange-quick-compose-body { display: grid; gap: 8px; margin-top: 8px; width: 100%; max-width: 100%; min-width: 0; }
.exchange-compose-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(210, 190, 160, 0.72); }
.exchange-compose-sublabel { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(236, 198, 120, 0.78); margin-bottom: 6px; }
.exchange-compose-category-select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; border-radius: 12px; border: 1px solid rgba(132, 116, 82, 0.34); background: linear-gradient(180deg, rgba(10, 10, 14, 0.92), rgba(22, 18, 26, 0.92)); color: #f4ead2; padding: 10px 12px; appearance: none; -webkit-appearance: none; -moz-appearance: none; color-scheme: dark; }
.exchange-compose-category-select option { background: #15111a; color: #f4ead2; }
.exchange-compose-picker-block { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; padding: 7px 8px; border-radius: 12px; border: 1px dashed rgba(110, 146, 196, 0.34); background: linear-gradient(180deg, rgba(14, 18, 28, 0.68), rgba(16, 22, 36, 0.6)); }
.exchange-compose-picker-block .exchange-compose-sublabel { color: rgba(162, 196, 238, 0.86); }
.exchange-compose-picker-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; width: 100%; max-width: 100%; min-width: 0; }
.exchange-compose-picker-asset { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 4px 8px; border-radius: 9px; border: 1px solid rgba(108, 146, 196, 0.44); background: linear-gradient(180deg, rgba(26, 34, 52, 0.96), rgba(22, 28, 44, 0.94)); color: #d5e5ff; cursor: pointer; font-size: 0.74rem; line-height: 1.1; box-shadow: inset 0 1px 0 rgba(212, 232, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.16); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exchange-compose-picker-asset:hover { border-color: rgba(166, 204, 255, 0.82); background: linear-gradient(180deg, rgba(34, 47, 70, 0.98), rgba(28, 38, 60, 0.96)); color: #f2f8ff; transform: translateY(-1px); }
.exchange-compose-selected-block { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; padding: 7px 8px; border-radius: 12px; border: 1px solid rgba(164, 128, 72, 0.32); background: linear-gradient(180deg, rgba(32, 22, 14, 0.72), rgba(40, 27, 16, 0.64)); }
.exchange-compose-selected-block .exchange-compose-sublabel { color: rgba(244, 207, 133, 0.9); }
.exchange-compose-selected-list { display: grid; gap: 8px; width: 100%; max-width: 100%; min-width: 0; }
.exchange-compose-selected-item { display: grid; grid-template-columns: minmax(0, 1fr) 72px 78px; gap: 8px; align-items: center; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 38px; padding: 4px 8px; border-radius: 11px; border: 1px solid rgba(164, 128, 72, 0.42); background: linear-gradient(180deg, rgba(24, 19, 13, 0.94), rgba(33, 25, 17, 0.92)); box-shadow: inset 0 1px 0 rgba(255, 233, 180, 0.05); }
.exchange-compose-selected-name { min-width: 0; color: #f4ead2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exchange-compose-selected-item input { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; height: 28px; text-align: right; border-radius: 9px; border: 1px solid rgba(206, 174, 112, 0.32); background: linear-gradient(180deg, rgba(12, 11, 15, 0.96), rgba(18, 15, 22, 0.96)); color: #f4ead2; padding: 4px 7px; }
.exchange-compose-selected-item .btn { width: 100%; min-width: 0; padding: 4px 8px; min-height: 28px; font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exchange-qty { font-family: var(--font-display); color: var(--gold); font-size: 1rem; }
body[data-page="itemdb"] .tooltip-shell,
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 {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 10px;
}
body[data-page="itemdb"][data-itemdb-category="all"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"][data-itemdb-category="unique"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"][data-itemdb-category="set"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"][data-itemdb-category="runeword"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"][data-itemdb-category="runeword"] .item-inline-detail { margin-top: 0; }
body[data-page="itemdb"][data-itemdb-category="base"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"][data-itemdb-category="rune"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"][data-itemdb-category="gem"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
body[data-page="itemdb"] { --itemdb-current-card-min-width: var(--tooltip-card-outer-width); }
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 {
  width: 100%;
  max-width: 100%;
  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;
  width: 100%;
  max-width: 100%;
  margin: 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; }
.marketplace-asking-compact,
.market-ask-bundle,
.market-ask-chip,
.market-ask-copy {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.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: var(--component-gap-lg); min-height: calc(var(--tooltip-image-min-height) + var(--component-pad-lg)); }
.item-art, .tooltip-art { object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.tooltip-art {
  width: var(--tooltip-art-display-width, 90px);
  height: var(--tooltip-art-display-height, 90px);
  max-width: 90px;
  max-height: 90px;
}
.item-inline-detail { width: min(var(--tooltip-card-outer-width), calc(100vw - 48px)); margin: var(--tooltip-card-gap) auto 0; max-width: 100%; padding: var(--tooltip-card-shell-spacing); box-sizing: border-box; }
.item-inline-detail .tooltip-shell { width: 100%; max-width: 100%; margin: 0 auto; }
.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(var(--itemdb-current-card-min-width), 1fr)); justify-content: center; gap: var(--tooltip-card-gap); }
.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: var(--component-pad-lg);
  border-radius: calc(var(--tooltip-shell-radius) + var(--component-gap-md));
}
.list-grid.expanded-grid .item-card,
.list-grid.unique-drilldown .item-card {
  width: 100%;
  max-width: 100%;
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 var(--tooltip-card-gap);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: var(--tooltip-card-shell-spacing);
  border-radius: 0;
  box-sizing: border-box;
}
body[data-page="itemdb"] .list-grid.expanded-grid .item-card,
body[data-page="itemdb"] .list-grid.unique-drilldown .item-card,
body[data-page="itemdb"] .list-grid.set-drilldown .item-card {
  margin: 0 0 var(--tooltip-card-gap) !important;
}
.list-grid.expanded-grid .item-inline-detail {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}
.list-grid.expanded-grid .item-inline-detail,
.list-grid.unique-drilldown .item-inline-detail,
body[data-page="itemdb"] .list-grid.set-drilldown .item-inline-detail {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.list-grid.expanded-grid .item-inline-detail .tooltip-shell,
.list-grid.unique-drilldown .item-inline-detail .tooltip-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.itemdb-runeword-controls { margin-bottom: 4px; display: flex; flex-direction: column; gap: 3px; }
.itemdb-runeword-toggle {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  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: 20px;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}
.itemdb-runeword-toggle > span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}
.itemdb-runeword-toggle.active {
  border-color: rgba(255, 230, 171, 0.4);
  color: var(--gold-soft);
}
.itemdb-runeword-toggle-value {
  flex: 1 1 auto;
  color: var(--text);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
  text-align: right;
}
.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.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: var(--card-title-size); }
.section-title { font-size: var(--section-title-size); }
.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); }
.chip-rating { color: var(--rating-color, var(--gold-soft)); font-variant-numeric: tabular-nums; font-weight: 700; }
.presence-chip {
  white-space: nowrap;
}
.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
  flex: 0 0 auto;
}
.presence-chip.is-online {
  color: #84d39b;
  border-color: color-mix(in srgb, #84d39b 35%, var(--line));
  background: color-mix(in srgb, #84d39b 8%, rgba(255, 255, 255, 0.04));
}
.presence-chip.is-offline {
  color: var(--muted);
}

.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-top-section { gap: 0; }
.itemdb-results-section { gap: 0; margin-top: 3px; }
.itemdb-topnav .side-button {
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
}
.itemdb-results-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(520px, 100%);
}
.itemdb-results-search input {
  min-width: 0;
  flex: 1 1 auto;
}
.itemdb-search-meta {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.78rem;
}
.itemdb-header-pager {
  margin-left: auto;
  justify-content: flex-end;
}
.itemdb-searchbar {
  margin: 0;
  justify-content: flex-start;
}
.row-card { padding: calc(var(--component-pad-lg) + var(--component-gap-sm)) calc(var(--component-pad-lg) + var(--component-gap-md)); border-radius: calc(var(--tooltip-shell-radius) + var(--component-gap-md)); 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); }
.notice.danger { border-style: solid; border-color: rgba(215, 98, 98, 0.4); background: rgba(130, 28, 28, 0.16); color: #f0c6c6; }
.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; align-items: center; }
.listing-action-tooltip { display: inline-flex; }
.listing-actions-secondary { margin-left: auto; display: flex; justify-content: flex-end; }
.listing-actions-secondary .button-group { justify-content: flex-end; }
.league-admin-filter-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-league-name-cell,
.admin-league-db-cell { max-width: 170px; font-size: 0.92rem; overflow-wrap: anywhere; }
.admin-league-actions-cell { white-space: nowrap; }
.admin-league-actions-cell .chip-list { display: inline-flex; flex-wrap: nowrap; justify-content: flex-end; }
#leagueRows tr.is-selected td {
  background: rgba(214, 181, 104, 0.10);
}
#leagueRows tr.is-selected:hover td {
  background: rgba(214, 181, 104, 0.16);
}
.list-item-root { margin-top: 0; gap: 12px; }
.list-item-root .form-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list-item-root .stack { gap: 12px; }
.list-item-root .list-item-mode-stack {
  align-items: center;
  gap: 10px;
}
.list-item-root .list-item-download-row {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.list-item-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}
.list-item-download-button:hover,
.list-item-download-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.list-item-download-button.is-disabled,
.list-item-download-button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
  filter: saturate(0.82);
}
.list-item-download-button.is-disabled:hover,
.list-item-download-button.is-disabled:focus-visible,
.list-item-download-button:disabled:hover,
.list-item-download-button:disabled:focus-visible {
  transform: none;
  filter: saturate(0.82);
}
.list-item-download-button img {
  width: auto;
  height: 64px;
  max-width: 220px;
  display: block;
}
.list-item-root .list-item-mode-row {
  align-items: center;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 6px;
}
.list-item-root .list-item-mode-slot { display: flex; justify-content: center; }
.list-item-mode-slot .toggle-button {
  min-width: 180px;
  min-height: 28px;
  padding: 4px 16px;
  font-size: 0.8rem;
  line-height: 1.1;
  justify-content: center;
  text-align: center;
}
.list-item-compact-panel,
.listing-workbench { padding: 9px; }
.list-item-root .listing-dropzone {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.list-item-root #askingSelectedItems > .empty:first-child {
  min-height: 0;
}
.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 .listing-input-shell > .search-box {
  min-height: 64px;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
}
.list-item-root .listing-input-shell > .search-box input {
  font-size: 0.92rem;
}
.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,
.list-item-root .listing-roll-row-control select,
.list-item-root .listing-roll-row-control input,
.list-item-root .listing-roll-row-control textarea,
.list-item-root .listing-roll-row-control > .listing-searchable-picker > input[type="search"] {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.05;
}
.list-item-root {
  --list-item-roll-input-width: 74px;
}
.list-item-root .field select,
.list-item-root .listing-roll-row-control 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; }
.marketplace-card-intent-row { margin-bottom: 6px; }
.price-trust-chip { background: rgba(91, 112, 146, 0.16); border-color: rgba(133, 166, 214, 0.28); color: #c7d7ef; }
.price-trust-chip.is-high { background: rgba(95, 132, 96, 0.14); border-color: rgba(135, 176, 106, 0.25); color: #cfe3c0; }
.price-trust-chip.is-medium { background: rgba(119, 114, 86, 0.14); border-color: rgba(214, 181, 104, 0.24); color: #ead8a8; }
.price-trust-chip.is-low { background: rgba(113, 83, 83, 0.14); border-color: rgba(211, 109, 87, 0.24); color: #efc0b5; }
.price-trust-chip.is-stale { background: rgba(80, 84, 92, 0.18); border-color: rgba(167, 154, 130, 0.28); color: #d5c9b5; }
.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-recipe-art {
  --listing-search-recipe-size: 68px;
  width: var(--listing-search-recipe-size);
  height: var(--listing-search-recipe-size);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 8px 7px 7px;
  border-radius: 18px;
  border: 1px solid rgba(215, 176, 98, 0.24);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(26, 21, 15, 0.98), rgba(15, 12, 9, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}
.listing-search-recipe-art.is-caster {
  border-color: rgba(118, 166, 245, 0.34);
  background:
    radial-gradient(circle at top, rgba(118, 166, 245, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(17, 24, 37, 0.98), rgba(10, 15, 24, 0.98));
}
.listing-search-recipe-art.is-blood {
  border-color: rgba(208, 84, 84, 0.34);
  background:
    radial-gradient(circle at top, rgba(208, 84, 84, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(36, 15, 15, 0.98), rgba(22, 10, 10, 0.98));
}
.listing-search-recipe-art.is-hit-power {
  border-color: rgba(203, 144, 55, 0.34);
  background:
    radial-gradient(circle at top, rgba(203, 144, 55, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(35, 23, 11, 0.98), rgba(23, 15, 8, 0.98));
}
.listing-search-recipe-art.is-safety {
  border-color: rgba(119, 181, 121, 0.34);
  background:
    radial-gradient(circle at top, rgba(119, 181, 121, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(18, 32, 18, 0.98), rgba(11, 20, 11, 0.98));
}
.listing-search-recipe-badge {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}
.listing-search-recipe-target {
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-text);
}
.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; }
.market-search-shell { margin-top: 0; }
.marketplace-selected-search-panel { padding: 12px; }
.marketplace-selected-search-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.marketplace-selected-search-grid {
  grid-template-columns: minmax(280px, calc(var(--tooltip-width) + 8px)) minmax(360px, 540px);
  justify-content: start;
  gap: 14px;
  align-items: start;
}
.marketplace-selected-search-panel,
.marketplace-selected-search-grid {
  width: auto;
  max-width: calc(var(--tooltip-width) + 580px);
}
.marketplace-selected-preview-column .tooltip-shell {
  width: min(100%, var(--tooltip-width));
  max-width: min(100%, var(--tooltip-width));
}
.marketplace-selected-filter-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  width: min(100%, 540px);
  min-width: 0;
}
.marketplace-filter-box {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(214, 181, 104, 0.18);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.marketplace-filter-row,
.marketplace-inline-sort-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.marketplace-filter-row-label {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}
.marketplace-filter-row-control {
  min-width: 0;
}
.marketplace-filter-row-control > .listing-searchable-picker,
.marketplace-filter-row-control > select,
.marketplace-filter-row-control > input {
  width: 100%;
}
.marketplace-filter-row-control > .listing-searchable-picker > input[type="search"] {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.05;
}
.marketplace-name-pair-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}
.marketplace-name-pair-control > .listing-searchable-picker,
.marketplace-name-pair-control > .listing-searchable-picker > input[type="search"] {
  min-width: 0;
  width: 100%;
}
.marketplace-name-pair-control > .listing-searchable-picker > input[type="search"],
.listing-roll-pair-flat > .listing-searchable-picker > input[type="search"] {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.05;
}
.listing-roll-pair-flat > .listing-searchable-picker,
.listing-roll-pair-flat > .listing-searchable-picker > input[type="search"] {
  min-width: 0;
  width: 100%;
}
.marketplace-filter-row-control > .listing-searchable-picker .listing-searchable-menu {
  border-radius: 10px;
}
.marketplace-filter-section-label {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(214, 181, 104, 0.12);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
}
.marketplace-base-modifier-active-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.marketplace-base-modifier-control-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.marketplace-base-modifier-control-main {
  min-width: 0;
  flex: 0 1 auto;
}
.marketplace-base-modifier-control-main > .listing-searchable-picker,
.marketplace-base-modifier-control-main > select,
.marketplace-base-modifier-control-main > input {
  width: 100%;
}
.marketplace-base-modifier-control-main > .marketplace-sort-button-row {
  justify-content: flex-end;
}
.marketplace-base-modifier-remove {
  align-self: center;
  justify-self: start;
  min-width: 0;
  white-space: nowrap;
}
.marketplace-filter-row-price-accent {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(214, 181, 104, 0.18);
  background:
    linear-gradient(180deg, rgba(214, 181, 104, 0.09), rgba(214, 181, 104, 0.03)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 231, 174, 0.05);
}
.marketplace-filter-row-price-accent .marketplace-filter-row-label {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(214, 181, 104, 0.18);
}
.marketplace-filter-row-price-accent .marketplace-sort-button-row .toggle-button {
  border-color: rgba(214, 181, 104, 0.2);
}
.marketplace-filter-box-price {
  align-self: stretch;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}
.marketplace-filter-box-price .marketplace-filter-row-price {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.marketplace-sort-button-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
}
.marketplace-sort-button-row .toggle-button {
  white-space: nowrap;
}
.marketplace-inline-sort-stack,
.marketplace-inline-sort-fields {
  gap: 6px;
}
.marketplace-inline-sort-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.marketplace-inline-sort-combo > .listing-searchable-picker,
.marketplace-inline-sort-combo > select,
.marketplace-inline-sort-combo > input {
  min-width: 0;
  width: 100%;
}
.marketplace-inline-sort-combo > .listing-searchable-picker > input[type="search"] {
  min-width: 0;
}
.marketplace-inline-sort-combo .marketplace-sort-button-row {
  justify-content: flex-end;
}
.marketplace-inline-sort-stack > .listing-searchable-picker,
.marketplace-inline-sort-stack > select {
  width: 100%;
}
.marketplace-filter-boolean {
  min-width: 92px;
  justify-content: center;
}
.listing-preview-shell { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); gap: 10px; width: 100%; max-width: 100%; align-items: start; }
.listing-preview-shell .tooltip-shell { margin: 0; }
.listing-preview-tooltip-column { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; min-width: 0; }
.listing-detail-trade-shell { grid-template-columns: minmax(280px, calc(var(--tooltip-width) + 8px)) minmax(0, 1fr); gap: 16px; align-items: start; }
.listing-detail-item-column,
.listing-detail-bundle-column { min-width: 0; }
.listing-detail-column-label {
  font-family: "Cinzel", serif;
  color: var(--gold-soft);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.listing-detail-titleline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.listing-detail-bundle-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-self: end;
}
.listing-detail-bundle-column .muted {
  line-height: 1.3;
  text-align: right;
}
.listing-detail-bundle-column #listingDetailAsking {
  margin-top: 0;
  width: min(100%, calc(var(--tooltip-width) + 36px));
  align-self: flex-end;
}
.listing-detail-bundle-column .asking-option-block {
  background: linear-gradient(180deg, rgba(20, 17, 24, 0.92), rgba(10, 10, 14, 0.92));
  width: min(100%, calc(var(--tooltip-width) + 36px));
  margin-left: auto;
}
.trade-detail-summary-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trade-detail-statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  color: var(--gold-soft);
  line-height: 1.3;
}
.trade-detail-status-prefix {
  letter-spacing: 0.03em;
}
.trade-detail-status-value {
  font-weight: 700;
  text-transform: capitalize;
}
.trade-detail-status-value.is-accepted {
  color: #9dde8e;
}
.trade-detail-status-value.is-active {
  color: #9dde8e;
}
.trade-detail-status-value.is-completed {
  color: #9dde8e;
}
.trade-detail-status-value.is-draft {
  color: var(--gold-soft);
}
.trade-detail-status-value.is-reserved {
  color: #a7c5ea;
}
.trade-detail-status-value.is-sold {
  color: #9dde8e;
}
.trade-detail-status-value.is-failed {
  color: #d68b7a;
}
.trade-detail-status-separator,
.trade-detail-participants-divider {
  color: rgba(214, 181, 104, 0.55);
}
.trade-detail-participants-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
}
.trade-detail-participant-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.trade-detail-participant-link:hover {
  color: var(--gold);
}
.trade-detail-participant-link.is-online {
  color: #9dde8e;
}
.trade-detail-accepted-shell {
  align-items: start;
}
.trade-detail-accepted-offer-column {
  gap: 12px;
}
.trade-detail-accepted-offer-column.is-single {
  justify-self: end;
  width: min(100%, calc(var(--tooltip-width) + 8px));
  max-width: min(100%, calc(var(--tooltip-width) + 8px));
}
.listing-detail-column-label {
  align-self: flex-end;
  text-align: right;
}
.listing-detail-bundle-column .asking-or-break,
.trade-detail-accepted-offer-column .asking-or-break {
  width: min(100%, calc(var(--tooltip-width) + 36px));
  align-self: flex-end;
}
.listing-detail-bundle-column .trade-detail-tooltip-stack,
.trade-detail-accepted-offer-column .trade-detail-tooltip-stack,
.trade-detail-accepted-offer-column .asking-option-block,
.trade-detail-accepted-offer-column .stack {
  width: min(100%, calc(var(--tooltip-width) + 36px));
  align-self: flex-end;
}
.trade-detail-tooltip-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trade-detail-tooltip-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.trade-detail-tooltip-entry .tooltip-shell {
  margin: 0;
}
.trade-currency-row {
  width: min(100%, calc(var(--tooltip-width) + 8px));
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(132, 116, 82, 0.34);
  background: linear-gradient(180deg, rgba(20, 17, 24, 0.92), rgba(10, 10, 14, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 233, 180, 0.04);
}
.trade-currency-row.is-editable {
  width: 100%;
}
.trade-currency-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}
.trade-currency-row-art {
  width: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trade-currency-row-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trade-currency-row-meta .item-name,
.trade-currency-row-meta .item-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-currency-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.listing-preview-controls-column { min-width: 0; width: 100%; max-width: 100%; align-self: start; }
.listing-preview-controls-column .field,
.listing-preview-controls-column .field select,
.listing-preview-controls-column .field input {
  width: 100%;
  box-sizing: border-box;
}
.list-item-preview-header {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: 10px;
  align-items: end;
  width: 100%;
}
.list-item-preview-header .section-title:first-child {
  grid-column: 1;
}
.list-item-preview-header .section-title:last-child {
  grid-column: 2;
  justify-self: start;
  text-align: left;
}
#listingSelectedItem .listing-preview-shell {
  align-items: start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}
#listingSelectedItem .listing-preview-shell > * {
  width: 100%;
  max-width: 100%;
}
#listingSelectedItem .tooltip-shell {
  width: min(100%, var(--tooltip-width));
  max-width: min(100%, var(--tooltip-width));
}
.listing-quantity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 104, 0.42);
  background: linear-gradient(180deg, rgba(51, 37, 22, 0.95), rgba(20, 14, 10, 0.95));
  color: #f0ddb1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 233, 171, 0.08);
}
.listing-quantity-field {
  margin-bottom: 8px;
}
#listingSelectedItem .callout {
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.15;
  margin-top: 6px !important;
}
.listing-roll-controls {
  width: 100%;
  gap: 8px;
}
.listing-roll-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.listing-roll-row {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.listing-roll-row--with-extra {
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto;
}
.listing-roll-row--placeholder-only {
  grid-template-columns: minmax(0, 1fr);
}
.listing-roll-row--placeholder-only.listing-roll-row--with-extra {
  grid-template-columns: minmax(0, 1fr) auto;
}
.listing-roll-row--pair {
  grid-template-columns: minmax(0, 1fr);
}
.listing-roll-row-label {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 0;
}
.listing-roll-row-control {
  min-width: 0;
}
.list-item-root .listing-roll-row-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.listing-roll-row-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.listing-roll-row-control > .listing-searchable-picker,
.listing-roll-row-control > .listing-searchable-picker > input[type="search"],
.listing-roll-row-control > select,
.listing-roll-row-control > input,
.listing-roll-row-control > .button-group {
  width: 100%;
  min-width: 0;
}
.list-item-root .listing-roll-row-control > input[type="number"],
.list-item-root .listing-roll-row-control > input[type="text"] {
  width: var(--list-item-roll-input-width);
  min-width: var(--list-item-roll-input-width);
  max-width: var(--list-item-roll-input-width);
  margin-left: auto;
  text-align: center;
  flex: 0 0 var(--list-item-roll-input-width);
}
.listing-roll-pair-flat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  width: 100%;
}
.listing-roll-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.listing-roll-pair-field {
  min-width: 0;
}
.listing-inline-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
}
.listing-searchable-picker {
  position: relative;
  min-width: 0;
  width: 100%;
}
.listing-searchable-picker > input[type="search"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 14, 11, 0.92), rgba(24, 19, 14, 0.96));
  color: var(--text);
  color-scheme: dark;
  border-radius: 10px;
  padding: 6px 34px 6px 10px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.03);
  caret-color: var(--accent);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.listing-searchable-picker > input[type="search"]::placeholder {
  color: color-mix(in srgb, var(--muted) 86%, transparent);
}
.listing-searchable-picker > input[type="search"]::-webkit-search-decoration,
.listing-searchable-picker > input[type="search"]::-webkit-search-cancel-button,
.listing-searchable-picker > input[type="search"]::-webkit-search-results-button,
.listing-searchable-picker > input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.listing-searchable-picker > input[type="search"]:hover,
.listing-searchable-picker > input[type="search"]:focus {
  border-color: rgba(214, 181, 104, 0.34);
  box-shadow: 0 0 0 1px rgba(214, 181, 104, 0.16);
}
.listing-searchable-picker > input[type="search"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.listing-searchable-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 181, 104, 0.18);
  border-radius: 999px;
  background: rgba(24, 19, 14, 0.92);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1;
  z-index: 2;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.listing-searchable-clear:hover,
.listing-searchable-clear:focus {
  border-color: rgba(214, 181, 104, 0.34);
  color: var(--gold-soft);
  background: rgba(31, 24, 16, 0.98);
}
.listing-searchable-clear[hidden] {
  display: none !important;
}
.listing-searchable-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  z-index: 18;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 92%, black 8%);
  box-shadow: var(--shadow);
  padding: 4px;
}
.listing-searchable-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.listing-searchable-option:hover,
.listing-searchable-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.listing-inline-select-row > input[type="search"],
.listing-inline-select-row > select {
  min-width: 0;
  font-size: 0.78rem;
  padding-left: 9px;
  padding-right: 9px;
}
.listing-inline-roll-inputs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.listing-inline-roll-inputs input {
  width: var(--list-item-roll-input-width, 74px);
  min-width: var(--list-item-roll-input-width, 74px);
  max-width: var(--list-item-roll-input-width, 74px);
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
.listing-socket-button-row,
.listing-boolean-group {
  justify-content: flex-end;
}
.listing-socket-button-row .toggle-button,
.listing-boolean-group .toggle-button {
  min-width: 0;
  white-space: nowrap;
}
.listing-boolean-group {
  justify-content: flex-start;
  gap: 6px;
}
.listing-boolean-group .toggle-button {
  min-width: 70px;
  justify-content: center;
}
.listing-base-modifier-section {
  gap: 5px;
  width: 100%;
}
.listing-base-modifier-add {
  width: 100%;
}
.listing-base-modifier-rows {
  width: 100%;
  grid-template-columns: 1fr;
}
.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;
}
.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;
}
.ocr-status-popup-host {
  position: fixed;
  top: 88px;
  right: 22px;
  width: min(420px, calc(100vw - 24px));
  z-index: 980;
}
.ocr-status-popup {
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(18, 15, 11, 0.97), rgba(10, 8, 6, 0.97));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  padding: 16px 16px 14px;
}
.ocr-status-popup--info {
  border-color: rgba(103, 148, 255, 0.32);
  box-shadow: 0 22px 60px rgba(26, 42, 86, 0.32);
}
.ocr-status-popup--warning {
  border-color: rgba(214, 171, 87, 0.34);
  box-shadow: 0 22px 60px rgba(86, 63, 18, 0.3);
}
.ocr-status-popup--danger {
  border-color: rgba(176, 78, 65, 0.42);
  box-shadow: 0 22px 60px rgba(78, 23, 17, 0.34);
}
.ocr-status-popup--success {
  border-color: rgba(76, 142, 104, 0.42);
  box-shadow: 0 22px 60px rgba(16, 56, 34, 0.3);
}
.ocr-status-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ocr-status-popup-heading {
  min-width: 0;
}
.ocr-status-popup-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ocr-status-popup-title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-soft);
}
.ocr-status-popup-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.ocr-status-popup-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}
.ocr-status-popup-message {
  margin-top: 10px;
  color: var(--text);
  line-height: 1.55;
}
.ocr-status-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ocr-status-popup-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ocr-status-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .ocr-status-popup-host {
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
.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; justify-content: flex-end; gap: 10px; flex-wrap: nowrap; }
.profile-window-tabs .toggle-button {
  min-width: 138px;
  justify-content: center;
  text-align: center;
  padding: 10px 16px;
}
.profile-subsection { display: flex; flex-direction: column; gap: 12px; }
.profile-subsection + .profile-subsection { margin-top: 8px; }
.profile-row-stack { gap: 10px; }
.profile-ui-scale-panel { margin-top: 0; }
.profile-top-filter-toolbar { justify-content: flex-start; }
.profile-vertical-toggle-row {
  justify-content: flex-start;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-vertical-toggle-row .button-group { gap: 10px; }
.profile-vertical-toggle-row .toggle-button {
  min-width: 128px;
  padding: 8px 14px;
  font-size: 0.8rem;
}
.profile-vertical-toggle-row .toggle-button.active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}
.profile-listings-tab-toolbar { justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.profile-messages-grid { grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr); align-items: start; }
.profile-settings-collapsible {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-settings-collapsible summary {
  list-style: none;
}
.profile-settings-collapsible summary::-webkit-details-marker {
  display: none;
}
.profile-settings-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.profile-activity-card summary {
  list-style: none;
}
.profile-activity-card summary::-webkit-details-marker {
  display: none;
}
.profile-activity-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.profile-activity-card[open] .profile-activity-summary {
  margin-bottom: 8px;
}
.profile-message-thread {
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
}
.profile-message-thread.active {
  border-color: var(--accent, #b7791f);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #b7791f) 45%, transparent);
}
.profile-message-thread .listing-top {
  align-items: flex-start;
}
.profile-message-thread .item-name {
  margin-bottom: 2px;
}
.profile-thread-title-link {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.22rem;
  text-decoration: none;
}
.profile-thread-title-link:hover {
  color: var(--gold-bright, var(--gold-soft));
  text-decoration: underline;
}
.message-bubble-row {
  display: flex;
  width: 100%;
}
.message-bubble-row.is-me {
  justify-content: flex-end;
}
.message-bubble-row.is-them {
  justify-content: flex-start;
}
.message-bubble-row.is-system {
  justify-content: center;
}
.message-bubble {
  max-width: min(78%, 680px);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.message-bubble-row.is-me .message-bubble {
  border-color: color-mix(in srgb, var(--accent, #b7791f) 40%, var(--line));
  background: linear-gradient(180deg, rgba(183, 121, 31, 0.18), rgba(183, 121, 31, 0.08));
}
.message-bubble-row.is-them .message-bubble {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}
.message-bubble-row.is-system .message-bubble {
  max-width: min(70%, 620px);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--gold-soft, #d7b062) 35%, var(--line));
  background: rgba(215, 176, 98, 0.06);
}
.profile-listing-row { width: 100%; }
.profile-filter-toolbar { align-items: end; }
.profile-filter-field { min-width: 240px; max-width: 340px; padding: 0; }
.profile-inline-filter-field { min-width: 210px; max-width: 280px; padding: 0; }
.profile-listing-controls { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.profile-toolbar-cluster {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.profile-toolbar-cluster-right { margin-left: auto; }
.profile-listings-tab-toolbar .profile-toolbar-cluster-right { align-items: center; }
.profile-selection-summary {
  align-items: center;
  min-height: 0;
  display: flex;
  align-self: center;
}
.profile-selection-summary .chip {
  padding: var(--btn-pad-y) var(--btn-pad-x);
  line-height: 1.1;
  font-size: 0.76rem;
}
.admin-boolean-toggle {
  justify-content: flex-start;
  margin-top: 8px;
}
.admin-boolean-toggle .toggle-button {
  min-width: 108px;
  justify-content: center;
  text-align: center;
}
.profile-selection-summary[hidden] { display: none !important; }
#profileListingModeToggle {
  min-width: 104px;
  justify-content: center;
}
.profile-marketplace-card { display: block; width: 100%; max-width: 100%; padding: var(--tooltip-card-shell-spacing); box-sizing: border-box; break-inside: avoid; page-break-inside: avoid; margin: 0 0 var(--tooltip-card-gap); }
body[data-page="profile"] .profile-marketplace-card {
  margin: 0 0 var(--tooltip-card-gap) !important;
  break-inside: avoid;
  page-break-inside: avoid;
}
.row-card.profile-marketplace-card {
  padding: var(--tooltip-card-shell-spacing);
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.profile-marketplace-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}
.profile-marketplace-card.is-selected .profile-marketplace-shell {
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #b7791f) 60%, transparent);
  background: linear-gradient(180deg, rgba(183, 121, 31, 0.12), rgba(183, 121, 31, 0.04));
}
.profile-marketplace-card-link { color: inherit; text-decoration: none; display: block; width: 100%; }
.profile-card-actions, .profile-card-meta { gap: 8px; }
.profile-card-actions,
.profile-card-meta {
  min-width: 0;
  overflow: hidden;
}
.profile-card-actions .chip-list,
.profile-card-meta [data-offer-card-actions="true"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.profile-card-actions .btn,
.profile-card-meta [data-offer-card-actions="true"] .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
  padding-left: 6px;
  padding-right: 6px;
}
.profile-listing-table td .chip-list { flex-wrap: wrap; }
.profile-listing-table tbody tr.is-selected td {
  background: rgba(215, 176, 98, 0.1);
}
.profile-listing-table tbody tr.is-selected:hover td {
  background: rgba(215, 176, 98, 0.14);
}
.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 {
  width: min(var(--tooltip-width), calc(100vw - 48px));
  max-width: 100%;
  min-height: var(--tooltip-min-height);
  max-height: var(--tooltip-max-height);
  overflow-y: auto;
  margin: 0 auto;
  box-sizing: border-box;
  padding: var(--tooltip-shell-padding-y) var(--tooltip-shell-padding-x) var(--tooltip-shell-padding-bottom);
  border-radius: var(--tooltip-shell-radius);
  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: var(--component-gap-sm); min-height: var(--tooltip-image-min-height); }
.tooltip-component-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--component-gap-sm);
}
.tooltip-component-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(132, 116, 82, 0.34);
  background: rgba(255, 255, 255, 0.03);
}
.tooltip-component-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.tooltip-component-art-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.tooltip-component-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tooltip-component-name {
  color: #f0e2c1;
  font-size: 0.8rem;
  line-height: 1.1;
}
.tooltip-component-meta {
  color: #bca36f;
  font-size: 0.72rem;
  line-height: 1;
}

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

.tooltip-name.unique { color: #c6a659; }
.tooltip-name.rare { color: #d2c46d; }
.tooltip-name.crafted { color: #cf9162; }
.tooltip-name.magic { color: #8fb6ff; }
.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: 0.98rem; margin-bottom: 2px; }
  
.tooltip-subtitle,
.tooltip-set-name,
.tooltip-runes,
.tooltip-section-label {
  text-align: center;
  color: #9ba0b3;
  font-size: var(--tooltip-subtitle-size);
  line-height: 1.08;
  margin-bottom: 3px;
}

.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: 6px 0;
  background: linear-gradient(90deg, transparent, rgba(215, 176, 98, 0.28), transparent);
}

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

.tooltip-line {
  text-align: center;
  font-size: var(--tooltip-line-size);
  line-height: 1.12;
}

.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; }
.tooltip-listing-quantity {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid rgba(213, 176, 98, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(50, 36, 18, 0.92), rgba(28, 20, 10, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 162, 0.08),
    0 0 0 1px rgba(18, 12, 6, 0.28);
}
.tooltip-listing-quantity-label {
  color: #d7b062;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tooltip-listing-quantity-value {
  color: #f1e3ba;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(223, 183, 102, 0.18);
}

@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,
  .league-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-bucket-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .sidebar { position: static; }
  .itemdb-topnav { padding: 8px; }
  .profile-window-tabs { flex-wrap: wrap; }
  .profile-toolbar-cluster-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .profile-filter-field,
  .profile-inline-filter-field {
    width: 100%;
    max-width: none;
  }
  .listing-preview-shell { grid-template-columns: 1fr; }
  .marketplace-selected-search-header {
    flex-direction: column;
    align-items: stretch;
  }
  .marketplace-selected-search-grid { grid-template-columns: 1fr; }
  .marketplace-filter-row,
  .marketplace-inline-sort-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .marketplace-inline-sort-combo {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .marketplace-base-modifier-active-row {
    grid-template-columns: 1fr;
  }
  .marketplace-base-modifier-control-row {
    flex-wrap: wrap;
  }
  .marketplace-base-modifier-remove {
    align-self: stretch;
    justify-self: flex-start;
  }
  .marketplace-sort-button-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .list-item-preview-header { grid-template-columns: 1fr; }
  .market-list-head,
  .market-list-row { grid-template-columns: 1fr; }
  .market-list-head { padding: 0 0 4px; }
  .market-list-price { text-align: left; }
  .market-list-expanded { grid-template-columns: 1fr; padding: 0; }
  .profile-market-list-head,
  .profile-market-list-row-shell { grid-template-columns: 1fr; }
  .profile-market-list-actions { padding: 10px; }
  .marketplace-listings {
    display: block;
    width: 100%;
    margin: 0;
  }
  .marketplace-masonry-grid { grid-template-columns: 1fr; }
  .exchange-summary-grid { grid-template-columns: 1fr; }
  .exchange-overview-layout { grid-template-columns: 1fr; }
  .exchange-overview-subtitle,
  .exchange-overview-row { grid-template-columns: minmax(0, 1.2fr) .9fr .9fr .6fr .6fr; }
  .exchange-orderbook-grid { grid-template-columns: 1fr; }
  .exchange-compose-selected-item { grid-template-columns: 1fr; }
  .exchange-listing-top { grid-template-columns: 1fr; gap: 10px; }
  .exchange-listing-trade-separator { display: none; }
  .exchange-listing-group-collection.is-right { justify-items: stretch; text-align: left; }
  .exchange-listing-group-stack.is-right { justify-items: stretch; }
  .exchange-listing-group-row.is-right { justify-content: flex-start; }
  .exchange-listing-item-token-name { max-width: none; white-space: normal; }
  .exchange-listing-estimate-inner { width: 100%; }
  .exchange-history-row { grid-template-columns: 1fr 1fr; }
  .exchange-overview-head-top { flex-direction: column; align-items: flex-start; }
  .profile-card-grid,
  .list-grid.expanded-grid,
  .list-grid.unique-drilldown {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
  }
  .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); }
}

.faq-shell {
  max-width: min(var(--site-width), 1460px);
}

.faq-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  margin-top: 24px;
}

.faq-hero-copy {
  max-width: 860px;
}

.faq-hero-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.07rem;
}

.faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-accordion-list {
  display: grid;
  gap: 14px;
}

.faq-accordion-item {
  padding: 18px 20px;
}

.faq-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.faq-accordion-summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: rgba(20, 17, 12, 0.7);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-accordion-item[open] .faq-accordion-summary::after {
  content: '-';
}

.faq-accordion-content {
  margin-top: 14px;
}

.faq-accordion-content > :first-child {
  margin-top: 0;
}

.faq-accordion-content > :last-child {
  margin-bottom: 0;
}

.faq-grid,
.faq-two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-card,
.faq-section {
  padding: 20px 22px;
}

.faq-card p,
.faq-section p,
.faq-qa p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.faq-card strong,
.faq-section strong,
.faq-qa strong {
  color: var(--gold-soft);
}

.faq-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 14px;
}

.faq-step {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(180deg, rgba(18, 16, 20, 0.88), rgba(16, 14, 18, 0.96));
}

.faq-step-number {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 104, 0.42);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(40, 29, 14, 0.48);
}

.faq-step p,
.faq-list,
.faq-qa-list {
  margin: 8px 0 0;
}

.faq-list {
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}

.faq-list li + li {
  margin-top: 8px;
}

.faq-qa-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.faq-qa {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(19, 16, 22, 0.72);
}

.faq-qa h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--gold-soft);
}

@media (max-width: 720px) {
  .topbar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-left {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .brand-wordmark {
    justify-self: auto;
    align-self: center;
  }
  .brand-text-mark {
    height: 24px;
    max-width: min(78vw, 290px);
    transform: scale(1.5);
  }
  .user-actions {
    width: 100%;
    justify-self: auto;
    justify-content: flex-end;
  }
  .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,
  .league-selector-grid,
  .league-admin-filter-row { grid-template-columns: 1fr; }
  .paired-slider-grid { grid-template-columns: 1fr; }
  .admin-color-picker-head { grid-template-columns: 44px auto; }
  .admin-color-default-button {
    min-height: 40px;
  }
  .shell { padding: 0 14px 30px; }
  .list-item-root .form-grid { grid-template-columns: 1fr; }
  .listing-preview-shell { grid-template-columns: 1fr; }
  .marketplace-selected-search-header {
    flex-direction: column;
    align-items: stretch;
  }
  .marketplace-selected-search-grid { grid-template-columns: 1fr; }
  .marketplace-filter-row,
  .marketplace-inline-sort-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .marketplace-sort-button-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .list-item-preview-header { grid-template-columns: 1fr; }
  .profile-market-list-head,
  .profile-market-list-row-shell { grid-template-columns: 1fr; }
  .profile-market-list-actions { padding: 10px; }
  .map-flow,
  .map-grid-pages,
  .map-grid-engines,
  .map-grid-flows,
  .map-boundary-grid,
  .faq-grid,
  .faq-two-up,
  .faq-steps,
  .faq-qa-list { grid-template-columns: 1fr; }
  .faq-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
