:root {
  --wfsa-bg: #0e0e0f;
  --wfsa-panel: #1a1a1c;
  --wfsa-panel-2: #1f1f22;
  --wfsa-border: #2f2f35;
  --wfsa-text: #f1f1f1;
  --wfsa-muted: #b3b3b3;
  --wfsa-accent: #2ea3f2;
  --wfsa-accent-2: #2ea3f2;
  --wfsa-button-bg: linear-gradient(180deg, #001216, #004256);
  --wfsa-button-border: #004256;
  --wfsa-button-active-bg: linear-gradient(180deg, #001923, #005d7b);
  --wfsa-button-active-border: #005d7b;
  --wfsa-button-text: #f1f5f9;
}

.wfsa {
  color: var(--wfsa-text);
  background: transparent;
  font-family: Open Sans, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7em;
  max-width: 100%;
  margin: 0 auto;
}

html.wfsa-body-scroll-lock,
body.wfsa-body-scroll-lock {
  overflow: hidden;
}

body.wfsa-body-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.wfsa-debug {
  font-size: 12px;
  color: var(--wfsa-muted);
  margin: 0 0 8px 0;
  opacity: 0.85;
  display: none;
}

.wfsa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--wfsa-button-border);
  background: var(--wfsa-button-bg);
  color: var(--wfsa-button-text);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.wfsa-button[hidden] {
  display: none !important;
}

.wfsa-button:hover {
  border-color: var(--wfsa-button-border);
  background: var(--wfsa-button-bg);
}

.wfsa-button--success {
  background: linear-gradient(180deg, #082113, #146533);
  border-color: #146533;
}

.wfsa-button--success:hover,
.wfsa-button--success:focus-visible,
.wfsa-button--success:active {
  background: linear-gradient(180deg, #0a2817, #1a7b3d);
  border-color: #1a7b3d;
}

.wfsa-button--danger {
  background: linear-gradient(180deg, #2a0d0d, #8b1e1e);
  border-color: #8b1e1e;
}

.wfsa-button--danger:hover,
.wfsa-button--danger:focus-visible,
.wfsa-button--danger:active {
  background: linear-gradient(180deg, #341010, #a32525);
  border-color: #a32525;
}

.wfsa-button--ghost {
  background: transparent;
  border-color: var(--wfsa-border);
}

.wfsa-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--wfsa-button-bg);
}

.wfsa-title {
  margin: 0 0 10px 0;
  font-size: 30px;
  line-height: 1em;
  font-weight: 500;
  color: #f1f1f1;
}

.wfsa h2 {
  font-size: 26px;
  line-height: 1em;
  font-weight: 500;
  color: #f1f1f1;
  margin: 0 0 10px 0;
}

.wfsa-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

.wfsa-hero-image {
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(135deg, #202126, #141416);
  border: 1px solid var(--wfsa-border);
}

.wfsa-hero-text {
  color: var(--wfsa-muted);
  margin: 0;
}

.wfsa-controls {
  margin: 24px 0 12px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 100%;
}

.wfsa-controls > .wfsa-control:first-child {
  width: 260px;
  flex: 0 0 260px;
}

.wfsa-controls > .wfsa-control--search-row {
  flex: 0 1 auto;
}

.wfsa-action-row {
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 1 auto;
}

.wfsa-inline-info {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--wfsa-muted);
  font-weight: 400;
  line-height: 1.3;
  box-shadow: none;
}

.wfsa-inline-info[hidden] {
  display: none !important;
}

.wfsa-status-banner {
  margin: 0 0 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--wfsa-border);
  border-radius: 10px;
  background: #16171b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wfsa-status-banner[hidden] {
  display: none !important;
}

.wfsa-status-banner--success {
  border-color: #146533;
  background: #0f1912;
}

.wfsa-status-banner--warning {
  border-color: #7c5d12;
  background: #1c170c;
}

.wfsa-status-banner--danger {
  border-color: #8b1e1e;
  background: #1c1010;
}

.wfsa-status-banner-text {
  flex: 1 1 auto;
}

.wfsa-status-banner-close {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  border: 1px solid var(--wfsa-border);
  background: rgba(255,255,255,0.04);
  color: var(--wfsa-text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wfsa-status-banner-close:hover,
.wfsa-status-banner-close:focus-visible {
  border-color: var(--wfsa-accent);
  outline: none;
}

.wfsa-notification-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px 0;
}

.wfsa-notification-stack[hidden] {
  display: none !important;
}

.wfsa-notification-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--wfsa-border);
  border-radius: 12px;
  background: #16171b;
}

.wfsa-notification-card--clickable {
  cursor: pointer;
}

.wfsa-notification-card--clickable:hover,
.wfsa-notification-card--clickable:focus-visible {
  border-color: var(--wfsa-accent);
  background: #191c22;
  outline: none;
}

.wfsa-notification-card--success {
  border-color: #146533;
  background: #101913;
}

.wfsa-notification-card--warning {
  border-color: #7c5d12;
  background: #1c170c;
}

.wfsa-notification-card--danger {
  border-color: #8b1e1e;
  background: #1c1010;
}

.wfsa-notification-card-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.wfsa-notification-card-content--compact {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wfsa-notification-card-content--compact .wfsa-notification-card-title,
.wfsa-notification-card-content--compact .wfsa-notification-card-meta {
  white-space: normal;
}

.wfsa-notification-card-title {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wfsa-notification-card-body,
.wfsa-notification-card-meta {
  color: var(--wfsa-muted);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wfsa-notification-card-action {
  color: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
  align-self: center;
}

.wfsa-notification-card-button {
  min-height: 30px;
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
  align-self: center;
  flex: 0 0 auto;
}

.wfsa-notification-card--trade-outgoing {
  align-items: center;
}

.wfsa-notification-card--trade-outgoing .wfsa-notification-card-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  min-width: 0;
  flex: 1 1 auto;
}

.wfsa-notification-card-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 300px;
  max-width: 300px;
  min-width: 240px;
}

.wfsa-notification-card-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--wfsa-muted);
  line-height: 1.35;
}

.wfsa-notification-card-detail--inline {
  justify-content: center;
}

.wfsa-notification-card-detail-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wfsa-notification-card-detail-line--inline {
  white-space: nowrap;
  overflow-wrap: normal;
}

.wfsa-notification-card-detail-suffix {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wfsa-notification-card-detail-label {
  color: #ffffff;
  font-weight: 700;
}

.wfsa-trade-notification-countdown {
  color: #ffffff;
  font-weight: 700;
}

.wfsa-notification-card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--wfsa-border);
  background: rgba(255,255,255,0.04);
  color: var(--wfsa-text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.wfsa-notification-card-close:hover,
.wfsa-notification-card-close:focus-visible {
  border-color: var(--wfsa-accent);
  outline: none;
}

@media (max-width: 1100px) {
  .wfsa-notification-card {
    gap: 12px;
    padding-right: 52px;
  }

  .wfsa-notification-card--trade-outgoing .wfsa-notification-card-content {
    gap: 16px;
  }

  .wfsa-notification-card-lead {
    flex-basis: 250px;
    max-width: 250px;
    min-width: 210px;
  }

  .wfsa-notification-card-button {
    padding: 6px 12px;
  }
}

.wfsa-search {
  position: relative;
}

.wfsa-search input {
  padding-right: 34px;
}

.wfsa-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--wfsa-button-border);
  background: var(--wfsa-button-bg);
  color: var(--wfsa-button-text);
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.wfsa-search-clear:hover {
  color: var(--wfsa-button-text);
  border-color: var(--wfsa-button-border);
}

.wfsa-control label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--wfsa-muted);
}

.wfsa-control--search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.wfsa-control--search-row input {
  width: 150px;
  flex: 0 0 150px;
}

.wfsa-control--search-row .wfsa-button {
  flex: 0 0 auto;
}

.wfsa-control select,
.wfsa-control input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #121214 !important;
  border: 1px solid var(--wfsa-border) !important;
  border-radius: 6px;
  color: var(--wfsa-text) !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.wfsa-control select option {
  background-color: #121214;
  color: var(--wfsa-text);
}

.wfsa-control input::placeholder {
  color: #8d8d8d;
}

.wfsa-control select:focus,
.wfsa-control input:focus {
  border-color: var(--wfsa-accent);
  color: var(--wfsa-text);
  outline: none;
}

.wfsa-search-results {
  margin: 10px 0 16px 0;
  color: var(--wfsa-muted);
  display: none;
}

.wfsa-table {
  background: var(--wfsa-panel);
  border: 1px solid var(--wfsa-border);
  border-radius: 8px;
  overflow: hidden;
  overflow-x: auto;
  overflow-y: hidden;
}

.wfsa-table-head,
.wfsa-table-row,
.wfsa-table-body {
  min-width: 900px;
}

.wfsa-table-head,
.wfsa-table-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  align-items: center;
}

.wfsa-table-head {
  background: #1f1f22;
  font-weight: 600;
  border-bottom: 1px solid var(--wfsa-border);
}

.wfsa-table-head div,
.wfsa-table-row div {
  padding: 4px 8px;
  border-right: 1px solid var(--wfsa-border);
}

.wfsa-table-head div {
  text-align: center;
}

.wfsa-table-head div:first-child {
  text-align: left;
}

.wfsa-table-head div:last-child,
.wfsa-table-row div:last-child {
  border-right: none;
}

.wfsa-table-row {
  border-bottom: 1px solid var(--wfsa-border);
  background: #1a1a1c;
  cursor: pointer;
}

.wfsa-table-row:last-child {
  border-bottom: none;
}

.wfsa-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wfsa-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2c2c2c;
}

.wfsa-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #f1f1f1;
  background: #2f2f35;
}

.wfsa-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.wfsa-bar {
  height: 6px;
  background: #2a2a30;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.wfsa-bar > span {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #00c800 !important;
  min-width: 2px;
}

.wfsa-progress > div:last-child {
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
}

.wfsa-detail {
  margin-top: 6px;
  background: transparent;
  border: none;
  padding: 0;
}

.wfsa-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-right: 52px;
}

.wfsa-trade-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wfsa-trade-toolbar[hidden],
.wfsa-gift-toolbar[hidden],
.wfsa-auction-toolbar[hidden],
.wfsa-trade-footer[hidden],
.wfsa-gift-footer[hidden],
.wfsa-auction-footer[hidden],
.wfsa-trade-action-block[hidden],
.wfsa-gift-action-block[hidden],
.wfsa-gift-selection-info[hidden],
.wfsa-auction-selection-info[hidden],
.wfsa-auction-offer-preview[hidden] {
  display: none !important;
}

.wfsa-trade-owner-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.wfsa-auction-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.wfsa-gift-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wfsa-auction-offer-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--wfsa-border);
  border-radius: 12px;
  background: #15171b;
}

.wfsa-auction-offer-preview-title {
  color: #ffffff;
  font-weight: 700;
}

.wfsa-auction-offer-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wfsa-trade-action-block {
  display: flex;
  flex-direction: column;
  align-content: start;
  justify-items: start;
  gap: 4px;
  min-height: 44px;
}

.wfsa-auction-selection-info {
  color: var(--wfsa-muted);
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.wfsa-detail-subtoolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.wfsa-trade-selection-info {
  color: var(--wfsa-muted);
  font-size: 13px;
  text-align: left;
  line-height: 1.35;
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wfsa-trade-footer {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  min-height: 36px;
}

.wfsa-auction-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.wfsa-trade-footer .wfsa-button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.2;
}

.wfsa-auction-footer .wfsa-button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.2;
}

.wfsa-gift-footer .wfsa-button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.2;
}

#wfsa-trade-reset-button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.2;
}

#wfsa-trade-reset-button[hidden] {
  display: inline-flex !important;
  visibility: hidden;
  pointer-events: none;
}

.wfsa-detail-head h2 {
  color: #ffffff;
  margin: 0;
}

.wfsa-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 420px;
  justify-content: flex-end;
}

.wfsa-variant-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.wfsa-variant {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--wfsa-button-border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--wfsa-button-bg);
  color: var(--wfsa-button-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.wfsa-variant.active {
  background: var(--wfsa-button-active-bg);
  border-color: var(--wfsa-button-active-border);
  color: #fff;
}

.wfsa-variant--hidden {
  display: none;
}

.wfsa-tab {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--wfsa-button-border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--wfsa-button-bg);
  color: var(--wfsa-button-text);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.wfsa-tab.active {
  background: var(--wfsa-button-active-bg);
  border-color: var(--wfsa-button-active-border);
  color: #fff;
}

.wfsa-trade-owner-tabs .wfsa-tab {
  background: linear-gradient(180deg, #082113, #146533);
  border-color: #146533;
  color: #ffffff;
}

.wfsa-trade-owner-tabs .wfsa-tab:hover,
.wfsa-trade-owner-tabs .wfsa-tab:focus-visible {
  background: linear-gradient(180deg, #0a2817, #1a7b3d);
  border-color: #1a7b3d;
  color: #ffffff;
}

.wfsa-trade-owner-tabs .wfsa-tab.active {
  background: linear-gradient(180deg, #0c321b, #23944d);
  border-color: #23944d;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.wfsa-detail-body {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 16px;
  min-height: 0;
}

.wfsa-detail-body--single {
  grid-template-columns: 1fr;
}

.wfsa-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  min-height: 0;
}

.wfsa-grid--scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px 4px 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wfsa-grid--scrollable::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.wfsa-card {
  position: relative;
  width: 100%;
  height: auto;
  background: #1b1b1e;
  border: 1px solid var(--wfsa-border);
  border-radius: 6px;
  aspect-ratio: 600 / 857;
  overflow: hidden;
  cursor: pointer;
}

.wfsa-card--selected {
  border-color: #f5c451;
  box-shadow:
    0 0 0 2px rgba(245, 196, 81, 0.85),
    0 0 18px rgba(245, 196, 81, 0.45),
    inset 0 0 0 1px rgba(255, 244, 200, 0.35);
}

.wfsa-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101012;
  display: block;
}

.wfsa-card .wfsa-back {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #202126, #141416);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wfsa-card .wfsa-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: #f1c40f;
  color: #000;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 0 0 2px #1a1a1c;
}

.wfsa-info {
  background: var(--wfsa-panel-2);
  border: 1px solid var(--wfsa-border);
  border-radius: 8px;
  padding: 12px;
}

.wfsa-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  z-index: 9999;
}

.wfsa-modal[aria-hidden="false"] {
  display: flex;
}

.wfsa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 160ms ease;
}

.wfsa-modal-content {
  position: relative;
  width: min(1100px, 92vw);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--wfsa-panel);
  border: 1px solid var(--wfsa-border);
  border-radius: 12px;
  padding: 18px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.wfsa-modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.wfsa-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--wfsa-button-bg);
  color: var(--wfsa-button-text);
  border: 1px solid var(--wfsa-button-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 28px;
}

.wfsa-sticker-modal-content {
  width: min(800px, 92vw);
}

.wfsa-sticker-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wfsa-sticker-modal-image {
  margin-bottom: 0;
}

.wfsa-sticker-modal-text {
  padding: 6px 2px;
}

.wfsa-sticker-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.wfsa-sticker-meta {
  font-size: 14px;
  color: var(--wfsa-muted);
  margin-bottom: 6px;
}

.wfsa-sticker-meta-tight {
  margin-bottom: 2px;
}

.wfsa-sticker-stats {
  margin-top: 10px;
  font-size: 14px;
}

.wfsa-sticker-description {
  margin-top: 14px;
  font-size: 14px;
  color: var(--wfsa-text);
  font-style: italic;
}

.wfsa-trade-dialog {
  width: 46%;
  max-width: 600px;
  min-width: 400px;
}

.wfsa-trade-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wfsa-trade-dialog-body h3,
.wfsa-trade-dialog-body h4 {
  margin: 0;
  color: #ffffff;
}

.wfsa-trade-partner-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.wfsa-trade-partner-search-wrap {
  position: relative;
}

.wfsa-trade-partner-picker .wfsa-button {
  min-width: 136px;
}

.wfsa-trade-dialog-body input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #121214;
  border: 1px solid var(--wfsa-border);
  border-radius: 6px;
  color: var(--wfsa-text);
  caret-color: var(--wfsa-text);
  -webkit-text-fill-color: var(--wfsa-text);
  opacity: 1;
}

.wfsa-trade-dialog-body input::placeholder {
  color: #8d8d8d;
}

.wfsa-trade-dialog-body input:focus {
  border-color: var(--wfsa-accent);
  outline: none;
}

.wfsa-trade-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wfsa-trade-review-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wfsa-trade-review-columns--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.wfsa-trade-review-columns--single .wfsa-trade-review-column {
  width: 100%;
  max-width: 320px;
}

.wfsa-trade-review-column {
  background: var(--wfsa-panel-2);
  border: 1px solid var(--wfsa-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wfsa-trade-review-column[hidden] {
  display: none !important;
}

.wfsa-trade-review-column h4 {
  text-align: center;
}

.wfsa-trade-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  justify-items: center;
}

.wfsa-trade-review-list--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wfsa-trade-review-list--centered-compact {
  grid-template-columns: repeat(var(--wfsa-review-column-count, 1), minmax(0, 1fr));
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.wfsa-trade-review-list--single {
  grid-template-columns: minmax(0, 1fr);
}

.wfsa-trade-review-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #141518;
  border: 1px solid var(--wfsa-border);
  width: 100%;
  max-width: 120px;
}

.wfsa-trade-review-list--single .wfsa-trade-review-item {
  justify-self: center;
}

#wfsa-gift-review-modal .wfsa-trade-review-columns--single .wfsa-trade-review-column,
#wfsa-gift-notice-modal .wfsa-trade-review-columns--single .wfsa-trade-review-column {
  max-width: 760px;
}

#wfsa-gift-notice-modal .wfsa-trade-dialog-body h3 {
  padding-right: 56px;
  line-height: 1.2;
  box-sizing: border-box;
}

.wfsa-trade-review-item small {
  color: var(--wfsa-muted);
  text-align: center;
}

.wfsa-trade-value {
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
}

.wfsa-trade-review-image {
  width: 100%;
  aspect-ratio: 600 / 857;
  border-radius: 6px;
  overflow: hidden;
  background: #101012;
  border: 1px solid var(--wfsa-border);
}

.wfsa-trade-review-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #101012;
}

.wfsa-trade-review-back {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #202126, #141416);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}

.wfsa-trade-review-meta {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.15;
}

.wfsa-trade-review-meta.is-new {
  color: #f5c451;
}

.wfsa-trade-review-dialog {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a434d #111317;
}

.wfsa-trade-review-dialog::-webkit-scrollbar {
  width: 10px;
}

.wfsa-trade-review-dialog::-webkit-scrollbar-track {
  background: #111317;
  border-radius: 999px;
}

.wfsa-trade-review-dialog::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #27323d, #3a434d);
  border-radius: 999px;
  border: 2px solid #111317;
}

.wfsa-trade-review-dialog::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #31404d, #4b5662);
}

.wfsa-auction-selection-dialog {
  width: min(92vw, 1080px);
  max-width: 1080px;
}

.wfsa-auction-selection-bids {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wfsa-auction-selection-bid-card {
  background: var(--wfsa-panel-2);
  border: 1px solid var(--wfsa-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wfsa-auction-selection-bid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wfsa-auction-selection-bid-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.wfsa-auction-selection-bid-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.wfsa-auction-selection-bid-score {
  color: var(--wfsa-muted);
  font-size: 13px;
  text-align: right;
}

.wfsa-auction-selection-bid-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wfsa-auction-selection-bid-actions {
  display: flex;
  justify-content: flex-end;
}

.wfsa-auction-selection-empty {
  padding: 18px;
  border: 1px dashed var(--wfsa-border);
  border-radius: 12px;
  color: var(--wfsa-muted);
  text-align: center;
}

.wfsa-modal[aria-hidden="false"] .wfsa-modal-backdrop {
  opacity: 1;
}

.wfsa-modal[aria-hidden="false"] .wfsa-modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wfsa-info-image {
  width: 100%;
  aspect-ratio: 600 / 857;
  border-radius: 6px;
  background: transparent;
  border: none;
  margin-bottom: 10px;
}

.wfsa-info-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101012;
}

.wfsa-commands {
  margin-top: 24px;
  background: var(--wfsa-panel);
  border: 1px solid var(--wfsa-border);
  border-radius: 8px;
  padding: 16px;
}

.wfsa-commands ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7em;
}

@media (max-width: 1200px) {
  .wfsa-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wfsa-notification-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    padding-right: 52px;
  }

  .wfsa-notification-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .wfsa-notification-card-title,
  .wfsa-notification-card-body,
  .wfsa-notification-card-meta {
    white-space: normal;
  }

  .wfsa-notification-card-action {
    align-self: flex-start;
    width: 100%;
  }

  .wfsa-notification-card--trade-outgoing .wfsa-notification-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wfsa-notification-card-lead {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    align-items: flex-start;
  }

  .wfsa-notification-card-detail {
    width: 100%;
  }

  .wfsa-notification-card-detail-line--inline {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .wfsa-notification-card-button {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }

  .wfsa-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wfsa-controls > .wfsa-control:first-child,
  .wfsa-controls > .wfsa-control--search-row,
  .wfsa-action-row {
    width: 100%;
    flex: 1 1 auto;
  }

  .wfsa-control--search-row {
    flex-direction: column;
  }

  .wfsa-control--search-row input {
    width: 100%;
    flex: 1 1 auto;
  }
  .wfsa-detail-body {
    grid-template-columns: 1fr;
  }
  .wfsa-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wfsa-trade-review-columns {
    grid-template-columns: 1fr;
  }

  .wfsa-trade-review-list--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wfsa-auction-selection-bid-columns {
    grid-template-columns: 1fr;
  }

  .wfsa-trade-dialog {
    width: 92vw;
    min-width: 0;
  }

  .wfsa-trade-partner-picker {
    grid-template-columns: 1fr;
  }

  .wfsa-trade-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wfsa-auction-toolbar {
    gap: 12px;
  }

  .wfsa-detail-subtoolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wfsa-tabs {
    justify-content: flex-start;
  }

  .wfsa-trade-action-block {
    width: 100%;
    justify-items: start;
  }

  .wfsa-trade-footer {
    flex-wrap: wrap;
  }

  .wfsa-auction-footer {
    width: 100%;
  }

  .wfsa-auction-selection-bid-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wfsa-auction-selection-bid-score {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .wfsa-table-head,
  .wfsa-table-row,
  .wfsa-table-body {
    min-width: 0;
  }

  .wfsa-notification-card {
    gap: 10px;
    padding: 12px 20px 12px 20px;
    align-items: center;
  }

  .wfsa-notification-card--trade-outgoing .wfsa-notification-card-content {
    gap: 8px;
  }

  .wfsa-notification-card-content,
  .wfsa-notification-card--trade-outgoing .wfsa-notification-card-content,
  .wfsa-notification-card-lead,
  .wfsa-notification-card-detail,
  .wfsa-notification-card-action {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .wfsa-notification-card-content,
  .wfsa-notification-card--trade-outgoing .wfsa-notification-card-content,
  .wfsa-notification-card-action {
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

  .wfsa-notification-card-lead,
  .wfsa-notification-card-detail {
    max-width: 100%;
  }

  .wfsa-notification-card-title {
    font-size: 16px;
  }

  .wfsa-notification-card-body,
  .wfsa-notification-card-meta,
  .wfsa-notification-card-detail {
    font-size: 14px;
    line-height: 1.45;
  }

  .wfsa-notification-card-button {
    min-height: 38px;
    min-width: 160px;
    margin-left: auto;
    margin-right: auto;
  }

  .wfsa-notification-card-close {
    top: 6px;
    right: 10px;
  }

  .wfsa-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .wfsa-trade-review-list--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wfsa-modal-content .wfsa-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: calc(((94vw - 60px) / 5) * 1.4283333333);
  }

  .wfsa-modal-content .wfsa-grid .wfsa-card {
    height: 100%;
    aspect-ratio: auto;
  }

  .wfsa-auction-footer .wfsa-button,
  .wfsa-auction-selection-bid-actions .wfsa-button {
    width: 100%;
    justify-content: center;
  }

  .wfsa-sticker-modal-content {
    width: min(94vw, 560px);
    max-height: calc(100vh - 28px);
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .wfsa-sticker-modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wfsa-sticker-modal-text {
    padding: 0;
  }

  .wfsa-sticker-title {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .wfsa-sticker-meta,
  .wfsa-sticker-stats,
  .wfsa-sticker-description {
    font-size: 14px;
    line-height: 1.55;
  }

  .wfsa-info-image {
    max-width: 320px;
    margin: 0 auto 10px auto;
  }

  .wfsa-grid--scrollable {
    padding: 4px 6px 4px 4px;
  }
}

.wfsa-modal-close::before {
  content: 'X';
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

