.recruitment-page {
  min-height: calc(100vh - 76px);
  padding: 64px 0 100px;
}
.recruitment-shell {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.hidden {
  display: none !important;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.page-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.page-heading p:last-child {
  margin: 0;
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 28px;
}
.create-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 18px;
  margin-bottom: 28px;
}
.create-form h2,
.create-form .wide {
  grid-column: 1/-1;
}
.create-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.create-form input,
.create-form textarea,
.create-form select {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font: inherit;
}
.form-actions {
  display: flex;
  gap: 12px;
}
.status {
  min-height: 28px;
  color: var(--muted);
}
.recruitment-list {
  display: grid;
  gap: 18px;
}
.recruitment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.recruitment-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.recruitment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.recruitment-description {
  white-space: pre-wrap;
}
.progress {
  height: 7px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-soft);
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.participant-list li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.82rem;
}
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 180px;
}
.card-actions .button {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.button.danger {
  color: #ffb4b4;
  border: 1px solid rgba(255, 90, 90, 0.35);
  background: transparent;
}
.closed {
  opacity: 0.72;
}
.badge {
  display: inline-flex;
  width: max-content;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(109, 124, 255, 0.14);
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 800;
}
.tournament-options {
  display: grid;
  gap: 9px;
}
.tournament-options select {
  padding: 9px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
@media (max-width: 760px) {
  .recruitment-page {
    padding-top: 36px;
  }
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .create-form {
    grid-template-columns: 1fr;
  }
  .create-form h2,
  .create-form .wide {
    grid-column: auto;
  }
  .recruitment-card {
    grid-template-columns: 1fr;
  }
  .card-actions {
    min-width: 0;
  }
}
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.recruitment-page button.button {
  color: var(--text);
}
.recruitment-page button.button.primary {
  color: #fff;
}
.create-form {
  align-items: start;
}
.create-form small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.card-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
body[data-theme="dark"] .create-form input[type="datetime-local"] {
  color-scheme: dark;
}
body[data-theme="light"] .create-form input[type="datetime-local"] {
  color-scheme: light;
}
body[data-theme="sunset"] .create-form input[type="datetime-local"] {
  color-scheme: dark;
}
.create-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}
