body.student-ui {
  --student-heading-font: "Aptos Display", "Segoe UI Variable Display", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --student-body-font: "Aptos", "Segoe UI Variable Text", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --student-page-bg: #f3f4f6;
  --student-surface: #ffffff;
  --student-surface-soft: #e5e7eb;
  --student-text: #111827;
  --student-muted: #6b7280;
  --student-border: #d1d5db;
  --student-border-strong: #9ca3af;
  --student-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --student-radius-lg: 0.5rem;
  --student-radius-md: 0.375rem;
  --student-primary: #2563eb;
  --student-primary-strong: #1d4ed8;
  --student-secondary-bg: #f3f4f6;
  --student-secondary-border: #d1d5db;
  --student-secondary-text: #374151;
  --student-neutral-bg: #ffffff;
  --student-neutral-border: #e5e7eb;
  --student-neutral-text: #6b7280;
  --student-success: #16a34a;
  --student-success-soft: #f0fdf4;
  --student-success-border: #bbf7d0;
  --student-warning-soft: #fffbeb;
  --student-warning-border: #fde68a;
  --student-danger-soft: #fef2f2;
  --student-danger-border: #fecaca;
  --student-info-soft: #eff6ff;
  --student-info-border: #bfdbfe;
}

body.student-ui {
  background: var(--student-page-bg);
  color: var(--student-text);
  font-family: var(--student-body-font);
}

body.student-ui a {
  color: var(--student-primary);
}

body.student-ui .navbar {
  background: #ffffff !important;
  border-color: var(--student-border) !important;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.student-ui .navbar-brand {
  color: var(--student-text);
  font-family: var(--student-heading-font);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.student-ui .nav-link {
  color: var(--student-muted) !important;
}

body.student-ui .footer {
  background: #ffffff;
  border-color: var(--student-border) !important;
  color: var(--student-muted);
}

body.student-ui .app-footer-text {
  color: var(--student-muted);
  font-family: var(--student-body-font);
}

body.student-ui .btn:focus,
body.student-ui .btn:active:focus,
body.student-ui .btn-link.nav-link:focus,
body.student-ui .form-control:focus,
body.student-ui .form-check-input:focus,
body.student-ui .form-select:focus {
  box-shadow: 0 0 0 0.12rem white, 0 0 0 0.32rem rgba(37, 99, 235, 0.2);
}

body.student-ui-home .student-entry-shell,
body.student-ui-auth .student-entry-shell {
  padding-bottom: 2rem;
  position: relative;
}

body.student-ui-home .student-entry-shell::before,
body.student-ui-auth .student-entry-shell::before {
  background: transparent;
  content: "";
  height: 20rem;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -2rem;
  transform: translateX(-50%);
  width: min(42rem, 88vw);
}

body.student-ui-home .student-entry-shell > *,
body.student-ui-auth .student-entry-shell > * {
  position: relative;
  z-index: 1;
}

body.student-ui-home .student-home-hero h1,
body.student-ui-auth h4,
body.student-ui-auth h5 {
  color: var(--student-text);
  font-family: var(--student-heading-font);
  letter-spacing: -0.03em;
}

body.student-ui h1, body.student-ui h2, body.student-ui h3,
body.student-ui h4, body.student-ui h5 {
  font-family: var(--student-heading-font);
  color: var(--student-text);
  letter-spacing: -0.02em;
}

body.student-ui h1, body.student-ui h2 {
  font-weight: 700;
}

body.student-ui h3, body.student-ui h4, body.student-ui h5 {
  font-weight: 600;
}

body.student-ui .card-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.student-ui .card-header {
  font-weight: 600;
}

body.student-ui .table thead th {
  font-weight: 500;
}

body.student-ui-home .student-home-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
}

body.student-ui-home .student-home-hero p,
body.student-ui-auth .text-muted,
body.student-ui-auth .small.text-muted {
  color: var(--student-muted) !important;
}

body.student-ui-home .student-step-divider {
  color: #9aabc0 !important;
}

body.student-ui-home .student-step-card,
body.student-ui-auth .student-auth-card {
  background: #ffffff;
  border: 1px solid var(--student-border) !important;
  border-radius: var(--student-radius-lg);
  box-shadow: var(--student-shadow);
  overflow: hidden;
}

body.student-ui-home .student-step-card .card-body {
  padding: 1.4rem;
}

body.student-ui-home .student-step-card.student-step-card-muted {
  background: var(--student-surface-soft);
  opacity: 1 !important;
}

body.student-ui-home .student-home-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 72rem;
}

body.student-ui-home .student-home-hero-compact {
  align-items: flex-start;
  border-bottom: 1px solid var(--student-border);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  text-align: left;
}

body.student-ui-home .student-home-hero-copy {
  min-width: 0;
}

body.student-ui-home .student-home-hero-compact h1 {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

body.student-ui-home .student-home-context-strip {
  color: var(--student-text);
  display: grid;
  flex: 0 0 min(20rem, 36%);
  gap: 0.8rem;
  grid-template-columns: 1fr;
  margin-top: 0.2rem;
  min-width: 15rem;
}

body.student-ui-home .student-home-context-item {
  min-width: 0;
}

body.student-ui-home .student-home-context-label {
  color: var(--student-muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.18rem;
}

body.student-ui-home .student-home-context-value {
  color: var(--student-text);
  display: block;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.student-ui-home .student-home-entry-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.student-ui-home .student-home-entry-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  box-shadow: var(--student-shadow);
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem;
}

body.student-ui-home .student-home-login-card {
  gap: 1.05rem;
}

body.student-ui-home .student-home-register-card {
  border-color: var(--student-info-border);
}

body.student-ui-home .student-home-card-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

body.student-ui-home .student-home-card-icon {
  align-items: center;
  color: var(--student-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.45rem;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

body.student-ui-home .student-home-card-title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}

body.student-ui-home .student-home-card-copy {
  color: var(--student-muted);
  line-height: 1.65;
  margin: 0;
}

body.student-ui-home .student-home-primary-action {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2.75rem;
}

body.student-ui-home .student-home-register-card .student-home-primary-action {
  align-self: flex-start;
  margin-top: 0.15rem;
}

body.student-ui-home .student-home-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.student-ui-home .student-home-login-form .alert {
  margin-bottom: 0;
}

body.student-ui-home .student-home-login-form .student-home-primary-action {
  width: 100%;
}

body.student-ui-home .student-home-card-footer {
  align-items: center;
  border-top: 1px solid var(--student-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 0.75rem;
}

body.student-ui-home .student-home-login-card .student-home-card-footer {
  margin-top: 0;
}

body.student-ui-home .student-home-support-links,
body.student-ui-auth .student-login-support-links {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.student-ui-home .student-home-support-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--student-secondary-text);
  display: inline-flex;
  font-weight: 600;
  gap: 0.35rem;
  line-height: 1.45;
  padding: 0;
  text-decoration: none;
}

body.student-ui-home .student-home-support-link:hover,
body.student-ui-home .student-home-support-link:focus {
  color: var(--student-primary-strong);
  text-decoration: underline;
}

body.student-ui-home .student-disabled-action-hint,
body.student-ui-auth .student-disabled-action-hint {
  cursor: not-allowed;
  display: inline-flex;
}

body.student-ui-home .student-home-login-form .student-disabled-action-hint,
body.student-ui-auth .student-login-actions .student-disabled-action-hint {
  width: 100%;
}

body.student-ui-home .student-disabled-action-hint > button:disabled,
body.student-ui-auth .student-disabled-action-hint > button:disabled {
  pointer-events: none;
}

body.student-ui-home .student-home-support-button:disabled,
body.student-ui-auth .student-login-support-button:disabled {
  color: var(--student-muted);
  cursor: not-allowed;
  opacity: 1;
  text-decoration: none;
}

body.student-ui-auth .student-auth-card .card-header {
  border-bottom: 1px solid var(--student-border);
  overflow: hidden;
  padding: 1.2rem 1.45rem 1.1rem;
  position: relative;
}

body.student-ui-auth .student-auth-card-top {
  background: #ffffff;
  border-bottom: 1px solid var(--student-border);
  padding: 1.25rem 1.5rem;
}

body.student-ui-auth .student-auth-card-top::before {
  display: none;
}

body.student-ui-auth .student-auth-card-top h4,
body.student-ui-auth .student-auth-card-top h5 {
  margin-bottom: 0.35rem;
}

body.student-ui-auth .student-auth-card-top p {
  color: var(--student-muted);
  font-weight: 400;
  line-height: 1.7;
}

body.student-ui-auth .student-register-header-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

body.student-ui-auth .student-register-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

body.student-ui-auth .student-register-term {
  color: var(--student-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

body.student-ui-auth .student-auth-card .card-body {
  padding: 1.5rem !important;
}

body.student-ui-auth .student-auth-card.student-auth-card-wide .card-body {
  padding: 1.7rem !important;
}

body.student-ui-auth .student-login-card-top {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

body.student-ui-auth .student-login-title-group {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

body.student-ui-auth .student-login-card-icon {
  align-items: center;
  color: var(--student-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.45rem;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

body.student-ui-auth .student-login-title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}

body.student-ui-auth .student-login-context-strip {
  color: var(--student-text);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  max-width: 20rem;
  min-width: 14rem;
  width: 100%;
}

body.student-ui-auth .student-login-page-context {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.95rem;
}

body.student-ui-auth .student-login-context-item {
  min-width: 0;
}

body.student-ui-auth .student-login-context-label {
  color: var(--student-muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.18rem;
}

body.student-ui-auth .student-login-context-value {
  color: var(--student-text);
  display: block;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.student-ui-auth .student-login-form,
body.student-ui-auth .student-query-account-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.student-ui-auth .student-login-form .validation-summary-valid {
  display: none;
}

body.student-ui-auth .student-login-alert,
body.student-ui-auth .student-query-account-alert {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

body.student-ui-auth .student-login-alert ul,
body.student-ui-auth .student-query-account-alert ul {
  margin-bottom: 0;
}

body.student-ui-auth .student-login-form .text-danger {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

body.student-ui-auth .student-login-actions,
body.student-ui-auth .student-query-account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

body.student-ui-auth .student-login-primary-action,
body.student-ui-auth .student-query-account-primary-action {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
}

body.student-ui-auth .student-login-card-footer {
  align-items: center;
  border-top: 1px solid var(--student-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.1rem;
}

body.student-ui-auth .student-login-support-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--student-secondary-text);
  display: inline-flex;
  gap: 0.4rem;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

body.student-ui-auth .student-login-support-link:hover,
body.student-ui-auth .student-login-support-link:focus {
  color: var(--student-primary-strong);
  text-decoration: underline;
}

body.student-ui-auth .student-login-support-button:disabled:hover,
body.student-ui-auth .student-login-support-button:disabled:focus {
  color: var(--student-muted);
  text-decoration: none;
}

body.student-ui-auth .student-login-back-link {
  color: var(--student-muted);
  font-weight: 600;
  margin-left: auto;
  text-decoration: none;
}

body.student-ui-auth .student-login-back-link:hover,
body.student-ui-auth .student-login-back-link:focus {
  color: var(--student-primary-strong);
  text-decoration: underline;
}

body.student-ui-auth .student-register-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

body.student-ui-auth .student-register-form .validation-summary-valid {
  display: none;
}

body.student-ui-auth .student-register-alert {
  border-left: 4px solid #dc2626;
  padding: 0.75rem 1rem;
}

body.student-ui-auth .student-register-alert:focus {
  box-shadow: 0 0 0 0.12rem white, 0 0 0 0.32rem rgba(220, 38, 38, 0.2);
  outline: 0;
}

body.student-ui-auth .student-register-alert > p {
  margin: 0 0 0.5rem;
}

body.student-ui-auth .student-register-error-list ul {
  margin: 0;
  padding-left: 1.25rem;
}

body.student-ui-auth .student-register-alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

body.student-ui-auth .student-register-section + .student-register-section {
  border-top: 1px solid var(--student-border);
  padding-top: 1.25rem;
}

body.student-ui-auth .student-register-section-head {
  margin-bottom: 0.95rem;
}

body.student-ui-auth .student-register-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}

body.student-ui-auth .student-register-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.student-ui-auth .student-register-field-wide {
  grid-column: 1 / -1;
}

body.student-ui-auth .student-register-field .form-label {
  margin-bottom: 0.45rem;
}

body.student-ui-auth .student-register-birthday-field {
  border: 0;
  margin: 0;
  padding: 0;
}

body.student-ui-auth .student-register-birthday-field > legend.form-label {
  color: var(--student-muted);
  display: block;
  float: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.45rem;
  padding: 0;
  width: auto;
}

body.student-ui-auth .student-register-birthday-unit > .form-label:not(.visually-hidden) {
  display: block;
  font-size: 0.875rem;
}

body.student-ui-auth .student-register-field .form-text {
  color: var(--student-muted);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

body.student-ui-auth [x-cloak] {
  display: none !important;
}

body.student-ui-auth .student-register-field .text-danger,
body.student-ui-auth .student-register-validation-row .text-danger {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

body.student-ui-auth .student-register-field .input-validation-error,
body.student-ui-auth .student-register-field .is-invalid {
  border-color: #dc2626;
}

body.student-ui-auth .student-register-field .input-validation-error:focus,
body.student-ui-auth .student-register-field .is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.12rem white, 0 0 0 0.32rem rgba(220, 38, 38, 0.2);
}

body.student-ui-auth .student-register-birthday-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.student-ui-auth .student-register-birthday-grid .input-group {
  flex-wrap: nowrap;
}

body.student-ui-auth .student-register-birthday-grid .form-control {
  min-width: 0;
}

body.student-ui-auth .student-register-actions {
  border-top: 1px solid var(--student-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
}

body.student-ui-auth .student-register-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
  justify-content: center;
  min-height: 3rem;
}

body.student-ui-auth .student-register-actions .btn-primary {
  min-width: 14rem;
}

body.student-ui-auth .student-register-actions .student-register-test-action {
  min-width: 12rem;
}

body.student-ui-auth .student-auth-card .card-footer {
  background: var(--student-surface-soft) !important;
  border-top: 1px solid var(--student-border);
}

body.student-ui-home .student-feedback-card,
body.student-ui-auth .student-feedback-card {
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  color: var(--student-text);
  padding: 1.5rem 1.75rem;
}

body.student-ui-home .student-feedback-card hr,
body.student-ui-auth .student-feedback-card hr {
  border-color: var(--student-border);
  opacity: 1;
}

body.student-ui-home .student-info-card {
  overflow: hidden;
  position: relative;
}

body.student-ui-home .student-info-card::before {
  display: none;
}

body.student-ui-home .student-info-kicker {
  color: var(--student-primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

body.student-ui-home .student-info-title,
body.student-ui-home .student-info-card h2,
body.student-ui-home .student-info-card h3 {
  color: var(--student-text);
  font-family: var(--student-heading-font);
  letter-spacing: -0.02em;
}

body.student-ui-home .student-info-card .lead,
body.student-ui-home .student-info-card .text-muted,
body.student-ui-home .student-info-meta {
  color: var(--student-muted) !important;
}

body.student-ui-home .student-info-section + .student-info-section {
  border-top: 1px solid var(--student-border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

body.student-ui-home .student-info-list {
  color: var(--student-text);
  margin-bottom: 0;
  padding-left: 1.2rem;
}

body.student-ui-home .student-info-list li + li {
  margin-top: 0.55rem;
}

body.student-ui-home .student-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

body.student-ui-home .student-info-actions .btn {
  min-width: 10rem;
}

body.student-ui-home .student-support-note {
  background: var(--student-surface-soft);
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-md);
  color: var(--student-muted);
  line-height: 1.7;
  margin-top: 1.15rem;
  padding: 0.95rem 1rem;
}

body.student-ui-home .student-info-code {
  background: #f3f6fa;
  border: 1px solid var(--student-border);
  border-radius: 999px;
  color: var(--student-primary-strong);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
}

body.student-ui-home .student-info-card .alert {
  margin-top: 1.25rem;
}

body.student-ui-home .btn,
body.student-ui-auth .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.15rem;
}

body.student-ui-home .btn-primary,
body.student-ui-auth .btn-primary {
  background: var(--student-primary);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  color: #f7fbff;
}

body.student-ui-home .btn-primary:hover,
body.student-ui-home .btn-primary:focus,
body.student-ui-auth .btn-primary:hover,
body.student-ui-auth .btn-primary:focus {
  background: var(--student-primary-strong);
  color: #f7fbff;
}

body.student-ui-home .btn-success,
body.student-ui-auth .btn-success {
  background: var(--student-success);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
  color: #f7fffb;
}

body.student-ui-home .btn-success:hover,
body.student-ui-home .btn-success:focus,
body.student-ui-auth .btn-success:hover,
body.student-ui-auth .btn-success:focus {
  background: #15803d;
  color: #f7fffb;
}

body.student-ui-home .btn-outline-success,
body.student-ui-auth .btn-outline-success {
  background: #f3fbf6;
  border-color: #bfdecf;
  color: #1b7d52;
}

body.student-ui-home .btn-outline-success:hover,
body.student-ui-home .btn-outline-success:focus,
body.student-ui-auth .btn-outline-success:hover,
body.student-ui-auth .btn-outline-success:focus {
  background: #e5f7ed;
  border-color: #abd2c0;
  color: #166543;
}

body.student-ui-home .btn-outline-secondary,
body.student-ui-auth .btn-outline-secondary {
  background: var(--student-neutral-bg);
  border-color: var(--student-neutral-border);
  color: var(--student-neutral-text);
}

body.student-ui-home .btn-outline-secondary:hover,
body.student-ui-home .btn-outline-secondary:focus,
body.student-ui-auth .btn-outline-secondary:hover,
body.student-ui-auth .btn-outline-secondary:focus {
  background: #f4f7fb;
  border-color: #c4d0dc;
  color: #304557;
}

body.student-ui-auth .btn-link {
  box-shadow: none;
  color: var(--student-muted);
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
}

body.student-ui-auth .btn-link:hover,
body.student-ui-auth .btn-link:focus {
  color: #355fa6;
}

body.student-ui-home .btn[disabled],
body.student-ui-home .btn:disabled,
body.student-ui-auth .btn[disabled],
body.student-ui-auth .btn:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: none;
  color: #6b7280;
  cursor: not-allowed;
  filter: none;
  opacity: 0.82;
}

body.student-ui-home .btn[disabled]:hover,
body.student-ui-home .btn[disabled]:focus,
body.student-ui-home .btn:disabled:hover,
body.student-ui-home .btn:disabled:focus,
body.student-ui-auth .btn[disabled]:hover,
body.student-ui-auth .btn[disabled]:focus,
body.student-ui-auth .btn:disabled:hover,
body.student-ui-auth .btn:disabled:focus {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
}

body.student-ui-home .badge,
body.student-ui-auth .badge {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

body.student-ui-home .bg-primary,
body.student-ui-auth .bg-primary {
  background-color: var(--student-primary) !important;
  color: #f7fbff !important;
}

body.student-ui-home .bg-success,
body.student-ui-auth .bg-success {
  background-color: var(--student-success) !important;
  color: #f7fffb !important;
}

body.student-ui-home .bg-warning,
body.student-ui-auth .bg-warning {
  background-color: #efc86c !important;
  color: #4f3608 !important;
}

body.student-ui-home .bg-secondary,
body.student-ui-auth .bg-secondary {
  background-color: #6d7786 !important;
  color: #f8fbff !important;
}

body.student-ui-home .bg-light,
body.student-ui-auth .bg-light {
  background-color: var(--student-surface-soft) !important;
  color: var(--student-text) !important;
}

body.student-ui-home .text-primary,
body.student-ui-auth .text-primary {
  color: #2f61ca !important;
}

body.student-ui-home .text-success,
body.student-ui-auth .text-success {
  color: #1d7c53 !important;
}

body.student-ui-home .text-secondary,
body.student-ui-auth .text-secondary {
  color: var(--student-muted) !important;
}

body.student-ui-home .alert,
body.student-ui-auth .alert {
  border: 1px solid transparent;
  border-radius: var(--student-radius-lg);
  box-shadow: none;
}

body.student-ui-home .alert-danger,
body.student-ui-auth .alert-danger {
  background: var(--student-danger-soft);
  border-color: var(--student-danger-border);
  color: #96504b;
}

body.student-ui-home .alert-success,
body.student-ui-auth .alert-success {
  background: var(--student-success-soft);
  border-color: var(--student-success-border);
  color: #246b48;
}

body.student-ui-home .alert-warning,
body.student-ui-auth .alert-warning {
  background: var(--student-warning-soft);
  border-color: var(--student-warning-border);
  color: #8b6120;
}

body.student-ui-home .alert-info,
body.student-ui-auth .alert-info {
  background: var(--student-info-soft);
  border-color: var(--student-info-border);
  color: #39546f;
}

body.student-ui-home .form-control,
body.student-ui-home .form-select,
body.student-ui-auth .form-control,
body.student-ui-auth .form-select,
body.student-ui-auth .input-group-text {
  background: #fcfdff;
  border-color: var(--student-border);
  border-radius: var(--student-radius-md);
  color: var(--student-text);
  min-height: 3rem;
}

body.student-ui-auth .input-group-text {
  background: var(--student-surface-soft);
  color: var(--student-muted);
}

body.student-ui-home .form-control:focus,
body.student-ui-home .form-select:focus,
body.student-ui-auth .form-control:focus,
body.student-ui-auth .form-select:focus {
  background: #ffffff;
  border-color: #9db8f1;
}

body.student-ui-home .form-floating > label,
body.student-ui-auth .form-floating > label,
body.student-ui-home .form-label,
body.student-ui-auth .form-label {
  color: var(--student-muted);
  font-weight: 600;
}

body.student-ui-auth h5.border-bottom {
  border-color: #e1e9f1 !important;
  color: var(--student-text) !important;
  font-family: var(--student-heading-font);
}

body.student-ui-auth .text-danger,
body.student-ui-home .text-danger {
  color: #a94e49 !important;
}

body.student-ui-dashboard .student-entry-shell {
  padding-bottom: 2rem;
  position: relative;
}

body.student-ui-dashboard .student-entry-shell::before {
  background: transparent;
  content: "";
  height: 24rem;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: -2rem;
  transform: translateX(-50%);
  width: min(56rem, 92vw);
}

body.student-ui-dashboard .student-entry-shell > * {
  position: relative;
  z-index: 1;
}

body.student-ui-dashboard .student-dashboard-page h2,
body.student-ui-dashboard .student-dashboard-page h3,
body.student-ui-dashboard .student-dashboard-page h4,
body.student-ui-dashboard .student-dashboard-page h5 {
  color: var(--student-text);
  font-family: var(--student-heading-font);
  letter-spacing: -0.03em;
}

body.student-ui-dashboard .student-dashboard-welcome h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

body.student-ui-dashboard .student-dashboard-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 64rem;
}

body.student-ui-dashboard .student-dashboard-home-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--student-border);
  display: flex;
  padding-bottom: 1rem;
}

body.student-ui-dashboard .student-dashboard-home-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

body.student-ui-dashboard .student-dashboard-notice-panel,
body.student-ui-dashboard .student-dashboard-nav-grid {
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  box-shadow: var(--student-shadow);
  padding: 1.25rem;
}

body.student-ui-dashboard .student-dashboard-term-grid {
  border-bottom: 1px solid var(--student-border);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

body.student-ui-dashboard .student-dashboard-term-item {
  align-items: baseline;
  display: grid;
  gap: 1rem;
  grid-template-columns: 6rem minmax(0, 1fr);
  min-width: 0;
}

body.student-ui-dashboard .student-dashboard-term-label {
  color: var(--student-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

body.student-ui-dashboard .student-dashboard-term-value {
  color: var(--student-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

body.student-ui-dashboard .student-dashboard-section-title {
  align-items: center;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 700;
  gap: 0.4rem;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

body.student-ui-dashboard .student-dashboard-notice-content {
  min-width: 0;
}

body.student-ui-dashboard .student-dashboard-announcement-list {
  color: var(--student-text);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 1.25rem;
}

body.student-ui-dashboard .student-dashboard-nav-head {
  border-bottom: 1px solid var(--student-border);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
}

body.student-ui-dashboard .student-dashboard-nav-head .student-dashboard-section-title {
  margin-bottom: 0;
}

body.student-ui-dashboard .student-dashboard-nav-list {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr) 1.5rem minmax(0, 1fr);
}

body.student-ui-dashboard .student-dashboard-nav-card {
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  color: var(--student-text);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 13rem;
  min-width: 0;
  padding: 1rem;
  text-decoration: none;
}

body.student-ui-dashboard a.student-dashboard-nav-card:hover,
body.student-ui-dashboard a.student-dashboard-nav-card:focus {
  background: var(--student-info-soft);
  border-color: #bfdbfe;
  color: var(--student-text);
}

body.student-ui-dashboard .student-dashboard-nav-card-disabled {
  background: #ffffff;
}

body.student-ui-dashboard .student-dashboard-nav-card-head {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  min-width: 0;
}

body.student-ui-dashboard .student-dashboard-nav-icon {
  align-items: center;
  color: var(--student-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 1.5rem;
  justify-content: center;
  width: 1.5rem;
}

body.student-ui-dashboard .student-dashboard-nav-card-disabled .student-dashboard-nav-icon {
  color: var(--student-muted);
}

body.student-ui-dashboard .student-dashboard-nav-step {
  color: var(--student-primary);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

body.student-ui-dashboard .student-dashboard-nav-card-disabled .student-dashboard-nav-step {
  color: var(--student-muted);
}

body.student-ui-dashboard .student-dashboard-flow-arrow {
  align-items: center;
  color: var(--student-muted);
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  min-width: 0;
}

body.student-ui-dashboard .student-dashboard-nav-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

body.student-ui-dashboard .student-dashboard-nav-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
}

body.student-ui-dashboard .student-dashboard-nav-copy {
  color: var(--student-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

body.student-ui-dashboard .student-dashboard-nav-card > .btn {
  align-self: flex-start;
  margin-top: auto;
}

body.student-ui-dashboard .student-dashboard-nav-card .student-dashboard-disabled-action.disabled,
body.student-ui-dashboard .student-dashboard-nav-card .student-dashboard-disabled-action[aria-disabled="true"] {
  background: rgba(249, 250, 251, 0.45);
  border-color: rgba(156, 163, 175, 0.55);
  box-shadow: none;
  color: #4b5563;
  cursor: not-allowed;
  font-weight: 600;
  opacity: 1;
  pointer-events: auto;
}

body.student-ui-dashboard .student-dashboard-home-footer {
  align-items: center;
  border-top: 1px solid var(--student-border);
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
  padding-top: 1.25rem;
}

body.student-ui-dashboard .student-dashboard-page-toolbar {
  align-items: flex-start;
  border-bottom: 1px solid var(--student-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 1rem;
}

body.student-ui-dashboard .student-dashboard-page-title {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

body.student-ui-dashboard .student-dashboard-page-subtitle {
  color: var(--student-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

body.student-ui-dashboard .student-dashboard-toolbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

body.student-ui-dashboard .student-dashboard-application-strip {
  align-items: center;
  border-bottom: 1px solid var(--student-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1rem;
}

body.student-ui-dashboard .student-dashboard-application-item {
  align-items: baseline;
  display: inline-flex;
  gap: 0.4rem;
  line-height: 1.4;
}

body.student-ui-dashboard .student-dashboard-application-label {
  color: var(--student-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

body.student-ui-dashboard .student-dashboard-application-value {
  color: var(--student-text);
  font-weight: 600;
}

body.student-ui-dashboard .text-muted,
body.student-ui-dashboard .small.text-muted {
  color: var(--student-muted) !important;
}

body.student-ui-dashboard .student-dashboard-panel,
body.student-ui-dashboard .student-dashboard-hub-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.student-ui-dashboard .student-dashboard-hub-card {
  background: #ffffff;
  border: 1px solid var(--student-border) !important;
  border-radius: var(--student-radius-lg);
  box-shadow: var(--student-shadow);
  overflow: hidden;
}

body.student-ui-dashboard .student-dashboard-hub-card {
  transition: border-color 0.15s ease;
}

body.student-ui-dashboard .student-dashboard-hub-card:hover {
  border-color: var(--student-border-strong) !important;
}

body.student-ui-dashboard .student-dashboard-hub-icon {
  align-items: center;
  background: var(--student-surface-soft);
  border-radius: var(--student-radius-md);
  display: inline-flex;
  font-size: 1.2rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
  flex-shrink: 0;
}

body.student-ui-dashboard .student-dashboard-panel > .card-header {
  background: #ffffff;
  border-bottom: 1px solid var(--student-border);
  overflow: visible;
  padding: 1rem 1.25rem;
  position: relative;
}

body.student-ui-dashboard .student-dashboard-panel > .card-header::before {
  display: none;
  left: 0;
  position: absolute;
  top: 0;
  width: 6px;
}

body.student-ui-dashboard .student-dashboard-panel > .card-header.bg-primary {
  background: var(--student-info-soft) !important;
  color: var(--student-text) !important;
}

body.student-ui-dashboard .student-dashboard-panel > .card-header h4,
body.student-ui-dashboard .student-dashboard-panel > .card-header h5 {
  margin-bottom: 0;
}

body.student-ui-dashboard .student-dashboard-panel > .card-header .btn-light {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(207, 216, 227, 0.92);
  box-shadow: none;
  color: #34485c !important;
}

body.student-ui-dashboard .student-dashboard-panel > .card-header .btn-light:hover,
body.student-ui-dashboard .student-dashboard-panel > .card-header .btn-light:focus {
  background: #ffffff;
  border-color: rgba(191, 202, 214, 0.96);
  color: #25364b !important;
}

body.student-ui-dashboard .student-dashboard-panel .card-body {
  padding: 1.45rem;
}

body.student-ui-dashboard .student-dashboard-filter-shell {
  background: #ffffff !important;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
}

body.student-ui-dashboard .student-dashboard-filter-head {
  align-items: center;
  border-bottom: 1px solid var(--student-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

body.student-ui-dashboard .student-dashboard-filter-shell .form-label {
  color: var(--student-muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
}

body.student-ui-dashboard .student-dashboard-filter-term {
  align-items: baseline;
  color: var(--student-muted);
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.1rem;
  justify-content: flex-end;
  line-height: 1.4;
}

body.student-ui-dashboard .student-dashboard-filter-term-value {
  color: var(--student-text);
  font-weight: 600;
}

body.student-ui-dashboard .student-dashboard-filter-shell .form-select,
body.student-ui-dashboard .student-dashboard-filter-select {
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-md);
  box-shadow: none;
  color: var(--student-text);
  cursor: pointer;
  font-weight: 400;
  padding-right: 0.75rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.student-ui-dashboard .student-dashboard-filter-shell .student-dashboard-filter-select {
  background-color: #ffffff;
  background-image: none;
  border-color: var(--student-border-strong);
}

body.student-ui-dashboard .student-dashboard-filter-shell .form-select:hover,
body.student-ui-dashboard .student-dashboard-filter-select:hover {
  border-color: var(--student-primary);
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.12);
}

body.student-ui-dashboard .student-dashboard-filter-shell .form-select:focus,
body.student-ui-dashboard .student-dashboard-filter-select:focus {
  border-color: var(--student-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

body.student-ui-dashboard .student-dashboard-filter-shell .student-dashboard-filter-select:hover,
body.student-ui-dashboard .student-dashboard-filter-shell .student-dashboard-filter-select:focus {
  background-color: #eff6ff;
  background-image: none;
}

body.student-ui-dashboard .student-dashboard-filter-shell .input-group-text,
body.student-ui-dashboard .student-dashboard-filter-static {
  background: var(--student-surface-soft) !important;
  border-color: var(--student-border);
  box-shadow: none;
  color: var(--student-muted);
  font-weight: 500;
}

body.student-ui-dashboard .student-dashboard-results-card .card-title {
  color: var(--student-text);
  font-family: var(--student-heading-font);
}

body.student-ui-dashboard .student-dashboard-results-body {
  padding: 1.35rem 1.4rem 1.45rem !important;
}

body.student-ui-dashboard .student-dashboard-results-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

body.student-ui-dashboard .student-dashboard-results-subtitle {
  color: var(--student-muted);
  line-height: 1.6;
}

body.student-ui-dashboard .student-dashboard-results-empty {
  border-radius: var(--student-radius-lg);
  padding: 1rem 1.15rem;
}

body.student-ui-dashboard .student-dashboard-results-empty-warning {
  background: #fff7e8;
  border-color: #efd9aa;
  color: #d97706;
}

body.student-ui-dashboard .student-course-table-wrap {
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  overflow: hidden;
}

body.student-ui-dashboard .student-course-table {
  table-layout: fixed;
  width: 100%;
}

body.student-ui-dashboard .student-course-info-col {
  width: 47%;
}

body.student-ui-dashboard .student-course-schedule-col {
  width: 34%;
}

body.student-ui-dashboard .student-course-action-col {
  width: 8.25rem;
}

body.student-ui-dashboard .student-selection-table {
  min-width: 58rem;
}

body.student-ui-dashboard .student-selection-schedule-col {
  width: 16rem;
}

body.student-ui-dashboard .student-selection-status-col {
  width: 11.5rem;
}

body.student-ui-dashboard .student-selection-action-col {
  width: 8.5rem;
}

body.student-ui-dashboard .student-course-table tbody tr {
  vertical-align: top;
}

body.student-ui-dashboard .student-course-table > :not(caption) > * > * {
  padding: 0.95rem 0.85rem;
}

body.student-ui-dashboard .student-course-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.student-ui-dashboard .student-course-meta,
body.student-ui-dashboard .student-course-name,
body.student-ui-dashboard .student-course-teacher {
  color: var(--student-text);
  line-height: 1.55;
}

body.student-ui-dashboard .student-course-name {
  font-weight: 500;
}

body.student-ui-dashboard .student-course-meta,
body.student-ui-dashboard .student-course-schedule {
  color: var(--student-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

body.student-ui-dashboard .student-course-teacher-name {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
}

body.student-ui-dashboard .student-course-teacher-icon {
  font-size: 0.9em;
  line-height: 1;
}

body.student-ui-dashboard .student-course-meta-line {
  align-items: baseline;
  column-gap: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.1rem;
}

body.student-ui-dashboard .student-course-meta-item {
  align-items: baseline;
  display: inline-flex;
  white-space: nowrap;
}

body.student-ui-dashboard .student-course-meta-item .student-course-label {
  margin-right: 0.35rem;
}

body.student-ui-dashboard .student-course-label {
  color: var(--student-muted);
  font-weight: 500;
  margin-right: 0.2em;
}

body.student-ui-dashboard .student-course-sep {
  color: var(--student-border-strong);
  margin: 0 0.35em;
}

body.student-ui-dashboard .student-review-table {
  min-width: 44rem;
}

body.student-ui-dashboard .student-review-panel-body {
  padding: 0 0 0.85rem;
}

body.student-ui-dashboard .student-review-attachments {
  border-top: 1px solid var(--student-border);
  margin: 0.9rem 1rem 0;
  padding-top: 0.9rem;
}

body.student-ui-dashboard .student-review-attachments-title {
  align-items: center;
  color: var(--student-text);
  display: flex;
  gap: 0.4rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

body.student-ui-dashboard .student-review-attachments-list {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  justify-items: start;
}

body.student-ui-dashboard .student-review-attachment-row {
  align-items: center;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-md);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  width: min(100%, 18rem);
}

body.student-ui-dashboard .student-review-attachment-name {
  color: var(--student-text);
  font-weight: 500;
  line-height: 1.45;
  min-width: 0;
}

body.student-ui-dashboard .student-review-attachment-action {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  justify-content: center;
}

body.student-ui-dashboard .student-review-course-col {
  width: auto;
}

body.student-ui-dashboard .student-review-status-col {
  width: 10.5rem;
}

body.student-ui-dashboard .student-review-status-cell {
  vertical-align: middle;
}

body.student-ui-dashboard .student-review-status {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 100%;
}

body.student-ui-dashboard .student-review-status .student-status-chip {
  white-space: nowrap;
}

body.student-ui-dashboard .student-review-status-reason {
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 14rem;
  text-align: left;
}

body.student-ui-dashboard .student-course-grade-chip,
body.student-ui-dashboard .student-course-credit,
body.student-ui-dashboard .student-course-class {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #556678;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 0;
  white-space: nowrap;
}

body.student-ui-dashboard .student-course-grade-chip {
  color: #556678;
  font-weight: 500;
}

body.student-ui-dashboard .student-course-credit {
  color: #44576b;
  font-variant-numeric: tabular-nums;
}

body.student-ui-dashboard .student-course-class {
  color: #44576b;
}

body.student-ui-dashboard .student-course-code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #30485f;
  display: inline-block;
  font-family: var(--student-body-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0;
  white-space: nowrap;
}

body.student-ui-dashboard .student-course-schedule {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  row-gap: 0.12rem;
}

body.student-ui-dashboard .student-schedule-row {
  align-items: baseline;
  column-gap: 0.85rem;
  display: flex;
  flex-wrap: nowrap;
}

body.student-ui-dashboard .student-schedule-day {
  display: inline-flex;
  white-space: nowrap;
}

body.student-ui-dashboard .student-course-conflict-details {
  display: inline-block;
}

body.student-ui-dashboard .student-course-conflict-summary {
  background: #fff2f0;
  border: 1px solid #efcdca;
  border-radius: 0.9rem;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

body.student-ui-dashboard .student-course-conflict-summary:focus {
  box-shadow: 0 0 0 0.12rem white, 0 0 0 0.32rem rgba(37, 99, 235, 0.2);
  outline: 0;
}

body.student-ui-dashboard .student-course-conflict-summary::-webkit-details-marker {
  display: none;
}

body.student-ui-dashboard .student-course-conflict-summary::after {
  content: '▸';
  font-size: 0.7rem;
  transition: transform 0.15s ease;
  margin-left: 0.2rem;
}

body.student-ui-dashboard details[open] > .student-course-conflict-summary::after {
  transform: rotate(90deg);
}

body.student-ui-dashboard .student-course-conflict-body {
  position: absolute;
  right: 0;
  z-index: 10;
  min-width: 16rem;
  max-width: 22rem;
  background: #fff;
  border: 1px solid #efcdca;
  border-radius: 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
}

body.student-ui-dashboard .student-course-conflict-card {
  padding: 0.4rem 0;
}

body.student-ui-dashboard .student-course-conflict-card + .student-course-conflict-card {
  border-top: 1px dashed #efcdca;
}

body.student-ui-dashboard .student-course-conflict-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--student-muted);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.15rem;
}

body.student-ui-dashboard .student-course-conflict-course {
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

body.student-ui-dashboard .student-course-conflict-slots {
  font-size: 0.76rem;
  color: #30485f;
  line-height: 1.55;
}

body.student-ui-dashboard .student-course-conflict-slots div {
  padding: 0.05rem 0;
}

body.student-ui-dashboard .student-course-table thead th.student-course-action-header,
body.student-ui-dashboard .student-course-table tbody td.student-course-action-cell {
  width: 8.25rem;
}

body.student-ui-dashboard .student-course-action-cell {
  white-space: nowrap;
  position: relative;
}

body.student-ui-dashboard .student-course-add-btn {
  min-width: 5.6rem;
}

body.student-ui-dashboard .student-course-action-header {
  white-space: nowrap;
}

body.student-ui-dashboard .student-course-action-cell .student-status-chip {
  gap: 0.35rem;
  justify-content: center;
  min-width: 5.6rem;
}

body.student-ui-dashboard .student-selection-status-cell,
body.student-ui-dashboard .student-selection-action-cell {
  white-space: nowrap;
}

body.student-ui-dashboard .student-selection-status-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.student-ui-dashboard .student-selection-total-row > td {
  color: var(--student-text);
}

body.student-ui-dashboard .student-course-modal .modal-body {
  padding: 1.3rem 1.25rem 1.15rem;
}

body.student-ui-dashboard .student-course-modal-summary {
  background: var(--student-surface-soft);
  border: 1px solid #d9e4ee;
  border-radius: var(--student-radius-lg);
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
}

body.student-ui-dashboard .student-course-modal-kicker {
  color: #607080;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

body.student-ui-dashboard .student-course-modal-name {
  color: var(--student-text);
  font-family: var(--student-heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

body.student-ui-dashboard .student-course-modal-tip {
  color: var(--student-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 0.55rem;
}

body.student-ui-dashboard .student-course-modal-error {
  background: #fff2f0;
  border: 1px solid #efcdca;
  border-radius: var(--student-radius-md);
  color: #dc2626;
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
}

body.student-ui-dashboard .student-dashboard-action-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 1.15rem;
}

body.student-ui-dashboard .student-dashboard-flow-body {
  flex: 1 1 auto;
  min-height: 0;
}

body.student-ui-dashboard .student-dashboard-action-card {
  display: flex;
  flex-direction: column;
}

body.student-ui-dashboard .student-dashboard-flow-grid {
  max-width: 56rem;
}

body.student-ui-dashboard .student-dashboard-flow-copy {
  background: var(--student-surface-soft);
  border: 1px solid #dbe5ee;
  border-radius: var(--student-radius-lg);
  padding: 1rem 1.05rem;
}

body.student-ui-dashboard .student-dashboard-flow-lead {
  color: var(--student-text);
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

body.student-ui-dashboard .student-dashboard-flow-list {
  margin-left: 0.15rem;
}

body.student-ui-dashboard .student-dashboard-flow-list li + li {
  margin-top: 0.38rem;
}

body.student-ui-dashboard .student-dashboard-upload-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

body.student-ui-dashboard .student-dashboard-upload-button,
body.student-ui-dashboard .student-dashboard-finalize-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  min-height: 2.75rem;
}

body.student-ui-dashboard .student-dashboard-upload-button {
  align-self: flex-start;
  min-width: 8rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

body.student-ui-dashboard .student-dashboard-inline-result .alert {
  margin-bottom: 0;
}

body.student-ui-dashboard .student-dashboard-checklist {
  background: #ffffff;
  border: 1px solid #dce5ed;
  border-radius: var(--student-radius-lg);
  padding: 1rem 1.05rem;
}

body.student-ui-dashboard .student-dashboard-submit-card {
  align-self: flex-start;
}

body.student-ui-dashboard .student-dashboard-submit-status {
  background: var(--student-danger-soft);
  border: 1px solid #f0d4d4;
  border-radius: var(--student-radius-lg);
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
}

body.student-ui-dashboard .student-dashboard-submit-status-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

body.student-ui-dashboard .student-dashboard-submit-status-label {
  color: var(--student-text);
  font-weight: 600;
}

body.student-ui-dashboard .student-dashboard-confirm-check {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0;
  min-height: auto;
  padding-left: 0;
}

body.student-ui-dashboard .student-dashboard-confirm-check .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
  margin-top: 0.25rem;
}

body.student-ui-dashboard .student-dashboard-confirm-check .form-check-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1.6;
}

body.student-ui-dashboard .student-dashboard-confirm-title {
  color: var(--student-text);
  font-size: 0.95rem;
  font-weight: 700;
}

body.student-ui-dashboard .student-dashboard-finalize-actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

body.student-ui-dashboard .student-dashboard-finalize-button {
  align-self: flex-start;
  min-width: 12rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.student-ui-dashboard .student-dashboard-flow-helper {
  border: 1px solid transparent;
  border-radius: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  padding: 0.75rem 0.95rem;
}

body.student-ui-dashboard .student-dashboard-flow-helper-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706 !important;
}

body.student-ui-dashboard .student-dashboard-flow-helper-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb !important;
}

body.student-ui-dashboard .student-dashboard-flow-helper-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626 !important;
}

body.student-ui-dashboard .student-dashboard-submitted-summary {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-left: 0;
  margin-right: auto;
  max-width: 24rem;
  padding: 1rem 1.05rem;
  width: 100%;
}

body.student-ui-dashboard .student-dashboard-submitted-summary-row {
  align-items: baseline;
  border-bottom: 1px solid var(--student-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  justify-content: space-between;
  padding-bottom: 0.85rem;
}

body.student-ui-dashboard .student-dashboard-submitted-summary-label {
  color: var(--student-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

body.student-ui-dashboard .student-dashboard-submitted-summary-value {
  color: var(--student-text);
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

body.student-ui-dashboard .student-dashboard-submitted-files {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.student-ui-dashboard .student-dashboard-submitted-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.student-ui-dashboard .student-dashboard-payment-summary {
  border: 1px solid #e3ebf2;
  border-radius: var(--student-radius-lg);
  overflow: hidden;
}

body.student-ui-dashboard .student-dashboard-payment-summary .list-group-item {
  background: #ffffff;
  padding: 1rem 1.05rem;
}

body.student-ui-dashboard .student-dashboard-payment-total {
  background: var(--student-surface-soft) !important;
}

body.student-ui-dashboard .student-dashboard-file-box {
  border-radius: var(--student-radius-lg);
  padding: 1rem 1.05rem;
}

body.student-ui-dashboard .student-dashboard-file-box-title {
  color: var(--student-text);
  margin-bottom: 0.45rem;
}

body.student-ui-dashboard .student-dashboard-file-box a {
  font-weight: 600;
}

body.student-ui-dashboard .student-dashboard-payment-box {
  background: #ffffff !important;
  border: 1px solid #dbe5ee !important;
  border-radius: var(--student-radius-lg) !important;
  padding: 1rem 1.05rem !important;
}

body.student-ui-dashboard .student-dashboard-payment-box-title {
  color: var(--student-text);
  font-weight: 700;
}

body.student-ui-dashboard .student-dashboard-payment-box-row {
  color: var(--student-text);
  line-height: 1.6;
}

body.student-ui-dashboard .student-dashboard-payment-box-row + .student-dashboard-payment-box-row {
  border-top: 1px dashed #dde6ef;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}

body.student-ui-dashboard .student-dashboard-flow-alert {
  border-radius: var(--student-radius-lg);
  line-height: 1.65;
}

body.student-ui-dashboard .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.15rem;
}

body.student-ui-dashboard .btn-sm {
  padding: 0.48rem 0.85rem;
}

body.student-ui-dashboard .btn-lg {
  padding: 0.9rem 1.4rem;
}

body.student-ui-dashboard .btn-primary {
  background: var(--student-primary);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  color: #f7fbff;
}

body.student-ui-dashboard .btn-primary:hover,
body.student-ui-dashboard .btn-primary:focus {
  background: var(--student-primary-strong);
  color: #f7fbff;
}

body.student-ui-dashboard .btn-success {
  background: var(--student-success);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
  color: #f7fffb;
}

body.student-ui-dashboard .btn-success:hover,
body.student-ui-dashboard .btn-success:focus {
  background: #15803d;
  color: #f7fffb;
}

body.student-ui-dashboard .btn-danger {
  background: var(--student-primary);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
  color: #fffafb;
}

body.student-ui-dashboard .btn-danger:hover,
body.student-ui-dashboard .btn-danger:focus {
  background: #b91c1c;
  color: #fffafb;
}

body.student-ui-dashboard .btn-warning {
  background: #efc86c;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
  color: #4f3608;
}

body.student-ui-dashboard .btn-warning:hover,
body.student-ui-dashboard .btn-warning:focus {
  background: #e4bb58;
  color: #4f3608;
}

body.student-ui-dashboard .btn-secondary {
  background: #718092;
  border-color: transparent;
  box-shadow: none;
  color: #f8fbff;
}

body.student-ui-dashboard .btn-secondary:hover,
body.student-ui-dashboard .btn-secondary:focus {
  background: #5d6b7c;
  color: #f8fbff;
}

body.student-ui-dashboard .btn-light {
  background: #ffffff;
  border-color: var(--student-neutral-border);
  color: var(--student-neutral-text);
}

body.student-ui-dashboard .btn-light:hover,
body.student-ui-dashboard .btn-light:focus {
  background: #f4f7fb;
  border-color: #c4d0dc;
  color: #304557;
}

body.student-ui-dashboard .btn-outline-primary {
  background: #eef4ff;
  border-color: #ccdaf6;
  color: #2e5fc1;
}

body.student-ui-dashboard .btn-outline-primary:hover,
body.student-ui-dashboard .btn-outline-primary:focus {
  background: #dfe9ff;
  border-color: #b8caf0;
  color: #234eaa;
}

body.student-ui-dashboard .btn-outline-success {
  background: #f3fbf6;
  border-color: #bfdecf;
  color: #1b7d52;
}

body.student-ui-dashboard .btn-outline-success:hover,
body.student-ui-dashboard .btn-outline-success:focus {
  background: #e5f7ed;
  border-color: #abd2c0;
  color: #166543;
}

body.student-ui-dashboard .btn-outline-warning {
  background: #fff7e8;
  border-color: #efd9aa;
  color: #d97706;
}

body.student-ui-dashboard .btn-outline-warning:hover,
body.student-ui-dashboard .btn-outline-warning:focus {
  background: #fff1d8;
  border-color: #e8cc8a;
  color: #6e4e16;
}

body.student-ui-dashboard .btn-outline-secondary {
  background: var(--student-neutral-bg);
  border-color: var(--student-neutral-border);
  color: var(--student-neutral-text);
}

body.student-ui-dashboard .btn-outline-secondary:hover,
body.student-ui-dashboard .btn-outline-secondary:focus {
  background: #f4f7fb;
  border-color: #c4d0dc;
  color: #304557;
}

body.student-ui-dashboard .btn-outline-danger {
  background: #fff5f5;
  border-color: #ecc5c3;
  color: #b25555;
}

body.student-ui-dashboard .btn-outline-danger:hover,
body.student-ui-dashboard .btn-outline-danger:focus {
  background: #fdeceb;
  border-color: #e4b2ae;
  color: #964646;
}

body.student-ui-dashboard .btn-link {
  box-shadow: none;
  color: #355fa6;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
}

body.student-ui-dashboard .btn-link:hover,
body.student-ui-dashboard .btn-link:focus {
  color: #244d93;
}

body.student-ui-dashboard .btn[disabled],
body.student-ui-dashboard .btn.disabled,
body.student-ui-dashboard .btn:disabled {
  filter: none;
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

body.student-ui-dashboard .btn-secondary.disabled,
body.student-ui-dashboard .btn-secondary:disabled {
  background: #d9e0e7;
  color: #7c8895;
}

body.student-ui-dashboard .alert {
  border: 1px solid transparent;
  border-radius: var(--student-radius-lg);
  box-shadow: none;
}

body.student-ui-dashboard .alert-light {
  background: #ffffff;
  border-color: var(--student-border);
  color: var(--student-text);
}

body.student-ui-dashboard .alert-primary,
body.student-ui-dashboard .alert-info {
  background: var(--student-info-soft);
  border-color: var(--student-info-border);
  color: #39546f;
}

body.student-ui-dashboard .alert-success {
  background: var(--student-success-soft);
  border-color: var(--student-success-border);
  color: #246b48;
}

body.student-ui-dashboard .alert-warning {
  background: var(--student-warning-soft);
  border-color: var(--student-warning-border);
  color: #8b6120;
}

body.student-ui-dashboard .alert-danger {
  background: var(--student-danger-soft);
  border-color: var(--student-danger-border);
  color: #96504b;
}

body.student-ui-dashboard .alert-secondary {
  background: #f3f4f6;
  border-color: #dce5ed;
  color: #526375;
}

body.student-ui-dashboard .alert-link {
  color: inherit;
}

body.student-ui-dashboard .table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(37, 99, 235, 0.035);
  margin-bottom: 0;
}

body.student-ui-dashboard .table > :not(caption) > * > * {
  border-bottom-color: #e3ebf2;
  color: var(--student-text);
}

body.student-ui-dashboard .table thead th {
  background: #f4f7fb;
  border-bottom: 1px solid var(--student-border-strong);
  color: #556678;
  font-size: 0.87rem;
  font-weight: 700;
  white-space: nowrap;
}

body.student-ui-dashboard .table-light,
body.student-ui-dashboard .table-light > th,
body.student-ui-dashboard .table-light > td,
body.student-ui-dashboard .table-light > tr > th,
body.student-ui-dashboard .table-light > tr > td {
  background: #f4f7fb !important;
  color: #556678 !important;
}

body.student-ui-dashboard .table-secondary,
body.student-ui-dashboard .table-secondary > th,
body.student-ui-dashboard .table-secondary > td,
body.student-ui-dashboard .table-secondary > tr > th,
body.student-ui-dashboard .table-secondary > tr > td {
  background: #eef3f8 !important;
  color: var(--student-text) !important;
}

body.student-ui-dashboard .table-responsive {
  border-radius: var(--student-radius-md);
}

body.student-ui-dashboard .badge {
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

body.student-ui-dashboard .badge.bg-primary {
  background-color: var(--student-primary) !important;
  color: #f7fbff !important;
}

body.student-ui-dashboard .badge.bg-success {
  background-color: var(--student-success) !important;
  color: #f7fffb !important;
}

body.student-ui-dashboard .badge.bg-warning {
  background-color: #efc86c !important;
  color: #4f3608 !important;
}

body.student-ui-dashboard .badge.bg-secondary {
  background-color: #6d7786 !important;
  color: #f8fbff !important;
}

body.student-ui-dashboard .badge.bg-danger {
  background-color: #c76060 !important;
  color: #fffafb !important;
}

body.student-ui-dashboard .badge.bg-light {
  background: #ffffff !important;
  border: 1px solid var(--student-border);
  color: var(--student-neutral-text) !important;
}

body.student-ui-dashboard .student-status-chip {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.3rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.38rem 0.7rem;
  white-space: nowrap;
}

body.student-ui-dashboard .student-status-chip-neutral {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #4b5563;
}

body.student-ui-dashboard .student-status-chip-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

body.student-ui-dashboard .student-status-chip-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

body.student-ui-dashboard .student-status-chip-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

body.student-ui-dashboard .student-status-chip-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

body.student-ui-dashboard .student-status-reason {
  color: #dc2626;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

body.student-ui-dashboard .bg-danger-subtle {
  background-color: #fff1f0 !important;
}

body.student-ui-dashboard .border-danger-subtle {
  border-color: #efcdca !important;
}

body.student-ui-dashboard .text-primary {
  color: #2f61ca !important;
}

body.student-ui-dashboard .text-success {
  color: #1d7c53 !important;
}

body.student-ui-dashboard .text-warning {
  color: #9d6c18 !important;
}

body.student-ui-dashboard .text-secondary {
  color: var(--student-muted) !important;
}

body.student-ui-dashboard .text-danger {
  color: #ba5b56 !important;
}

body.student-ui-dashboard .form-control,
body.student-ui-dashboard .form-select,
body.student-ui-dashboard .input-group-text {
  background: #fcfdff;
  border-color: var(--student-border);
  border-radius: var(--student-radius-md);
  color: var(--student-text);
  min-height: 3rem;
}

body.student-ui-dashboard textarea.form-control {
  min-height: 8rem;
}

body.student-ui-dashboard .form-control[type="file"] {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

body.student-ui-dashboard .input-group-text {
  background: var(--student-surface-soft);
  color: var(--student-muted);
}

body.student-ui-dashboard .form-control:focus,
body.student-ui-dashboard .form-select:focus {
  background: #ffffff;
  border-color: #9db8f1;
}

body.student-ui-dashboard .form-label,
body.student-ui-dashboard .form-check-label {
  color: var(--student-muted);
  font-weight: 600;
}

body.student-ui-dashboard .form-check-input {
  border-color: #c7d3df;
}

body.student-ui-dashboard .list-group-item {
  background: transparent;
  border-color: #e3ebf2;
  color: var(--student-text);
  padding: 0.9rem 1rem;
}

body.student-ui-dashboard .list-group-item.bg-light {
  background: #f5f8fb !important;
}

body.student-ui-dashboard .modal-content {
  background: #ffffff;
  border: 1px solid var(--student-border);
  border-radius: var(--student-radius-lg);
  box-shadow: var(--student-shadow);
  overflow: hidden;
}

body.student-ui-dashboard .modal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--student-border);
  padding: 1rem 1.25rem;
}

body.student-ui-dashboard .modal-header .btn-close {
  filter: none;
}

body.student-ui-dashboard .modal-footer {
  background: var(--student-surface-soft);
  border-top: 1px solid var(--student-border);
  padding: 1rem 1.25rem 1.15rem;
}

body.student-ui-dashboard .popover {
  border-color: var(--student-border);
  border-radius: var(--student-radius-lg);
  box-shadow: var(--student-shadow);
}

body.student-ui-dashboard .popover-header {
  background: var(--student-surface-soft);
  border-bottom-color: var(--student-border);
  color: var(--student-text);
  font-family: var(--student-heading-font);
}

@media (max-width: 767.98px) {
  body.student-ui-home .student-step-card .card-body,
  body.student-ui-auth .student-auth-card .card-body,
  body.student-ui-auth .student-auth-card.student-auth-card-wide .card-body,
  body.student-ui-home .student-feedback-card,
  body.student-ui-auth .student-feedback-card,
  body.student-ui-dashboard .student-dashboard-hub-card .card-body,
  body.student-ui-dashboard .student-dashboard-panel .card-body {
    padding: 1.25rem !important;
  }

  body.student-ui-home .student-home-hero {
    margin-bottom: 2.25rem !important;
  }

  body.student-ui-home .student-home-hero-compact {
    align-items: stretch;
    flex-direction: column;
    gap: 0.95rem;
    margin-bottom: 0 !important;
  }

  body.student-ui-home .student-home-context-strip {
    flex-basis: auto;
    min-width: 0;
    width: 100%;
  }

  body.student-ui-home .student-home-entry-grid {
    grid-template-columns: 1fr;
  }

  body.student-ui-home .student-home-entry-card {
    padding: 1.1rem;
  }

  body.student-ui-home .student-home-register-card .student-home-primary-action {
    align-self: stretch;
  }

  body.student-ui-auth .student-login-context-strip {
    max-width: none;
    min-width: 0;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.student-ui-auth .student-login-page-context {
    justify-content: flex-start;
  }

  body.student-ui-auth .student-login-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body.student-ui-auth .student-login-back-link {
    align-self: flex-end;
    margin-left: 0;
  }

  body.student-ui-auth .student-register-field-grid {
    grid-template-columns: 1fr;
  }

  body.student-ui-auth .student-register-field-wide {
    grid-column: auto;
  }

  body.student-ui-dashboard .student-dashboard-panel > .card-header {
    padding: 1rem 1.1rem 0.95rem;
  }

  body.student-ui-dashboard .student-dashboard-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.student-ui-dashboard .student-dashboard-toolbar-actions {
    justify-content: flex-start;
  }

  body.student-ui-dashboard .student-dashboard-home-title {
    font-size: 1.9rem;
  }

  body.student-ui-dashboard .student-dashboard-term-grid,
  body.student-ui-dashboard .student-dashboard-nav-list {
    gap: 0.55rem;
    grid-template-columns: 1fr;
  }

  body.student-ui-dashboard .student-dashboard-flow-arrow {
    min-height: 1rem;
    transform: rotate(90deg);
  }

  body.student-ui-dashboard .student-dashboard-nav-card {
    min-height: 0;
  }

  body.student-ui-dashboard .student-dashboard-nav-card > .btn {
    align-self: stretch;
    justify-content: center;
  }

  body.student-ui-dashboard .student-dashboard-filter-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  body.student-ui-dashboard .student-dashboard-filter-term {
    justify-content: flex-start;
  }

  body.student-ui-dashboard .student-dashboard-results-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.student-ui-dashboard .student-course-table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
  }

  body.student-ui-dashboard .student-course-table-wrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  body.student-ui-dashboard .student-course-table {
    min-width: 700px;
  }

  body.student-ui-dashboard .student-selection-table {
    min-width: 58rem;
  }

  body.student-ui-dashboard .student-dashboard-submitted-summary-value {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  body.student-ui-home .student-home-card-head {
    gap: 0.6rem;
  }

  body.student-ui-home .student-home-hero-compact h1 {
    font-size: 2rem;
  }

  body.student-ui-auth .student-register-birthday-grid {
    grid-template-columns: 1fr;
  }

  body.student-ui-auth .student-register-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.student-ui-auth .student-register-actions .btn,
  body.student-ui-auth .student-register-actions .btn-primary {
    min-width: 0;
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.student-ui,
  body.student-ui * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  body.student-ui {
    --student-border: #6b7280;
    --student-border-strong: #4b5563;
    --student-muted: #374151;
    --student-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
}
