.event-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.bracket-placement {
  padding: 6px 10px;
  background: #eaf3e6;
  color: #416d47;
  font-size: 11px;
  font-weight: 600;
  border-top: 1px solid #dfeadb;
  border-bottom: 1px solid #dfeadb;
}

.group-placement-summary {
  padding: 10px 12px;
  border: 1px solid #dce8d7;
  border-radius: 8px;
  background: #f5faf2;
  color: #376647;
  font-size: 12px;
  line-height: 1.6;
}

.second-draw-grid { display: grid; gap: 10px; margin-top: 18px; }
.second-draw-row { border: 1px solid #dfe9dc; border-radius: 10px; background: #f8fbf6; padding: 12px 14px; }
.second-draw-row > strong { display: block; color: #315f43; font-size: 12px; margin-bottom: 9px; }
.second-draw-row > div { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 9px; align-items: end; }
.second-draw-row > div > span { text-align: center; padding-bottom: 11px; color: #8da28d; }
.second-draw-row .field { min-width: 0; }
.second-draw-row select { min-width: 0; }
@media (max-width: 480px) { .second-draw-row { padding: 10px; } .second-draw-row > div { gap: 4px; grid-template-columns: minmax(0, 1fr) 15px minmax(0, 1fr); } .second-draw-row select { font-size: 11px; padding: 8px 4px; } }
.tournament-manage-list { display: grid; gap: 9px; margin-top: 18px; }
.tournament-manage-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid #e2e9da; border-radius: 9px; background: #fbfcf9; }
.tournament-manage-item strong { display: block; color: #415d3b; font-size: 13px; overflow-wrap: anywhere; }
.tournament-manage-item small { display: block; margin-top: 5px; color: #84967b; font-size: 10px; line-height: 1.5; }
.tournament-manage-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.tournament-manage-actions .btn { padding: 7px 11px; }
.banner-control .btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; margin-top: 8px; padding: 7px 10px; font-size: 11px; background: #fff; color: #426c3d; border: 1px solid #d7e1cc; }
.edit-tournament-note { margin-top: 18px; }
.edit-reschedule-confirm { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 12px; border: 1px solid #e9d5a1; border-radius: 8px; background: #fffaf0; color: #74551d; font-size: 12px; cursor: pointer; }
.edit-reschedule-confirm input { width: auto; margin-top: 2px; accent-color: var(--green); }
.delete-tournament-btn { flex: none; color: #a74138; border: 1px solid #e8c3bf; background: #fff8f7; }
.delete-tournament-btn:hover:not(:disabled) { color: #fff; border-color: #a74138; background: #a74138; }
.delete-tournament-btn:disabled { opacity: .5; cursor: not-allowed; }
.event-choice { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid #dfe7d8; border-radius: 7px; background: #f8faf6; font-size: 12px; cursor: pointer; }
.event-choice input { width: auto; accent-color: var(--green); }
.inline-controls { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.inline-controls select { min-width: 130px; }
.ordered-event-list { display: grid; gap: 7px; margin-top: 9px; }
.ordered-event-row { display: grid; grid-template-columns: 28px minmax(130px, 1fr) auto auto auto; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #dfe7d8; border-radius: 7px; background: #f8faf6; }
.ordered-event-row > span { color: var(--muted); font-weight: 700; }
.relay-rules { grid-column: 1 / -1; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px 9px; padding: 14px; }
.group-stage { border-top: 1px solid var(--line, #e6eae4); padding: 0 0 4px; }
.group-stage:first-child { border-top: 0; padding-top: 0; }
.group-stage > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 16px 20px; }
.group-stage > header h3 { margin: 0; font-size: 16px; }
.group-stage > header span { color: var(--muted, #737b73); font-size: 13px; }
.group-stage .round-section { margin-top: 12px; }
@media (max-width: 760px) { .group-stage > header { padding: 14px 16px; } }
.court-grid.full-courts { padding: 0; margin: 18px 0; }
.court-access-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.court-access-row .mono { user-select: text; }
.court-access-tools { flex-wrap: wrap; }
.team-access-list{display:grid;gap:9px;margin-top:18px}.team-access-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #dfE8df;border-radius:10px;background:#fafcf8}.team-access-row>div:first-child{min-width:0}.team-access-row strong{font-size:13px;display:block;overflow-wrap:anywhere}.team-access-row .mono{display:block;font-family:Consolas,monospace;font-size:13px;color:#54785d;margin-top:5px;user-select:text}.team-access-tools{flex-wrap:wrap}.team-portal-url{margin-top:16px}.team-access-row .actions{justify-content:flex-end}
.team-submission-summary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.team-submission-summary>span{padding:5px 9px;border:1px solid #e2eadc;border-radius:6px;color:#71916a;font-size:11px;background:#f6faf3}
@media(max-width:600px){.team-access-row{align-items:flex-start;flex-direction:column}.team-access-row .actions{justify-content:flex-start}}
@media(max-width:480px){.topbar{gap:12px}.topbar .breadcrumb{min-width:0}.topbar .breadcrumb>span:first-child,.topbar .breadcrumb>.icon{display:none}}
.match-signatures-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.match-signature-card{min-width:0;border:1px solid #dfe8df;border-radius:12px;overflow:hidden;background:#fff}
.match-signature-card>header{padding:16px;background:#f7faf6;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.signature-party-label{font-size:11px;border-radius:5px;padding:3px 8px;background:#e6f1e8;color:#276847}.signature-party-label.loser{background:#eef1f5;color:#69798a}
.match-signature-card h3{font-size:14px;font-weight:600;overflow-wrap:anywhere}.signature-saved-status{font-size:11px;color:#82927f;margin-left:auto}
.match-signature-preview{height:210px;display:grid;place-items:center;padding:18px;background:#fff}.match-signature-preview img{display:block;width:100%;height:100%;object-fit:contain;min-height:0;min-width:0}.match-signature-preview p{font-size:12px;color:#9ba99b}
.match-signature-card>footer{border-top:1px solid #edf1eb;padding:10px 16px;font-size:10px;color:#8a9c88}
@media(max-width:600px){.match-signatures-grid{grid-template-columns:1fr}.match-signature-preview{height:180px}}
.full-courts .court-card-head,
.full-courts .court-meta,
.full-courts .court-bottom { padding-inline: 16px; }
@media (max-width: 760px) {
  .full-courts .court-card-head,
  .full-courts .court-meta,
  .full-courts .court-bottom { padding-inline: 14px; }
}
.schedule-time-group { padding: 14px 0 2px; border-top: 1px solid #e5ebdf; }
.schedule-time-group:first-of-type { border-top: 0; }
.schedule-time-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 20px 12px; color: #72836d; font-size: 11px; }
.schedule-time-head > div { display: flex; align-items: baseline; gap: 10px; }
.schedule-time-head strong { color: #365f3a; font-size: 17px; font-variant-numeric: tabular-nums; }
.schedule-time-head span { overflow-wrap: anywhere; }
.match-stage-label { display: block; margin-top: 4px; color: #83987b; font-size: 11px; }
.schedule-time-group .table-wrap { margin-bottom: 10px; }
.relay-rules > .icon, .relay-rules > span { grid-row: 1; }
.relay-rules > span { line-height: 1.7; }
.relay-rules > .relay-config, .relay-rules > .relay-position-section, .relay-rules > .relay-rounds { grid-column: 1 / -1; min-width: 0; }
.relay-config, .relay-position-grid, .relay-roster-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 9px; }
.relay-position-section { border-top: 1px solid #e2e9da; padding-top: 11px; color: #708663; font-size: 11px; }
.relay-position-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.relay-position { min-width: 0; }
.relay-position select, .relay-round-row select { width: 100%; min-width: 0; }
.relay-position select { padding-inline: 7px; }
.relay-rounds { display: grid; gap: 8px; margin-top: 2px; border-top: 1px solid #e2e9da; padding-top: 11px; color: #708663; font-size: 11px; }
.relay-rounds > p { margin-top: -5px; color: #9aa692; font-size: 10px; }
.relay-round-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid #e2e9da; border-radius: 7px; background: #fff; }
.relay-round-row > strong { white-space: nowrap; }
.relay-side-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.relay-round-row select { padding: 8px 5px; font-size: 11px; }
.relay-round-vs { text-align: center; color: #9aa692; }
.relay-roster-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lineup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lineup-side { min-width: 0; border: 1px solid #e1e9db; border-radius: 8px; padding: 13px; background: #fbfcfa; }
.lineup-side h3 { color: #506b41; font-size: 13px; font-weight: 600; }
.lineup-side > p { color: #9aa692; font-size: 10px; margin-top: 4px; }
.lineup-positions { display: grid; gap: 8px; margin-top: 12px; }
.lineup-positions .field { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; }
.lineup-positions select { min-width: 0; }
.roster-line { display: block; color: var(--muted); margin-top: 4px; max-width: 520px; white-space: normal; }
.current-stage { background: #dcebd2 !important; color: var(--green-dark) !important; font-weight: 650; }
.relay-player-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
.team-table-details { margin-top: 7px; min-width: 290px; }
.team-table-details summary { color: #59814c; font-size: 11px; cursor: pointer; }
.team-table-details .team-rubber-list { min-width: 430px; margin-top: 8px; }
.team-rubber-list { display: grid; gap: 7px; margin: 12px 0; }
.team-rubber-row { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(125px, 1.35fr) 22px minmax(125px, 1.35fr) minmax(95px, auto); align-items: center; gap: 7px; padding: 10px; border: 1px solid #e1e8da; border-radius: 8px; background: #fbfcf9; color: #607158; font-size: 11px; }
.team-rubber-row.current { border-color: #94b584; background: #f2f8ed; }
.team-rubber-row.forfeited { border-color: #e5cabd; background: #fff9f5; }
.team-rubber-row strong { color: #41643a; }
.team-rubber-row span { overflow-wrap: anywhere; }
.team-rubber-row b { text-align: right; font-variant-numeric: tabular-nums; color: #42673c; }
.team-rubber-vs { text-align: center; color: #9aab91; }
.team-lineup-list { display: grid; gap: 12px; margin-top: 14px; }
.team-lineup-event { padding: 13px; border: 1px solid #dfe8d7; border-radius: 9px; background: #fbfdf9; }
.team-lineup-event h3 { margin: 0 0 11px; font-size: 14px; color: #3e6338; }
.team-lineup-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-lineup-side { display: grid; gap: 8px; min-width: 0; }
.team-lineup-side strong { font-size: 12px; color: #607956; }
.team-lineup-side .field { min-width: 0; }
.team-lineup-side select { width: 100%; min-width: 0; }
.result-correction-list { display: grid; gap: 12px; margin: 18px 0; }
.result-correction-row { min-width: 0; padding: 16px; border: 1px solid #dfe9d8; border-radius: 12px; background: #fbfdf9; }
.result-correction-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.result-correction-head > strong { color: #3c6438; font-size: 14px; line-height: 1.4; }
.result-correction-row .forfeit-select { display: flex; align-items: center; gap: 9px; min-width: min(100%, 230px); max-width: 100%; color: #72876e; font-size: 12px; white-space: nowrap; }
.result-correction-row .forfeit-select select { min-width: 0; width: clamp(150px, 22vw, 235px); max-width: 100%; padding: 9px 34px 9px 11px; border: 1px solid #dce6d5; border-radius: 8px; background: #fff; color: #365b39; }
.result-correction-score { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: end; gap: 14px; }
.result-correction-side { display: grid; grid-template-rows: minmax(21px, auto) 44px; gap: 8px; min-width: 0; }
.result-correction-team { min-width: 0; color: #587254; font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.result-correction-side input { width: 100%; min-width: 0; height: 44px; padding: 7px 12px; border: 1px solid #d8e4d2; border-radius: 8px; background: #fff; color: #234b37; font-size: 18px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.result-correction-side input:focus { outline: none; border-color: #7da875; box-shadow: 0 0 0 3px #e6f1e1; }
.result-correction-side input[readonly] { background: #f0f4ed; color: #738671; }
.result-correction-separator { align-self: end; padding-bottom: 10px; color: #9bab98; font-size: 19px; text-align: center; }
.report-export-note { margin: 0 24px 20px; }
.history-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .event-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .result-correction-row { padding: 12px; }
  .result-correction-head { align-items: stretch; gap: 10px; }
  .result-correction-row .forfeit-select { width: 100%; justify-content: space-between; }
  .result-correction-row .forfeit-select select { flex: 1; width: auto; }
  .result-correction-score { gap: 8px; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); }
  .schedule-time-head { padding-inline: 12px; }
  .team-lineup-sides { grid-template-columns: 1fr; }
  .team-rubber-row { grid-template-columns: 1fr auto; }
  .team-rubber-row strong { grid-column: 1 / -1; }
  .team-rubber-vs { display: none; }
  .relay-rules { grid-template-columns: 16px minmax(0, 1fr); padding: 12px; }
  .relay-position-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .relay-roster-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relay-round-row { grid-template-columns: 39px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 5px; padding: 6px; }
  .relay-side-selects { gap: 3px; }
  .relay-round-row select { padding: 8px 3px; font-size: 10px; }
  .lineup-grid { grid-template-columns: 1fr; }
  .lineup-side { padding: 11px; }
  .ordered-event-row { grid-template-columns: 22px 1fr auto auto auto; }
}
.team-password-state{display:block;margin-top:6px;font-size:10px;color:#879b83}
.knockout-awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 22px 24px 12px; }
.knockout-award { min-width: 0; padding: 22px; border: 1px solid #e4eadd; border-radius: 14px; background: #f9fbf7; }
.knockout-award-heading { display: flex; align-items: center; gap: 10px; color: #66775f; font-size: 13px; font-weight: 600; }
.knockout-award-medal { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #edf0e9; font-size: 15px; }
.knockout-award-1 { background: linear-gradient(135deg, #fff9e7, #fffdf6); border-color: #eddfb6; }
.knockout-award-1 .knockout-award-heading { color: #9c741c; }
.knockout-award-1 .knockout-award-medal { background: #f6e8b9; }
.knockout-award-2 { background: #f5f8fc; border-color: #dfe6ef; }
.knockout-award-2 .knockout-award-medal { background: #e5ebf4; color: #61728b; }
.knockout-award-3 .knockout-award-medal { background: #efe3d5; color: #8b6746; }
.knockout-award-name { display: block; margin: 16px 0 10px; color: #205840; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.knockout-award-name.unresolved { color: #9aa692; font-weight: 500; }
.knockout-award small { color: #97a28f; font-size: 11px; }
.knockout-awards-note { margin: 0; padding: 0 24px 24px; }
@media (max-width: 1100px) { .knockout-awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .knockout-awards { gap: 10px; padding: 16px 16px 12px; } .knockout-award { padding: 15px; } .knockout-award-name { font-size: 17px; } .knockout-awards-note { padding: 0 16px 16px; } }
.footer { flex-wrap: wrap; gap: 10px; }
.footer .icp-link { color: inherit; text-decoration: none; }
.footer .icp-link:hover { color: #185b40; text-decoration: underline; }
