.ar-wizard-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.ar-hero-card,
.ar-panel,
.ar-stepper {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.ar-hero-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.92));
}

.ar-hero-card h1,
.ar-panel h2 {
  margin: 0;
}

.ar-kicker {
  margin: 0 0 0.25rem;
  color: #0f766e;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ar-hero-icon,
.ar-panel-icon,
.ar-role-icon {
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.ar-hero-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  font-size: 1.8rem;
}

.ar-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.6rem;
  border-radius: 22px;
}

.ar-step {
  border: 0;
  border-radius: 18px;
  padding: 0.85rem 0.5rem;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ar-step.is-active {
  color: #0f766e;
  background: #ccfbf1;
}

.ar-step.is-complete {
  color: #2563eb;
}

.ar-panel {
  display: none;
  border-radius: 28px;
  padding: 1.25rem;
  animation: arSlideIn 220ms ease-out;
}

.ar-panel.is-active {
  display: block;
}

.ar-panel-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ar-panel-icon,
.ar-role-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.ar-panel-icon--photo {
  background: #e2e8f0;
  overflow: hidden;
  padding: 0;
}

.ar-panel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.ar-icon-btn,
.ar-add-role,
.ar-modal-ok {
  border: 0;
  border-radius: 16px;
  padding: 0.9rem 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.ar-icon-btn:hover,
.ar-add-role:hover {
  transform: translateY(-1px);
}

.ar-icon-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.ar-icon-btn--primary,
.ar-add-role {
  color: white;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.ar-icon-btn--success {
  color: white;
  background: linear-gradient(135deg, #16a34a, #0f766e);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
}

.ar-icon-btn--ghost {
  color: #0f172a;
  background: #e2e8f0;
}

.ar-loader {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #0f766e;
  font-weight: 800;
}

.ar-pulse {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #14b8a6;
  animation: arPulse 1s infinite;
}

.ar-notice {
  margin-top: 1rem;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.ar-notice--success {
  color: #065f46;
  background: #d1fae5;
}

.ar-notice--error {
  color: #991b1b;
  background: #fee2e2;
}

.ar-help {
  color: #64748b;
  font-weight: 500;
}

.ar-role-card {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  animation: arSlideIn 180ms ease-out;
}

.ar-role-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ar-remove {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  color: #b91c1c;
  background: #fee2e2;
  cursor: pointer;
}

.role-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ar-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ar-login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.ar-field-locked,
.ar-wrap-locked select {
  opacity: 1;
  color: #0f172a;
  background: #f1f5f9;
  border-color: #cbd5e1;
  cursor: default;
  -webkit-text-fill-color: #0f172a;
}

.ar-wrap-locked label::after {
  content: " (from membership)";
  font-weight: 600;
  color: #64748b;
  font-size: 0.82em;
}

.hidden {
  display: none !important;
}

@keyframes arPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(20, 184, 166, 0);
  }
}

@keyframes arSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ar-wizard-shell {
    width: min(100% - 1rem, 980px);
    margin-top: 0.75rem;
  }

  .ar-hero-card,
  .ar-panel {
    border-radius: 22px;
  }

  .ar-inline-action,
  .role-row-grid {
    grid-template-columns: 1fr;
  }

  .ar-step {
    flex-direction: column;
    font-size: 0.82rem;
  }

  .ar-icon-btn,
  .ar-add-role {
    width: 100%;
  }
}

.ar-readonly {
  background: #f1f5f9;
  color: #334155;
  cursor: not-allowed;
}
