body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f6f8fc;
  color: #1f2937;
  margin: 0;
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(27, 55, 100, 0.08);
}

h1 {
  margin-top: 0;
  letter-spacing: 0;
}

.top-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px;
  background: #eaf4ff;
  border: 1px solid #d8eafe;
  border-radius: 16px;
}

.tab-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #366083;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.68);
  color: #17496f;
}

.tab-button.active {
  background: #fff;
  color: #0f4778;
  box-shadow: 0 8px 22px rgba(37, 99, 155, 0.12);
}

.admin-tab-button {
  margin-left: auto;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.note,
.placeholder {
  line-height: 1.7;
  margin-top: 20px;
  padding: 26px;
  background: #f4f9ff;
  border: 1px solid #dceafe;
  border-radius: 14px;
}

.note p {
  margin: 0;
  color: #17496f;
}

.note p + p {
  margin-top: 10px;
}

.note h2 {
  margin: 0 0 10px;
  color: #17496f;
}

.form-title {
  margin: 24px 0 10px;
}

form {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #dce8f6;
  border-radius: 14px;
  background: #fbfdff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfe1f4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-picker:hover {
  border-color: #92bee9;
  box-shadow: 0 8px 20px rgba(47, 111, 172, 0.1);
}

.file-picker-button {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: #dff0ff;
  color: #14527d;
  font-weight: 600;
}

.file-name {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3f8fd2, #226da7);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 109, 167, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-button:hover {
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(34, 109, 167, 0.28);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.18);
  opacity: 0.72;
  transform: none;
}

.success, .error {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
}

.dismissible-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.message-close-button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.message-close-button:hover {
  opacity: 1;
}

.success {
  background: #f0fff4;
  border: 1px solid #9ad3a6;
}

.error {
  background: #fff0f0;
  border: 1px solid #e59b9b;
}

.pass {
  color: #16833a;
}

.fail {
  color: #b42318;
}

.warning-text {
  color: #b25b00;
  font-weight: 700;
}

.placeholder h2 {
  margin: 0 0 8px;
  color: #17496f;
}

.placeholder p {
  margin: 0;
  color: #17496f;
}

.placeholder a {
  color: #1d5f93;
  font-weight: 700;
}

.submission-section {
  margin-top: 28px;
}

.submission-section > h2 {
  margin: 0 0 16px;
}

.leaderboard-table-wrap {
  margin-top: 16px;
}

.leaderboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-button {
  min-height: 32px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-table th,
.leaderboard-table td {
  width: 25%;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  width: auto;
  font-weight: 400;
  white-space: normal;
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  width: 180px;
}

.empty-table-cell {
  height: 64px;
  color: #64748b;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: #52667a;
  font-size: 14px;
  font-weight: 700;
}

.pagination button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #b9d7f4;
  border-radius: 999px;
  background: #fff;
  color: #1d5f93;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  background: #eef7ff;
  box-shadow: 0 6px 16px rgba(37, 99, 155, 0.12);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.submission-workspace {
  padding: 18px;
  border: 1px solid #d4e5f7;
  border-radius: 14px;
  background: #f7fbff;
}

.submission-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid #e2edf9;
}

.submission-row:first-child {
  padding-top: 0;
}

.submission-label {
  color: #52667a;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.submission-row strong {
  min-width: 0;
  color: #17496f;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.team-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.team-identity span {
  color: #52667a;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submission-workspace form {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.submission-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
}

.submission-inline-message {
  margin-top: 16px;
}

.submission-inline-message:empty {
  display: none;
}

.submission-inline-message .success,
.submission-inline-message .error {
  margin-top: 0;
}

.track-fieldset {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: center;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  line-height: 1;
  margin: 0;
  padding: 0;
  border: 0;
}

.track-fieldset legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.track-option {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfe1f4;
  border-radius: 999px;
  background: #fff;
  color: #366083;
  font-weight: 700;
  cursor: pointer;
}

.track-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.track-option:has(input:checked) {
  border-color: #226da7;
  background: #dff0ff;
  color: #17496f;
  box-shadow: 0 6px 16px rgba(37, 99, 155, 0.1);
}

.hidden {
  display: none !important;
}

.login-card {
  display: flex;
  justify-content: center;
  padding: 18px;
  border: 1px solid #d4e5f7;
  border-radius: 14px;
  background: #f7fbff;
}

.login-card form {
  width: min(520px, 100%);
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-login {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid #d4e5f7;
  border-radius: 14px;
  background: #f7fbff;
}

.admin-login form {
  width: min(520px, 100%);
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-form .admin-password-field {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.auth-form .admin-password-field span {
  text-align: left;
  font-size: 16px;
}

.auth-message .success,
.auth-message .error {
  margin-top: 0;
}

.submission-help-line {
  color: #52667a;
  line-height: 1.7;
}

.submission-help-line a {
  color: #1d5f93;
  font-weight: 700;
}

.admin-password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #17496f;
  font-weight: 700;
}

.admin-password-field input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cfe1f4;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.admin-password-field input:focus {
  border-color: #92bee9;
  box-shadow: 0 0 0 3px rgba(63, 143, 210, 0.14);
  outline: none;
}

.admin-content {
  display: none;
}

.admin-content.active {
  display: block;
}

.admin-table-block {
  margin-top: 28px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  margin-top: 16px;
}

.settings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.settings-summary-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d5e8fa;
  border-radius: 10px;
  background: #f8fbff;
}

.settings-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: #4c6682;
  font-size: 14px;
  font-weight: 700;
}

.settings-summary-item strong {
  display: block;
  overflow: hidden;
  color: #113e63;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-summary-wide {
  grid-column: span 2;
}

.settings-modal {
  width: min(720px, 100%);
  max-width: 720px;
  align-items: stretch;
}

.settings-modal .settings-field {
  margin-top: 12px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #17496f;
  font-weight: 700;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cfe1f4;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.settings-field textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}

.settings-field-wide,
.settings-actions,
.settings-message {
  grid-column: 1 / -1;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-table-wrap {
  max-width: 100%;
}

.admin-table {
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

.admin-table th,
.admin-table td,
.admin-table th:first-child,
.admin-table td:first-child,
.admin-table th:nth-child(2),
.admin-table td:nth-child(2),
.admin-table th:nth-child(n+3):nth-child(-n+7),
.admin-table td:nth-child(n+3):nth-child(-n+7),
.admin-table th:last-child,
.admin-table td:last-child {
  width: auto;
  min-width: 0;
  padding: 9px 8px;
  font-weight: 400;
  white-space: nowrap;
}

.admin-table th {
  font-weight: 700 !important;
}

.admin-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table .select-col {
  width: 4%;
  min-width: 22px;
  padding-right: 2px;
  padding-left: 2px;
}

.admin-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #226da7;
}

.admin-teams-table th:nth-child(2),
.admin-teams-table td:nth-child(2) {
  width: 5%;
}

.admin-teams-table .team-name-col {
  width: 13%;
}

.admin-teams-table .organization-col {
  width: 16%;
}

.admin-teams-table .email-col {
  width: 17%;
}

.admin-teams-table .hash-col {
  width: 13%;
}

.admin-teams-table .date-col {
  width: 18%;
}

.admin-submissions-table {
  table-layout: fixed;
}

.admin-submissions-table th:nth-child(2),
.admin-submissions-table td:nth-child(2) {
  width: 34px;
}

.admin-submissions-table .team-name-col {
  width: 110px;
}

.admin-submissions-table th:nth-child(4),
.admin-submissions-table td:nth-child(4) {
  width: 74px;
}

.admin-submissions-table th:nth-child(5),
.admin-submissions-table td:nth-child(5),
.admin-submissions-table th:nth-child(6),
.admin-submissions-table td:nth-child(6) {
  width: 48px;
}

.admin-submissions-table th:nth-child(7),
.admin-submissions-table td:nth-child(7) {
  width: 76px;
}

.admin-submissions-table th:nth-child(8),
.admin-submissions-table td:nth-child(8),
.admin-submissions-table th:nth-child(9),
.admin-submissions-table td:nth-child(9) {
  width: 58px;
}

.admin-submissions-table th:nth-child(10),
.admin-submissions-table td:nth-child(10) {
  width: 132px;
}

.admin-submissions-table .date-col {
  width: 124px;
}

.admin-validation-table {
  table-layout: fixed;
}

.admin-validation-table .validation-file-col {
  width: auto;
}

.admin-validation-table th:nth-child(3),
.admin-validation-table td:nth-child(3) {
  width: 74px;
}

.admin-validation-table th:nth-child(4),
.admin-validation-table td:nth-child(4),
.admin-validation-table th:nth-child(5),
.admin-validation-table td:nth-child(5) {
  width: 56px;
}

.admin-validation-table .date-col {
  width: 150px;
}

.admin-expandable-row {
  cursor: pointer;
}

.admin-detail-row td {
  white-space: normal;
}

.admin-detail-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.admin-detail-panel p {
  overflow-wrap: anywhere;
}

.required-mark {
  color: #b42318;
  font-style: normal;
}

.optional-mark {
  margin-left: 6px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.35);
}

.modal {
  width: min(460px, 100%);
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
}

.modal h2 {
  margin: 0;
}

.modal-copy {
  margin: 0;
  color: #52667a;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-button {
  min-width: 76px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.secondary-modal-button {
  border: 1px solid #b9d7f4;
  background: #fff;
  color: #1d5f93;
}

.primary-modal-button {
  border: 1px solid #226da7;
  background: #226da7;
  color: #fff;
}

.danger-modal-button {
  border: 1px solid #b42318;
  background: #b42318;
  color: #fff;
}

.modal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 155, 0.14);
}

.summary-block {
  margin-top: 24px;
}

.summary-block h2,
.section-heading h2 {
  margin: 0;
}

.filename-line {
  margin: 18px 0 12px;
}

.progress-block {
  margin-top: 24px;
  padding: 18px;
  background: #fbfdff;
  border: 1px solid #dce8f6;
  border-radius: 14px;
}

.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-heading h2 {
  margin: 0;
}

.progress-heading span {
  color: #17496f;
  font-weight: 800;
  white-space: nowrap;
}

.progress-track {
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  background: #e7f1fc;
  border-radius: 999px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #3f8fd2, #226da7);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.progress-block p {
  margin: 10px 0 0;
  color: #52667a;
}

.summary-table-wrap {
  overflow: hidden;
  border: 1px solid #dce8f6;
  border-radius: 12px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  background: #fbfdff;
  font-size: 15px;
}

.summary-table th,
.summary-table td {
  width: 33.333%;
  padding: 12px 16px;
  border-right: 1px solid #dce8f6;
  text-align: center;
}

.summary-table th {
  background: #eef5ff;
  color: #17496f;
  font-weight: 700;
}

.summary-table th.pass {
  color: #16833a;
}

.summary-table th.fail {
  color: #b42318;
}

.summary-table th:last-child,
.summary-table td:last-child {
  border-right: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eaf4ff;
  border: 1px solid #d8eafe;
  border-radius: 999px;
}

.mode-switch button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #366083;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mode-switch button.active {
  background: #fff;
  color: #0f4778;
  box-shadow: 0 6px 16px rgba(37, 99, 155, 0.14);
}

.result-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #d4e5f7;
  border-radius: 12px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  background: #fbfdff;
  table-layout: fixed;
  font-size: 15px;
}

.result-table th,
.result-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #dce8f6;
  text-align: center;
  vertical-align: middle;
}

.result-table th {
  background: #eef5ff;
  color: #17496f;
  font-weight: 700;
  white-space: nowrap;
}

.result-table .rule-heading {
  text-align: center;
}

.rule-heading span,
.rule-heading small {
  display: block;
}

.rule-heading small {
  margin-top: 3px;
  color: #5b7fa0;
  font-size: 12px;
  font-weight: 600;
}

.result-table th:nth-child(n+3):nth-child(-n+7),
.result-table td:nth-child(n+3):nth-child(-n+7) {
  width: 88px;
  text-align: center;
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}

.result-table td:first-child {
  width: 58px;
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
}

.result-table th:first-child {
  width: 58px;
  text-align: center;
}

.result-table td:nth-child(2) {
  width: 84px;
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
}

.result-table th:nth-child(2) {
  width: 84px;
  text-align: center;
}

.result-table td:last-child {
  width: 76px;
  text-align: center;
  white-space: nowrap;
}

.result-table th:last-child {
  width: 76px;
  text-align: center;
}

.result-table tbody tr:last-child td {
  border-bottom: 0;
}

.result-table tbody tr:hover {
  background: #f3f8ff;
}

.result-table tbody tr.passed-row {
  background: #f3fff6;
}

.result-table tbody tr.passed-row:hover {
  background: #ecfaef;
}

.result-table tbody tr.passed-row td {
  border-bottom-color: #d9f0de;
}

.result-table tbody tr.failed-row {
  background: #fff8f8;
}

.result-table tbody tr.failed-row:hover {
  background: #fff2f2;
}

.result-table tbody tr.failed-row td {
  border-bottom-color: #f5d3d3;
}

.detail-button {
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid #b9d7f4;
  border-radius: 999px;
  background: #fff;
  color: #1d5f93;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-button:hover {
  background: #eef7ff;
  box-shadow: 0 6px 16px rgba(37, 99, 155, 0.12);
}

.detail-button.danger-button {
  border-color: #efb3b3;
  background: #fff6f6;
  color: #b42318;
}

.detail-button.danger-button:hover:not(:disabled) {
  background: #ffeaea;
  box-shadow: 0 6px 16px rgba(180, 35, 24, 0.12);
}

.detail-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.detail-row td {
  padding: 0 12px 12px;
  background: #fff;
  border-bottom-color: #dce8f6;
  text-align: left;
  vertical-align: top;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 0;
  background: #fff;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-panel strong {
  color: #17496f;
  font-weight: 700;
}

.detail-panel p {
  margin: 0;
  line-height: 1.7;
  white-space: normal;
}

.detail-panel ul {
  margin: 4px 0 0;
  padding-left: 20px;
  line-height: 1.7;
  white-space: normal;
}

@media (max-width: 640px) {
  .container {
    margin: 18px;
    padding: 18px;
  }

  .top-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tab-button {
    margin-left: 0;
  }

  form {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .detail-button {
    flex: 1;
  }

  .admin-detail-panel {
    grid-template-columns: 1fr;
  }

  .submission-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .submission-label,
  .auth-form .admin-password-field span {
    text-align: left;
  }

  .auth-form .admin-password-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .submission-value-row,
  .track-fieldset,
  .submission-upload-row {
    justify-content: flex-start;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }

  .settings-summary {
    grid-template-columns: 1fr;
  }

  .settings-summary-wide {
    grid-column: auto;
  }

  .submission-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-button,
  .file-picker,
  .primary-button {
    width: 100%;
  }

  .file-name {
    max-width: none;
  }
}
