.sell-through-page {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
/* Commander and older calculators also share the Sales pace column control. */
.tev-sell-header .acr-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tev-sell-header .acr-sort-button__indicator::before { content: "\2195"; }
.tev-sell-header [data-sort-state="asc"] .acr-sort-button__indicator::before { content: "\25b2"; }
.tev-sell-header [data-sort-state="desc"] .acr-sort-button__indicator::before { content: "\25bc"; }
.sell-through-page h1 {
  margin-bottom: 10px;
}
.sell-through-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin: 22px 0;
}
.sell-through-controls label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}
.sell-through-controls input,
.sell-through-controls select {
  min-height: 40px;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid #44515c;
  border-radius: 7px;
  color: inherit;
  background: #15202a;
}
.sell-through-controls button,
.sell-through-link {
  padding: 10px 14px;
  border: 1px solid #446d64;
  border-radius: 7px;
  background: #174638;
  color: #f4fbf8;
  text-decoration: none;
}
.sell-through-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.sell-through-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.sell-through-table th,
.sell-through-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #34414a;
  text-align: left;
  vertical-align: top;
}
.sell-through-table th {
  white-space: nowrap;
}
.sell-through-table small,
.sell-through-muted {
  display: block;
  color: #abb8c4;
  font-size: 0.81rem;
  line-height: 1.5;
}
.sell-through-table td:not(:first-child) {
  min-width: 110px;
}
.sell-through-note {
  padding: 16px 18px;
  border: 1px solid #3a4e59;
  border-radius: 10px;
  margin: 18px 0;
  background: #14222b;
}
.sell-through-empty {
  padding: 28px;
  border: 1px dashed #576877;
  border-radius: 10px;
}
.sell-through-chart {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #486171;
  border-radius: 12px;
  background: #15212b;
  color: #eef3f7;
}
.sell-through-chart h2 { margin: 6px 0 12px; }
.sell-through-chart p { line-height: 1.6; overflow-wrap: anywhere; }
.sell-through-chart-basis,
.sell-through-chart-coverage { color: #c1d0da; font-size: 0.9rem; }
.sell-through-chart-plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.sell-through-chart figure { margin: 12px 0 0; min-width: 0; }
.sell-through-chart figcaption { font-weight: 600; }
.sell-through-chart svg { display: block; width: 100%; max-width: 600px; margin: 0 auto; }
.sell-through-chart svg text { fill: #d3dde5; font: 13px system-ui, sans-serif; }
.sell-chart-grid { stroke: #3a4e59; stroke-width: 1; }
.sell-chart-band { fill: #64d8af; fill-opacity: 0.14; }
.sell-chart-slow { fill: none; stroke: #72e3bb; stroke-width: 2.5; }
.sell-chart-fast { fill: none; stroke: #eacb80; stroke-width: 2; stroke-dasharray: 6 4; }
.sell-chart-point { fill: #72e3bb; }
.sell-through-chart-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 0.9rem; }
.sell-through-chart-legend span::before {
  content: "";
  display: inline-block;
  width: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border-top: 3px solid #72e3bb;
}
.sell-through-chart-legend .sell-chart-key-fast::before { border-top: 3px dashed #eacb80; }
.sell-through-chart-values summary { padding: 12px 0; cursor: pointer; }
.sell-through-chart-values summary:focus-visible { outline: 2px solid #eacb80; outline-offset: 3px; }
.sell-through-chart-values caption { text-align: left; padding: 12px 0; color: #c1d0da; }
.sell-through-chart-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sell-through-chart-table th,
.sell-through-chart-table td { text-align: left; padding: 12px; border-bottom: 1px solid #34414a; }
@media (max-width: 800px) {
  .sell-through-chart { padding: 14px; }
  .sell-through-chart-plots { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
.tev-sell-through {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #486171;
  border-radius: 12px;
  background: var(--card, #15212b);
  color: var(--text, #eef3f7);
}
.tev-sell-through h2 {
  margin: 0 0 9px;
  font-size: 1.25rem;
}
.tev-sell-through p {
  font-size: 0.9rem;
  line-height: 1.55;
}
.tev-sell-through-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.tev-sell-through-grid > div {
  padding: 10px;
  background: #0d1921;
  border-radius: 8px;
}
.tev-sell-through-grid strong,
.tev-sell-through-grid small {
  display: block;
}
.tev-sell-badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
  background: #263947;
  color: #e3eaf0;
}
.tev-sell-badge[data-rating="Fast"] {
  background: #154a37;
  color: #b2f3d1;
}
.tev-sell-badge[data-rating="Not selling"] {
  background: #443b30;
  color: #f1d0a4;
}
#evTable .tev-sell-cell {
  min-width: 185px;
  max-width: 260px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
.tev-sell-cell,
.tev-sell-mobile,
.tev-sell-deck-cards,
details.tev-sell-evidence {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  text-shadow: none;
}
.tev-sell-cell small,
.tev-sell-mobile > small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-top: 8px;
  color: #d3dde5;
}
.tev-sell-cell .tev-sell-weekly,
.tev-sell-mobile .tev-sell-weekly {
  color: #f0f5f8;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Evidence stays readable inside numeric tables and compact mobile cards. */
details.tev-sell-evidence {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid #405361;
  border-radius: 9px;
  background: #14212b;
  color: #e7eef4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}
details.tev-sell-evidence > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #edf4f8;
  font: 600 0.8125rem/1.5 system-ui, sans-serif;
  text-align: left;
  list-style: none;
  cursor: pointer;
}
details.tev-sell-evidence > summary::-webkit-details-marker {
  display: none;
}
details.tev-sell-evidence > summary::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #a9bdcc;
  border-bottom: 2px solid #a9bdcc;
  transform: rotate(45deg);
}
details.tev-sell-evidence[open] > summary {
  border-bottom: 1px solid #405361;
  border-radius: 8px 8px 0 0;
  background: #1d303e;
}
details.tev-sell-evidence[open] > summary::after {
  transform: rotate(225deg);
}
details.tev-sell-evidence > summary:hover {
  background: #263e4e;
}
details.tev-sell-evidence > summary:focus-visible {
  outline: 2px solid #eacb80;
  outline-offset: 3px;
}
details.tev-sell-evidence > small {
  display: block;
  margin: 0 12px;
  padding: 10px 0;
  color: #d3dde5;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 1;
}
details.tev-sell-evidence > small + small {
  border-top: 1px solid #2d404e;
}
.tev-sell-premium {
  display: block;
  font-size: 0.72rem;
  color: #eacb80;
  margin-top: 5px;
}
.tev-sell-mobile {
  margin: 8px 0 0;
}
/* A single disclosure keeps observed pace and recovery status scannable. */
details.tev-sell-pace { margin: 0; border-color: transparent; background: transparent; }
details.tev-sell-pace > summary { padding: 5px 7px; gap: 8px; }
details.tev-sell-pace .tev-sell-weekly { display: block; font-size: 0.875rem; line-height: 1.4; color: #f0f5f8; }
details.tev-sell-pace .tev-sell-badge { margin-top: 3px; padding: 1px 0; background: transparent; font-size: 0.75rem; font-weight: 400; color: #c1d0da; }
details.tev-sell-pace .tev-sell-badge[data-rating="Fast"] { color: #b2f3d1; }
details.tev-sell-pace .tev-sell-badge[data-rating="Not selling"] { color: #f1d0a4; }
details.tev-sell-pace[open] { border-color: #405361; background: #14212b; }
details.tev-sell-pace > .tev-sell-premium { margin: 10px 12px; }
.tev-sell-through > details { border: 0; border-top: 1px solid #34414a; border-radius: 0; background: transparent; }
.tev-sell-through > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; box-sizing: border-box; padding: 10px 0; cursor: pointer; font-size: 0.875rem; color: #d3dde5; list-style: none; }
.tev-sell-through > details > summary::-webkit-details-marker { display: none; }
.tev-sell-through > details > summary::after { content: '+'; flex: 0 0 auto; font-size: 1.1rem; }
.tev-sell-through > details[open] > summary::after { content: '−'; }
.tev-sell-through > details > summary:focus-visible { outline: 2px solid #eacb80; outline-offset: 3px; }
.tev-sell-through .tev-sell-intro { margin: 0; color: #c1d0da; }
.tev-sell-reading-guide { padding: 10px 12px; border-left: 3px solid #72e3bb; background: #0d1921; }
.tev-sell-reading-guide strong { display: block; }
.tev-sell-cumulative { margin: 18px 0 10px; padding: 12px; border: 1px solid #34414a; border-radius: 8px; background: #0d1921; }
.tev-sell-cumulative figcaption { font-size: 0.9rem; font-weight: 600; color: #eef3f7; }
.tev-sell-cumulative svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; overflow: visible; }
.tev-sell-cumulative svg text { fill: #c1d0da; font: 16px system-ui, sans-serif; }
.tev-sell-chart-grid { stroke: #34414a; stroke-width: 1; }
.tev-sell-chart-slow, .tev-sell-chart-fast { fill: none; stroke-width: 2.5; }
.tev-sell-chart-slow { stroke: #72e3bb; stroke-dasharray: 8 4; }
.tev-sell-chart-fast { stroke: #eacb80; stroke-dasharray: 3 4; }
.tev-sell-chart-point-low { fill: #72e3bb; }
.tev-sell-chart-point-high { fill: #eacb80; }
.tev-sell-cumulative .tev-sell-chart-axis { margin: 0; text-align: center; font-size: 0.8rem; color: #c1d0da; }
.tev-sell-cumulative .tev-sell-chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 8px 0 0; font-size: 0.8rem; color: #eef3f7; }
.tev-sell-chart-legend span::before { content: ''; display: inline-block; width: 22px; margin-right: 7px; vertical-align: middle; border-top: 3px dashed #72e3bb; }
.tev-sell-chart-legend .tev-sell-key-fast::before { border-color: #eacb80; border-top-style: dotted; }
.tev-sell-through-grid strong { margin-top: 5px; font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tev-sell-through-grid small { color: #c1d0da; }
.tev-sell-coverage { color: #c1d0da; }
.tev-sell-coverage strong { color: #eef3f7; font-weight: 600; }
.tev-sell-compare { display: inline-block; margin-top: 12px; font-size: 0.875rem; }
.tev-sell-pro-label { display: block; color: #c1d0da; font: 400 0.75rem/1.4 system-ui, sans-serif; }
.tev-sell-unlock { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #eacb80; font: 500 0.8125rem/1.4 system-ui, sans-serif; }
.tev-sell-unlock:focus-visible { outline: 2px solid #eacb80; outline-offset: 3px; }
#evTable .tev-sell-cell.tev-sell-locked { vertical-align: middle; }
.tev-sell-deck-cards {
  display: none;
}
@media (max-width: 799px) {
  .tev-sell-deck-cards {
    display: block;
    margin-top: 18px;
  }
  .tev-sell-deck-cards summary {
    cursor: pointer;
  }
  .tev-sell-deck-cards article {
    padding: 14px 0;
    border-bottom: 1px solid #34414a;
  }
  .tev-sell-deck-cards strong,
  .tev-sell-deck-cards small {
    display: block;
    margin-bottom: 7px;
  }
}
@media (max-width: 700px) {
  .tev-sell-through { padding: 14px; }
  .tev-sell-through p { margin: 10px 0; font-size: 0.85rem; }
  .magic-sell-through-page main { padding-inline: 10px; }
  .sell-through-page {
    padding: 18px 0 40px;
  }
  .sell-through-chart svg text { font-size: 16px; }
  .tev-sell-through-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tev-sell-through-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 10px; border-radius: 0; border-bottom: 1px solid #34414a; }
  .tev-sell-through-grid strong { margin: 0; text-align: right; font-size: 0.95rem; }
  .sell-through-controls label {
    flex: 1 1 140px;
  }
  .sell-through-controls input,
  .sell-through-controls select {
    max-width: 100%;
    width: 100%;
  }
}
