.updates-panel {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(17 24 39 / 0.08);
  max-width: 42rem;
  padding: 1.1rem;
}

.updates-task-group {
  margin: 1.5rem 0 0;
}

.updates-group-heading {
  border-bottom: 1px solid #cbd5e1;
  margin: 0 0 1rem;
  max-width: 88rem;
  padding-bottom: 0.65rem;
}

.updates-group-heading h2 {
  color: #111827;
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
}

.updates-group-heading p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.updates-task-grid {
  display: grid;
  align-items: start;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  max-width: 88rem;
}

.updates-function-card {
  border-color: #cbd5e1;
  border-left: 4px solid var(--tlfl-blue);
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.12);
  max-width: none;
}

.updates-function-card .updates-action-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin: 0 -1.1rem 0.95rem;
  padding: 0.85rem 1.1rem;
}

.updates-scheduled-panel,
.updates-readiness-panel {
  margin: 0 0 1rem;
  max-width: 88rem;
}

.updates-panel h2 {
  color: #111827;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.updates-scheduled-table-wrap {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  overflow-x: auto;
}

.updates-scheduled-table {
  border-collapse: collapse;
  color: #374151;
  font-size: 0.9rem;
  min-width: 48rem;
  width: 100%;
}

.updates-scheduled-table th,
.updates-scheduled-table td {
  border-top: 1px solid #e2e8f0;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.updates-scheduled-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.updates-scheduled-table tbody tr:hover {
  background: #eef6ff;
}

.updates-scheduled-table th {
  background: #f1f5f9;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.updates-scheduled-table th:first-child,
.updates-scheduled-table td:first-child {
  color: #111827;
  font-weight: 800;
  min-width: 11rem;
}

.updates-scheduled-table th:nth-child(2),
.updates-scheduled-table th:nth-child(3),
.updates-scheduled-table td:nth-child(2),
.updates-scheduled-table td:nth-child(3) {
  white-space: nowrap;
}

.updates-description {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: -0.25rem 0 0.9rem;
}

.updates-schedule-note {
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  border-left: 4px solid #64748b;
  border-radius: 6px;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
}

.updates-schedule-note strong {
  color: #111827;
}

.updates-change-heading {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.updates-change-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #374151;
  display: grid;
  font-size: 0.9rem;
  gap: 0;
  line-height: 1.4;
  list-style: none;
  margin: 0 0 1rem;
  overflow: hidden;
  padding: 0;
}

.updates-change-list li {
  border-top: 1px solid #e2e8f0;
  padding: 0.55rem 0.75rem 0.55rem 1.65rem;
  position: relative;
}

.updates-change-list li:first-child {
  border-top: 0;
}

.updates-change-list li::before {
  background: #64748b;
  border-radius: 999px;
  content: "";
  height: 0.38rem;
  left: 0.75rem;
  position: absolute;
  top: 1rem;
  width: 0.38rem;
}

.updates-change-list code {
  color: #111827;
  font-size: 0.88em;
  font-weight: 800;
}

.updates-readiness-list {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.updates-readiness-item {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #94a3b8;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
}

.updates-readiness-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.updates-readiness-heading strong {
  color: #111827;
  font-size: 0.95rem;
}

.updates-readiness-badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0.18rem 0.48rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.updates-readiness-item p {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0.35rem 0 0;
}

.updates-readiness-ready {
  border-color: #86efac;
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.updates-readiness-ready .updates-readiness-badge {
  background: #166534;
  color: #ffffff;
}

.updates-readiness-waiting {
  border-color: #facc15;
  border-left-color: #ca8a04;
  background: #fefce8;
}

.updates-readiness-waiting .updates-readiness-badge {
  background: #854d0e;
  color: #ffffff;
}

.updates-readiness-blocked {
  border-color: #fca5a5;
  border-left-color: #dc2626;
  background: #fef2f2;
}

.updates-readiness-blocked .updates-readiness-badge {
  background: #991b1b;
  color: #ffffff;
}

.updates-action-form {
  align-items: flex-start;
  display: grid;
  gap: 0.7rem;
}

.updates-inline-field {
  display: grid;
  gap: 0.25rem;
  max-width: 10rem;
}

.updates-inline-field label {
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
}

.updates-inline-field input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  padding: 0.42rem 0.5rem;
}

.updates-primary-button {
  background: var(--tlfl-blue);
  border: 1px solid var(--tlfl-blue);
  border-radius: 6px;
  box-shadow: none;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  justify-self: start;
  padding: 0.7rem 0.9rem;
}

.updates-primary-button:hover:not(:disabled) {
  background: var(--tlfl-blue-dark);
  border-color: var(--tlfl-blue-dark);
}

.updates-primary-button:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  box-shadow: none;
  color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.72;
}

.tank01-live-game-panel {
  max-width: 88rem;
}

.tank01-live-game-form .updates-inline-field {
  max-width: 20rem;
}

.tank01-live-game-summary {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 0 0 0.95rem;
}

.tank01-live-game-summary div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.65rem;
}

.tank01-live-game-summary dt {
  color: #4b5563;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.tank01-live-game-summary dd {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
}

.tank01-live-game-table-wrap {
  overflow-x: auto;
}

.tank01-live-game-table {
  border-collapse: collapse;
  color: #374151;
  font-size: 0.84rem;
  min-width: 72rem;
  width: 100%;
}

.tank01-live-game-table th,
.tank01-live-game-table td {
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.tank01-live-game-table th {
  background: #f9fafb;
  color: #111827;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tank01-live-game-row-combined-qb,
.tank01-live-game-row-combined-k,
.tank01-live-game-row-dst {
  background: #f8fafc;
}

.tank01-live-game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 28rem;
}

.tank01-live-game-stats span {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.13rem 0.42rem;
  white-space: nowrap;
}

.tank01-live-game-notes {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0 1rem;
  padding: 0;
}

.test-standings-editor-panel,
.test-standings-preview {
  margin-top: 1rem;
}

.test-standings-editor-panel h2,
.test-standings-preview h2 {
  color: #111827;
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.test-standings-table-wrap {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow-x: auto;
}

.test-standings-editor {
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 68rem;
  width: 100%;
}

.test-standings-editor th,
.test-standings-editor td {
  border-bottom: 1px solid #edf0f3;
  padding: 0.38rem 0.45rem;
  text-align: left;
  white-space: nowrap;
}

.test-standings-editor th {
  background: var(--tlfl-blue-light);
  color: #12366f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.test-standings-team {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  min-width: 13rem;
}

.test-standings-team img {
  height: 1.3rem;
  object-fit: contain;
  width: 1.3rem;
}

.test-standings-editor select {
  min-width: 13rem;
}

.test-standings-editor input[type="number"] {
  width: 4.2rem;
}

.test-standings-actions {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.test-standings-random-button {
  background: #ffffff;
  border: 1px solid #c7d8f7;
  border-radius: 6px;
  color: #12366f;
  cursor: pointer;
  font-weight: 800;
  padding: 0.7rem 0.9rem;
}

.test-standings-random-button:hover {
  background: #eef3fb;
}

.test-standings-reset-link {
  color: var(--tlfl-blue);
  font-weight: 800;
}

.test-standings-playoff-notes {
  margin-top: 1rem;
}

.test-standings-scenario-count {
  background: #ffffff;
  border: 1px solid #dbe4f4;
  border-radius: 6px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
  padding: 0.65rem 0.8rem;
}

.score-lab {
  display: grid;
  gap: 1.5rem;
}

.score-lab-controls {
  align-items: end;
  display: flex;
  gap: 1rem;
}

.score-lab-controls label {
  font-weight: 700;
}

.score-lab-controls select {
  display: block;
  margin-top: 0.35rem;
  min-width: 10rem;
}

.score-lab-preview {
  display: grid;
  gap: 1rem;
}

.score-lab-status-final {
  background: transparent;
  color: #111827;
}

.score-lab-matchup summary {
  list-style: none;
}

.score-lab-box-score {
  overflow-x: auto;
}

.score-lab-game-box {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-top: 1rem;
  overflow-x: auto;
}

.score-lab-game-box-header {
  align-items: center;
  background: #111827;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.score-lab-game-box-header h3 {
  color: inherit;
  margin: 0 0 0.15rem;
}

.score-lab-game-box-header span {
  color: #d1d5db;
  font-size: 0.85rem;
  font-weight: 800;
}

.score-lab-game-box-header label {
  color: #d1d5db;
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.2rem;
}

.score-lab-game-box-header select {
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 6px;
  color: #111827;
  font: inherit;
  min-width: 8.5rem;
  padding: 0.25rem 0.4rem;
}

.score-lab-game-score {
  align-items: center;
  display: grid;
  gap: 0.3rem 0.7rem;
  grid-template-columns: auto auto;
}

.score-lab-game-score strong {
  justify-self: end;
}

.score-lab-game-score span {
  color: #ffffff;
  font-size: 1.2rem;
}

.score-lab-box-score table {
  border-collapse: collapse;
  min-width: 100%;
  width: max-content;
}

.score-lab-box-score th,
.score-lab-box-score td {
  border: 1px solid #d1d5db;
  padding: 0.35rem;
  white-space: nowrap;
}

.score-lab-box-score th {
  background: #f3f4f6;
  font-size: 0.75rem;
}

.score-lab-box-score input {
  width: 4rem;
}

.score-lab-box-score input[data-stat="name"] {
  width: 9rem;
}

.score-lab-box-score input[data-stat="game"] {
  width: 9.5rem;
}

.score-lab-box-score input[data-stat="tlflTeam"],
.score-lab-box-score input[data-stat="position"],
.score-lab-box-score input[data-stat="nflTeam"] {
  width: 4.5rem;
}

.score-lab-box-score input[type="checkbox"] {
  width: auto;
}

.update-progress {
  max-width: 24rem;
}

.update-progress-bar {
  background: #d1d5db;
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
  position: relative;
}

.update-progress-bar::before {
  animation: update-progress-slide 1.1s ease-in-out infinite;
  background: var(--tlfl-blue);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 42%;
}

.update-progress p {
  color: #4b5563;
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

@keyframes update-progress-slide {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(240%);
  }
}
