.game-page select:not([multiple]) {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}
#filters { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
#filters > section, #filters > .price-shifts, #filters > .exchange-filters, .exchange-filters > .price-shifts { padding: 1.5rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
.exchange-filters[open] { display: flex; flex-direction: column; gap: 1rem; }
.exchange-filter-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 1rem; row-gap: .65rem; }
.exchange-filter-tools__item { display: inline-flex; align-items: center; gap: .25rem; }
.exchange-filter-tools__item[hidden] { display: none; }
.exchange-filter-tools__item > button { display: inline-flex; width: auto; align-items: center; justify-content: center; gap: .45rem; margin: 0; }
.exchange-filter-tools__icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.filters-dialog { box-sizing: border-box; width: min(56rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; overflow: visible; border: 0; background: transparent; color: var(--text); }
.filters-dialog::backdrop { background: var(--overlay); }
.filters-dialog__panel { box-sizing: border-box; max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.25rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--surface); box-shadow: 0 24px 60px var(--dialog-shadow); }
.filters-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.filters-dialog__header h2 { margin: 0; font-size: 1.15rem; }
.filters-dialog__header button { flex: 0 0 auto; width: auto; margin: 0; padding: .35rem .65rem; }
.game-description { margin: 2rem 0 1rem; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.game-description__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.game-description__text + .game-description__text { margin-top: 1.6em; }
.category-controls { display: flex; flex-direction: column; gap: 1rem; }
.category-controls > section { min-width: 0; margin: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.category-controls h3 { margin: 0 0 1rem; font-size: 1.15rem; }
#offers { padding: 1.5rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
#offerList { margin-top: 0.5rem; }
.offer-tools { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin: 0.5rem 0; }
.offer-tools__search { flex: 1 1 320px; min-width: min(100%, 220px); }
.offer-tools__search-row { display: flex; gap: 0.55rem; align-items: center; width: 100%; margin-top: 0.55rem; }
.offer-tools__search-input { flex: 1 1 auto; min-width: 220px; }
.offer-tools__active-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 0.55rem; }
.offer-tools__active-filters[hidden] { display: none; }
.offer-tools__active-label { color: var(--muted); font-size: 0.92rem; }
.offer-tools__active-list { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.advanced-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 38px;
  min-height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem;
  cursor: pointer;
  white-space: nowrap;
}
.advanced-search-button:hover { background: var(--bg); border-color: var(--border); }
.advanced-search-button > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.advanced-search-button__count { font-size: 0.75rem; font-weight: 600; }
.advanced-search-modal[hidden] { display: none; }
.advanced-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--overlay);
}
.advanced-search-modal__dialog {
  width: min(100%, 34rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px var(--dialog-shadow);
  padding: 1rem;
  box-sizing: border-box;
}
.advanced-search-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.advanced-search-modal__title { margin: 0; font-size: 1.05rem; }
.advanced-search-modal__hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.advanced-search-modal__controls { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.advanced-search-modal__controls > .offer-info { flex: 0 0 auto; margin: 0; }
.advanced-search-modal__input { flex: 1 1 260px; min-width: 220px; padding: 0.45rem 0.55rem; }
.advanced-search-modal__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.advanced-search-modal__empty { margin-top: 0.85rem; color: var(--muted); }
.seller-search { display: grid; gap: 0.85rem; margin: 0.85rem 0; min-width: 0; }
.seller-search > input { box-sizing: border-box; width: 100%; min-width: 0; padding: 0.45rem 0.55rem; }
.seller-search > .advanced-search-modal__list,
.seller-search > .advanced-search-modal__hint { margin: 0; }
.seller-search__results { max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.seller-search__option { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.75rem; cursor: pointer; overflow-wrap: anywhere; }
.seller-search__option:hover, .seller-search__option:focus-within { background: var(--surface); }
.seller-search__option input { flex: 0 0 auto; width: auto; margin: 0; }
.seller-search__results > p { padding: 0.55rem 0.75rem; margin: 0; }
.seller-search__results > [role="status"] { padding: 0.75rem; }
.seller-search > [hidden] { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
}
.filter-chip > span { padding: 0.25rem 0; }
.filter-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 2.375rem;
  width: 2.375rem;
  min-height: 2.375rem;
  border-radius: 0 999px 999px 0;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}
.filter-chip__remove > svg {
  display: block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  transform: translateY(0.08em);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.advanced-search-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.advanced-search-modal__footer button {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.advanced-search-modal__footer button[data-variant="primary"] {
  background: #2563eb;
  border-color: var(--accent);
  color: #fff;
}
.offer-filters { border: 1px solid var(--border); padding: 0.75rem; border-radius: 6px; margin: 0.5rem 0; }
.offer-filters__controls { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.offer-filters__group { display: flex; flex-direction: column; gap: 0.4rem; }
.offer-split { display: flex; gap: 0.85rem; width: 100%; box-sizing: border-box; }
.offer-split.horizontal { flex-direction: row; flex-wrap: nowrap; }
.offer-split.horizontal > .offer-pane-frame { flex: 1 1 49%; min-width: 240px; }
.offer-split.horizontal > .offer-pane-frame > .offer-pane { max-height: calc(85vh - 8rem); overflow-y: auto; box-sizing: border-box; }
.offer-split.vertical { flex-direction: column; flex-wrap: nowrap; }
.offer-split.vertical > .offer-pane-frame { width: 100%; max-width: 100%; }
.offer-split.vertical > .offer-pane-frame > .offer-pane { max-height: calc(50vh - 4rem); overflow-y: auto; box-sizing: border-box; }
.offer-pane { border: 1px solid var(--border); border-radius: 8px; padding: 0; background: var(--surface); min-width: 260px; box-sizing: border-box; }
.offer-pane__toolbar { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; margin: 0; position: sticky; top: 0; left: 0; z-index: 3; background: var(--surface); padding: 0.65rem 0.65rem 0.25rem; }
.offer-pane__count { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.offer-pane__content { padding: 0.65rem; }
.offer-pane__heading { margin: 0 0 0.35rem 0; font-size: 0.98rem; font-weight:600; }
.offer-pane__message { color: var(--muted); font-size: 0.95rem; margin:0.4rem 0; }
#offerList > .offer-pane__message { margin: 0.75rem; }
.offer-pane__search { width:100%; padding:0.35rem; margin-bottom:0.5rem; }
.offer-filters__group-title { font-weight: 600; }
.offer-filters__option { white-space: nowrap; }
.offers-table { font-size: calc(0.88rem * var(--table-font-scale, 1)); }
.offers-table th { font-size: calc(0.8rem * var(--table-font-scale, 1)); }
.offers-table .similar-offer-button { font-size: calc(0.86rem * var(--table-font-scale, 1)); }
.offers-table .offer-tags__item { font-size: calc(0.82rem * var(--table-font-scale, 1)); }
.offers-table .offer-row-actions > button { font-size: calc(0.75rem * var(--table-font-scale, 1)); }
.offers-table .offer-group-caption { font-size: calc(0.8rem * var(--table-font-scale, 1)); }
.offers-table__row { transition: background-color 0.12s ease-in-out; }
.offers-table__row td { border-bottom: 1px solid var(--border); }
.offer-pane tbody .offers-table__row:last-child td { border-bottom: none; }
.offers-table__row:hover { background: var(--surface-hover); }
.offers-table__row--source, .offers-table__row--source:hover { background: rgba(56, 189, 248, .18); }
.offers-table__sort { cursor: pointer; user-select: none; }
.offers-table > thead {
  position: relative;
  z-index: 2;
  background: var(--table-heading);
  box-shadow: 0 1px 0 var(--border);
}
.offer-pane .offers-table > thead:not(.offers-table__header--fixed):not(.offers-table__header-placeholder),
#offerList:not(.offer-split) .offers-table > thead:not(.offers-table__header--fixed):not(.offers-table__header-placeholder) {
  position: sticky;
  top: var(--offers-table-pane-top, 0px);
}
.offers-table > .offers-table__header--fixed {
  position: fixed;
  left: var(--offers-table-header-left);
  display: table;
  table-layout: fixed;
  border-collapse: collapse;
}
@supports (left: anchor(left)) and (anchor-scope: --offers-table) {
  .offers-table {
    anchor-name: --offers-table;
    anchor-scope: --offers-table;
  }
  .offers-table > .offers-table__header--fixed {
    position-anchor: --offers-table;
    left: anchor(left, var(--offers-table-header-left));
    position-visibility: always;
  }
}
.offers-table > .offers-table__header-placeholder { visibility: hidden; }
.similar-offer-button {
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.28rem 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.86rem;
}
.similar-offer-button:hover { background: var(--bg); border-color: var(--border); }
.find-similar-offer-button svg { width: 24px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.offer-link-button {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.offer-link-button--linked { background: #dc2626; color: #fff; }
.offer-link-button:disabled { opacity: 0.6; cursor: wait; }
.similar-offer-button--active {
  background: #2563eb;
  border-color: var(--accent);
  color: #fff;
}
.similar-probability, .offer-margin {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.offer-margin { font-weight: 600; }
.offer-margin--positive { color: var(--positive); }
.offer-margin--negative { color: var(--negative); }
.offer-info { position: relative; display: inline-flex; width: 1.2em; height: 1.2em; margin-left: .3em; color: var(--muted); line-height: 1; vertical-align: middle; cursor: help; }
.offer-info > svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.offer-info__hint { display: none; position: absolute; right: 0; top: 100%; z-index: 5; box-sizing: border-box; width: 280px; max-width: 65vw; padding: 0.65rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 400; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; text-align: left; cursor: auto; }
.offer-info:hover > .offer-info__hint,
.offer-info:focus-within > .offer-info__hint { display: block; }
.offer-info__hint--floating { position: fixed; right: auto; bottom: auto; z-index: 10001; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; }
.offer-pane table th {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
  position: relative;
  background-color: var(--table-heading);
}
.offer-pane table th:last-child { border-right: none; }
.offers-table__resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  background: rgba(56, 189, 248, 0.2);
  transition: background-color 0.2s ease;
}
.offers-table__resizer:hover {
  background: rgba(59, 130, 246, 0.37);
}
.offer-name { display: flex; flex-direction: column; gap: 0.25rem; }
.offer-name__external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0 0.45rem;
  height: 28px;
  box-sizing: border-box;
  margin-left: 0.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--text);
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}
.offer-name__external:hover { background: var(--surface-hover); border-color: var(--button-hover-border); color: var(--heading); text-decoration: none; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.offer-tags__item {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--accent-soft-text);
  font-size: 0.82rem;
  line-height: 1.35;
}

#toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  max-width: calc(100vw - 2rem);
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 0.75rem 0.95rem;
  border-radius: 0.65rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { background: #1d7a1d; }
.toast--info { background: #2563eb; }
.toast--error { background: #a62a2a; }
.category-selection-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.price-shifts > summary,
.exchange-filters > summary,
.column-management > summary { cursor: pointer; font-size: 1.15rem; font-weight: 600; }
.price-shifts__hint { margin: .65rem 0; color: var(--muted); font-size: .9rem; }
.price-shifts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.price-shifts__row { padding: .55rem 0; border-top: 1px solid var(--border); }
.price-shifts__row > label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price-shifts__row > label > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.price-shifts__control { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.price-shifts__control input { width: 145px; max-width: 38vw; box-sizing: border-box; padding: .35rem .5rem; }
.price-shifts__control input::placeholder { color: var(--muted); font-size: .8rem; }
.price-shifts__control input[aria-invalid="true"] { border-color: var(--negative); }
.price-shifts__error { display: block; margin-top: .25rem; color: var(--negative); }
.price-shifts__error[hidden] { display: none; }
.price-shifts__save { display: flex; align-items: center; gap: .65rem; margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.price-shifts__save[hidden] { display: none; }
#categoryFilters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  align-items: start;
}
.category-filter { margin-bottom: 0.65rem; }
.exchange-group {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
  box-sizing: border-box;
}
.exchange-group__header { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: 0 0 0.35rem 0; color: var(--text-secondary); font-size: 1rem; }
.exchange-group__select-all {
  margin: 0 0.35rem 0 0;
  vertical-align: middle;
}
.exchange-group__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.exchange-group__summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.3;
}
.category-filter__tag-spoiler { margin: 0.6rem 0 0.25rem 1.7rem; }
.category-filter__tag-spoiler > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: background-color 140ms, border-color 140ms;
}
.game-note-spoiler > summary,
.price-shifts > summary,
.exchange-filters > summary,
.column-management > summary,
.category-filter__tag-spoiler > summary {
  position: relative;
  box-sizing: border-box;
  padding-right: 2rem;
  list-style: none;
}
.game-note-spoiler > summary,
.price-shifts > summary,
.exchange-filters > summary,
.column-management > summary { display: block; }
.game-note-spoiler > summary::-webkit-details-marker,
.price-shifts > summary::-webkit-details-marker,
.exchange-filters > summary::-webkit-details-marker,
.column-management > summary::-webkit-details-marker,
.category-filter__tag-spoiler > summary::-webkit-details-marker { display: none; }
.game-note-spoiler > summary::after,
.price-shifts > summary::after,
.exchange-filters > summary::after,
.column-management > summary::after,
.category-filter__tag-spoiler > summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.7rem;
  height: 0.45rem;
  background: currentColor;
  clip-path: polygon(0 0, 50% 65%, 100% 0, 100% 35%, 50% 100%, 0 35%);
  transform: translateY(-50%);
}
.category-filter__tag-spoiler > summary::after { right: 0.7rem; }
.category-filter__tag-spoiler > summary:hover {
  background: var(--surface-hover);
  border-color: var(--button-hover-border);
}
.category-filter__tag-spoiler[open] > summary { background: var(--tag-bg); }
.game-note-spoiler[open] > summary::after,
.price-shifts[open] > summary::after,
.exchange-filters[open] > summary::after,
.column-management[open] > summary::after,
.category-filter__tag-spoiler[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.category-filter__tags {
  margin: 0.7rem 0 0.25rem;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.tag-filter-group { min-width: 0; }
.tag-filter-group + .tag-filter-group {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.tag-filter-group__heading {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.tag-filter-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
}
.tag-filter span { min-width: 0; overflow-wrap: anywhere; }
.tag-filter input { margin: 0; }
.tag-filter--checked {
  background: var(--accent-soft);
  border-color: var(--border);
}
.seller-avatar { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.seller-avatar__image,
.seller-avatar__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.seller-avatar__image { object-fit: cover; }
.seller-avatar__placeholder {
  background: var(--border-strong);
  border: 1px solid var(--border);
}
.seller-avatar__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: #9ca3af;
  box-sizing: content-box;
}
.seller-avatar__status--online { background: #22c55e; }
.seller-name-row { display: flex; align-items: center; gap: 0.3rem; }
.offer-info.seller-verified-badge { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-left: 0; color: #1d9bf0; }
.offer-info.seller-verified-badge > svg { fill: currentColor; stroke: none; }
.offer-info.seller-verified-badge .seller-verified-badge__check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.column-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
}
.column-settings-button:hover { background: var(--bg); border-color: var(--border); }
.column-settings-button--text {
  width: auto;
  padding: 0 0.7rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
#splitPanelA .column-settings-button,
#splitPanelB .column-settings-button { margin-left: auto; order: 3; }
.column-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}
.column-toolbar-actions .column-settings-button { margin-left: 0 !important; }
.column-settings-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.column-settings-modal[hidden] { display: none; }
.column-settings-modal {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: var(--text);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--overlay);
}
.column-settings-modal::backdrop { background: transparent; }
.column-settings-modal__dialog {
  width: min(100%, 34rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px var(--dialog-shadow);
  padding: 1rem;
  box-sizing: border-box;
}
.column-settings-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.column-settings-modal__title { margin: 0; font-size: 1.05rem; }
.column-settings-modal__hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.column-settings-modal__target { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
#tableFontSize { flex: 1 1 140px; min-width: 0; width: auto; padding: 0; accent-color: var(--link); }
#tableFontSizeValue { min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; }
.column-settings-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.column-management { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.65rem; background: var(--surface); min-width: 0; }
.column-management > summary { font-size: 0.95rem; font-weight: 400; line-height: 1.4; }
.column-management > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.column-management[open] > summary { margin-bottom: 0.75rem; }
.column-settings-modal__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
}
.column-settings-modal__item-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}
.column-settings-modal__item-actions { display: flex; gap: 0.35rem; }
.column-settings-modal__move {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
}
.column-settings-modal__move:disabled { opacity: 0.45; cursor: default; }
.column-settings-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}
.column-settings-modal__footer button {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}
.column-settings-modal__footer--resets { flex-direction: column; align-items: flex-end; }
.column-settings-modal__footer button[data-variant="primary"] {
  background: #2563eb;
  border-color: var(--accent);
  color: #fff;
}
.favorite-searches-menu { position: relative; flex: 0 0 auto; }
.favorite-searches-menu[hidden], .favorite-searches[hidden] { display: none; }
.favorite-searches-button > svg { width: 26px; height: 24px; }
.favorite-searches-button[aria-expanded="true"] { color: var(--link); background: var(--accent-soft); }
.favorite-searches { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 100; box-sizing: border-box; width: min(620px, calc(100vw - 4rem)); padding: 1rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.favorite-searches__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding-bottom: .85rem; }
.favorite-searches__heading h3 { margin: 0; font-size: .95rem; font-weight: 600; }
.favorite-searches__save { display: inline-flex; align-items: center; }
#favoriteSearchSave { padding: .4rem .65rem; font-size: .85rem; }
.favorite-searches__table-wrap { max-height: 320px; overflow: auto; }
.favorite-searches__table { width: 100%; min-width: 380px; border-collapse: collapse; font-size: .85rem; }
.favorite-searches__table th, .favorite-searches__table td { padding: .65rem .45rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.favorite-searches__table th { position: sticky; top: 0; z-index: 1; background: var(--surface); font-weight: 600; color: var(--muted); white-space: nowrap; }
.favorite-searches__table th:nth-child(2) { width: 100%; }
.favorite-searches__item[aria-disabled="true"] { cursor: default; opacity: .6; }
.favorite-searches__table .favorite-searches__name:not(:disabled):hover { background: var(--surface-hover); }
.favorite-searches__name:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.favorite-searches__item .favorite-searches__name:not(:disabled):active { background: var(--accent-soft); }
.favorite-searches__table .favorite-searches__sort { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: transparent; box-shadow: none; color: inherit; font-weight: inherit; cursor: pointer; }
.favorite-searches__table .favorite-searches__sort:hover, .favorite-searches__table th[aria-sort="ascending"], .favorite-searches__table th[aria-sort="descending"] { color: var(--link); }
.favorite-searches__date { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.favorite-searches__actions { display: flex; align-items: center; gap: .25rem; }
.favorite-searches__item .favorite-searches__name { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--link); text-align: left; overflow-wrap: anywhere; line-height: 1.5; cursor: pointer; }
.favorite-searches__name::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: .45rem; vertical-align: -.15em; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.favorite-searches__item[aria-disabled="true"] .favorite-searches__name { cursor: default; }
.favorite-searches__item .favorite-searches__action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; padding: .35rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.favorite-searches__item .favorite-searches__action:hover { background: var(--surface-hover); color: var(--text); }
.favorite-searches__item .favorite-searches__action--danger:hover { background: var(--danger-bg); color: var(--danger-text); }
.favorite-searches__action > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#favoriteSearchesStatus { font-size: .9rem; color: var(--muted); }
#favoriteSearchesStatus:empty { display: none; }
.category-configurations { margin: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.category-configurations > summary { position: relative; padding: .25rem 2rem .25rem 0; list-style: none; cursor: pointer; font-size: 1.15rem; font-weight: 600; }
.category-configurations > summary::-webkit-details-marker { display: none; }
.category-configurations > summary::after { content: ''; position: absolute; top: 50%; right: .25rem; width: .7rem; height: .45rem; background: currentColor; clip-path: polygon(0 0, 50% 65%, 100% 0, 100% 35%, 50% 100%, 0 35%); transform: translateY(-50%); }
.category-configurations[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.category-configurations__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .65rem; max-height: 300px; overflow-y: auto; margin-top: .75rem; }
.category-configurations__list button { display: block; width: 100%; margin: 0.25rem 0; padding: 0.5rem; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.category-configurations__header { display: flex; align-items: center; gap: 0.5rem; }
.category-configurations__header button:first-child { flex: 1; min-width: 0; }
.category-configurations__header button:last-child { width: auto; flex-shrink: 0; }
.category-configurations__details { margin: 0.25rem 0 0.75rem; padding-left: 1.5rem; overflow-wrap: anywhere; font-size: 0.9rem; }
.category-configurations__details li { margin: 0.3rem 0; }
.category-configurations__status { margin: 0.5rem 0 0; font-size: 0.9rem; }
.offer-groups { margin: 0.75rem 0; padding: 0.85rem; border: 1px solid var(--border); border-radius: 0.5rem; }
.offer-groups[hidden] { display: none; }
.offer-group-cell { white-space: nowrap; }
.offers-table th[data-resizable-key="addToGroup"] { white-space: nowrap; }
.offer-row-actions { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0.25rem; vertical-align: top; white-space: nowrap; }
.offer-row-actions > * { flex-shrink: 0; }
.offer-row-actions > button { min-height: 26px; padding: 0.2rem 0.4rem; border-radius: 0.35rem; font-size: 0.75rem; line-height: 1.2; }
.offer-row-actions > .offer-group-add-button, .offer-row-actions > .similar-offer-button, .offer-row-actions > .offer-alert-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0.2rem; }
.offer-alert-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#offerAlertForm fieldset > label, .offer-alert-rule > label { display: flex; align-items: baseline; gap: 0.35rem; margin-block: 0.35rem; }
.offer-alert-rules { display: grid; gap: .65rem; margin-bottom: 1rem; }
.offer-alert-rule { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--border); border-radius: .5rem; }
.offer-alert-rule__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.offer-group-add-button > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offer-group-add-button--grouped, .offer-group-add-button--grouped:hover,
.offer-alert-button--watched, .offer-alert-button--watched:hover { color: #38bdf8; }
.offer-group-memberships { display: flex; flex-direction: column; gap: 0.25rem; min-width: 6rem; overflow-wrap: anywhere; }
.offers-table .offer-row-actions > .similar-offer-button { font-size: calc(1.25rem * var(--table-font-scale, 1)); }
.offer-group-add-button { white-space: nowrap; vertical-align: middle; cursor: pointer; }
.offer-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin: 0.75rem 0; padding: 0.5rem 0; position: sticky; top: 0; z-index: 4; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.offer-selection[hidden] { display: none; }
input.offer-selection-checkbox { margin: 0 0.5rem 0 0; vertical-align: middle; cursor: pointer; }
.offer-group-caption { display: block; max-width: 16rem; margin-top: 0.3rem; color: var(--muted); font-size: 0.8rem; white-space: normal; overflow-wrap: anywhere; }
.offer-group-dialog { color: var(--text); }
.offer-group-dialog:not([open]) { display: none; }
.offer-group-dialog::backdrop { background: var(--overlay); }
.offer-group-dialog__offer { overflow-wrap: anywhere; }
.offer-group-dialog__label { display: block; margin: 1rem 0 0.4rem; font-weight: 600; }
.offer-group-dialog__select { width: 100%; padding: 0.5rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; }
.offer-groups__actions, .offer-group-heading__content, .favorite-searches__form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.favorite-searches__form input { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; }
.offer-groups__list { max-height: 220px; overflow-y: auto; margin-top: 0.65rem; border: 1px solid var(--border); border-radius: 0.35rem; }
.offer-groups__option { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; overflow-wrap: anywhere; }
.offer-groups__option:hover { background: var(--surface-hover); }
.offer-groups__option > input[type="checkbox"] { flex-shrink: 0; }
.offer-groups__name { flex: 1; min-width: 0; cursor: pointer; }
.offer-groups__editor { flex: 1 1 280px; min-width: 0; }
.offer-groups__status { margin: 0.5rem 0 0; color: var(--muted); }
.offer-groups__category-filter-row { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; }
.offer-groups__category-filter { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 0.5rem; cursor: pointer; }
.offer-groups__category-filter input { flex-shrink: 0; }
.offer-groups__category-info { position: relative; flex-shrink: 0; margin-left: 0; }
.offer-group-heading th { padding: 0.65rem 0.5rem; background: var(--tag-bg); border-top: 2px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; font-weight: 700; }
.offer-group-heading__name { overflow-wrap: anywhere; }
.offer-group-heading__edit { padding: 0.2rem 0.45rem; cursor: pointer; }
.offer-group-heading__input { flex: 1 1 220px; min-width: 0; max-width: 480px; padding: 0.35rem; font: inherit; }

#status { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; padding: .75rem 0 1.25rem; }
#status::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--focus); }
#categoryTypeFilters { display: grid; grid-template-columns: repeat(var(--category-type-columns, auto-fit), minmax(min(100%, 15rem), 1fr)); justify-content: center; gap: .55rem; color: var(--text-secondary); }
#categoryTypeFilters > div { display: flex; width: 100%; align-items: center; min-width: 0; padding: .75rem .8rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); }
#categoryTypeFilters > div:has(input:checked) { border-color: #3b82f6; background: var(--accent-soft); }
#categoryTypeFilters label { flex: 1; min-width: 0; cursor: pointer; }
.category-type-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.category-type-label > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.category-type-count { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.category-filter { padding: .65rem 0; border-top: 1px solid var(--border); }
.category-filter > input { vertical-align: top; margin-top: .2rem; }
.category-filter > label { display: inline-block; max-width: calc(100% - 30px); color: var(--text-secondary); cursor: pointer; }
.category-filter a { color: var(--muted); }
.category-filter a:hover, .category-filter a:focus-visible { color: var(--text-secondary); }
:root[data-theme="light"] .category-filter a { color: var(--text-secondary); }
:root[data-theme="light"] .category-filter a:hover, :root[data-theme="light"] .category-filter a:focus-visible { color: var(--heading); }
.category-configurations { padding: 1.5rem; background: var(--surface); border-radius: 16px; }
.category-configurations__item { min-width: 0; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.category-configurations__item--selected { border-color: var(--focus); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--focus); }
.category-configurations__item-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0; }
.category-configurations__item-actions button { width: auto; margin: 0; padding: .25rem .5rem; font-size: .8rem; }
.category-configurations__header button { min-height: 36px; border-color: transparent; background: transparent; }
.category-configurations__header button:first-child { color: var(--link); font-weight: 600; }
.category-configurations__item--selected .category-configurations__header button:first-child { color: var(--accent-soft-text); }
.category-configurations__selected { display: inline-block; margin-inline-start: .5rem; padding: .1rem .45rem; border-radius: 999px; background: var(--focus); color: var(--bg); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.category-configurations__header button:hover { background: var(--surface-hover); }
.category-configurations__header button:last-child { font-size: .78rem; color: var(--muted); }
.category-configurations__details { color: var(--muted); }
.category-configurations__details strong { font-weight: 500; color: var(--text); }
.category-configurations__status { color: var(--muted); }
.category-configurations__status:empty { display: none; }
.offer-tools { margin: 1rem 0; gap: 1rem; }
.offer-tools__mode { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; width: 100%; }
.offer-tools__search-row { flex-wrap: wrap; }
.offer-tools__search-input { min-height: 40px; }
.offer-filters { background: var(--bg); border-radius: 12px; margin: 1rem 0; padding: 1rem; }
.offer-filters__group { min-width: 160px; }
.offer-filters__group-title { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.offer-filters__option { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.offer-groups { background: var(--bg); border-radius: 12px; padding: 1rem; }
.offer-pane { min-width: 0; border-radius: 12px; }
.offer-pane__toolbar { border-bottom: 1px solid var(--border); padding: .75rem; gap: .5rem; }
.offer-pane__toolbar input[type="search"] { flex: 1 1 180px; min-width: 0; }
.offer-pane__content { overflow: visible; }
.offer-name__external-id {
  display: block;
  color: var(--muted);
}

.offer-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem;
  /* border-top: 1px solid var(--border); */
  color: var(--text);
  background: var(--surface);
}
.offer-pagination__summary { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.offer-pagination__pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.offer-pagination :is(a, button, [aria-current="page"], [aria-disabled="true"], .offer-pagination__current) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  font: inherit;
  line-height: 1.25;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.offer-pagination :is(a, button) { cursor: pointer; }
.offer-pagination :is(a, button):hover:not(:disabled):not([aria-disabled="true"]) { background: var(--surface-hover); }
.offer-pagination :is(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.offer-pagination :is([aria-current="page"], .offer-pagination__current) {
  color: var(--accent-soft-text);
  background: var(--accent-soft);
  border-color: var(--focus);
  font-weight: 700;
}
.offer-pagination :is(:disabled, [aria-disabled="true"]) { color: var(--muted); opacity: 1; cursor: default; }
.offer-query-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin: 0; padding: 0.75rem; color: var(--muted); }
.offer-query-status:empty, .offer-query-status[hidden] { display: none; }
.offer-query-status--error { color: var(--error-text); background: var(--error-bg); }
.offer-list-stage { position: relative; min-width: 0; }
.offer-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  cursor: progress;
}
.offer-loading[hidden] { display: none; }
.offer-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  opacity: 0.72;
}
/* Dim the entire scrollable content, including columns outside the viewport. */
.offer-pane__content[aria-busy="true"] { opacity: 0.28; }
.offer-pane__table-stage > .offer-loading::before { display: none; }
@media (max-width: 480px) {
  .offer-pagination { justify-content: center; padding-inline: 0.5rem; }
  .offer-pagination__summary { flex-basis: 100%; text-align: center; }
  .offer-pagination__pages { justify-content: center; }
}
#offerList:not(.offer-split) { height: calc(85vh - 8rem); overflow: auto; box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px; }
#offerPagination > .offer-pagination,
.offer-pane-frame > .offer-pagination { justify-content: center; }
#offerPagination .offer-pagination__summary,
.offer-pane-frame > .offer-pagination .offer-pagination__summary { flex-basis: 100%; text-align: center; }
#offerPagination .offer-pagination__pages,
.offer-pane-frame > .offer-pagination .offer-pagination__pages { justify-content: center; }
.offer-pane-frame { min-width: 0; box-sizing: border-box; }
.offer-pane__table-stage { position: relative; min-height: 5rem; }
#offerList table { min-width: 680px; }
.offers-table__row td { padding: .8rem .65rem; line-height: 1.5; }
.offer-pane table th { color: var(--muted); }
.similar-offer-button--active:hover { background: var(--accent-hover); color: #fff; }
.offer-link-button { border-color: var(--border-strong); }
.offer-link-button--linked { border-color: #b91c1c; }
.offer-link-button--linked:hover { background: #b91c1c; color: #fff; }
.offer-name { min-width: 160px; }
.offers-table__row a { font-weight: 600; }
.toast { border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
#offers.offers-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.offers-workspace__header {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.offers-workspace__heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#offersHeading { margin: 0; }
.offer-tools--global { min-width: 0; margin: 0; gap: 0.5rem; width: 100%; }
.offer-tools--global .offer-tools__search-row { margin-top: 0; }
.offer-tools--global .offer-tools__search-input { min-width: min(100%, 220px); }
.column-toolbar-actions__label { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.offer-filters--advanced { margin: 0 0 1rem; }
.offer-filters--advanced h3 { margin: 0 0 0.75rem; }
.offer-similarity { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.offer-similarity h3 { margin: 0; font-size: 0.95rem; }
.offer-similarity > button { white-space: normal; }
.offer-similarity__toggle { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.offers-workspace__main { min-width: 0; }
.offers-workspace__main > .offer-tools__mode { justify-content: space-between; padding-bottom: 1rem; }
.offer-tools__mode-select { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; }
.offer-tools__mode-select label { font-weight: 600; }
.offer-tools__mode-select select { min-width: 180px; }
.offer-tools__mode-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.offer-tools__swap { border-color: var(--focus); background: var(--accent-soft); font-weight: 600; }
.offers-workspace__main > .offer-list-stage > #offerList { margin-top: 0; }
.offers-workspace__main .offer-split.horizontal > .offer-pane-frame { flex: 1 1 0; min-width: 0; }
.offer-pane__toolbar { flex-direction: column; align-items: stretch; }
.offer-pane__title { margin: 0; font-size: 1rem; }
.offer-pane__controls-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; width: 100%; }
.offer-pane__exchange { flex: 0 1 160px; min-width: 0; }
.exchange-group__loading-spinner { margin: 0; }
.exchange-filters__title { position: relative; display: inline-block; padding-right: 3rem; }
.exchange-filters__loading-spinner { position: absolute; top: 50%; right: calc(50% - 1.25rem); margin: -1.25rem 0 0; }
.exchange-group__select-all:disabled { opacity: .65; }
.offer-pane__controls-row input[type="search"] { width: 0; }
.offer-pane__toolbar .offer-tools__active-filters { margin-top: 0; }
.offers-workspace__main > .offer-selection { position: static; margin: 1rem 0 0; padding: 0.85rem; border: 1px solid var(--border); border-radius: 12px; box-shadow: none; }
.offer-selection__group-mode { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; font-weight: 600; white-space: nowrap; cursor: pointer; }
.offer-selection__group-mode[hidden] { display: none; }
@media (max-width: 900px) {
  #offerList:not(.offer-split) { height: 65vh; }
  .offer-split.horizontal { flex-direction: column; }
  .offer-split.horizontal > .offer-pane-frame { flex: auto; width: 100%; min-width: 0; }
  .offer-split.horizontal > .offer-pane-frame > .offer-pane { max-height: 65vh; }
  .offers-workspace__main .offer-split.horizontal > .offer-pane-frame { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .game-page .page-heading > .game-card__actions { margin-left: auto; }
  #filters > section, #filters > .price-shifts, #filters > .exchange-filters, .exchange-filters > .price-shifts, .category-controls > section, .category-configurations, #offers { padding: 1rem; }
  .offers-workspace__main > .offer-list-stage {
    /* Extend through the page and workspace padding, including the workspace border. */
    margin-inline: calc(-2rem - 1px);
  }
  .offers-workspace__main .offer-pane-frame > .offer-pagination {
    margin-inline: calc(2rem + 1px);
  }
  .exchange-group { padding: .75rem; }
  .offer-tools__search { flex-basis: 100%; }
  .offer-tools__search-row {
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
  }
  .favorite-searches-menu { position: static; }
  .favorite-searches {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
  }
  .offer-tools__search-row .advanced-search-button,
  .offer-tools__search-row .favorite-searches-menu,
  .offer-tools__search-row .favorite-searches-button {
    flex: 0 0 auto;
  }
  .offer-tools__search-row .advanced-search-button { flex: 0 0 auto; }
  .advanced-search-modal__dialog, .column-settings-modal__dialog { padding: 1rem; }
  .offer-pane__toolbar > input, .offer-pane__toolbar > select { min-width: 0 !important; max-width: 100%; }
  .offers-workspace__main > .offer-tools__mode {
    justify-content: center;
  }
  .offer-tools__mode-actions {
    width: 100%;
    justify-content: center;
  }
  .column-settings-modal__dialog {
    width: min(100%, 30rem);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
  }
  .column-settings-modal__list {
    max-height: 38vh;
    overflow-y: auto;
    padding-right: 0.25rem;
  }
  .column-settings-modal__footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding-top: 0.5rem;
  }
}
