/* Trade selection only. Keep the team/season wheels and tracker untouched.
   Legacy presentation sheets use !important; scoped overrides below are intentional.
   No fixed row heights, hidden names, new requests, or interaction changes. */
#browserScreen .tt-trade-list-section {
  width: min(100%, 1080px);
  min-width: 0;
  margin-inline: auto;
  padding: 18px 20px 4px !important;
  border: 1px solid var(--bi-rule);
  border-radius: 3px;
  background: var(--bi-card);
  color: var(--bi-ink);
}
#browserScreen .tt-trade-list-section .tt-section-heading {
  align-items: end;
  gap: 16px;
  margin: 0 !important;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--bi-rule);
}
#browserScreen .tt-trade-list-section .tt-section-heading > div { min-width: 0; }
#browserScreen .tt-trade-list-section .tt-section-heading > div > span {
  color: var(--bi-muted) !important;
  font: 600 12px/1.4 var(--bi-sans) !important;
  letter-spacing: .04em !important;
}
#browserScreen .tt-trade-list-section .tt-section-heading h2 {
  margin: 3px 0 0;
  font: 500 30px/1.1 var(--bi-serif);
  color: var(--bi-ink) !important;
}
#browserScreen .tt-trade-list-section .tt-trade-search { width: min(320px, 100%); min-width: 0; }
#browserScreen .tt-trade-list-section .tt-trade-search span {
  margin-bottom: 5px;
  color: var(--bi-muted) !important;
  font: 500 13px/1.4 var(--bi-sans) !important;
  letter-spacing: 0;
  text-transform: none;
}
#browserScreen .tt-trade-list-section .tt-trade-search input {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--bi-rule) !important;
  background: var(--bi-page) !important;
  color: var(--bi-ink) !important;
}
#browserScreen .tt-trade-list-section .tt-trade-search input::placeholder { color: var(--bi-muted) !important; }
#browserScreen .tt-trade-list-section .tt-trade-list { display: grid; gap: 0 !important; min-width: 0; }
#browserScreen .tt-trade-list-section .tt-trade-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 110px;
  grid-template-areas: 'date copy action' 'date identities action';
  align-items: start;
  gap: 4px 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 14px 0;
  border: 0 !important;
  border-bottom: 1px solid var(--bi-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#browserScreen .tt-trade-list-section .tt-trade-row:last-child { border-bottom: 0 !important; }
#browserScreen .tt-trade-list-section .tt-trade-row:hover,
#browserScreen .tt-trade-list-section .tt-trade-row:focus-within { background: var(--bi-paper) !important; }
#browserScreen .tt-trade-list-section .tt-trade-row.is-warning {
  border-inline-start: 2px solid var(--bi-accent) !important;
  padding-inline-start: 10px;
}
#browserScreen .tt-trade-list-section .tt-trade-row > time {
  grid-area: date;
  align-self: start;
  padding-top: 2px;
  color: var(--bi-muted) !important;
  font: 500 13px/1.5 var(--bi-sans) !important;
  font-variant-numeric: tabular-nums;
  white-space: normal;
}
#browserScreen .tt-trade-list-section .tt-trade-row-copy { grid-area: copy; min-width: 0; }
#browserScreen .tt-trade-list-section .tt-trade-row-copy > strong {
  display: block;
  color: var(--bi-ink) !important;
  font: 650 16px/1.4 var(--bi-sans) !important;
  letter-spacing: 0 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
#browserScreen .tt-trade-list-section .tt-trade-row-copy > p {
  margin: 4px 0 0;
  color: var(--bi-muted) !important;
  font: 400 14px/1.5 var(--bi-sans) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
#browserScreen .tt-trade-list-section .tt-trade-participants {
  display: block;
  margin-top: 4px;
  color: var(--bi-muted) !important;
  font: 400 13px/1.45 var(--bi-sans) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Preserve the real player links; turn the portrait gallery into an identity line. */
#browserScreen .tt-trade-list-section .tt-trade-visuals {
  grid-area: identities;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: start;
  gap: 4px 12px;
  min-width: 0;
  min-height: 44px;
}
#browserScreen .tt-trade-list-section .tt-trade-partner-logos,
#browserScreen .tt-trade-list-section .tt-trade-player-visuals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  min-height: 44px;
}
#browserScreen .tt-trade-list-section .tt-trade-partner-logos { gap: 4px; }
#browserScreen .tt-trade-list-section .tt-trade-partner-logo {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#browserScreen .tt-trade-list-section .tt-trade-partner-logo img,
#browserScreen .tt-trade-list-section .tt-trade-partner-logo .tt-team-logo-fallback {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
#browserScreen .tt-trade-list-section .tt-trade-preview-player {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  min-width: 0;
}
#browserScreen .tt-trade-list-section .tt-trade-preview-avatar,
#browserScreen .tt-trade-list-section .tt-trade-player-loading {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--bi-rule);
  background: var(--bi-paper);
  box-shadow: none;
}
#browserScreen .tt-trade-list-section .tt-trade-preview-avatar .tt-portrait-fallback {
  min-height: 0;
  background: var(--bi-paper);
  color: var(--bi-muted);
  font-size: 9px;
}
#browserScreen .tt-trade-list-section .tt-trade-preview-player .ps-inline-player {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 4px 0;
  color: var(--bi-ink);
  font: 500 13px/1.4 var(--bi-sans);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}
#browserScreen .tt-trade-list-section .tt-trade-player-empty,
#browserScreen .tt-trade-list-section .tt-trade-partner-empty {
  color: var(--bi-muted);
  font: 400 13px/1.4 var(--bi-sans);
  letter-spacing: 0;
  text-transform: none;
}
#browserScreen .tt-trade-list-section .tt-trade-row > button[data-open-trade] {
  grid-area: action;
  align-self: start;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--bi-rule) !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: var(--bi-accent) !important;
  font: 600 13px/1.3 var(--bi-sans);
  white-space: normal;
  box-shadow: none !important;
}
#browserScreen .tt-trade-list-section .tt-trade-row > button[data-open-trade]:hover {
  border-color: var(--bi-accent) !important;
  background: var(--bi-page) !important;
}
#browserScreen .tt-trade-list-section :is(input, button, a):focus-visible {
  outline: 2px solid var(--bi-accent) !important;
  outline-offset: 2px;
}
#browserScreen .tt-trade-list-section .tt-empty {
  padding: 24px 12px;
  color: var(--bi-muted) !important;
  font: 400 14px/1.5 var(--bi-sans);
}
#browserScreen .tt-trade-list-section .tt-empty strong { color: var(--bi-ink) !important; }
@media (max-width: 780px) {
  #browserScreen .tt-trade-list-section { padding: 16px 14px 2px !important; }
  #browserScreen .tt-trade-list-section .tt-trade-row {
    grid-template-columns: minmax(0, 1fr) 110px;
    grid-template-areas: 'date action' 'copy copy' 'identities identities';
    gap: 6px 12px;
    padding-block: 12px;
  }
  #browserScreen .tt-trade-list-section .tt-trade-row > time { align-self: center; padding: 0; }
  #browserScreen .tt-trade-list-section .tt-trade-visuals { gap: 4px 10px; }
}
@media (max-width: 520px) {
  #browserScreen .tt-trade-list-section .tt-section-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  #browserScreen .tt-trade-list-section .tt-trade-search { width: 100%; }
  #browserScreen .tt-trade-list-section .tt-trade-player-visuals { gap: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #browserScreen .tt-trade-list-section .tt-trade-player-loading { animation: none; }
}
