.student-portal-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border, #e2dbe8);
  border-radius: 16px;
  background: var(--brand-gradient-surface, #faf8fc);
}

.student-portal-share-copy {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  min-width: 0;
}

.student-portal-share-copy .meta {
  margin: 0;
}

#studentPortalSimpleLink {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--accent-dark, #654b82);
  font-size: 1rem;
  font-weight: 750;
}

.student-portal-setup-qr {
  display: grid;
  place-items: center;
  width: 164px;
  min-height: 164px;
  padding: 8px;
  border: 1px solid #e8e2ec;
  border-radius: 14px;
  color: var(--muted, #716b76);
  background: #fff;
  font-size: 0.75rem;
  text-align: center;
}

.student-portal-setup-qr img,
.student-portal-setup-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

#studentPortalSetupCode {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.portal-account-actions + label:not(.hidden) {
  margin-top: 1.25rem;
}

html[data-theme="dark"] .student-portal-share-card {
  border-color: var(--border);
  background: var(--surface-soft);
}

html[data-theme="dark"] #studentPortalSimpleLink {
  color: var(--accent);
}

@media (max-width: 620px) {
  .student-portal-share-card {
    grid-template-columns: 1fr;
  }

  .student-portal-setup-qr {
    justify-self: center;
  }
}
