.side-pot-payout-editor { margin: 1rem 0; padding: 1rem; border: 1px solid #5b4720; border-radius: 8px; }
.side-pot-payout-editor > summary { cursor: pointer; font-weight: 700; }
.side-pot-payout-editor p { font-size: .9rem; line-height: 1.5; }
.side-pot-payout-editor input { min-width: 8rem; max-width: 12rem; }
.side-pot-payout-editor form > button { margin-top: .75rem; }
.side-pot-result-card { min-width: 0; }
.side-pot-payout-editor .table-wrap { overflow-x: auto; max-width: 100%; }
.side-pot-payout-editor table { min-width: 440px; table-layout: auto; }
.side-pot-payout-editor th, .side-pot-payout-editor td { width: auto; }
.side-pot-eligibility-note { color: var(--muted); font-size: .84rem; line-height: 1.5; margin: .4rem 0 .9rem; }
.side-pot-setup-card { min-width: 0; }
.side-pot-setup-card .inline-check { align-items: start; line-height: 1.35; }
.side-pot-result-card h2 { white-space: normal; font-size: clamp(1.15rem, 2vw, 1.5rem); }
#sidePotForm { min-width: 0; }
.side-pot-entry-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.side-pot-entry-table { min-width: 1080px; }
.side-pot-entry-table th:first-child, .side-pot-entry-table td:first-child { min-width: 180px; }
.side-pot-entry-table th:first-child, .side-pot-entry-table td:first-child { position: sticky; left: 0; z-index: 1; background: #08101a; }
.side-pot-entry-table th:not(:first-child):not(:last-child) { min-width: 105px; }
.side-pot-entry-table th:nth-child(2) { min-width: 70px; }
.side-pot-entry-table .side-pot-division { font-size: .85rem; }
.side-pot-entry-table [data-starting-lane] { min-width: 110px; max-width: 125px; text-align: center; }
.side-pot-squad { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.side-pot-ineligible { display: block; color: var(--muted); font-size: .65rem; margin-top: .25rem; white-space: nowrap; }
.side-pot-entry-table input:disabled { opacity: .45; cursor: not-allowed; }
.side-pot-paid-label { display: block; font-size: .72rem; margin-top: .45rem; }
.side-pot-paid-label[hidden] { display: none; }
.side-pot-entry-table [data-side-pot-paid] { min-width: 100px; max-width: 115px; margin-top: .25rem; }
.side-pot-apply-fee { font-size: .74rem; line-height: 1.35; padding: .55rem .7rem; margin: .15rem 0 .75rem; white-space: normal; }
.side-pot-entry-totals { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.side-pot-entry-totals small { display: block; color: var(--muted); margin-top: .3rem; }
.side-pot-progressive-setup { border-color: rgba(244,197,66,.5); }
.side-pot-fixed-fee { color: var(--yellow); font-size: 1.15rem; margin: .8rem 0; }
.side-pot-progressive-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
.side-pot-progressive-summary strong { font-size: clamp(1rem,2vw,1.5rem); }
.side-pot-progressive-result .side-pot-eligibility-note a { color: var(--yellow); }
.side-pot-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.side-pot-result-card .payout-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.side-pot-result-card > .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.side-pot-result-card .side-pot-standings-table { width: 100%; min-width: 32rem; table-layout: auto; }
.side-pot-result-card .side-pot-standings-table th,
.side-pot-result-card .side-pot-standings-table td { width: auto; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.side-pot-result-card .side-pot-standings-table th:nth-last-child(3),
.side-pot-result-card .side-pot-standings-table td:nth-last-child(3) { min-width: 13rem; }
.side-pot-result-card .side-pot-entrant-list li { overflow-wrap: normal; word-break: normal; }
@media (max-width: 1100px) {
  .side-pot-results-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .side-pot-entry-table tbody td:last-child { grid-column: 1 / -1; white-space: nowrap; }
  .side-pot-setup-grid, .side-pot-results-grid { grid-template-columns: minmax(0, 1fr); }
  .side-pot-entry-table th, .side-pot-entry-table td { padding: .7rem .5rem; }
}
@media print {
  .side-pot-payout-editor { display: none !important; }
  .side-pot-results-grid { display: block; }
  .side-pot-result-card { margin-bottom: 1rem; }
  .side-pot-result-card > .table-wrap { overflow: visible; }
  .side-pot-result-card .side-pot-standings-table { min-width: 0; }
  .side-pot-result-card .side-pot-standings-table th,
  .side-pot-result-card .side-pot-standings-table td { min-width: 0; white-space: normal; }
  .side-pot-result-card .side-pot-standings-table tr { break-inside: avoid; }
  .side-pot-result-card h2, .side-pot-payout-heading { break-after: avoid; }
}
