.teamlist-container {
  margin-top: 18px; padding: 16px; overflow: hidden;
  border: 1px solid #dce3eb; border-radius: 16px; background: #f7f9fc;
  box-shadow: 0 8px 24px rgba(25, 45, 72, .08); color: #172033;
  font-family: "Segoe UI", Arial, sans-serif; font-stretch: normal; font-style: normal;
  text-transform: uppercase;
}
.teamlist-heading, .teamlist-hint, .teamlist-container .team,
.teamlist-container table, .teamlist-container input,
.teamlist-container button, #teamlist-submit-message {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-stretch: normal; font-style: normal; text-transform: uppercase !important;
}
.teamlist-heading { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.35; text-align: center; }
.teamlist-hint { margin: 0 0 14px; color: #657086; font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1.45; text-align: center; }
.teamlist-control { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.teamlist-container .team {
  position: relative; min-width: 0; padding: 10px 28px 10px 10px; overflow: hidden;
  border: 1px solid #d8dee8; border-radius: 10px; background: #fff; color: #697386;
  cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; text-align: center;
  text-overflow: ellipsis; white-space: nowrap; transition: .18s ease;
}
.teamlist-container .team::after {
  position: absolute; top: 50%; right: 10px; width: 9px; height: 9px;
  border: 2px solid #c5ccd7; border-radius: 50%; content: ""; transform: translateY(-50%);
}
.teamlist-container .team.selected {
  border-color: #1473e6; background: #1473e6; color: #fff;
  box-shadow: 0 5px 14px rgba(20, 115, 230, .22);
}
.teamlist-container .team.confirmed::after { border-color: #21a65a; background: #21a65a; box-shadow: inset 0 0 0 2px #fff; }
.teamlist-container .team.selected::after { border-color: rgba(255,255,255,.8); }
.teamlist-container .team.selected.confirmed::after { border-color: #fff; background: #4bd37d; }
.teamlist-table-wrap { width: 100%; overflow: hidden; border: 1px solid #e0e5ec; border-radius: 12px; background: #fff; }
.teamlist-container table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; table-layout: fixed; }
.teamlist-container th {
  padding: 9px 5px; border: 0; border-bottom: 1px solid #e4e9ef;
  background: #eef3f9; color: #536077; font-size: 10px; font-weight: 700; letter-spacing: .015em; line-height: 1.3; text-align: center;
}
.teamlist-container td { height: 38px; padding: 0; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; text-align: center; }
.teamlist-container tbody tr:last-child td { border-bottom: 0; }
.teamlist-container th:nth-child(1), .teamlist-container td:nth-child(1) { width: 38px; }
.teamlist-container th:nth-child(2), .teamlist-container td:nth-child(2) { width: 50px; }
.teamlist-container th:nth-child(3), .teamlist-container td:nth-child(3) { width: auto; }
.teamlist-container th:nth-child(4), .teamlist-container td:nth-child(4) { width: 58px; }
.teamlist-container th:nth-child(5), .teamlist-container td:nth-child(5) { width: 40px; }
.teamlist-container input[type="text"], .teamlist-container input[type="number"] {
  width: 100%; height: 37px; box-sizing: border-box; padding: 5px 7px; border: 0; outline: 0;
  background: transparent; color: #182235; font-size: 12px; font-weight: 600;
  letter-spacing: .005em; line-height: normal; text-align: center; text-transform: uppercase;
}
.teamlist-container td:nth-child(3) input { padding-left: 11px; text-align: left; }
.teamlist-container input:focus { background: #eef6ff; box-shadow: inset 0 0 0 2px #5aa2f5; }
.teamlist-container input:disabled { color: #788397; opacity: 1; }
.teamlist-container input[type=number] { appearance: textfield; }
.teamlist-container input[type=number]::-webkit-inner-spin-button, .teamlist-container input[type=number]::-webkit-outer-spin-button { margin: 0; appearance: none; }
.teamlist-container input[type="checkbox"] { width: 17px; height: 17px; accent-color: #1473e6; cursor: pointer; }
.teamlist-container .delete-btn {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent;
  color: #d94545; cursor: pointer; font-size: 20px; font-weight: 600; line-height: 30px;
}
.teamlist-container .delete-btn:hover { background: #fff0f0; }
.teamlist-smart-panel { margin-top:10px; }
.teamlist-smart-panel textarea {
  width:100%; min-height:132px; resize:vertical; padding:11px 12px; border:1px solid #cfd8e4;
  border-radius:10px; outline:0; background:#fff; color:#182235; font-size:13px; font-weight:600;
  line-height:1.55; text-align:left; text-transform:uppercase;
}
.teamlist-smart-panel textarea:focus { border-color:#5aa2f5; box-shadow:0 0 0 3px rgba(90,162,245,.16); }
.teamlist-smart-panel small { display:block; margin-top:6px; color:#657086; font-size:10px; font-weight:600; text-align:center; }
.teamlist-control-button { display:grid; grid-template-columns:minmax(78px,.7fr) minmax(112px,1fr) minmax(112px,1fr); gap:8px; margin-top:13px; }
.teamlist-container .add-button, .teamlist-container .smart-button, .teamlist-container #submitListTeamButton {
  min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px; color: #fff; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .015em; line-height: 1.25; text-transform: uppercase;
}
.teamlist-container .add-button { background:#007bff; color:#fff !important; -webkit-text-fill-color:#fff; box-shadow:0 5px 13px rgba(0,123,255,.2); }
.teamlist-container .add-button:hover { background:#0056b3; }
.teamlist-container .add-button:disabled { background:#aeb8c5; color:#fff !important; -webkit-text-fill-color:#fff; opacity:1; box-shadow:none; cursor:not-allowed; }
.teamlist-container .smart-button { background:#087f5b; }
.teamlist-container .smart-button:hover { background:#066b4d; }
.teamlist-container .smart-button.active { background:#16833c; }
.teamlist-container #submitListTeamButton { background: #1473e6; }
.teamlist-container #submitListTeamButton.confirmed { background: #21a65a; }
.teamlist-container #submitListTeamButton.sending { background: #d78518; }
.teamlist-container #submitListTeamButton.needs-players { animation: teamlist-alert .28s ease 4 alternate; background: #df3c3c; }
#teamlist-submit-message { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #fff3cd; color: #805d00; font-size: 11px; font-weight: 700; text-align: center; }
@keyframes teamlist-alert { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@media (max-width: 560px) {
  .teamlist-container { margin-inline: -4px; padding: 11px; border-radius: 13px; }
  .teamlist-hint { font-size: 10px; }
  .teamlist-table-wrap { border-radius: 10px; }
  .teamlist-container table { min-width: 0; }
  .teamlist-control-button { grid-template-columns:72px minmax(104px,1fr) minmax(96px,1fr); gap:6px; }
  .teamlist-container .add-button, .teamlist-container .smart-button, .teamlist-container #submitListTeamButton { padding-inline:6px; font-size:10px; }
}
