.page-shell .card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.94),
    rgba(15, 23, 42, 0.94)
  );
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.8);
}

.page-shell .card-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--text);
}

.page-shell .problem-description-box {
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

.page-shell #problemDescription {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-shell .subtitle-box {
  background: rgba(15, 23, 42, 0.5);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.page-shell .subtitle-content {
  width: 100%;
}

.page-shell .subtitle {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.55;
  font-style: italic;
}

.page-shell .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  align-self: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-shell .toggle-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-shell .toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  transition: background 0.2s ease;
}

.page-shell .label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.page-shell .switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.page-shell .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.page-shell .slider {
  position: absolute;
  inset: 0;
  background-color: #334155;
  border-radius: 999px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.page-shell .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-shell input[data-id="powerful"]:checked + .slider {
  background-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.38);
}

.page-shell input[data-id="knowing"]:checked + .slider {
  background-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.38);
}

.page-shell input[data-id="loving"]:checked + .slider {
  background-color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.38);
}

.page-shell input:checked + .slider:before {
  transform: translateX(26px);
}
