.touch-scoresheet, .touch-scoresheet * { box-sizing: border-box; }
.touch-scoresheet { width: 100%; min-width: 0; }
.touch-scoresheet .dedicated-scoresheet-card { padding: 12px; min-width: 0; }
.touch-scoresheet .league-scorecard { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 16px; }
.touch-scoresheet .league-scorecard-title { grid-column: 1 / -1; }
.touch-scoresheet .scoresheet-editor { min-width: 0; padding: 0; border: 0; margin: 0; }
.touch-scoresheet .touch-session { width: 100%; min-width: 0; border-radius: 8px; }
.touch-scoresheet .league-session-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; background: #103354; gap: 8px; }
.touch-scoresheet .league-session-head strong { font-size: 16px; text-transform: uppercase; }
.touch-scoresheet [data-session-score] { font-size: 20px; font-weight: 800; white-space: nowrap; }
.touch-scoresheet .league-session-labels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 9px 0; background: #e9eff5; text-align: center; font-size: 12px; color: #132b40; }
.touch-scoresheet .touch-frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; gap: 0; background: #fff; border-top: 1px solid #d6e0e9; min-width: 0; }
.touch-scoresheet .league-frame-number { display: none; }
.touch-scoresheet .touch-frame > input { display: none; }
.touch-scoresheet .touch-frame .league-frame-player-name { display: grid; grid-template-columns: 24px 18px minmax(0, 1fr) 36px; grid-column: 1; grid-row: 1; align-items: center; gap: 6px; min-height: 66px; width: 100%; min-width: 0; padding: 8px; border: 0; border-radius: 0; background: #fff; text-align: left; font-size: 14px; font-weight: 500; color: #142f41; }
.touch-scoresheet .touch-frame .league-frame-player-name.away { grid-template-columns: 36px minmax(0, 1fr) 18px 24px; grid-column: 2; grid-row: 1; border-left: 1px solid #d6e0e9; text-align: right; }
.touch-scoresheet [data-rack-player-label] { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.touch-scoresheet .league-frame-position { font-size: 12px; color: #5b7180; }
.touch-scoresheet .touch-frame .league-score-button { display: grid; place-items: center; width: 36px; min-width: 36px; height: 40px; min-height: 40px; padding: 0; margin: 0; background: #edf2f6; color: #142f41; border: 0; border-radius: 6px; font-size: 20px; font-weight: 800; }
.touch-scoresheet .touch-frame .is-winner { background: #def8e9; color: #09552d; font-weight: 800; }
.touch-scoresheet .touch-frame .is-winner .league-score-button { background: #009e58; color: #fff; }
.touch-scoresheet .touch-frame .break-ball { width: 24px; height: 24px; min-width: 24px; }
.touch-scoresheet .touch-frame .break-ball:not(.active) { visibility: hidden; }
.touch-scoresheet .touch-frame .league-frame-special-cell { grid-row: 2; padding: 6px 8px; min-width: 0; background: #f4f7fa; border-top: 1px dashed #d6e0e9; }
.touch-scoresheet .touch-frame .league-home-special { grid-column: 1; }
.touch-scoresheet .touch-frame .league-away-special { grid-column: 2; }
.touch-scoresheet .touch-frame .league-frame-special-cell label { display: flex; gap: 5px; align-items: center; min-width: 0; margin: 0; font-size: 10px; white-space: nowrap; }
.touch-scoresheet .league-away-special label { justify-content: flex-end; }
.touch-scoresheet .touch-frame .league-frame-special { width: 60px; min-width: 60px; max-width: 70px; min-height: 36px; padding: 4px; margin: 0; font-size: 14px; }
.touch-scoresheet .touch-frame .league-frame-more { grid-column: 1 / -1; grid-row: 3; min-width: 0; padding: 0 8px; background: #f4f7fa; }
.touch-scoresheet .league-frame-more summary { min-height: 26px; font-size: 11px; cursor: pointer; }
.touch-scoresheet .league-frame-more-grid { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 10px; }
.touch-scoresheet .league-frame-more-grid input, .touch-scoresheet .league-frame-more-grid select { min-width: 0; width: 100%; }
.touch-scoresheet .league-progressive { display: flex; justify-content: space-between; padding: 12px; border-top: 2px solid #103354; text-transform: uppercase; font-size: 14px; color: #142f41; }
.scoresheet-sync-status { align-self: center; color: #18663c; font-size: 13px; }
.scoresheet-sync-status[data-pending="true"] { color: #965400; }
.scoresheet-sync-status button { padding: 5px 8px; margin-left: 8px; font-size: 12px; }
@media (min-width: 1500px) {
  .touch-scoresheet .league-scorecard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.signed-in.module-open .workspace, body.signed-in.module-open #workspace-content { min-width: 0; }
  .touch-scoresheet .dedicated-scoresheet-card { padding: 0; border: 0; }
  .touch-scoresheet .league-scoresheet-hero { padding: 14px; }
  .touch-scoresheet .league-hero-teams strong { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
  .touch-scoresheet .scoresheet-header { display: none; }
  .touch-scoresheet .league-scorecard-title { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 10px 6px; font-size: 13px; }
  .touch-scoresheet .league-scorecard-title strong { overflow-wrap: anywhere; text-align: center; }
  .touch-scoresheet .league-scorecard-title span { min-width: 68px; font-size: 20px; padding: 8px; }
  .touch-scoresheet .scoresheet-format-panel summary { width: 100%; justify-content: center; }
  .touch-scoresheet .form-section { padding: 8px; min-width: 0; }
  .touch-scoresheet .touch-frame .league-frame-player-name { grid-template-columns: 20px 14px minmax(0, 1fr) 30px; gap: 4px; padding: 7px 5px; font-size: 13px; }
  .touch-scoresheet .touch-frame .league-frame-player-name.away { grid-template-columns: 30px minmax(0, 1fr) 14px 20px; }
  .touch-scoresheet .touch-frame .league-score-button { width: 30px; min-width: 30px; height: 38px; min-height: 38px; font-size: 20px; }
  .touch-scoresheet .touch-frame .break-ball { transform: scale(.83); transform-origin: center; margin-left: -2px; }
  .touch-scoresheet .touch-frame .league-frame-special-cell { padding: 5px; }
  .touch-scoresheet .touch-frame .league-frame-special-cell label { font-size: 9px; gap: 3px; }
  .touch-scoresheet .touch-frame .league-frame-special { width: 56px; min-width: 56px; }
  .touch-scoresheet .league-frame-more-grid { grid-template-columns: minmax(0, 1fr); }
}
