:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172846;
  background: #edf5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
}

.card,
.submission {
  background: white;
  border: 1px solid #d2def2;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 16px 36px rgba(35, 58, 104, .1);
}

.site-logo {
  display: block;
  width: min(280px, 74%);
  height: auto;
  margin: 0 auto 22px;
}

.admin-logo {
  width: min(240px, 70vw);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1;
}

.card h1 {
  text-align: center;
  padding-bottom: 18px;
}

h2 {
  margin: 0;
}

.intro,
.hint,
.muted {
  color: #53657f;
}

.intro {
  margin: 18px 0 32px;
  line-height: 1.6;
}

.hint {
  margin: 10px 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f4f8ff;
  font-size: 14px;
  line-height: 1.55;
}

fieldset {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  padding: 0 0 14px;
  border-bottom: 1px solid #dbe5f5;
  font-size: 20px;
  font-weight: 700;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 650;
}

label span {
  color: #6d7d94;
  font-size: 13px;
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #bfcae0;
  border-radius: 10px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(102, 37, 117, .17);
  border-color: #662575;
}

.preference {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: #f4f8ff;
}

.preference label:first-child {
  margin-top: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.primary,
.secondary {
  display: inline-block;
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.primary {
  width: 100%;
  border: 0;
  background: linear-gradient(105deg, #35598a 0%, #4c447f 48%, #662575 100%);
  color: white;
  box-shadow: 0 10px 22px rgba(76, 68, 127, .24);
}

.secondary {
  margin-top: 14px;
  border: 1px solid #bfcae0;
  background: white;
  color: #35598a;
}

.remove {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a2455;
}

.action-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.edit-btn {
  border: 1px solid #bfcae0;
  background: #f4f8ff;
  color: #35598a;
}

.edit-btn:hover {
  background: #edf2fb;
}

.delete-btn {
  border: 1px solid #f5c2d4;
  background: #fff0f6;
  color: #8a2455;
}

.delete-btn:hover {
  background: #ffd6e7;
}

.error {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff0f6;
  color: #8a2455;
}

.callout {
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 10px;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 1.5;
}

.callout-info {
  background: #fffbe6;
  border-color: #f5c400;
  color: #6b5000;
}

.callout-help {
  margin-top: 18px;
  background: #f4f8ff;
  border-color: #35598a;
  color: #53657f;
}

.callout-deadline {
  background: #fff4f0;
  border-color: #e05a2b;
  color: #7a2a0e;
}

.info_message {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #662575;
  border-radius: 8px;
  background: #f4f8ff;
  color: #53657f;
  font-size: 14px;
  line-height: 1.45;
}

.centre {
  text-align: center;
}

.page-version {
  margin: -28px auto 32px;
  color: #8a98ad;
  font-size: 12px;
  text-align: center;
}

.admin-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d2def2;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 24px rgba(35, 58, 104, .08);
}

.submissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.submissions-table thead th {
  padding: 12px 14px;
  border-bottom: 2px solid #dbe5f5;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #53657f;
  white-space: nowrap;
}

.submissions-table tbody tr {
  border-bottom: 1px solid #edf2fb;
}

.submissions-table tbody tr:last-child {
  border-bottom: none;
}

.submissions-table tbody tr:hover {
  background: #f7faff;
}

.submissions-table td {
  padding: 12px 14px;
  vertical-align: top;
}

.col-num {
  width: 40px;
  text-align: right;
  font-size: 12px;
}

.col-name {
  font-weight: 600;
  white-space: nowrap;
}

.col-club {
  font-size: 13px;
  white-space: nowrap;
}

.col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.action-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.form-actions .primary {
  width: 100%;
}

.group-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {

  .wrap,
  .admin-wrap {
    margin: 16px auto;
  }

  .card {
    padding: 22px;
    border-radius: 14px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
