:root {
  color-scheme: dark;
  --bg: #0e0d0b;
  --panel: #171512;
  --panel-strong: #1f1b16;
  --line: #373027;
  --line-bright: #5a4a36;
  --text: #efe8dc;
  --muted: #a79c8c;
  --faint: #746a5f;
  --gold: #c9a35f;
  --give: #d36a5f;
  --give-soft: rgba(211, 106, 95, 0.16);
  --receive: #c9a35f;
  --receive-soft: rgba(201, 163, 95, 0.16);
  --purchase: #7aa6bf;
  --purchase-soft: rgba(122, 166, 191, 0.16);
  --sell-action: #9b86c8;
  --sell-action-soft: rgba(155, 134, 200, 0.16);
  --silver: #c9cfcc;
  --silver-dim: #7f8986;
  --green: #7fae80;
  --danger: #d36a5f;
  --shadow: rgba(0, 0, 0, 0.32);
  --ink: #080807;
  --bronze: #8b6a36;
  --temper-sigil: url("/assets/temper-sigil.svg");
  --offer-sigil: url("/assets/offer-sigil.svg");
  --modal-side-give: url("/assets/modal-side-give.svg");
  --modal-side-receive: url("/assets/modal-side-receive.svg");
  --modal-give-seal: url("/assets/modal-give-seal.svg");
  --modal-receive-seal: url("/assets/modal-receive-seal.svg");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    url("/assets/market-sigil.svg") top 4px center / min(760px, 78vw) auto no-repeat,
    radial-gradient(circle at 50% -8rem, rgba(201, 163, 95, 0.11), transparent 36rem),
    radial-gradient(circle at 18% 16rem, rgba(122, 166, 191, 0.07), transparent 20rem),
    radial-gradient(circle at 82% 20rem, rgba(155, 134, 200, 0.08), transparent 22rem),
    linear-gradient(90deg, rgba(201, 163, 95, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(201, 163, 95, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: min(760px, 78vw) auto, auto, auto, auto, 44px 44px, 44px 44px, auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 32px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: start;
  min-height: 0;
  position: relative;
  padding-bottom: 4px;
}

.feed-state,
.controls,
.market-pulse,
.stream {
  border: 1px solid var(--line);
  background: rgba(23, 21, 18, 0.9);
  box-shadow: 0 18px 40px var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 2px 0 0;
}

.brand-mark {
  width: 42px;
  height: 50px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65));
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 0 #000, 0 0 22px rgba(201, 163, 95, 0.16);
}

h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.feed-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  min-height: 34px;
  position: relative;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.12)),
    rgba(14, 13, 11, 0.86);
}

.feed-state > *,
.controls > *,
.stream > * {
  position: relative;
  z-index: 1;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 174, 128, 0.15);
  flex: 0 0 auto;
}

.icon-button,
.segment,
.ghost-button {
  border: 1px solid rgba(90, 74, 54, 0.72);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.1)),
    #191610;
  border-radius: 5px;
  min-height: 38px;
  padding: 0 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 186, 0.045);
}

.icon-button:hover,
.segment:hover,
.ghost-button:hover {
  border-color: var(--gold);
}

.compact-toggle[aria-pressed="true"] {
  border-color: rgba(201, 163, 95, 0.82);
  color: #f6dfaa;
  background:
    linear-gradient(180deg, rgba(201, 163, 95, 0.34), rgba(58, 39, 12, 0.86)),
    #17120b;
}

.controls {
  display: grid;
  grid-template-columns: 300px minmax(260px, 1fr) 178px;
  gap: 16px;
  align-items: end;
  margin: 7px 0 10px;
  position: relative;
  overflow: hidden;
  padding: 8px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 231, 186, 0.035), rgba(0, 0, 0, 0.12)),
    rgba(14, 13, 11, 0.82);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  min-height: 44px;
  border-color: rgba(90, 74, 54, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.segment::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: var(--segment-icon) center / contain no-repeat;
  opacity: 0.78;
  filter: drop-shadow(0 1px 2px #000);
}

.segment[data-side="all"] {
  --segment-icon: url("/assets/stat-total.svg");
}

.segment[data-side="purchase"] {
  --segment-icon: url("/assets/stat-purchase.svg");
}

.segment[data-side="sell"] {
  --segment-icon: url("/assets/stat-sell.svg");
}

.segment.is-active {
  border-color: rgba(201, 163, 95, 0.86);
  color: #f7e7b6;
  background:
    linear-gradient(180deg, rgba(201, 163, 95, 0.42), rgba(89, 62, 21, 0.88)),
    #4b3517;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.16),
    0 0 14px rgba(201, 163, 95, 0.08);
}

.search-box,
.select-box {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 231, 186, 0.025), rgba(0, 0, 0, 0.08)),
    #0d0c0a;
  padding: 0 12px;
  outline: none;
}

.search-box input {
  padding-left: 42px;
  font-style: italic;
}

.search-box {
  position: relative;
}

.search-box::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 15px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bronze);
  border-radius: 50%;
  box-shadow: 8px 8px 0 -6px var(--bronze);
  pointer-events: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 95, 0.14);
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.market-pulse,
.stream {
  border-radius: 8px;
}

.market-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  position: static;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pulse-stat {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 5px;
  align-items: center;
  min-height: 64px;
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  border: 1px solid rgba(90, 74, 54, 0.64);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 231, 186, 0.035), rgba(0, 0, 0, 0.11)),
    rgba(14, 13, 11, 0.9);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.28);
}

.pulse-stat > span:not(.pulse-icon) {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-stat strong {
  grid-column: 2;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.pulse-icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 163, 95, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(201, 163, 95, 0.12), transparent 62%),
    #11100e;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px, auto;
}

.pulse-icon.total {
  background-image: url("/assets/stat-total.svg"), radial-gradient(circle, rgba(201, 163, 95, 0.12), transparent 62%);
}

.pulse-icon.purchase {
  background-image: url("/assets/stat-purchase.svg"), radial-gradient(circle, rgba(122, 166, 191, 0.14), transparent 62%);
}

.pulse-icon.sell {
  background-image: url("/assets/stat-sell.svg"), radial-gradient(circle, rgba(155, 134, 200, 0.14), transparent 62%);
}

.pulse-icon.newest {
  background-image: url("/assets/stat-newest.svg"), radial-gradient(circle, rgba(201, 163, 95, 0.12), transparent 62%);
}

.pulse-stat.purchase strong {
  color: var(--purchase);
}

.pulse-stat.sell strong {
  color: var(--sell-action);
}

.stream {
  min-width: 0;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 231, 186, 0.035), transparent 6rem),
    rgba(14, 13, 11, 0.94);
  background-size: 46px 46px, auto, auto;
}

.stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 16px 7px;
  border-bottom: 1px solid rgba(90, 74, 54, 0.34);
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.035), transparent 44%, rgba(201, 163, 95, 0.018)),
    rgba(7, 7, 6, 0.18);
}

.stream-head h2 {
  color: #dfc98f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.stream-head h2::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 10px;
  margin-left: 10px;
  vertical-align: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  clip-path: polygon(0 45%, 12% 0, 24% 45%, 100% 45%, 100% 55%, 24% 55%, 12% 100%, 0 55%);
  opacity: 0.75;
}

.stream-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.stream-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: #d6c39a;
  font-family: Georgia, "Times New Roman", serif;
}

.stream-actions .icon-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.popout-minimal-toggle[aria-pressed="true"] {
  border-color: rgba(201, 163, 95, 0.82);
  color: #f6dfaa;
  background:
    linear-gradient(180deg, rgba(201, 163, 95, 0.34), rgba(58, 39, 12, 0.86)),
    #17120b;
}

.order-board-head {
  --order-grid-template: minmax(250px, 0.86fr) minmax(500px, 1.72fr) minmax(104px, 0.38fr) 72px;
  display: grid;
  grid-template-columns: var(--order-grid-template);
  gap: 0;
  align-items: center;
  min-width: 930px;
  min-height: 31px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(90, 74, 54, 0.38);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(5, 5, 4, 0.28);
}

.order-board-head span {
  display: flex;
  align-items: center;
  min-height: 31px;
  min-width: 0;
  border-left: 1px solid rgba(201, 163, 95, 0.11);
  padding: 0 12px;
}

.order-board-head span:first-child {
  border-left: 0;
  padding-left: 16px;
}

.order-board-head span:nth-child(4) {
  justify-content: center;
  padding: 0;
}

.order-list {
  --order-grid-template: minmax(250px, 0.86fr) minmax(500px, 1.72fr) minmax(104px, 0.38fr) 72px;
  display: grid;
  gap: 5px;
  min-width: 930px;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.05) 1px, transparent 1px),
    rgba(7, 7, 6, 0.35);
  background-size: 44px 44px, auto;
}

.compact-row-art,
.compact-trade-summary {
  display: none;
}

.order-row {
  display: grid;
  grid-template-columns: var(--order-grid-template);
  gap: 0;
  align-items: stretch;
  min-height: 98px;
  border: 1px solid rgba(201, 163, 95, 0.24);
  border-radius: 6px;
  color: inherit;
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.035), transparent 32%, rgba(201, 163, 95, 0.018)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.032), rgba(0, 0, 0, 0.13)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.025),
    inset 0 -18px 42px rgba(0, 0, 0, 0.1);
  text-align: left;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.order-row > * {
  position: relative;
  z-index: 1;
}

.order-row:hover,
.order-row.is-selected {
  border-color: rgba(201, 163, 95, 0.5);
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.048), transparent 34%, rgba(201, 163, 95, 0.026)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.04), rgba(0, 0, 0, 0.1)),
    var(--panel-strong);
}

.order-row.purchase {
  border-color: rgba(122, 166, 191, 0.34);
  background:
    linear-gradient(90deg, rgba(122, 166, 191, 0.07), transparent 35%, rgba(201, 163, 95, 0.015)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.028), rgba(0, 0, 0, 0.13)),
    var(--panel);
}

.order-row.purchase::after {
  color: rgba(122, 166, 191, 0.18);
}

.order-row.sell {
  border-color: rgba(155, 134, 200, 0.38);
  background:
    linear-gradient(90deg, rgba(155, 134, 200, 0.078), transparent 35%, rgba(201, 163, 95, 0.015)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.028), rgba(0, 0, 0, 0.13)),
    var(--panel);
}

.order-row.sell::after {
  color: rgba(155, 134, 200, 0.2);
}

.order-row.purchase:hover,
.order-row.purchase.is-selected {
  border-color: rgba(122, 166, 191, 0.62);
  background:
    linear-gradient(90deg, rgba(122, 166, 191, 0.1), transparent 38%, rgba(201, 163, 95, 0.02)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.04), rgba(0, 0, 0, 0.09)),
    var(--panel-strong);
}

.order-row.sell:hover,
.order-row.sell.is-selected {
  border-color: rgba(155, 134, 200, 0.66);
  background:
    linear-gradient(90deg, rgba(155, 134, 200, 0.11), transparent 38%, rgba(201, 163, 95, 0.02)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.04), rgba(0, 0, 0, 0.09)),
    var(--panel-strong);
}

.order-row.is-new {
  box-shadow: inset 3px 0 0 var(--green);
}

.item-cell,
.trade-cell,
.seller-cell,
.time-cell {
  min-width: 0;
  border-left: 1px solid rgba(201, 163, 95, 0.16);
  padding: 8px 12px;
}

.item-cell {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  padding: 28px 72px 10px 16px;
  border-left: 0;
  position: relative;
}

.item-cell::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 96px;
  height: 96px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.22;
  transform: translateY(-50%);
  pointer-events: none;
}

.order-row.purchase .item-cell::before {
  background-image: url("/assets/row-ghost-buy.svg");
}

.order-row.sell .item-cell::before {
  background-image: url("/assets/row-ghost-sell.svg");
}

.trade-cell {
  display: grid;
  align-content: center;
}

.seller-cell {
  display: grid;
  align-content: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(255, 231, 186, 0.014), rgba(0, 0, 0, 0.06));
}

.time-cell {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 231, 186, 0.014), rgba(0, 0, 0, 0.06));
}

.item-intent-badge {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  min-height: 17px;
  border: 1px solid transparent;
  border-radius: 6px 1px 2px 0;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
  padding: 0 11px 0 8px;
}

.order-row.purchase .item-intent-badge {
  color: #a8d7ef;
  border-color: rgba(122, 166, 191, 0.7);
  background:
    linear-gradient(180deg, rgba(122, 166, 191, 0.3), rgba(8, 20, 28, 0.9)),
    #0d1a22;
  box-shadow:
    inset 0 0 0 1px rgba(219, 242, 255, 0.08),
    inset 0 0 12px rgba(122, 166, 191, 0.14),
    0 5px 12px rgba(0, 0, 0, 0.18);
}

.order-row.sell .item-intent-badge {
  color: #cfbdff;
  border-color: rgba(155, 134, 200, 0.72);
  background:
    linear-gradient(180deg, rgba(155, 134, 200, 0.3), rgba(22, 13, 31, 0.9)),
    #1a1324;
  box-shadow:
    inset 0 0 0 1px rgba(238, 228, 255, 0.08),
    inset 0 0 12px rgba(155, 134, 200, 0.18),
    0 5px 12px rgba(0, 0, 0, 0.18);
}

.item-intent-glyph .action-glyph,
.item-intent-badge .action-glyph {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.order-title-line {
  display: grid;
  align-content: end;
  gap: 5px;
  align-self: end;
  justify-self: start;
  min-width: 0;
}

.order-title-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.order-title-heading h3 {
  flex: 0 1 auto;
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.74rem;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 0 #000, 0 0 14px rgba(201, 163, 95, 0.08);
  overflow-wrap: anywhere;
}

.title-item-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  gap: 6px;
  min-width: 0;
}

.title-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 19px;
  border: 1px solid rgba(201, 163, 95, 0.15);
  border-radius: 4px;
  color: #d9d1c4;
  background:
    linear-gradient(180deg, rgba(255, 231, 186, 0.045), rgba(0, 0, 0, 0.08)),
    rgba(255, 255, 255, 0.032);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1;
  padding: 0 7px;
  white-space: nowrap;
}

.title-item-chip.is-quality {
  border-color: rgba(201, 163, 95, 0.38);
  color: #dfc98f;
  background:
    linear-gradient(180deg, rgba(201, 163, 95, 0.07), rgba(0, 0, 0, 0.08)),
    rgba(201, 163, 95, 0.045);
}

.title-item-chip.is-category {
  border-color: rgba(201, 207, 204, 0.18);
  color: var(--silver);
}

.title-item-chip.is-tempers {
  border-color: rgba(111, 166, 156, 0.48);
  color: #c4e5da;
  background:
    linear-gradient(180deg, rgba(111, 166, 156, 0.16), rgba(0, 0, 0, 0.1)),
    rgba(42, 92, 82, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(214, 255, 237, 0.045),
    0 0 12px rgba(111, 166, 156, 0.08);
}

.title-item-chip.is-tempers::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(214, 255, 237, 0.28);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 50%, rgba(214, 255, 237, 0.85), rgba(111, 166, 156, 0.2) 56%),
    rgba(111, 166, 156, 0.3);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(111, 166, 156, 0.42);
}

.fresh-chip {
  display: none;
  flex: 0 0 auto;
  border: 1px solid rgba(127, 174, 128, 0.65);
  border-radius: 5px;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 3px 6px;
}

.order-row.is-new .fresh-chip {
  display: inline-flex;
}

.seller-name {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.1;
}

.seller-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.seller-status.online {
  color: var(--green);
}

.context-separator {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.context-separator.online {
  background: var(--green);
}

.time-cell {
  color: var(--faint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.temper-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 163, 95, 0.22);
  border-radius: 4px;
  object-fit: contain;
  background: #0b0a08;
}

.temper-icon.fallback {
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
}

.board-trade {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 34px minmax(220px, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.board-trade-side {
  display: grid;
  grid-template-rows: 1fr;
  gap: 4px;
  min-width: 0;
}

.trade-rune {
  align-self: center;
  justify-self: center;
  width: 28px;
  height: 48px;
  background: url("/assets/exchange-rune.svg") center / contain no-repeat;
  opacity: 0.68;
  filter: drop-shadow(0 1px 2px #000);
}

.board-trade-box {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(201, 163, 95, 0.34);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 231, 186, 0.032), rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.018), rgba(0, 0, 0, 0.1)),
    #0f0e0c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.025),
    inset 0 0 22px rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.board-trade-box.give-box {
  border-color: rgba(211, 106, 95, 0.48);
}

.board-trade-box.receive-box {
  border-color: rgba(201, 163, 95, 0.52);
}

.board-trade-art {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 68px;
  height: 62px;
  border-right: 1px solid rgba(201, 163, 95, 0.15);
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 163, 95, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(255, 231, 186, 0.018), rgba(0, 0, 0, 0.11)),
    rgba(0, 0, 0, 0.2);
}

.board-trade-art > *,
.modal-hero-art > *,
.modal-exchange-thumb > *,
.compact-row-art > * {
  position: relative;
  z-index: 1;
}

.board-trade-box > * {
  position: relative;
  z-index: 1;
}

.board-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.board-image.is-empty {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 0.72rem;
}

.offer-art {
  color: var(--silver);
}

.offer-art::before {
  background-image: var(--offer-sigil);
  opacity: 0.42;
}

.offer-art .handshake-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.05;
}

.board-trade-copy {
  display: grid;
  position: static;
  gap: 2px;
  min-width: 0;
  padding: 13px 66px 6px 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.1;
}

.board-trade-meta {
  display: block;
  align-items: center;
  min-width: 0;
}

.board-trade-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.board-trade-card-label {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 16px;
  border: 1px solid rgba(201, 163, 95, 0.34);
  border-radius: 0 5px 0 4px;
  color: var(--receive);
  background:
    linear-gradient(180deg, rgba(234, 199, 126, 0.22), rgba(56, 38, 12, 0.78)),
    rgba(201, 163, 95, 0.1);
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.08),
    -3px 4px 10px rgba(0, 0, 0, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.1;
  padding: 0 6px 0 10px;
  pointer-events: none;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.give-box .board-trade-card-label {
  color: var(--give);
  border-color: rgba(211, 106, 95, 0.44);
  background:
    linear-gradient(180deg, rgba(222, 128, 111, 0.21), rgba(53, 16, 13, 0.78)),
    rgba(211, 106, 95, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.06),
    -3px 4px 10px rgba(0, 0, 0, 0.2);
}

.board-trade-copy strong {
  font-size: 1.08rem;
  line-height: 1;
}

.board-trade-name {
  color: #d8bd7b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-trade-name.is-inline {
  min-width: 0;
  color: #d8bd7b;
}

.give-box .board-trade-name {
  color: #d9867d;
}

.weapon-box {
  grid-template-columns: 68px minmax(0, 1fr);
}

.weapon-box .board-trade-copy {
  gap: 4px;
  padding-top: 11px;
  padding-bottom: 7px;
}

.weapon-box .board-trade-stack {
  max-width: 100%;
}

.board-temper-rail {
  display: grid;
  grid-template-columns: repeat(8, 18px);
  grid-auto-rows: 18px;
  gap: 3px;
  align-content: start;
  width: fit-content;
  margin-top: 1px;
}

.board-temper-slot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(111, 166, 156, 0.36);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(111, 166, 156, 0.12), rgba(0, 0, 0, 0.08)),
    rgba(0, 0, 0, 0.36);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
}

.board-temper-slot .temper-icon {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 2px;
}

.item-thumb {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  object-fit: contain;
  background: transparent;
}

.item-thumb.is-empty {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 0.72rem;
}

.open-thumb {
  display: grid;
  place-items: center;
  color: var(--silver);
  border: 1px solid rgba(201, 207, 204, 0.66);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(127, 137, 134, 0.2) 48%, rgba(0, 0, 0, 0.28)),
    rgba(201, 207, 204, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -12px 20px rgba(0, 0, 0, 0.26),
    inset 0 10px 18px rgba(255, 255, 255, 0.05);
}

.handshake-icon {
  width: 26px;
  height: 26px;
  color: currentColor;
}

.handshake-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.empty-list {
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

.trade-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.trade-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(201, 163, 95, 0.12), transparent 32rem),
    rgba(3, 3, 3, 0.76);
  backdrop-filter: blur(6px);
}

.trade-modal-panel {
  position: relative;
  width: min(1120px, calc(100vw - 28px));
  max-height: min(88vh, 940px);
  overflow: auto;
  border: 1px solid rgba(201, 163, 95, 0.45);
  border-radius: 8px;
  color: var(--text);
  background:
    url("/assets/market-sigil.svg") top -118px right 28px / 460px auto no-repeat,
    radial-gradient(circle at 76% 8%, rgba(201, 163, 95, 0.08), transparent 24rem),
    linear-gradient(90deg, rgba(201, 163, 95, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 231, 186, 0.035), rgba(0, 0, 0, 0.2)),
    rgba(12, 11, 9, 0.98);
  background-size: 460px auto, auto, 42px 42px, auto, auto;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 231, 186, 0.035),
    inset 0 0 48px rgba(0, 0, 0, 0.34);
}

.trade-modal-panel::before,
.trade-modal-panel::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 95, 0.52), transparent);
  pointer-events: none;
}

.trade-modal-panel::before {
  top: 10px;
}

.trade-modal-panel::after {
  bottom: 10px;
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  min-height: 32px;
  border: 1px solid rgba(201, 207, 204, 0.28);
  border-radius: 5px;
  color: var(--silver);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.15)),
    rgba(13, 12, 10, 0.94);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 0 12px;
  text-transform: uppercase;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(201, 163, 95, 0.68);
  color: var(--text);
  outline: none;
}

#tradeModalContent {
  position: relative;
  z-index: 1;
}

.modal-trade-detail {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-hero,
.modal-section {
  border: 1px solid rgba(90, 74, 54, 0.62);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.055), transparent 42%, rgba(201, 163, 95, 0.025)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.038), rgba(0, 0, 0, 0.12)),
    rgba(16, 15, 13, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.025),
    inset 0 -20px 42px rgba(0, 0, 0, 0.13);
}

.modal-hero > *,
.modal-section > * {
  position: relative;
  z-index: 1;
}

.modal-trade-detail.purchase .modal-hero,
.modal-trade-detail.purchase .modal-section {
  border-color: rgba(122, 166, 191, 0.36);
}

.modal-trade-detail.sell .modal-hero,
.modal-trade-detail.sell .modal-section {
  border-color: rgba(155, 134, 200, 0.39);
}

.modal-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(148px, 176px);
  gap: 16px;
  align-items: center;
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 16px 74px 16px 68px;
}

.modal-hero::before {
  content: "";
  position: absolute;
  left: 48px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(201, 163, 95, 0.11), transparent 28%),
    radial-gradient(circle at 76% 46%, rgba(201, 163, 95, 0.045), transparent 34%),
    linear-gradient(90deg, rgba(201, 163, 95, 0.088), rgba(201, 163, 95, 0.038) 42%, rgba(201, 163, 95, 0.06));
  opacity: 1;
  pointer-events: none;
}

.modal-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(196px, 23vw, 318px);
  z-index: 0;
  width: 116px;
  height: 116px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.028;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-trade-detail.purchase .modal-hero::after {
  background-image: url("/assets/row-ghost-buy.svg");
}

.modal-trade-detail.sell .modal-hero::after {
  background-image: url("/assets/row-ghost-sell.svg");
}

.modal-side-ribbon {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  display: grid;
  place-items: center;
  width: 48px;
  border: 1px solid currentColor;
  border-radius: 7px 0 0 7px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.055),
    inset 0 0 22px rgba(0, 0, 0, 0.26),
    8px 0 18px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 #000;
  pointer-events: none;
}

.modal-side-ribbon span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.modal-trade-detail.purchase .modal-side-ribbon {
  color: #a8d7ef;
  border-color: rgba(122, 166, 191, 0.62);
  background:
    linear-gradient(180deg, rgba(122, 166, 191, 0.32), rgba(8, 20, 28, 0.92)),
    #0d1a22;
}

.modal-trade-detail.sell .modal-side-ribbon {
  color: #cfbdff;
  border-color: rgba(155, 134, 200, 0.64);
  background:
    linear-gradient(180deg, rgba(155, 134, 200, 0.32), rgba(22, 13, 31, 0.92)),
    #1a1324;
}

.modal-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(201, 163, 95, 0.32);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 163, 95, 0.16), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.24)),
    #0d0c0a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.modal-hero-art::before,
.modal-hero-art::after,
.modal-exchange-thumb::before,
.modal-exchange-thumb::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.modal-hero-art::before,
.modal-exchange-thumb::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid rgba(201, 163, 95, 0.34);
  border-left: 1px solid rgba(201, 163, 95, 0.34);
}

.modal-hero-art::after,
.modal-exchange-thumb::after {
  right: 8px;
  bottom: 8px;
  border-right: 1px solid rgba(201, 163, 95, 0.28);
  border-bottom: 1px solid rgba(201, 163, 95, 0.28);
}

.modal-hero-art .item-thumb {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  border: 0;
  background: transparent;
}

.modal-hero-glow {
  position: absolute;
  inset: 12px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 95, 0.18), transparent 66%);
  filter: blur(2px);
}

.modal-hero-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
  position: relative;
  padding: 2px 10px 2px 0;
}

.modal-hero-copy::before,
.modal-hero-copy::after {
  content: none;
}

.modal-hero-copy::before {
  top: 0;
}

.modal-hero-copy::after {
  bottom: 0;
}

.modal-hero-copy .modal-kicker::before,
.modal-hero-copy .modal-trade-phrase::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 163, 95, 0.55);
  transform: rotate(45deg);
}

.modal-hero-copy .modal-trade-phrase::before {
  display: inline-block;
  margin-right: 9px;
  vertical-align: 1px;
}

.modal-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-title-row h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.34rem;
  font-weight: 650;
  line-height: 1;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(201, 163, 95, 0.13);
  overflow-wrap: anywhere;
}

.modal-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  border: 1px solid rgba(90, 74, 54, 0.38);
  border-radius: 5px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 231, 186, 0.03), rgba(0, 0, 0, 0.09)),
    rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 8px;
  white-space: nowrap;
}

.modal-user-badge.online {
  border-color: rgba(127, 174, 128, 0.42);
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(127, 174, 128, 0.1), rgba(0, 0, 0, 0.08)),
    rgba(0, 0, 0, 0.22);
}

.modal-user-badge strong,
.modal-user-badge small {
  display: inline;
  min-width: 0;
}

.modal-user-badge strong {
  color: var(--text);
}

.modal-user-badge small {
  color: currentColor;
  font-size: 0.68rem;
}

.modal-trade-phrase {
  color: #d8bd7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.28;
}

.modal-link-card {
  display: grid;
  gap: 7px;
  align-content: center;
  justify-items: start;
  position: relative;
  min-height: 82px;
  border-left: 0;
  padding: 8px 0 8px 14px;
}

.modal-link-card::before,
.modal-link-card::after {
  content: none;
}

.modal-link-card::before {
  top: 0;
}

.modal-link-card::after {
  bottom: 0;
}

.modal-link-card > span,
.modal-link-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(201, 163, 95, 0.72);
  border-radius: 5px;
  color: #f6dfaa;
  background:
    linear-gradient(180deg, rgba(201, 163, 95, 0.28), rgba(71, 48, 15, 0.86)),
    #281d0e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 750;
  padding: 0 14px;
  text-decoration: none;
}

.modal-primary-link:hover,
.modal-primary-link:focus-visible {
  border-color: #f0d083;
  color: #fff6dd;
  outline: none;
}

.modal-section {
  display: grid;
  align-content: start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.modal-exchange-section {
  border-color: rgba(90, 74, 54, 0.44);
  background:
    linear-gradient(90deg, rgba(211, 106, 95, 0.024), transparent 30%, transparent 70%, rgba(201, 163, 95, 0.026)),
    linear-gradient(180deg, rgba(255, 231, 186, 0.022), rgba(0, 0, 0, 0.11)),
    rgba(12, 11, 9, 0.72);
}

.modal-exchange-section::before {
  content: none;
}

.modal-section h3 {
  margin: 0;
  color: #dfc98f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1;
}

.modal-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.modal-section-heading span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.modal-section-heading strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}

.modal-exchange-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.modal-exchange-rune {
  align-self: stretch;
  justify-self: center;
  width: 28px;
  min-height: 100%;
  background: url("/assets/exchange-rune.svg") center / contain no-repeat;
  opacity: 0.52;
  filter: drop-shadow(0 1px 2px #000);
}

.modal-exchange-side {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 2px;
}

.modal-exchange-side::before {
  content: "";
  position: absolute;
  top: auto;
  bottom: 24px;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
}

.modal-exchange-side::after {
  content: none;
}

.modal-exchange-side > * {
  position: relative;
  z-index: 1;
}

.modal-exchange-side.is-give {
  color: var(--give);
}

.modal-exchange-side.is-give::after {
  content: none;
}

.modal-exchange-side.is-give::before {
  left: 16px;
  right: auto;
  width: min(72%, 330px);
  height: min(62%, 360px);
  background-position: left bottom;
  background-image: var(--modal-side-give);
  opacity: 0.08;
}

.modal-exchange-side.is-receive {
  color: var(--receive);
}

.modal-exchange-side.is-receive::after {
  content: none;
}

.modal-exchange-side.is-receive::before {
  right: 16px;
  left: auto;
  width: min(72%, 340px);
  height: min(64%, 370px);
  background-position: right bottom;
  background-image: var(--modal-side-receive);
  opacity: 0.11;
}

.modal-exchange-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid rgba(90, 74, 54, 0.18);
  margin: 0 2px;
  padding-bottom: 8px;
}

.modal-exchange-side-head span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-exchange-side.is-give .modal-exchange-side-head span {
  color: var(--give);
}

.modal-exchange-side.is-receive .modal-exchange-side-head span {
  color: var(--receive);
}

.modal-exchange-side-head strong {
  min-width: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.18;
  text-align: right;
  overflow-wrap: anywhere;
}

.modal-exchange-items {
  display: grid;
  gap: 12px;
}

.modal-exchange-item-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(90, 74, 54, 0.14);
  border-left: 2px solid rgba(201, 163, 95, 0.4);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 231, 186, 0.014), transparent 46%),
    linear-gradient(180deg, rgba(255, 231, 186, 0.014), rgba(0, 0, 0, 0.065)),
    rgba(8, 8, 7, 0.38);
  box-shadow: none;
  padding: 10px;
}

.modal-exchange-item-card::before {
  content: none;
}

.modal-exchange-item-card.is-give::before {
  background: linear-gradient(90deg, rgba(211, 106, 95, 0.38), transparent);
}

.modal-exchange-item-card.is-receive::before {
  background: linear-gradient(90deg, rgba(201, 163, 95, 0.38), transparent);
}

.modal-exchange-item-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 0;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.03;
  pointer-events: none;
}

.modal-exchange-item-card.is-give::after {
  background-image: var(--modal-give-seal);
  opacity: 0.055;
}

.modal-exchange-item-card.is-receive::after {
  background-image: var(--modal-receive-seal);
  opacity: 0.07;
}

.modal-exchange-item-card.is-open::after {
  background-image: var(--offer-sigil);
  opacity: 0.08;
}

.modal-exchange-item-card.is-weapon-card::after {
  top: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
}

.modal-exchange-item-card > * {
  position: relative;
  z-index: 1;
}

.modal-exchange-item-card.is-weapon-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  border-color: rgba(90, 74, 54, 0.16);
  border-left-color: rgba(201, 163, 95, 0.46);
  background:
    radial-gradient(circle at 94% 12%, rgba(201, 163, 95, 0.038), transparent 26%),
    linear-gradient(90deg, rgba(201, 163, 95, 0.024), transparent 42%),
    linear-gradient(180deg, rgba(255, 231, 186, 0.018), rgba(0, 0, 0, 0.085)),
    rgba(9, 9, 8, 0.46);
  padding: 12px;
}

.modal-exchange-item-card.is-weapon-card.is-give {
  border-color: rgba(90, 74, 54, 0.16);
  border-left-color: rgba(211, 106, 95, 0.5);
}

.modal-exchange-item-card.is-weapon-card.is-receive {
  border-color: rgba(90, 74, 54, 0.16);
  border-left-color: rgba(201, 163, 95, 0.54);
}

.modal-weapon-profile-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.modal-weapon-profile-detail {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.modal-exchange-item-card.is-give {
  border-color: rgba(90, 74, 54, 0.14);
  border-left-color: rgba(211, 106, 95, 0.48);
}

.modal-exchange-item-card.is-receive {
  border-color: rgba(90, 74, 54, 0.14);
  border-left-color: rgba(201, 163, 95, 0.52);
}

.modal-exchange-thumb {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(201, 163, 95, 0.28);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 163, 95, 0.16), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22)),
    #0d0c0a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.026),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.modal-exchange-thumb::before {
  top: 6px;
  left: 6px;
  width: 13px;
  height: 13px;
}

.modal-exchange-thumb::after {
  right: 6px;
  bottom: 6px;
  width: 13px;
  height: 13px;
}

.modal-exchange-item-card.is-give .modal-exchange-thumb {
  border-color: rgba(211, 106, 95, 0.42);
  background:
    radial-gradient(circle at 50% 42%, var(--give-soft), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22)),
    #0d0c0a;
}

.modal-exchange-item-card.is-receive .modal-exchange-thumb {
  border-color: rgba(201, 163, 95, 0.46);
}

.modal-exchange-thumb .item-thumb {
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
}

.modal-exchange-thumb.is-weapon-thumb {
  width: 84px;
  height: 84px;
  border-color: rgba(201, 163, 95, 0.44);
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 163, 95, 0.2), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.26)),
    #0d0c0a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 186, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

.modal-exchange-item-card.is-give .modal-exchange-thumb.is-weapon-thumb {
  border-color: rgba(211, 106, 95, 0.5);
}

.modal-exchange-thumb.is-weapon-thumb .item-thumb {
  width: 76px;
  height: 76px;
}

.modal-exchange-item-card.is-weapon-card .modal-exchange-copy {
  gap: 9px;
}

.modal-exchange-item-card.is-weapon-card .modal-exchange-eyebrow {
  color: rgba(232, 218, 190, 0.7);
}

.modal-exchange-item-card.is-weapon-card .modal-exchange-title {
  color: #f1e2bd;
  font-size: 1.34rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.9);
}

.modal-exchange-item-card.is-weapon-card.is-give .modal-exchange-title {
  color: #f0c0b8;
}

.modal-exchange-thumb.open-thumb {
  color: var(--silver);
  border-color: rgba(201, 207, 204, 0.62);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.22), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(127, 137, 134, 0.18) 48%, rgba(0, 0, 0, 0.28)),
    rgba(201, 207, 204, 0.12);
}

.modal-exchange-thumb.open-thumb::before {
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--offer-sigil) center / contain no-repeat;
  opacity: 0.22;
  transform: translate(-50%, -50%);
}

.modal-exchange-thumb.open-thumb::after {
  display: none;
}

.modal-exchange-thumb.open-thumb .handshake-icon {
  width: 34px;
  height: 34px;
}

.modal-exchange-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.modal-exchange-eyebrow {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.modal-exchange-title {
  color: #d8bd7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.is-give .modal-exchange-title {
  color: #dc8d83;
}

.modal-exchange-description {
  margin: 0;
  color: #c9bfab;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  line-height: 1.42;
}

.modal-exchange-lore {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid rgba(201, 163, 95, 0.1);
  padding-top: 9px;
}

.modal-exchange-lore.is-weapon-description {
  position: relative;
  border: 0;
  border-top: 1px solid rgba(201, 163, 95, 0.14);
  border-radius: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 163, 95, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 231, 186, 0.018), rgba(0, 0, 0, 0.04));
  box-shadow: none;
  padding: 10px 0 0;
}

.modal-exchange-lore.is-item-description {
  border-color: rgba(201, 163, 95, 0.09);
}

.modal-exchange-lore > span {
  color: rgba(201, 163, 95, 0.86);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.modal-description-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #d6cdb9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.45;
}

.modal-description-copy .modal-exchange-description {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.modal-description-copy .modal-exchange-description.is-lead {
  color: #f0dfb9;
  font-size: 0.94rem;
  line-height: 1.36;
}

.modal-description-stanza {
  display: grid;
  gap: 2px;
  margin: 0;
  min-width: 0;
  color: #d9cfbb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  line-height: 1.36;
}

.modal-description-stanza span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-description-stanza.is-lore-stanza {
  border-left: 2px solid rgba(201, 163, 95, 0.26);
  padding-left: 10px;
  color: #dfd3bb;
}

.modal-exchange-item-card.is-weapon-card .modal-description-copy {
  max-height: 10.5rem;
  overflow: auto;
  padding-right: 6px;
  scrollbar-color: rgba(201, 163, 95, 0.55) rgba(0, 0, 0, 0.18);
  scrollbar-width: thin;
}

.modal-weapon-tempers {
  display: grid;
  gap: 8px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(111, 166, 156, 0.14);
  border-bottom: 1px solid rgba(111, 166, 156, 0.075);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(111, 166, 156, 0.038), transparent 54%),
    linear-gradient(180deg, rgba(255, 231, 186, 0.01), rgba(0, 0, 0, 0.06));
  box-shadow: none;
  padding: 9px 0 10px;
}

.modal-weapon-tempers::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 14px;
  z-index: 0;
  width: 98px;
  height: 98px;
  background: var(--temper-sigil) center / contain no-repeat;
  opacity: 0.075;
  pointer-events: none;
}

.modal-weapon-tempers > * {
  position: relative;
  z-index: 1;
}

.modal-weapon-tempers.is-empty {
  gap: 0;
}

.modal-weapon-temper-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.modal-weapon-temper-head span {
  color: #c4e5da;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.modal-weapon-temper-head strong {
  min-width: 0;
  color: #d8f2e8;
  font-size: 0.76rem;
  line-height: 1.15;
  text-align: right;
  overflow-wrap: anywhere;
}

.modal-temper-run.is-inside-item {
  grid-template-columns: repeat(8, 26px);
  gap: 4px;
}

.modal-temper-run.is-inside-item .modal-temper-slot {
  width: 26px;
  height: 26px;
}

.modal-temper-run.is-inside-item .temper-icon {
  width: 23px;
  height: 23px;
}

.modal-temper-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 7px;
}

.modal-temper-breakdown-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(111, 166, 156, 0.12);
  border-left-color: rgba(111, 166, 156, 0.3);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(111, 166, 156, 0.055), rgba(0, 0, 0, 0.04)),
    rgba(2, 8, 7, 0.26);
  padding: 6px;
}

.modal-temper-breakdown-card .temper-icon {
  width: 26px;
  height: 26px;
  border: 0;
}

.modal-temper-breakdown-card strong,
.modal-temper-breakdown-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-temper-breakdown-card strong {
  color: #c4e5da;
  font-size: 0.76rem;
  line-height: 1.12;
}

.modal-temper-breakdown-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.15;
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.modal-status.online {
  color: var(--green);
}

.modal-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-mini-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 1px solid rgba(201, 207, 204, 0.16);
  border-radius: 5px;
  color: #d7d0c5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08)),
    rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 8px;
}

.modal-temper-run {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  gap: 5px;
  width: fit-content;
}

.modal-temper-slot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(111, 166, 156, 0.42);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(111, 166, 156, 0.13), rgba(0, 0, 0, 0.12)),
    rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(214, 255, 237, 0.035),
    0 0 12px rgba(111, 166, 156, 0.07);
}

.modal-temper-slot .temper-icon {
  width: 24px;
  height: 24px;
  border: 0;
}

body.compact-mode {
  overflow: hidden;
  background:
    url("/assets/market-sigil.svg") top 10px right 20px / 280px auto no-repeat,
    radial-gradient(circle at 82% 8rem, rgba(201, 163, 95, 0.12), transparent 18rem),
    linear-gradient(90deg, rgba(201, 163, 95, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(201, 163, 95, 0.028) 1px, transparent 1px),
    #080807;
  background-size: 280px auto, auto, 34px 34px, 34px 34px, auto;
}

body.compact-mode .shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(420px, 100vw);
  height: 100vh;
  margin: 0 0 0 auto;
  padding: 8px;
  overflow: hidden;
}

body.compact-mode.compact-popout {
  min-height: 100vh;
  background:
    url("/assets/market-sigil.svg") top 8px right 12px / 250px auto no-repeat,
    radial-gradient(circle at 72% 7rem, rgba(201, 163, 95, 0.1), transparent 16rem),
    linear-gradient(90deg, rgba(201, 163, 95, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(201, 163, 95, 0.026) 1px, transparent 1px),
    #080807;
  background-size: 250px auto, auto, 32px 32px, 32px 32px, auto;
}

body.compact-mode.compact-popout .shell {
  width: min(420px, 100vw);
  height: 100vh;
  margin: 0;
  padding: 0;
}

body.compact-mode.compact-popout .topbar,
body.compact-mode.compact-popout .controls,
body.compact-mode.compact-popout .market-grid {
  margin-right: 0;
  margin-left: 0;
}

body.compact-mode.compact-popout .topbar {
  padding: 8px 8px 0;
}

body.compact-mode.compact-popout .controls {
  margin: 7px 8px;
}

body.compact-mode.compact-popout .market-grid {
  padding: 0 8px 8px;
}

body.compact-mode.compact-popout.popout-minimal .shell {
  grid-template-rows: minmax(0, 1fr);
}

body.compact-mode.compact-popout.popout-minimal .topbar,
body.compact-mode.compact-popout.popout-minimal .controls,
body.compact-mode.compact-popout.popout-minimal .market-pulse {
  display: none;
}

body.compact-mode.compact-popout.popout-minimal .market-grid {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  height: 100vh;
  padding: 0;
}

body.compact-mode.compact-popout.popout-minimal .stream {
  height: 100vh;
  max-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.compact-mode.compact-popout.popout-minimal .stream-head {
  min-height: 42px;
  padding: 8px 10px;
}

body.compact-mode.compact-popout.popout-minimal .order-list {
  height: 100%;
  max-height: 100%;
  padding: 7px;
}

body.compact-mode .topbar {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
  padding-bottom: 0;
}

body.compact-mode .brand-block {
  gap: 9px;
  padding: 0;
}

body.compact-mode .brand-mark {
  width: 31px;
  height: 38px;
}

body.compact-mode .eyebrow {
  margin-bottom: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

body.compact-mode h1 {
  font-size: 1.42rem;
}

body.compact-mode .feed-state {
  justify-content: stretch;
  gap: 6px;
  min-height: 32px;
  border-radius: 6px;
  padding: 4px;
  font-size: 0.76rem;
}

body.compact-mode .feed-state #feedStatus {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.compact-mode .feed-state .icon-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.68rem;
}

body.compact-mode .controls {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin: 7px 0;
  padding: 7px;
  border-radius: 7px;
}

body.compact-mode .segmented {
  min-height: 34px;
  gap: 5px;
  padding: 4px;
}

body.compact-mode .segment {
  min-height: 26px;
  font-size: 0.72rem;
}

body.compact-mode .search-box,
body.compact-mode .select-box {
  gap: 2px;
  font-size: 0.58rem;
}

body.compact-mode .search-box input,
body.compact-mode .select-box select {
  min-height: 34px;
  border-radius: 5px;
  font-size: 0.78rem;
}

body.compact-mode .market-grid {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  min-height: 0;
  overflow: hidden;
}

body.compact-mode .market-pulse {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

body.compact-mode .pulse-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 43px;
  row-gap: 3px;
  padding: 6px;
  border-radius: 5px;
  text-align: center;
}

body.compact-mode .pulse-icon {
  display: none;
}

body.compact-mode .pulse-stat > span:not(.pulse-icon) {
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

body.compact-mode .pulse-stat strong {
  grid-column: auto;
  font-size: 1rem;
}

body.compact-mode .stream {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

body.compact-mode .stream-head {
  min-height: 36px;
  padding: 7px 10px;
}

body.compact-mode .stream-head h2 {
  font-size: 0.94rem;
}

body.compact-mode .stream-head h2::after {
  width: 30px;
  margin-left: 8px;
}

body.compact-mode .stream-head span {
  font-size: 0.68rem;
}

body.compact-mode .order-board-head {
  display: none;
}

body.compact-mode .order-list {
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 7px;
  scrollbar-color: rgba(201, 163, 95, 0.45) rgba(0, 0, 0, 0.18);
  scrollbar-width: thin;
}

body.compact-mode .order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  grid-template-areas:
    "item time"
    "trade trade"
    "seller seller";
  min-height: 150px;
  border-radius: 7px;
}

body.compact-mode .item-cell {
  grid-area: item;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  align-content: center;
  min-height: 66px;
  border-left: 0;
  padding: 25px 7px 7px 10px;
}

body.compact-mode .item-cell::before {
  display: block;
  top: 50%;
  right: 4px;
  width: 58px;
  height: 58px;
  opacity: 0.08;
}

body.compact-mode .compact-row-art {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 163, 95, 0.24);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 163, 95, 0.13), transparent 62%),
    rgba(0, 0, 0, 0.28);
}

body.compact-mode .compact-row-art .board-image {
  width: 36px;
  height: 36px;
}

body.compact-mode .order-title-line {
  gap: 4px;
}

body.compact-mode .order-title-heading {
  gap: 5px;
}

body.compact-mode .order-title-heading h3 {
  font-size: 1.05rem;
  line-height: 1.05;
}

body.compact-mode .title-item-tags {
  gap: 4px;
}

body.compact-mode .title-item-chip {
  min-height: 17px;
  border-radius: 4px;
  font-size: 0.52rem;
  padding: 0 5px;
}

body.compact-mode .item-intent-badge {
  top: 0;
  left: 0;
  min-width: 46px;
  min-height: 18px;
  gap: 4px;
  font-size: 0.52rem;
  padding: 0 8px 0 6px;
}

body.compact-mode .item-intent-glyph .action-glyph,
body.compact-mode .item-intent-badge .action-glyph {
  width: 9px;
  height: 9px;
}

body.compact-mode .fresh-chip {
  min-height: 17px;
  font-size: 0.52rem;
  padding: 2px 5px;
}

body.compact-mode .trade-cell {
  grid-area: trade;
  border-left: 0;
  border-top: 1px solid rgba(90, 74, 54, 0.34);
  padding: 0 9px 8px;
}

body.compact-mode .board-trade {
  display: none;
}

body.compact-mode .compact-trade-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 38px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 95, 0.24);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(201, 163, 95, 0.055), rgba(0, 0, 0, 0.1)),
    rgba(5, 5, 4, 0.42);
  padding: 7px 8px;
}

body.compact-mode .compact-trade-summary > * {
  position: relative;
  z-index: 1;
}

body.compact-mode .compact-trade-summary.is-give {
  border-color: rgba(211, 106, 95, 0.36);
}

body.compact-mode .compact-trade-summary.is-receive {
  border-color: rgba(201, 163, 95, 0.38);
}

body.compact-mode .compact-flow {
  align-self: start;
  min-width: 50px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.compact-mode .compact-trade-summary.is-give .compact-flow {
  color: var(--give);
}

body.compact-mode .compact-trade-summary.is-receive .compact-flow {
  color: var(--receive);
}

body.compact-mode .compact-trade-summary strong,
body.compact-mode .compact-trade-summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.compact-mode .compact-trade-summary strong {
  color: #ead8aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.15;
}

body.compact-mode .compact-trade-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.18;
}

body.compact-mode .compact-trade-summary.is-open {
  grid-template-columns: 34px minmax(0, 1fr);
  border-color: rgba(201, 207, 204, 0.34);
}

body.compact-mode .compact-trade-summary.is-open::after {
  background-image: var(--offer-sigil);
  opacity: 0.18;
}

body.compact-mode .compact-terms-icon {
  width: 24px;
  height: 24px;
  color: var(--silver);
}

body.compact-mode .seller-cell {
  grid-area: seller;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  border-left: 0;
  border-top: 1px solid rgba(90, 74, 54, 0.34);
  padding: 6px 10px;
}

body.compact-mode .seller-name {
  min-width: 0;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.compact-mode .seller-status {
  flex: 0 0 auto;
  font-size: 0.64rem;
}

body.compact-mode .time-cell {
  grid-area: time;
  align-content: start;
  justify-items: end;
  border-left: 0;
  border-top: 0;
  padding: 25px 10px 0 0;
  font-size: 0.68rem;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 760px);
    padding-top: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 50px;
  }

  h1 {
    font-size: 2.15rem;
  }

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

  .market-pulse {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-stat {
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .pulse-icon {
    width: 36px;
    height: 36px;
    background-size: 24px 24px, auto;
  }

  .order-board-head {
    display: none;
  }

  .order-list {
    min-width: 0;
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-areas:
      "item item"
      "trade trade"
      "seller time";
    min-height: 0;
  }

  .item-cell,
  .trade-cell,
  .seller-cell,
  .time-cell {
    padding: 18px;
  }

  .item-cell {
    padding-left: 18px;
    padding-top: 36px;
    padding-right: 58px;
  }

  .item-cell::before {
    right: 8px;
    width: 74px;
    height: 74px;
    opacity: 0.28;
  }

  .item-intent-badge {
    top: 0;
    left: 0;
    min-height: 19px;
    font-size: 0.56rem;
    padding: 0 10px 0 7px;
  }

  .item-intent-badge .action-glyph {
    width: 10px;
    height: 10px;
  }

  .order-title-heading h3 {
    font-size: 1.85rem;
  }

  .title-item-chip {
    min-height: 22px;
    border-radius: 5px;
    font-size: 0.72rem;
    padding: 0 7px;
  }

  .item-cell {
    grid-area: item;
  }

  .trade-cell {
    grid-area: trade;
    border-top: 1px solid rgba(90, 74, 54, 0.38);
  }

  .seller-cell {
    grid-area: seller;
    border-top: 1px solid rgba(90, 74, 54, 0.38);
  }

  .time-cell {
    grid-area: time;
    border-top: 1px solid rgba(90, 74, 54, 0.38);
    border-left: 1px solid rgba(90, 74, 54, 0.38);
  }

  .seller-cell,
  .time-cell {
    min-height: 46px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .board-trade {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .trade-rune {
    width: 30px;
    height: 18px;
    margin: 0;
    opacity: 0.68;
  }

  .board-trade-box {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 58px;
  }

  .board-trade-copy {
    padding-right: 58px;
  }

  .board-trade-art {
    width: 58px;
    height: 58px;
  }

  .board-image {
    width: 44px;
    height: 44px;
  }

  .weapon-box {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .board-temper-rail {
    grid-template-columns: repeat(8, 16px);
    grid-auto-rows: 16px;
    gap: 2px;
  }

  .board-temper-slot {
    width: 16px;
    height: 16px;
  }

  .board-temper-slot .temper-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 560px) {
  .controls {
    gap: 10px;
  }

  .segmented {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .order-row {
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-areas:
      "item item"
      "trade trade"
      "seller time";
  }

  .item-cell,
  .trade-cell,
  .seller-cell,
  .time-cell {
    border-left: 0;
    border-top: 1px solid rgba(90, 74, 54, 0.38);
  }

  .item-cell {
    border-top: 0;
  }

  .trade-cell {
    border-left: 0;
  }

  .trade-modal {
    padding: 10px;
  }

  .trade-modal-panel {
    width: min(100%, 760px);
    max-height: calc(100vh - 20px);
  }

  .modal-trade-detail {
    padding: 12px;
  }

  .modal-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 54px 12px 12px 58px;
  }

  .modal-hero-art {
    width: 82px;
    height: 82px;
  }

  .modal-hero-art .item-thumb {
    width: 72px;
    height: 72px;
  }

  .modal-title-row h2 {
    font-size: 2rem;
  }

  .modal-link-card {
    grid-column: 1 / -1;
    min-height: 0;
    border-top: 1px solid rgba(201, 163, 95, 0.2);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .modal-exchange-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-exchange-rune {
    width: 100%;
    height: 18px;
    min-height: 18px;
    transform: rotate(90deg);
  }

  .modal-exchange-item-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .modal-exchange-item-card.is-weapon-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .modal-weapon-profile-head {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .modal-exchange-thumb {
    width: 52px;
    height: 52px;
  }

  .modal-exchange-thumb .item-thumb {
    width: 48px;
    height: 48px;
  }

  .modal-exchange-thumb.is-weapon-thumb {
    width: 52px;
    height: 52px;
  }

  .modal-exchange-thumb.is-weapon-thumb .item-thumb {
    width: 48px;
    height: 48px;
  }

  .modal-exchange-item-card.is-weapon-card .modal-exchange-title {
    font-size: 1.16rem;
  }

  .modal-temper-run.is-inside-item {
    grid-template-columns: repeat(8, 20px);
  }

  .modal-temper-run.is-inside-item .modal-temper-slot {
    width: 20px;
    height: 20px;
  }

  .modal-temper-run.is-inside-item .temper-icon {
    width: 18px;
    height: 18px;
  }

  .modal-temper-breakdown {
    grid-template-columns: minmax(0, 1fr);
  }
}
