.plt-trade {
  color-scheme: dark;
  --plt-ink: var(--pl-text, #F5F7FA);
  --plt-muted: var(--pl-text-muted, #8D98A8);
  --plt-line: var(--pl-border, #29313E);
  --plt-line-strong: var(--pl-border-strong, #46536A);
  --plt-card: var(--pl-surface, #181E29);
  --plt-raised: var(--pl-surface-raised, #202733);
  --plt-paper: var(--pl-shell, #11161F);
  --plt-control: var(--pl-control-bg, #111821);
  --plt-control-hover: var(--pl-control-hover, #202C3F);
  --plt-selected: var(--pl-selected-bg, #182541);
  --plt-selected-border: var(--pl-selected-border, #5B7CFF);
  --plt-success-bg: var(--pl-status-success-bg, #102A25);
  --plt-success-border: var(--pl-status-success-border, #2C6559);
  --plt-warning-bg: var(--pl-status-warning-bg, #30260F);
  --plt-warning-border: var(--pl-status-warning-border, #6E5925);
  --plt-danger-bg: var(--pl-status-danger-bg, #311A21);
  --plt-danger-border: var(--pl-status-danger-border, #733342);
  --plt-info-bg: var(--pl-status-info-bg, #17243A);
  --plt-info-border: var(--pl-status-info-border, #42537A);
  --plt-disabled-bg: var(--pl-disabled-bg, #171C24);
  --plt-disabled-text: var(--pl-disabled-text, #7A8697);
  --plt-brand: var(--pl-brand, #5B7CFF);
  --plt-brand-hover: var(--pl-brand-hover, #84A0FF);
  --plt-on-brand: var(--pl-on-brand, #080B10);
  --plt-focus: var(--pl-focus, #84A0FF);
  --plt-positive: var(--pl-positive, #22D3A6);
  --plt-negative: var(--pl-negative, #FF5C70);
  --plt-gold: var(--pl-gold, #F5C451);
  width: 100%;
  min-width: 0;
  overflow-anchor: none;
  color: var(--plt-ink);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.plt-trade *,
.plt-trade *::before,
.plt-trade *::after { box-sizing: border-box; }

.plt-trade button,
.plt-trade input,
.plt-trade select { font: inherit; }
.plt-trade button { cursor: pointer; }
.plt-trade button:disabled,
.plt-trade input:disabled,
.plt-trade select:disabled { cursor: default; border-color: var(--plt-line); background-color: var(--plt-disabled-bg); color: var(--plt-disabled-text); opacity: 1; }
.plt-trade button:focus-visible,
.plt-trade input:focus-visible,
.plt-trade select:focus-visible,
.plt-trade summary:focus-visible { outline: 3px solid var(--plt-focus); outline-offset: 2px; }

.plt-kicker {
  color: var(--plt-brand-hover);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.plt-badge {
  flex: 0 0 auto;
  border: 1px solid var(--plt-selected-border);
  border-radius: 999px;
  background: var(--plt-info-bg);
  color: var(--plt-brand-hover);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  white-space: nowrap;
}

.plt-panel {
  min-width: 0;
  border: 1px solid var(--plt-line);
  border-radius: 12px;
  background: var(--plt-card);
  box-shadow: 0 4px 20px #00000028;
}

.plt-mobile-market-context,
.plt-mobile-sticky-head,
.plt-market-settings-open,
.plt-market-settings-layer { display: none; }

.plt-sort-button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  text-align: left;
  white-space: inherit;
}
.plt-sort-button span { margin-left: 3px; color: var(--plt-brand-hover); }
.plt-sort-button.is-active { color: var(--plt-brand-hover); }
.plt-stat-sort-value {
  max-width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  padding: 1px 2px;
  font: inherit;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}
.plt-stat-sort-value:focus-visible { outline-offset: 0; }

.plt-market-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  margin: 0 0 5px;
}
.plt-market-meta-row > .plt-market-status { flex: 1 1 200px; min-width: 0; margin: 0; }
.plt-market-status-copy { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plt-market-unit-cue { flex: 0 0 auto; color: var(--plt-muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.plt-market-meta-row > .plt-market-details { flex: 0 0 auto; min-width: 0; margin: 0; }
.plt-market-meta-row > .plt-market-details[open] { flex: 1 1 100%; }

.plt-market-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  margin: 0 0 8px;
  color: var(--plt-muted);
  font-size: 11px;
}
.plt-market-status .plt-kicker { flex: 0 0 auto; }

.plt-market-tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(170px, .8fr);
  gap: 9px;
  align-items: end;
  margin: 0 0 8px;
}

.plt-search,
.plt-team-filter,
.plt-market-sort {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--plt-muted);
  font-size: 11px;
  font-weight: 750;
}

.plt-search input,
.plt-team-filter input,
.plt-market-sort select,
.plt-quantity input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--plt-line-strong);
  border-radius: 8px;
  background: var(--plt-control);
  color: var(--plt-ink);
  padding: 7px 10px;
}

.plt-position-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 7px;
}
.plt-position-filters button {
  min-width: 43px;
  min-height: 44px;
  border: 1px solid var(--plt-line-strong);
  border-radius: 999px;
  background: var(--plt-control);
  color: var(--plt-ink);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 850;
}
.plt-position-filters button[aria-pressed="true"] {
  border-color: var(--plt-brand);
  background: var(--plt-brand);
  color: var(--plt-on-brand);
}

.plt-market-count {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 4px;
  color: var(--plt-muted);
  font-size: 11px;
}
.plt-data-gap-note {
  margin: 0 0 6px;
  color: var(--plt-muted);
  font-size: 11px;
  line-height: 1.3;
}

.plt-player-list-wrap { position: relative; min-width: 0; margin: 0 0 7px; }
.plt-table-swipe-hint { display: none; margin: 0 0 5px; color: var(--plt-muted); font-size: 11px; }
.plt-market-table-wrap {
  width: 100%;
  max-height: min(62vh, 580px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--plt-line);
  border-radius: 10px;
  background: var(--plt-card);
  scrollbar-width: thin;
}
.plt-market-table-wrap:focus-visible { outline: 3px solid var(--plt-focus); outline-offset: 2px; }
.plt-market-table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.plt-market-table.has-observed { min-width: 720px; }
.plt-col-player { width: 34%; }
.plt-col-mark { width: 17%; }
.plt-col-actual { width: 11%; }
.plt-col-projection { width: 14%; }
.plt-col-ros { width: 24%; }
.plt-market-table.has-observed .plt-col-player { width: 29%; }
.plt-market-table.has-observed .plt-col-mark { width: 14%; }
.plt-market-table.has-observed .plt-col-actual { width: 9%; }
.plt-market-table.has-observed .plt-col-season { width: 12%; }
.plt-market-table.has-observed .plt-col-projection { width: 14%; }
.plt-market-table.has-observed .plt-col-ros { width: 22%; }
.plt-market-table th,
.plt-market-table td {
  min-width: 0;
  border-bottom: 1px solid var(--plt-line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}
.plt-market-table td .plt-stat-sort-value { display: inline-flex; align-items: center; }
.plt-market-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--plt-raised);
  color: var(--plt-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.plt-market-table thead th:first-child { left: 0; z-index: 4; }
.plt-market-table tbody tr:last-child th,
.plt-market-table tbody tr:last-child td { border-bottom: 0; }
.plt-market-table tbody tr:hover { background: var(--plt-control-hover); }
.plt-market-table tbody tr.is-selected { background: var(--plt-selected); }
.plt-market-table tbody tr.is-closed { color: var(--plt-muted); }
.plt-market-table tbody .plt-player-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--plt-card);
  box-shadow: 1px 0 0 var(--plt-line);
}
.plt-market-table tbody tr:hover .plt-player-cell { background: var(--plt-control-hover); }
.plt-market-table tbody tr.is-selected .plt-player-cell { background: var(--plt-selected); box-shadow: inset 3px 0 0 var(--plt-selected-border), 1px 0 0 var(--plt-line); }
.plt-market-table tbody tr.is-closed .plt-player-cell { color: var(--plt-muted); }

.plt-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 1px 0;
  font-size: inherit;
  font-weight: 850;
  text-align: left;
}
.plt-sort-button.is-active { color: var(--plt-brand-hover); }
.plt-sort-button span { color: var(--plt-brand-hover); font-size: 12px; }

.plt-player-cell { font-weight: 400; }
.plt-player-open {
  display: grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  min-height: 44px;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--plt-ink);
  padding: 0;
  text-align: left;
}
.plt-player-open:hover .plt-player-name { color: var(--plt-brand-hover); text-decoration: underline; }
.plt-player-copy { min-width:0; }
.plt-player-name { display: -webkit-box; max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 750; line-height: 1.2; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space: normal; }
.plt-player-meta { display: flex; flex-wrap:wrap; min-width: 0; align-items: center; gap: 4px; color: var(--plt-muted); font-size: 11px; font-weight: 550; }
.plt-player-team-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.plt-player-team-text::before { content:"·";margin-right:4px; }
.plt-player-state { color: var(--plt-muted); font-size: 10px; font-weight: 550; }
.plt-player-row:not(.is-closed) .plt-player-state { display:none; }
.plt-player-row.is-closed .plt-player-state { color: var(--plt-gold); }
.plt-position-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 0;
  background:transparent;
  color:var(--plt-muted);
  padding: 0;
  font-size: 11px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
}
.plt-player-mark,
.plt-week-actual,
.plt-season-observed,
.plt-week-projection,
.plt-ros-value-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plt-player-mark { color: var(--plt-ink); font-size: 16px; font-weight: 900; text-align: right !important; }
.plt-market-table td.plt-player-mark .plt-stat-sort-value { width:100%;justify-content:flex-end;text-align:right; }
.plt-market-history { display:flex;justify-content:flex-end;gap:8px;color:var(--plt-muted);font-size:10px;font-weight:500;line-height:1.25; }
.plt-drawer-identity { display:flex;align-items:center;gap:10px;min-width:0; }
.plt-drawer-identity>.pl-player-avatar { --pl-avatar-size:40px; }
.plt-drawer-identity>div { min-width:0; }
.plt-week-actual,
.plt-week-projection { color: var(--plt-ink); font-size: 12px; font-weight: 750; text-align: center !important; }
.plt-week-actual { color: var(--plt-text-muted, #8D98A8); }
.plt-season-observed { color: var(--plt-ink); text-align: center !important; }
.plt-season-observed strong,
.plt-season-observed small { display: block; }
.plt-season-observed strong { font-size: 11px; font-weight: 850; }
.plt-season-observed small { margin-top: 2px; color: var(--plt-muted); font-size: 9px; white-space: normal; }
.plt-ros-value-cell { text-align: right !important; }
.plt-ros-value-cell strong,
.plt-ros-value-cell small { display: block; }
.plt-ros-value-cell strong { color: var(--plt-ink); font-size: 12px; font-weight: 850; }
.plt-ros-value-cell small { margin-top: 2px; color: var(--plt-muted); font-size: 10px; text-align: right; }

.plt-empty {
  border: 1px dashed var(--plt-line-strong);
  border-radius: 9px;
  background: var(--plt-control);
  color: var(--plt-muted);
  padding: 12px;
  text-align: center;
  font-size: 11px;
}

.plt-market-details {
  margin: 3px 0 0;
  color: var(--plt-muted);
  font-size: 10px;
}
.plt-market-details summary,
.plt-pricing-details summary {
  display: inline-block;
  cursor: pointer;
  color: var(--plt-brand-hover);
  font-weight: 800;
}
.plt-market-details > div,
.plt-pricing-details > div,
.plt-football-details > div {
  margin-top: 7px;
  border-left: 2px solid var(--plt-line-strong);
  padding: 2px 0 2px 10px;
}
.plt-market-details p,
.plt-pricing-details p { margin: 4px 0; overflow-wrap: anywhere; }
.plt-market-details h3 { margin: 9px 0 3px; color: var(--plt-ink); font-size: 11px; }
.plt-market-details ul { margin: 4px 0 0; padding-left: 18px; }
.plt-market-details li { margin: 3px 0; }
.plt-football-details { margin: 8px 0; color: var(--plt-muted); font-size: 10px; }
.plt-football-details summary { display: inline-block; cursor: pointer; color: var(--plt-brand-hover); font-weight: 800; }
.plt-football-details p { margin: 5px 0; overflow-wrap: anywhere; }
.plt-football-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 5px 0; }
.plt-football-detail-grid div { min-width: 0; border: 1px solid var(--plt-line); border-radius: 7px; background: var(--plt-card); padding: 6px; }
.plt-football-detail-grid dt { color: var(--plt-muted); font-size: 9px; }
.plt-football-detail-grid dd { margin: 2px 0 0; color: var(--plt-ink); font-size: 10px; font-weight: 800; overflow-wrap: anywhere; }
.plt-observed-details { margin: 8px 0; color: var(--plt-muted); font-size: 10px; }
.plt-observed-details summary { display: inline-block; cursor: pointer; color: var(--plt-brand-hover); font-weight: 800; }
.plt-observed-details p { margin: 5px 0; overflow-wrap: anywhere; }
.plt-observed-detail-grid { margin-top: 7px; }
.plt-observed-score,
.plt-observed-season { font-variant-numeric: tabular-nums; }

.plt-status,
.plt-market-status { color: var(--plt-muted); }
.plt-error,
.plt-notice,
.plt-receipt-note {
  margin: 7px 0;
  border: 1px solid var(--plt-info-border);
  border-radius: 8px;
  background: var(--plt-info-bg);
  color: var(--plt-brand-hover);
  padding: 7px 9px;
  font-size: 10px;
}
.plt-notice.is-error,
.plt-error { border-color: var(--plt-danger-border); background: var(--plt-danger-bg); color: var(--plt-negative); }
.plt-notice.is-warning { border-color: var(--plt-warning-border); background: var(--plt-warning-bg); color: var(--plt-gold); }
.plt-notice.is-success,
.plt-receipt-note { border-color: var(--plt-success-border); background: var(--plt-success-bg); color: var(--plt-positive); font-weight: 700; }
.plt-disclaimer { margin: 7px 0 0; color: var(--plt-muted); font-size: 9px; }

.plt-empty-state {
  border: 1px dashed var(--plt-line-strong);
  border-radius: 11px;
  background: var(--plt-control);
  padding: 18px;
}
.plt-empty-state h2 { margin: 5px 0; font-size: 20px; }
.plt-empty-state p { margin: 0; color: var(--plt-muted); font-size: 11px; }

.plt-drawer-layer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  isolation: isolate;
}
.plt-drawer-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(8, 11, 16, .72);
  cursor: default;
}
.plt-trade-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(470px, 94vw);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin-left: auto;
  border-radius: 14px 0 0 14px;
  background: var(--plt-paper);
  box-shadow: -12px 0 36px #00000055;
}
.plt-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--plt-line);
  background: var(--plt-card);
  padding: 16px 18px 12px;
}
.plt-drawer-head h2 { margin: 3px 0; font-size: 21px; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.plt-drawer-head p { margin: 0; color: var(--plt-muted); font-size: 10px; }
.plt-close {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--plt-line);
  border-radius: 8px;
  background: var(--plt-control);
  color: var(--plt-ink);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
}
.plt-drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
.plt-drawer-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--plt-selected-border);
  border-radius: 9px;
  background: var(--plt-selected);
  padding: 8px 10px;
  color: var(--plt-muted);
  font-size: 10px;
}
.plt-drawer-mark strong { margin-left: auto; color: var(--plt-ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.plt-account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0;
}
.plt-account-summary div {
  min-width: 0;
  border: 1px solid var(--plt-line);
  border-radius: 8px;
  background: var(--plt-card);
  padding: 7px 9px;
}
.plt-account-summary dt { color: var(--plt-muted); font-size: 9px; }
.plt-account-summary dd { margin: 2px 0 0; color: var(--plt-ink); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.plt-account-unavailable,
.plt-sell-state { margin: 7px 0; color: var(--plt-gold); font-size: 10px; }
.plt-account-unavailable { border: 1px solid var(--plt-warning-border); border-radius: 8px; background: var(--plt-warning-bg); padding: 7px 9px; }
.plt-pricing-details { margin: 8px 0; font-size: 10px; }
.plt-closed-reason { margin-top: 8px; }

.plt-order,
.plt-quote,
.plt-pending { margin-top: 8px; padding: 12px; }
.plt-order-head,
.plt-quote-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.plt-order-head p,
.plt-pending > p { margin: 0; color: var(--plt-muted); font-size: 10px; }
.plt-league-scope { margin-top: 3px !important; }
.plt-order-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: end;
  gap: 8px;
  margin-bottom: 9px;
}
.plt-side-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.plt-side-control legend,
.plt-quantity { margin-bottom: 4px; color: var(--plt-muted); font-size: 10px; font-weight: 750; }
.plt-side-control legend { grid-column: 1 / -1; padding: 0; }
.plt-side-control button {
  min-height: 44px;
  border: 1px solid var(--plt-line);
  border-radius: 8px;
  background: var(--plt-control);
  color: var(--plt-ink);
  font-weight: 800;
}
.plt-side-control button { border-color: var(--plt-line-strong); background: var(--plt-control); color: var(--plt-ink); }
.plt-side-control button:hover:not(:disabled) { border-color: var(--plt-brand-hover); background: var(--plt-control-hover); }
.plt-trade .plt-side-control button:disabled { border-color: var(--plt-line); background: var(--plt-disabled-bg); color: var(--plt-disabled-text); box-shadow: none; }
.plt-side-control button[data-side="BUY"][aria-pressed="true"] { border-color: var(--plt-brand); background: var(--plt-brand); color: var(--plt-on-brand); }
.plt-side-control button[data-side="SELL"][aria-pressed="true"] { border-color: var(--plt-brand-hover); background: var(--plt-selected); color: var(--plt-brand-hover); box-shadow: inset 0 0 0 1px var(--plt-brand-hover); }
.plt-quantity { display: grid; min-width: 0; gap: 4px; }
.plt-quantity input { min-height: 44px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.plt-primary {
  min-height: 44px;
  border: 1px solid var(--plt-brand);
  border-radius: 8px;
  background: var(--plt-brand);
  color: var(--plt-on-brand);
  padding: 9px 12px;
  font-weight: 850;
}
.plt-primary:hover:not(:disabled) { border-color: var(--plt-brand-hover); background: var(--plt-brand-hover); color: var(--plt-on-brand); }
.plt-wide { display: block; width: 100%; }
.plt-quote { border-color: var(--plt-selected-border); }
.plt-quote-heading h3,
.plt-pending h3 { margin: 3px 0; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.plt-price-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7px; margin-bottom: 8px; }
.plt-price-grid > div { min-width: 0; border: 1px solid var(--plt-line); border-radius: 8px; background: var(--plt-control); padding: 8px; }
.plt-price-grid span,
.plt-price-grid strong,
.plt-price-grid small { display: block; }
.plt-price-grid span { color: var(--plt-muted); font-size: 10px; font-weight: 750; }
.plt-price-grid strong { margin: 3px 0 1px; color: var(--plt-ink); font-size: clamp(18px, 4vw, 24px); line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plt-price-grid small { color: var(--plt-muted); font-size: 9px; }
.plt-price-total { border-color: var(--plt-selected-border) !important; background: var(--plt-selected) !important; }
.plt-price-total strong { color: var(--plt-ink); }
.plt-quote-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; }
.plt-quote-details div { min-width: 0; border: 1px solid var(--plt-line); border-radius: 7px; background: var(--plt-card); padding: 6px; }
.plt-quote-details dt { color: var(--plt-muted); font-size: 9px; }
.plt-quote-details dd { margin: 2px 0 0; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plt-provenance { margin: 8px 0 4px; color: var(--plt-muted); font-size: 10px; overflow-wrap: anywhere; }
.plt-countdown { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 6px 0 8px; color: var(--plt-brand-hover); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plt-countdown small { color: var(--plt-muted); font-size: 9px; font-weight: 500; text-align: right; }
.plt-quote [data-trade-action="confirm"] { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -5px 10px var(--plt-card); }
.plt-pending { border-color: var(--plt-warning-border); background: var(--plt-warning-bg); }
.plt-pending h3 { margin-top: 4px; }
.plt-pending > p { margin: 6px 0 10px; }
.plt-frozen-summary { display: grid; gap: 3px; margin: 9px 0; border: 1px solid var(--plt-line-strong); border-radius: 8px; background: var(--plt-control); padding: 8px 9px; font-size: 10px; }
.plt-frozen-summary strong { font-size: 11px; }
.plt-frozen-summary span { color: var(--plt-muted); overflow-wrap: anywhere; }
.plt-pending .plt-note { margin: 0 0 9px; color: var(--plt-muted); font-size: 10px; }
.plt-progress { color: var(--plt-brand-hover) !important; font-weight: 750; }
.plt-storage-error { margin: 10px 0; }

@media (max-width: 760px) {
  .plt-search input,
  .plt-team-filter input,
  .plt-market-sort select,
  .plt-quantity input { font-size: 16px; }
  .plt-market-meta-row { gap: 0 6px; margin-bottom: 4px; }
  .plt-market-meta-row > .plt-market-status { flex-basis: 195px; min-height: 44px; gap: 5px; font-size: 10px; }
  .plt-market-status .plt-kicker { font-size: 10px; letter-spacing: .06em; }
  .plt-market-unit-cue { font-size: 9px; }
  .plt-market-meta-row > .plt-market-details { min-height: 44px; }
  .plt-market-meta-row > .plt-market-details[open] { flex-basis: 100%; }
  .plt-market-meta-row .plt-market-details summary { min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
  .plt-market-tools { grid-template-columns: minmax(0, 1fr) 112px; gap: 7px; margin-bottom: 4px; }
  .plt-search { grid-column: 1; }
  .plt-market-tools > .plt-team-filter,
  .plt-market-tools > .plt-market-sort { display: none; }
  .plt-market-settings-open {
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--plt-line-strong);
    border-radius: 8px;
    background: var(--plt-control);
    color: var(--plt-ink);
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 800;
  }
  .plt-mobile-market-context {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 48px;
    margin: 0 0 4px;
    border: 1px solid var(--plt-line);
    border-radius: 8px;
    background: var(--plt-paper);
    padding: 4px 6px 4px 8px;
  }
  .plt-mobile-market-context-main { display: grid; min-width: 0; line-height: 1.15; }
.plt-mobile-market-sort-state { overflow: hidden; color: var(--plt-brand-hover); font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
  .plt-mobile-market-state { overflow: hidden; color: var(--plt-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .plt-mobile-market-context-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 1px; }
  .plt-mobile-market-context-actions > button {
    flex: 0 0 auto;
    min-width: 50px;
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--plt-brand-hover);
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 850;
  }
  .plt-mobile-market-context-actions > button:first-child { min-width: 64px; }
  .plt-mobile-sticky-head[hidden] { display: none; }
  .plt-mobile-sticky-head:not([hidden]) {
    position: fixed;
    z-index: 29;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--plt-line-strong);
    border-bottom-color: var(--plt-brand);
    background: var(--plt-raised);
    box-shadow: 0 3px 8px #00000055;
    pointer-events: auto;
  }
  .plt-mobile-sticky-player {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--plt-line);
    background: var(--plt-raised);
    color: var(--plt-ink);
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
  }
  .plt-mobile-sticky-columns-viewport { position: absolute; top: 0; bottom: 0; overflow: hidden; }
  .plt-mobile-sticky-columns { display: flex; width: max-content; height: 100%; will-change: transform; }
  .plt-mobile-sticky-sort {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-right: 1px solid var(--plt-line);
    background: var(--plt-raised);
    color: var(--plt-ink);
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
  }
.plt-mobile-sticky-sort span { margin-left: 2px; color: var(--plt-brand-hover); }
.plt-mobile-sticky-sort.is-active { color: var(--plt-brand-hover); }
  .plt-market-settings-layer {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    align-items: end;
    justify-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overscroll-behavior: contain;
  }
  .plt-market-settings-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(8, 11, 16, .72);
    touch-action: none;
  }
  .plt-market-settings {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(78dvh, 600px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px 16px 0 0;
    background: var(--plt-paper);
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px #00000066;
    touch-action: pan-y;
  }
  .plt-market-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  .plt-market-settings-head h2 { margin: 1px 0 0; font-size: 18px; line-height: 1.2; }
  .plt-market-settings-head > button,
  .plt-market-settings-reset {
    min-width: 64px;
    min-height: 44px;
    border: 1px solid var(--plt-line-strong);
    border-radius: 8px;
    background: var(--plt-control);
    color: var(--plt-ink);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
  }
  .plt-market-settings-controls { display: grid; gap: 9px; }
  .plt-market-settings-summary { margin: 0 0 8px; color: var(--plt-muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .plt-market-settings-controls .plt-team-filter select,
  .plt-market-settings-controls .plt-market-sort select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--plt-line-strong);
    border-radius: 8px;
    background: var(--plt-control);
    color: var(--plt-ink);
    padding: 7px 10px;
    font-size: 16px;
  }
  .plt-market-settings-reset { width: 100%; }
  .plt-market-count { margin-top: 2px; margin-bottom: 2px; }
  .plt-player-list-wrap { --plt-market-sticky-width: 142px; }
  .plt-data-gap-note { margin-bottom: 4px; }
  .plt-position-filters { margin-bottom: 4px; }
  .plt-table-swipe-hint[data-edge-state="checking"] { visibility: hidden; }
  .plt-table-swipe-hint[data-edge-state="start"],
  .plt-table-swipe-hint[data-edge-state="middle"],
  .plt-table-swipe-hint[data-edge-state="end"] {
    position: relative;
    display: block;
    min-height: 15px;
    color: var(--plt-muted);
    font-size: 10px;
    line-height: 1;
  }
  .plt-table-swipe-hint[data-edge-state="fit"] { display: none; }
  .plt-edge-cue-left,
  .plt-edge-cue-right { position: absolute; top: 0; font-weight: 800; }
  .plt-edge-cue-left { left: var(--plt-market-sticky-width); }
  .plt-edge-cue-right { right: 0; }
  .plt-edge-hint-copy { display: none; }
  .plt-table-swipe-hint[data-edge-state="start"] .plt-edge-cue-left,
  .plt-table-swipe-hint[data-edge-state="start"] .plt-edge-hint-copy,
  .plt-table-swipe-hint[data-edge-state="end"] .plt-edge-cue-right,
  .plt-table-swipe-hint[data-edge-state="end"] .plt-edge-hint-copy,
  .plt-table-swipe-hint[data-edge-state="middle"] .plt-edge-hint-copy { display: none; }
  .plt-table-swipe-hint[data-edge-state="start"] .plt-edge-cue-right::after { content: " more columns"; }
  .plt-table-swipe-hint[data-edge-state="middle"] .plt-edge-cue-left::after { content: " more"; }
  .plt-table-swipe-hint[data-edge-state="middle"] .plt-edge-cue-right::after { content: " more"; }
  .plt-table-swipe-hint[data-edge-state="end"] .plt-edge-cue-left::after { content: " more columns"; }
  .plt-player-list-wrap[data-edge-state="start"]::after,
  .plt-player-list-wrap[data-edge-state="middle"]::before,
  .plt-player-list-wrap[data-edge-state="middle"]::after,
  .plt-player-list-wrap[data-edge-state="end"]::before {
    position: absolute;
    top: 19px;
    bottom: 8px;
    z-index: 5;
    width: 7px;
    border-radius: 2px;
    content: "";
    pointer-events: none;
  }
  .plt-player-list-wrap[data-edge-state="start"]::after,
  .plt-player-list-wrap[data-edge-state="middle"]::after {
    right: 1px;
    background: linear-gradient(270deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
  }
  .plt-player-list-wrap[data-edge-state="middle"]::before,
  .plt-player-list-wrap[data-edge-state="end"]::before {
    left: var(--plt-market-sticky-width, 142px);
    background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0));
  }
  .plt-market-table-wrap {
    max-height: none;
    overflow-y: visible;
    /* Horizontal overflow computes overflow-y:auto. Allow vertical gestures
       to reach the document when this full-height table cannot scroll itself. */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .plt-market-table-wrap::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .plt-market-table { min-width: 520px; }
  .plt-col-player { width: 142px; }
  .plt-col-mark { width: 112px; }
  .plt-col-actual { width: 60px; }
  .plt-col-projection { width: 82px; }
  .plt-col-ros { width: 124px; }
  .plt-market-table.has-observed { min-width: 588px; }
  .plt-market-table.has-observed .plt-col-player { width: 142px; }
  .plt-market-table.has-observed .plt-col-mark { width: 112px; }
  .plt-market-table.has-observed .plt-col-actual { width: 56px; }
  .plt-market-table.has-observed .plt-col-season { width: 64px; }
  .plt-market-table.has-observed .plt-col-projection { width: 82px; }
  .plt-market-table.has-observed .plt-col-ros { width: 132px; }
  .plt-market-table th,
  .plt-market-table td { padding: 5px 7px; }
  .plt-market-table thead th { position: static; top: auto; white-space: normal; }
  .plt-market-table thead th:first-child { position: sticky; left: 0; top: auto; z-index: 4; }
  .plt-market-table thead th .plt-sort-button {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .plt-market-table thead th .plt-sort-button span { margin-left: 0; }
  .plt-market-table .plt-sort-button,
  .plt-market-table td .plt-stat-sort-value { min-height: 44px; }
  .plt-market-table td .plt-stat-sort-value { width: 100%; min-width: 44px; justify-content: flex-start; padding: 0 2px; }
  .plt-market-details summary,
  .plt-football-details summary,
  .plt-pricing-details summary,
  .plt-observed-details summary { min-height: 44px; display: flex; align-items: center; }
  .plt-player-name { font-size: 14px; }
  .plt-player-meta { gap: 4px; font-size: 11px; }
  .plt-player-state { font-size: 10px; }
  .plt-player-mark { font-size: 14px; }
  .plt-week-actual,
  .plt-week-projection,
  .plt-ros-value-cell strong { font-size: 11px; }
  .plt-ros-value-cell small { font-size: 9px; }
  .plt-position-filters button { min-width: 44px; min-height: 44px; }
  .plt-trade-drawer {
    width: 100%;
    height: min(82dvh, calc(100dvh - 88px));
    max-height: calc(100dvh - 88px);
    align-self: flex-end;
    margin: 0 0 calc(var(--pl-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px));
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 28px #00000066;
  }
  .plt-drawer-head { padding: 12px 13px 9px; }
  .plt-drawer-content { padding: 9px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .plt-order,
  .plt-quote,
  .plt-pending { padding: 10px; }
  .plt-account-summary { margin: 6px 0; }
  .plt-quote-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plt-countdown { align-items: flex-start; flex-direction: column; }
  .plt-countdown small { text-align: left; }
}

@media (max-width: 360px) {
  .plt-market-tools { gap: 6px; }
  .plt-search input,
  .plt-team-filter input,
  .plt-market-sort select,
  .plt-quantity input { padding: 6px 7px; font-size: 16px; }
  .plt-position-filters { gap: 4px; }
  .plt-position-filters button { min-width: 44px; min-height: 44px; padding: 4px 8px; }
  .plt-table-swipe-hint[data-edge-state="start"],
  .plt-table-swipe-hint[data-edge-state="middle"],
  .plt-table-swipe-hint[data-edge-state="end"] { --plt-market-sticky-width: 126px; }
  .plt-player-list-wrap { --plt-market-sticky-width: 126px; }
  .plt-market-table { min-width: 464px; }
  .plt-col-player { width: 126px; }
  .plt-col-mark { width: 112px; }
  .plt-col-actual { width: 56px; }
  .plt-col-projection { width: 70px; }
  .plt-col-ros { width: 100px; }
  .plt-market-table.has-observed { min-width: 524px; }
  .plt-market-table.has-observed .plt-col-player { width: 126px; }
  .plt-market-table.has-observed .plt-col-mark { width: 112px; }
  .plt-market-table.has-observed .plt-col-actual { width: 52px; }
  .plt-market-table.has-observed .plt-col-season { width: 64px; }
  .plt-market-table.has-observed .plt-col-projection { width: 70px; }
  .plt-market-table.has-observed .plt-col-ros { width: 100px; }
  .plt-order-controls { grid-template-columns: minmax(0, 1fr) 90px; gap: 6px; }
  .plt-drawer-head h2 { font-size: 19px; }
}
