:root {
  font-family: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  color: #1d242d;
  background: #f4f5f7;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  --ink: #1d242d;
  --muted: #64707c;
  --line: #e3e7eb;
  --blue: #205bd7;
  --green: #18805a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
select,
textarea {
  outline-offset: 5px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  background: white;
  color: var(--ink);
  font-weight: 600;
}
button:hover:not(:disabled) {
  border-color: #99abc1;
  background: #f5f8fd;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
select {
  background: white;
  border: 1px solid #d9dfe5;
  border-radius: 8px;
  padding: 9px 12px;
  max-width: 100%;
}
.room-header {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand span {
  font-weight: 450;
  color: #73808d;
}
.header-caption {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}
.room-header > a:last-child {
  font-size: 13px;
  white-space: nowrap;
}
.room-header select {
  font-size: 13px;
}
main {
  max-width: 1376px;
  margin: auto;
  padding: 22px 28px 44px;
}
.room-nav {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.room-nav a {
  font-size: 14px;
  padding: 13px 18px;
  border-radius: 10px;
  color: #596674;
  font-weight: 600;
}
.room-nav a span {
  font-size: 11px;
  margin-right: 10px;
  opacity: 0.65;
}
.room-nav a[aria-current] {
  background: var(--ink);
  color: white;
}
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 0 4px 16px;
}
.preview-banner button {
  border: 0;
  padding: 4px 6px;
  background: none;
  font-size: 12px;
  color: var(--muted);
}
.notice {
  font-size: 13px;
  color: var(--blue);
}
.notice:not(:empty) {
  padding: 12px 16px;
  background: #e8efff;
  border-radius: 9px;
  margin: 12px 0;
}
.room-sheet {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 44px;
  box-shadow: 0 6px 32px #162c4f04;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin: 0 0 14px;
  font-weight: 750;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 0 0 10px;
}
h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 15px 0 10px;
}
p {
  line-height: 1.6;
  margin: 0 0 12px;
}
.lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 720px;
}
.total-spend {
  text-align: right;
  white-space: nowrap;
}
.total-spend > strong {
  display: block;
  font-size: 50px;
  letter-spacing: -2px;
  font-weight: 650;
  line-height: 1.2;
}
.total-spend > strong > span {
  font-size: 24px;
  color: #a7afb8;
  letter-spacing: -1px;
}
.total-spend > span {
  font-size: 12px;
  color: var(--muted);
}
.run-note,
.deadline {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f6f8fb;
  padding: 13px 16px;
  font-size: 12px;
  border-radius: 8px;
  line-height: 1.5;
}
.status-dot {
  height: 6px;
  width: 6px;
  min-width: 6px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
}
.status-dot.closed {
  background: #80868c;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0 34px;
  gap: 25px;
}
.feature-strip article {
  border-left: 2px solid #cad5e3;
  padding-left: 17px;
}
.feature-strip .eyebrow {
  color: var(--blue);
}
.feature-strip p:last-child {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
}
.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 12px;
}
.table-heading h2 {
  font-size: 16px;
}
.table-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.receipt-table {
  border-top: 1px solid var(--line);
}
.table-head,
.receipt-row {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr 70px 90px;
  column-gap: 20px;
  align-items: center;
}
.table-head {
  padding: 11px 0;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}
.receipt-row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.receipt-row strong {
  font-weight: 650;
  line-height: 1.4;
}
.receipt-row small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.receipt-row > div:first-child strong {
  font-size: 13px;
}
.receipt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 8px;
}
.receipt-item small span {
  color: #929ca6;
}
.paid-column strong {
  display: block;
  min-height: 44px;
  padding-top: 6px;
}
.remaining {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.remaining strong {
  font-size: 16px;
  font-weight: 550;
}
.remaining meter {
  width: 66px;
  height: 5px;
}
.remaining meter::-webkit-meter-bar {
  border: 0;
  background: #e7edf4;
}
.remaining meter::-webkit-meter-optimum-value {
  background: #a4b5c8;
}
.icon-button {
  padding: 5px 9px;
  font-size: 16px;
  color: #8393a5;
  border: 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
  margin-top: 32px;
}
.impact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  overflow: hidden;
}
.player-band {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -22px -22px 20px;
  background: #f3f5f8;
  padding: 16px 14px 0;
  min-height: 125px;
}
.player-band img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  object-position: bottom;
}
.player-band h2 {
  font-size: 20px;
  margin-bottom: 5px;
}
.player-band p:last-child {
  font-size: 11px;
  color: var(--muted);
}
.player-band .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.tag {
  font-size: 10px;
  color: #486483;
  background: #eff3f8;
  border-radius: 5px;
  padding: 5px 7px;
  font-weight: 600;
}
.impact-card > p {
  font-size: 13px;
  color: #556373;
  line-height: 1.65;
  min-height: 100px;
}
.impact-number {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.impact-number > strong {
  font-size: 29px;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.impact-number > strong span {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 450;
}
.impact-number > div {
  font-size: 11px;
  line-height: 1.5;
}
.impact-number small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.usage-grid strong {
  font-size: 22px;
  font-weight: 600;
  display: block;
}
.usage-grid span {
  font-size: 9px;
  line-height: 1.5;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.impact-card .drop-note {
  font-size: 11px;
  margin: 20px 0 12px;
  min-height: 0;
}
.drop-note strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.text-button {
  border: 0;
  padding: 0;
  color: var(--blue);
  font-size: 12px;
  background: none;
}
.method-note {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.method-note summary,
.sources summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.method-note p {
  margin: 8px 0;
}
.owner-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 15px 4px;
  font-size: 12px;
}
.owner-picker label {
  font-weight: 650;
}
.owner-picker small {
  color: var(--muted);
  font-size: 11px;
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  margin: 30px 0;
}
.vote-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.vote-option {
  position: relative;
  overflow: hidden;
  display: flex;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  min-height: 74px;
  border-radius: 9px;
}
.vote-option:disabled {
  opacity: 1;
}
.vote-option.selected {
  border: 1.5px solid var(--blue);
}
.vote-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #edf3fe;
  pointer-events: none;
}
.vote-copy,
.vote-count {
  position: relative;
}
.vote-copy strong {
  font-size: 14px;
}
.vote-copy small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.vote-count {
  font-size: 19px;
  text-align: right;
  min-width: 35px;
}
.vote-count small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.takes {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.rationale {
  margin: 25px 0;
}
.rationale label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
textarea {
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  width: 100%;
  padding: 12px;
  min-height: 105px;
  resize: vertical;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.rationale > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.rationale small {
  font-size: 10px;
  color: var(--muted);
}
.rationale button {
  font-size: 11px;
  white-space: nowrap;
}
.empty {
  border: 1px dashed #d7dde4;
  border-radius: 10px;
  padding: 26px 20px;
  color: #718091;
  font-size: 13px;
  margin-top: 24px;
}
.empty > span {
  display: block;
  font-family: Georgia, serif;
  font-size: 55px;
  line-height: 0.7;
  color: #c4cfdb;
}
.empty p {
  margin: 0;
}
.next-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.owner-takes blockquote {
  margin: 22px 0;
  padding-left: 14px;
  border-left: 2px solid #c6d5ed;
  font-size: 13px;
}
.owner-takes footer {
  font-size: 10px;
  color: var(--muted);
}
.saved-choice,
.choose-hint {
  font-size: 11px;
  color: var(--blue);
  margin-top: 16px;
}
.matchup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 25px;
}
.matchup-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.matchup-card.selected {
  border-color: var(--blue);
  background: #fbfdff;
}
.match-side {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 88px;
}
.match-side .eyebrow {
  font-size: 9px;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}
.match-side h3 {
  font-size: 17px;
  margin: 0 0 5px;
}
.match-side > div > small {
  font-size: 11px;
  color: var(--muted);
}
.match-side > strong {
  flex: 0 0 5ch;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.8px;
}
.match-side > div {
  flex: 1 1 0;
  min-width: 0;
}
.match-side strong small {
  font-size: 9px;
  display: block;
  text-align: right;
  letter-spacing: 0;
  color: var(--muted);
}
.versus {
  font-size: 8px;
  letter-spacing: 2px;
  color: #a4afba;
  margin: 8px 0;
}
.dog-tag {
  font-size: 8px;
  color: var(--blue);
  white-space: nowrap;
  display: inline-block;
  margin-left: 3px;
}
.matchup-card button {
  margin-top: 20px;
  display: block;
  width: 100%;
  font-size: 12px;
  background: #f5f7fa;
}
.matchup-card.selected button {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.match-margin {
  font-size: 9px;
  color: var(--muted);
  display: block;
  text-align: center;
  margin-top: 9px;
}
.shot-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 55px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.shot-bottom > aside > p {
  font-size: 12px;
  color: var(--muted);
}
.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pickup-recap {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.recap-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  font-size: 13px;
}
.recap-grid small {
  display: block;
  font-size: 10px;
  margin: 7px 0;
  color: var(--muted);
}
.recap-grid p {
  margin: 0;
}
.standings th,
.standings td {
  padding: 13px 5px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.standings th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.standings th:first-child,
.standings td:first-child {
  text-align: left;
}
.submitted-picks {
  font-size: 11px;
  margin-top: 18px;
}
.submitted-picks small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.room-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-size: 11px;
  color: var(--muted);
}
.sources {
  font-size: 11px;
  max-width: 900px;
  color: var(--muted);
  margin: 0 4px;
}
.sources a {
  display: inline-block;
  color: var(--blue);
  margin-right: 18px;
}
.copy-fallback {
  position: fixed;
  z-index: 10;
  bottom: 24px;
  right: 24px;
  background: white;
  padding: 24px;
  box-shadow: 0 12px 70px #1a2d4d30;
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(440px, calc(100vw - 40px));
}
.copy-fallback label {
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.copy-fallback textarea {
  min-height: 180px;
}
.copy-fallback button {
  margin-top: 10px;
}
.loading {
  padding: 80px 30px;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1500px) {
  .room-sheet {
    padding: 44px 50px;
  }
}
@media (max-width: 1000px) {
  .room-header {
    gap: 16px;
    padding: 0 25px;
  }
  .header-caption {
    display: none;
  }
  .room-header select {
    margin-left: auto;
  }
  .room-sheet {
    padding: 30px;
  }
  .impact-grid {
    gap: 13px;
  }
  .impact-card {
    padding: 16px;
  }
  .player-band {
    margin: -16px -16px 20px;
    padding: 12px 8px 0;
  }
  .player-band img {
    width: 88px;
    height: 100px;
  }
  .player-band h2 {
    font-size: 17px;
  }
  .impact-number {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .matchup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .table-head,
  .receipt-row {
    grid-template-columns: 1.1fr 1.4fr 45px 70px;
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .room-header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 14px;
  }
  .brand {
    font-size: 21px;
  }
  .room-header select {
    font-size: 11px;
    max-width: 59%;
    padding: 8px;
  }
  .room-header > a:last-child {
    display: none;
  }
  main {
    padding: 14px 12px 30px;
  }
  .room-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .room-nav a {
    font-size: 12px;
    padding: 11px;
  }
  .room-nav a span {
    font-size: 10px;
  }
  .preview-banner {
    font-size: 10px;
    align-items: flex-start;
    gap: 12px;
  }
  .preview-banner button {
    font-size: 10px;
    max-width: 115px;
    text-align: right;
  }
  .room-sheet {
    padding: 25px 20px;
    border-radius: 12px;
  }
  .section-heading {
    display: block;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.1px;
  }
  .lead {
    font-size: 13px;
  }
  .total-spend {
    text-align: left;
    margin-top: 22px;
  }
  .total-spend > strong {
    font-size: 38px;
  }
  .run-note,
  .deadline {
    font-size: 11px;
    align-items: flex-start;
  }
  .status-dot {
    margin-top: 5px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    gap: 19px;
    margin: 25px 0;
  }
  .feature-strip article {
    padding-left: 14px;
  }
  .feature-strip h2 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .feature-strip .eyebrow {
    margin-bottom: 6px;
  }
  .table-heading {
    align-items: flex-start;
  }
  .table-heading h2 {
    font-size: 14px;
  }
  .table-heading > span {
    font-size: 9px;
    text-align: right;
    max-width: 100px;
  }
  .table-head {
    display: none;
  }
  .receipt-row {
    grid-template-columns: 1fr 65px;
    padding: 17px 0;
    row-gap: 8px;
  }
  .receipt-row > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .receipt-row .remaining {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-end;
  }
  .team-moves {
    grid-column: 1;
    grid-row: 2;
  }
  .paid-column {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .remaining meter {
    width: 50px;
  }
  .receipt-row strong {
    font-size: 12px;
  }
  .receipt-item {
    gap: 4px;
  }
  .receipt-item small {
    font-size: 10px;
  }
  .receipt-item small span {
    display: block;
  }
  .receipt-item,
  .paid-column strong {
    min-height: 58px;
  }
  .receipt-row .remaining strong {
    font-size: 16px;
  }
  .receipt-row .muted {
    font-size: 11px;
  }
  .receipt-item .icon-button {
    font-size: 15px;
    padding: 4px;
  }
  .impact-grid,
  .verdict-grid,
  .shot-bottom {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .impact-card {
    padding: 23px;
  }
  .player-band {
    margin: -23px -23px 23px;
    padding: 14px 20px 0;
  }
  .player-band img {
    width: 115px;
    height: 115px;
  }
  .player-band h2 {
    font-size: 24px;
  }
  .impact-card > p {
    min-height: 0;
  }
  .impact-number {
    flex-direction: row;
    gap: 20px;
  }
  .usage-grid span {
    font-size: 10px;
  }
  .owner-picker {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .owner-picker small {
    flex-basis: 100%;
    font-size: 10px;
  }
  .owner-picker select {
    font-size: 12px;
    max-width: 80%;
  }
  .takes {
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .matchup-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .match-side h3 {
    font-size: 19px;
  }
  .match-side .eyebrow {
    font-size: 10px;
  }
  .match-side > strong {
    font-size: 28px;
  }
  .shot-bottom {
    margin-top: 28px;
  }
  .room-footer {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .room-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .standings {
    font-size: 11px;
  }
  .standings th {
    font-size: 9px;
  }
}
/* Native receipt rows keep each transaction and its price together. */
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.receipt-table .table-head {
  display: table-header-group;
}
.receipt-table .table-head th {
  padding: 11px 10px;
  text-align: left;
}
.receipt-table .table-head th:nth-child(1) {
  width: 31%;
}
.receipt-table .table-head th:nth-child(2) {
  width: 43%;
}
.receipt-table .table-head th:nth-child(3) {
  width: 12%;
}
.receipt-table .receipt-row {
  display: table-row;
}
.receipt-table .receipt-row > :is(th, td) {
  padding: 12px 10px;
  vertical-align: top;
}
.receipt-table .receipt-row:not(.team-first) {
  border-top: 0;
}
.receipt-table .receipt-team {
  font-weight: 400;
  text-align: left;
}
.receipt-table .paid-column strong {
  min-height: 0;
  padding-top: 6px;
}
.phone-amount-label {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .receipt-table {
    display: block;
  }
  .receipt-table .table-head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .receipt-table tbody {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .receipt-table .receipt-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    border: 0;
    padding: 0;
  }
  .receipt-table .receipt-row > :is(th, td) {
    padding: 4px 0;
    min-width: 0;
  }
  .receipt-table .receipt-team {
    grid-column: 1;
    grid-row: 1;
  }
  .receipt-table .remaining-cell {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .receipt-table .remaining {
    align-items: flex-end;
  }
  .receipt-table .remaining strong {
    font-size: 14px;
  }
  .receipt-table .remaining .phone-amount-label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
  }
  .receipt-table .team-moves {
    grid-column: 1;
    grid-row: auto;
  }
  .receipt-table .paid-column {
    grid-column: 2;
    grid-row: auto;
    align-self: center;
    text-align: right;
    white-space: nowrap;
  }
  .receipt-table .team-first .team-moves,
  .receipt-table .team-first .paid-column {
    grid-row: 2;
  }
  .receipt-table .paid-column strong {
    padding: 0;
  }
  .receipt-table .receipt-item {
    min-height: 44px;
  }
  .phone-amount-label {
    display: inline;
  }
}

/* Header controls keep each surface's typography and alignment. */
.table-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 0.35em;
  max-width: 100%;
  min-height: 1.8em;
  padding: 0.12em 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.table-sort-button:hover {
  color: var(--accent, #168a74);
}
.table-sort-button:focus-visible {
  outline: 2px solid var(--ring, #168a74);
  outline-offset: 3px;
}
.table-sort-indicator {
  flex: 0 0 auto;
  font-size: 0.9em;
  opacity: 0.5;
}
[aria-sort="ascending"] .table-sort-indicator,
[aria-sort="descending"] .table-sort-indicator {
  opacity: 1;
}
