.home-exam-card {
  max-width: 560px;
}

.home-exam-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.12));
  font-size: 2.25rem;
}

.home-panel-title {
  margin-top: 1rem;
}

.home-exam-list {
  margin-top: 1rem;
}

.selected-home-exam {
  margin: 1rem 0 1.25rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-text-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-secondary-action {
  margin-top: 1rem;
}

/* Change user/student — modern, distinct control */
.btn-change-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #7c3aed 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-change-user-ico {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  line-height: 1;
}
.btn-change-user:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.38);
}
.btn-change-user:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.btn-change-user:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

/* Mobile-first access flow */
@media (max-width: 480px) {
  .home-exam-card { max-width: 100%; }
  .btn-change-user {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .home-exam-list { margin-top: 0.75rem; }
  .selected-home-exam { font-size: 0.9rem; }
}
@media (max-width: 360px) {
  .home-exam-logo { width: 64px; height: 64px; font-size: 1.85rem; }
}

@media (max-width: 600px) {
  .home-exam-card {
    width: min(100%, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-exam-card *,
  .home-exam-card *::before,
  .home-exam-card *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body.exam-access-body {
    background: #fff !important;
  }
  .exam-access-top-row,
  button,
  #panel-identify,
  #panel-password,
  #panel-seb {
    display: none !important;
  }
}
