.admin-hero {
  min-height: 640px;
  border-radius: 24px;
}

.admin-hero-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-form {
  margin: 0 auto;
  backdrop-filter: blur(8px);
  background: rgba(14, 25, 40, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  color: #f7fbff;
  min-width: 320px;
  display: flex;
  justify-content: center;
}

.hero-form label {
  color: #f7fbff;
  text-align: center;
}

.hero-form input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f7fbff;
  text-align: center;
}

.hero-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.centered-form {
  width: 100%;
  max-width: 420px;
}

.centered-form .text-link {
  align-self: center;
}

.naked-button {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.naked-button:focus-visible {
  outline: none;
}

.admin-start-form {
  background: transparent;
  border: none;
  box-shadow: none;
  display: grid;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5rem;
  position: relative;
  z-index: 2;
}

.admin-start-form .form-grid {
  display: grid;
  gap: 0.6rem;
}

.admin-start-form .form-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-start-form input,
.admin-start-form select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f7fbff;
  border-radius: 12px;
  padding-left: 0.65rem;
  padding-right: 2.4rem;
  appearance: none;
}

.admin-start-form input:focus,
.admin-start-form select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-start-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100%);
  background-size: 12px 8px;
  background-origin: content-box;
}

.admin-start-form label {
  color: #f7fbff;
}

.admin-start-form .muted {
  color: rgba(247, 251, 255, 0.8);
}

.hero-list {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.1rem;
  color: rgba(247, 251, 255, 0.9);
  display: grid;
  gap: 0.35rem;
}

.hero-list li {
  line-height: 1.5;
}

.hero-description-block {
  margin: 1rem 0 0.5rem;
  display: grid;
  gap: 0.35rem;
  color: #f7fbff;
}

.inline-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.inline-checkbox input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: transparent;
  box-sizing: border-box;
  padding: 0;
  display: inline-grid;
  place-items: center;
  line-height: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.inline-checkbox input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 1);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14) inset;
}

.inline-checkbox input[type="checkbox"]::after {
  content: "";
  width: 100%;
  height: 100%;
  background: #6f9ff5;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.inline-checkbox input[type="checkbox"]:checked::after {
  opacity: 1;
}

.inline-checkbox label {
  color: #f7fbff;
  display: grid;
  gap: 0.15rem;
  cursor: pointer;
}

.option-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.admin-start-form select option {
  color: #f7fbff;
  background: rgba(12, 34, 58, 0.7);
  border-radius: 12px;
}

.admin-start-form select::-ms-expand {
  display: none;
}

.start-link {
  justify-self: flex-start;
  font-size: 1.05rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.start-link:hover,
.start-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  backdrop-filter: blur(4px);
}

.progress-overlay.show {
  display: flex;
}

.progress-card {
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #f7fbff;
  min-width: 320px;
  max-width: 520px;
  width: min(520px, 90vw);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.2s ease;
}

.progress-meta {
  font-size: 0.95rem;
  color: rgba(247, 251, 255, 0.9);
}

.progress-note {
  line-height: 1.35;
  word-break: break-word;
  max-height: 6.5rem;
  overflow: hidden;
}

@media (max-width: 960px) {
  .admin-hero-body {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-form {
    width: 100%;
  }
}
