:root {
  --student-accent: #800000;
  --admin-accent: #f6ae2d;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.48);
  --status-pending: #d84e5f;
  --status-progress: #f2b642;
  --status-resolved: #35b66a;
  --psu-card-accent-gradient: linear-gradient(90deg, #f6ae2d 0%, #e8922a 38%, #c44b2f 68%, #871743 100%);
  --psu-card-accent-divider: rgba(148, 163, 184, 0.22);
  --psu-brand-maroon: #800000;
  --psu-brand-maroon-hover: #6e0000;
  --psu-brand-maroon-active: #601010;
  --psu-accent-amber: #f6ae2d;
  --psu-accent-amber-deep: #eab308;
  --psu-accent-amber-border: #d97706;
  --psu-accent-amber-text: #422006;
}

/* —— Global PSU button system (Bootstrap 5 `.btn`) —— */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--psu-brand-maroon);
  --bs-btn-border-color: var(--psu-brand-maroon);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--psu-brand-maroon-hover);
  --bs-btn-hover-border-color: var(--psu-brand-maroon-hover);
  --bs-btn-active-bg: var(--psu-brand-maroon-active);
  --bs-btn-active-border-color: var(--psu-brand-maroon-active);
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #b45353;
  --bs-btn-disabled-border-color: #b45353;
  --bs-btn-disabled-color: #fceeee;
  --bs-btn-focus-shadow-rgb: 128, 0, 0;
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--psu-brand-maroon);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--psu-brand-maroon);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--psu-brand-maroon);
  --bs-btn-hover-border-color: var(--psu-brand-maroon);
  --bs-btn-active-bg: var(--psu-brand-maroon-active);
  --bs-btn-active-border-color: var(--psu-brand-maroon-active);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 128, 0, 0;
  font-weight: 600;
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #64748b;
  --bs-btn-border-color: #64748b;
  --bs-btn-hover-bg: #475569;
  --bs-btn-hover-border-color: #475569;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #334155;
  --bs-btn-active-border-color: #334155;
  font-weight: 600;
}

.btn-outline-secondary {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-bg: #f8fafc;
  --bs-btn-hover-border-color: #94a3b8;
  --bs-btn-hover-color: #0f172a;
  font-weight: 600;
}

.btn-warning {
  --bs-btn-color: var(--psu-accent-amber-text);
  --bs-btn-bg: var(--psu-accent-amber);
  --bs-btn-border-color: var(--psu-accent-amber-border);
  --bs-btn-hover-bg: #fde047;
  --bs-btn-hover-border-color: var(--psu-accent-amber-border);
  --bs-btn-hover-color: var(--psu-accent-amber-text);
  --bs-btn-active-bg: #facc15;
  --bs-btn-active-border-color: var(--psu-accent-amber-border);
  --bs-btn-focus-shadow-rgb: 246, 174, 45;
  font-weight: 700;
}

.btn-danger {
  --bs-btn-bg: #b91c1c;
  --bs-btn-border-color: #b91c1c;
  --bs-btn-hover-bg: #991b1b;
  --bs-btn-hover-border-color: #991b1b;
  --bs-btn-active-bg: #7f1d1d;
  --bs-btn-focus-shadow-rgb: 185, 28, 28;
  font-weight: 600;
}

.btn-success {
  --bs-btn-bg: #15803d;
  --bs-btn-border-color: #15803d;
  --bs-btn-hover-bg: #166534;
  --bs-btn-hover-border-color: #166534;
  --bs-btn-focus-shadow-rgb: 21, 128, 61;
  font-weight: 600;
}

.btn-link {
  --bs-btn-color: var(--psu-brand-maroon);
  --bs-btn-hover-color: var(--psu-brand-maroon-hover);
  font-weight: 600;
}

.btn-psu-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--psu-brand-maroon);
  --bs-btn-border-color: var(--psu-brand-maroon);
  --bs-btn-hover-bg: var(--psu-brand-maroon-hover);
  --bs-btn-hover-border-color: var(--psu-brand-maroon-hover);
  --bs-btn-focus-shadow-rgb: 128, 0, 0;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
}

.btn-psu-outline {
  --bs-btn-color: var(--psu-brand-maroon);
  --bs-btn-border-color: var(--psu-brand-maroon);
  --bs-btn-hover-bg: var(--psu-brand-maroon);
  --bs-btn-hover-border-color: var(--psu-brand-maroon);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

body {
  font-size: 0.95rem;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
  background: radial-gradient(circle at top left, #faf2f2 0%, #f4f6fb 48%, #f8f9fc 100%);
}

.card,
.complaint-item,
.summary-tile,
.bento-box,
.user-card,
.app-topbar,
.app-footer,
.quick-fab,
button,
.btn,
a {
  transition: transform 180ms ease, box-shadow 220ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.glass-panel,
.card {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 30px rgba(11, 21, 49, 0.08);
}

.card:hover,
.complaint-item:hover,
.summary-tile:hover,
.bento-box:hover,
.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(11, 21, 49, 0.12);
}

.app-topbar {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  margin: 0.8rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.app-topbar .btn:hover {
  transform: translateY(-1px);
}

.app-topbar__inner {
  max-width: 75rem;
}

.app-topbar__actions {
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  gap: 1rem;
}

@media (min-width: 576px) {
  .app-topbar__actions {
    gap: 1.2rem;
  }
}

.app-topbar__user-menu {
  margin-left: 0.45rem;
}

.app-topbar__menu-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  gap: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid #ddd3d7;
  background: #fff;
  color: #5c3b49;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.app-topbar__menu-btn:hover,
.app-topbar__menu-btn:focus-visible {
  border-color: #b994a2;
  color: #4a0f2a;
  background: #fff7f9;
  box-shadow: 0 0 0 0.15rem rgba(128, 0, 0, 0.12);
}

.app-topbar__menu-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-topbar__menu-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-topbar__menu-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-topbar__notif-btn {
  border-radius: 999px;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

.app-topbar__notif-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.app-topbar__notif-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-topbar__user-name {
  max-width: 11rem;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1e293b;
  display: block;
}

.app-topbar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  max-width: min(100%, 22rem);
}

@media (min-width: 768px) {
  .app-topbar__brand {
    max-width: min(100%, 40rem);
  }
}

.app-topbar__eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
}

.app-topbar__product-title {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
  display: block;
}

.app-topbar__user-role {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.app-topbar__user-chip {
  padding: 0.2rem 0.45rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.app-topbar__user-chip .app-user-avatar,
.app-topbar__user-chip .app-user-avatar--initials {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.app-topbar__user-menu .app-topbar__user-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.app-topbar__user-menu .app-topbar__user-btn:focus-visible {
  box-shadow: 0 0 0 0.16rem rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.app-topbar__user-dropdown {
  min-width: 14.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.3rem 0;
}

.app-topbar__user-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  padding: 0.5rem 0.85rem;
}

.app-topbar__user-item:hover,
.app-topbar__user-item:focus-visible {
  background: #f8fafc;
  color: #0f172a;
}

.app-topbar__user-item-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  color: #6d1a3c;
  background: linear-gradient(135deg, #ffe6ea, #ffeec8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.app-topbar__user-item-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.app-topbar__user-item--danger {
  color: #b91c1c;
}

.app-topbar__user-item--danger .app-topbar__user-item-icon {
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.app-topbar__user-item--danger:hover,
.app-topbar__user-item--danger:focus-visible {
  background: #fff1f2;
  color: #991b1b;
}

/* Staff console: full-width header, less “floating” empty bar */
body.role-admin .app-topbar:not(.app-topbar--psu),
body.role-super_admin .app-topbar:not(.app-topbar--psu) {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 55%, #fafbfc 100%);
  border-bottom: 1px solid rgba(135, 23, 67, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

body.role-admin .app-topbar:not(.app-topbar--psu) .app-topbar__inner,
body.role-super_admin .app-topbar:not(.app-topbar--psu) .app-topbar__inner {
  max-width: 75rem;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .app-topbar__user-chip {
    transition: none;
  }
}

.app-menu-offcanvas {
  width: min(360px, calc(100vw - 1.5rem));
}


.app-menu-offcanvas__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(130, 98, 112, 0.14);
}

.app-menu-offcanvas__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-menu-offcanvas__brand-mark {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem;
  background: linear-gradient(135deg, rgba(143, 18, 63, 0.14), rgba(216, 156, 54, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 18px rgba(63, 29, 46, 0.12);
}

.app-menu-offcanvas__brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-menu-offcanvas__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b5a68;
  margin-bottom: 0.15rem;
}

.app-menu-offcanvas__title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #251821;
}

.app-menu-offcanvas__hint {
  font-size: 0.8rem;
  color: #6c5a63;
  line-height: 1.45;
  max-width: 17.5rem;
}

.app-menu-offcanvas__body {
  padding-top: 0.95rem;
}

.app-menu-nav__section + .app-menu-nav__section {
  margin-top: 1rem;
}

.app-menu-nav__title {
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7f6671;
}

.app-menu-nav__list {
  display: grid;
  gap: 0.5rem;
}

.app-menu-link {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  border-radius: 0.9rem;
  padding: 0.58rem 0.66rem;
  border: 1px solid rgba(130, 98, 112, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(251, 245, 247, 0.88));
  color: #2c2a31;
  box-shadow: 0 8px 16px rgba(32, 21, 39, 0.06);
}

.app-menu-link:hover,
.app-menu-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(128, 0, 0, 0.32);
  box-shadow: 0 12px 20px rgba(32, 21, 39, 0.12);
  color: #1f1720;
}

.app-menu-link:focus-visible {
  outline: 2px solid rgba(128, 0, 0, 0.28);
  outline-offset: 2px;
}

.app-menu-link__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d1a3c;
  background: linear-gradient(135deg, #ffe6ea, #ffeec8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.app-menu-link__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.app-menu-link__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-menu-link__label {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-menu-link__hint {
  font-size: 0.75rem;
  color: #6f5f67;
  line-height: 1.35;
}

.app-menu-link__body {
  flex: 1 1 auto;
}

.app-menu-link__badge {
  flex-shrink: 0;
  margin-left: auto;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.42rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.app-menu-link__badge--alert {
  color: #fff;
  background: #b1123c;
  box-shadow: 0 2px 6px rgba(177, 18, 60, 0.3);
}

.app-menu-link__badge--muted {
  color: #6d1a3c;
  background: rgba(128, 0, 0, 0.1);
  border: 1px solid rgba(128, 0, 0, 0.18);
}

.app-menu-link.is-active {
  border-color: rgba(128, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.12), rgba(246, 174, 45, 0.2));
  box-shadow: 0 0 0 1px rgba(128, 0, 0, 0.16), 0 14px 22px rgba(58, 26, 41, 0.12);
}

.app-menu-link.is-active .app-menu-link__icon {
  color: #fff;
  background: linear-gradient(135deg, #8d1140, #b1414f);
}

body.role-admin .app-menu-link__icon {
  color: #1e3a5f;
  background: linear-gradient(135deg, #e8f0ff, #dbeafe);
}

body.role-admin .app-menu-link.is-active .app-menu-link__icon {
  color: #fff;
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

body.role-super_admin .app-menu-link__icon {
  color: #7a1f3d;
  background: linear-gradient(135deg, #fde8ef, #fff3d6);
}

body.role-super_admin .app-menu-link.is-active .app-menu-link__icon {
  color: #fff;
  background: linear-gradient(135deg, #800000, #c27803);
}

body.role-admin .app-topbar__user-item-icon {
  color: #1e3a5f;
  background: linear-gradient(135deg, #e8f0ff, #dbeafe);
}

body.role-super_admin .app-topbar__user-item-icon {
  color: #7a1f3d;
  background: linear-gradient(135deg, #fde8ef, #fff3d6);
}

.app-menu-nav__footer {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(130, 98, 112, 0.28);
}

.app-menu-link--danger {
  border-color: rgba(170, 37, 62, 0.2);
  background: linear-gradient(135deg, rgba(255, 241, 244, 0.96), rgba(255, 248, 248, 0.92));
}

.app-menu-link--danger .app-menu-link__icon {
  color: #a1223b;
  background: linear-gradient(135deg, #ffe2e7, #ffd7df);
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #d13e4d;
}

.notification-dropdown {
  width: 360px;
  max-height: 420px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(111, 128, 161, 0.25);
}

.notification-dropdown__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.notification-item {
  border-radius: 12px;
  border: 1px solid rgba(111, 128, 161, 0.16);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}

.notification-item.is-unread {
  border-color: rgba(246, 174, 45, 0.6);
  box-shadow: inset 0 0 0 1px rgba(246, 174, 45, 0.18);
}

.notification-item.is-read {
  opacity: 0.84;
}

.complaint-focus {
  outline: 2px solid rgba(246, 174, 45, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(246, 174, 45, 0.18), 0 18px 30px rgba(39, 33, 18, 0.12);
}

.notification-level {
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  text-transform: uppercase;
}

.notification-level.level-info {
  background: #e2efff;
  color: #29589b;
}

.notification-level.level-urgent {
  background: #ffe1e5;
  color: #9d1f2e;
}

.notification-level.level-escalation {
  background: #fff0ce;
  color: #865400;
}

a.quick-fab {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 3.25rem;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.quick-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1040;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #1e5a8a, #0f3d5c);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 28px rgba(15, 61, 92, 0.35);
  animation: subtlePulseStudent 3.2s ease-in-out infinite;
}

@keyframes subtlePulseStudent {
  0% { box-shadow: 0 14px 28px rgba(15, 61, 92, 0.35), 0 0 0 rgba(30, 90, 138, 0); }
  50% { box-shadow: 0 14px 28px rgba(15, 61, 92, 0.4), 0 0 0 8px rgba(30, 90, 138, 0.12); }
  100% { box-shadow: 0 14px 28px rgba(15, 61, 92, 0.35), 0 0 0 rgba(30, 90, 138, 0); }
}

.quick-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 32px rgba(111, 0, 16, 0.4);
}

.quick-fab:active {
  transform: translateY(0) scale(0.98);
}

.floating-group {
  position: relative;
}

.floating-group .form-control,
.floating-group .form-select {
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(83, 95, 126, 0.25);
  background: rgba(255, 255, 255, 0.84);
  padding-top: 1.25rem;
}

.floating-group .form-control:hover,
.floating-group .form-select:hover {
  border-color: rgba(83, 95, 126, 0.38);
}

.floating-group textarea.form-control {
  height: auto;
  min-height: 130px;
}

.floating-group label {
  position: absolute;
  top: 0.4rem;
  left: 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #7d8698;
  pointer-events: none;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.role-student .floating-group .form-control:focus,
.role-student .floating-group .form-select:focus,
.role-student .floating-group textarea.form-control:focus {
  border-color: var(--student-accent);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.2);
}

.role-admin .floating-group .form-control:focus,
.role-admin .floating-group .form-select:focus,
.role-admin .floating-group textarea.form-control:focus,
.role-super_admin .floating-group .form-control:focus,
.role-super_admin .floating-group .form-select:focus,
.role-super_admin .floating-group textarea.form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 0.2rem rgba(246, 174, 45, 0.24);
}

.status-glow {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.status-glow::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.status-pending {
  background: color-mix(in oklab, var(--status-pending) 90%, white 10%);
  box-shadow: 0 0 12px rgba(216, 78, 95, 0.45);
}

.status-progress {
  background: color-mix(in oklab, var(--status-progress) 88%, white 12%);
  color: #4c3400;
  box-shadow: 0 0 12px rgba(242, 182, 66, 0.45);
}

.status-resolved {
  background: color-mix(in oklab, var(--status-resolved) 88%, white 12%);
  box-shadow: 0 0 12px rgba(53, 182, 106, 0.42);
}

.status-escalated {
  background: color-mix(in oklab, #ef4444 88%, white 12%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.42);
}

.status-glow--compact {
  font-size: 0.68rem;
  padding: 0.22rem 0.6rem;
}

.status-glow--compact::before {
  width: 5px;
  height: 5px;
  margin-right: 0.28rem;
}

.complaint-list {
  display: grid;
  gap: 0.85rem;
}

.complaint-item {
  border: 1px solid rgba(111, 128, 161, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(16, 26, 56, 0.09);
  padding: 0.95rem;
}

.concern-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.concern-fact-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(111, 128, 161, 0.2);
  background: #fff;
  min-width: 7.5rem;
}

.concern-fact-chip__label {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.1;
}

.concern-fact-chip__value {
  font-size: 0.79rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.priority-urgent {
  border-left: 5px solid var(--admin-accent);
}

/* —— Admin dashboard: complaint queue (student concern highlighted) —— */
body.role-admin .admin-queue-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
}

body.role-admin .admin-queue-card__head {
  border-color: rgba(111, 128, 161, 0.2) !important;
}

body.role-admin .admin-complaint-card {
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid rgba(111, 128, 161, 0.22);
  background: #fff;
}

body.role-admin .concern-facts--admin .concern-fact-chip {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  border-color: color-mix(in srgb, var(--admin-accent) 30%, #e2e8f0 70%);
}

body.role-admin .admin-complaint-card__eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

body.role-admin .admin-complaint-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.role-admin .admin-badge-urgent,
body.role-student .admin-badge-urgent,
body.student-theme-dashboard .admin-badge-urgent {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #9a3412;
  border: 1px solid rgba(234, 88, 12, 0.35);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

body.role-admin .admin-concern-callout,
body.role-super_admin .admin-concern-callout,
body.role-student .admin-concern-callout,
body.student-theme-dashboard .admin-concern-callout {
  margin-top: 1rem;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #fffbeb 0%, #fff7ed 50%, #ffffff 100%);
  border: 1px solid color-mix(in srgb, var(--admin-accent) 45%, #fff 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 28px rgba(180, 83, 9, 0.08);
  position: relative;
  overflow: hidden;
}

body.role-admin .admin-concern-callout::before,
body.role-super_admin .admin-concern-callout::before,
body.role-student .admin-concern-callout::before,
body.student-theme-dashboard .admin-concern-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f59e0b, var(--admin-accent), #b45309);
  border-radius: 0.9rem 0 0 0.9rem;
}

body.role-admin .admin-concern-callout__label,
body.role-super_admin .admin-concern-callout__label,
body.role-student .admin-concern-callout__label,
body.student-theme-dashboard .admin-concern-callout__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #92400e;
  margin: 0 0 0.5rem 0;
  padding: 0.75rem 1rem 0 1.15rem;
}

body.role-admin .admin-concern-callout__body,
body.role-super_admin .admin-concern-callout__body,
body.role-student .admin-concern-callout__body,
body.student-theme-dashboard .admin-concern-callout__body {
  padding: 0 1rem 0.9rem 1.15rem;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(245, 158, 11, 0.35);
  margin-left: 0.5rem;
}

body.role-admin .admin-concern-callout__text,
body.role-super_admin .admin-concern-callout__text,
body.role-student .admin-concern-callout__text,
body.student-theme-dashboard .admin-concern-callout__text {
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 500;
  color: #1c1917;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 72ch;
}

body.role-admin .priority-urgent .admin-concern-callout,
body.role-super_admin .priority-urgent .admin-concern-callout,
body.role-student .priority-urgent .admin-concern-callout,
body.student-theme-dashboard .priority-urgent .admin-concern-callout {
  background: linear-gradient(145deg, #fff1f2 0%, #fffbeb 40%, #ffffff 100%);
  border-color: color-mix(in srgb, #f43f5e 35%, var(--admin-accent) 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 32px rgba(190, 24, 93, 0.1);
}

/* Response & resolution block: compact, readable, and highlight key state */
.complaint-timing-card {
  border-color: rgba(111, 128, 161, 0.18);
  background: #f8fafc;
}

.complaint-timing-card__title {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.complaint-timing-card__flag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.complaint-timing-card__flag.is-warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(251, 146, 60, 0.45);
}

.complaint-timing-card__flag.is-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(96, 165, 250, 0.45);
}

.complaint-timing-card__flag.is-resolved {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(52, 211, 153, 0.45);
}

.complaint-timing-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .complaint-timing-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.complaint-timing-card__item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.55rem 0.65rem;
}

.complaint-timing-card__item.is-pending {
  border-color: rgba(245, 158, 11, 0.36);
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.complaint-timing-card__item.is-done {
  border-color: rgba(94, 234, 212, 0.42);
  background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
}

.complaint-timing-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.complaint-timing-card__value {
  margin-top: 0.2rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.complaint-timing-card__meta {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #475569;
}

body.role-super_admin .sa-concern-callout {
  margin-top: 0;
}

body.role-admin .admin-complaint-meta {
  color: #475569;
}

body.role-admin .admin-complaint-evidence {
  background: transparent;
  border: none;
}

body.role-admin .admin-complaint-actions {
  border-top: none;
  padding-top: 0;
}

body.role-admin .admin-complaint-actions__title {
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

body.role-admin .admin-ticket-layout {
  display: grid;
  gap: 0.7rem;
}

body.role-admin .admin-ticket-layout__main,
body.role-admin .admin-ticket-layout__side {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

@media (min-width: 992px) {
  body.role-admin .admin-ticket-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

body.role-admin .admin-ticket-panel {
  border: 1px solid rgba(111, 128, 161, 0.2);
  border-radius: 0.85rem;
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
}

body.role-admin .admin-ticket-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

body.role-admin .admin-ticket-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #334155;
}

body.role-admin .admin-ticket-panel__meta {
  font-size: 0.72rem;
  color: #64748b;
}

body.role-admin .admin-ticket-empty {
  font-size: 0.82rem;
  color: #64748b;
}

body.role-admin .admin-ticket-file-list {
  display: grid;
  gap: 0.3rem;
}

body.role-admin .admin-ticket-file-list__item {
  font-size: 0.8rem;
  line-height: 1.35;
}

body.role-admin .admin-ticket-panel__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4ed8;
}

body.role-admin .admin-ticket-panel__link:hover,
body.role-admin .admin-ticket-panel__link:focus-visible {
  color: #1e3a8a;
}

body.role-admin .admin-ticket-messages {
  display: grid;
  gap: 0.45rem;
  max-height: 17rem;
  overflow: auto;
  padding-right: 0.15rem;
}

body.role-admin .admin-ticket-message {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  padding: 0.5rem 0.58rem;
}

body.role-admin .admin-ticket-message.is-student {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body.role-admin .admin-ticket-message__sender {
  font-size: 0.79rem;
  font-weight: 600;
  color: #0f172a;
}

body.role-admin .admin-ticket-message__body {
  margin-top: 0.16rem;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.role-admin .admin-ticket-message__time {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: #64748b;
}

body.role-admin .admin-ticket-actions {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 1100px) {
  body.role-admin .admin-ticket-actions {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
}

body.role-admin .admin-ticket-panel--actions,
body.role-admin .admin-ticket-panel--message {
  background: #fff;
  border-color: rgba(111, 128, 161, 0.24);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

body.role-admin .admin-ticket-panel--actions .form-select,
body.role-admin .admin-ticket-panel--actions .form-control,
body.role-admin .admin-ticket-panel--message .form-control {
  border-radius: 0.6rem;
}

body.role-admin .admin-ticket-panel--message .form-control {
  min-height: 3.4rem;
}

body.role-admin .admin-ticket-panel--message .btn-outline-secondary {
  border-color: rgba(111, 128, 161, 0.4);
  color: #334155;
}

body.role-admin .admin-ticket-panel--message .btn-outline-secondary:hover,
body.role-admin .admin-ticket-panel--message .btn-outline-secondary:focus-visible {
  background: #eef2ff;
  border-color: #818cf8;
  color: #312e81;
}

/* Queue page: simple student-like flow */
body.admin-theme-queue .admin-dashboard-main {
  max-width: 92rem;
}

body.admin-theme-queue .admin-queue-simple-hero {
  max-width: 92rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.3rem;
}

body.admin-theme-queue .admin-queue-simple-hero__back,
body.student-theme-dashboard .psu-new-concern-back,
body.student-theme-dashboard .student-feedback-back,
body.student-theme-dashboard .student-status-back,
body.student-theme-dashboard .student-settings-back {
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: #5c0f2a;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  border: 1px solid rgba(135, 23, 67, 0.38);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

body.admin-theme-queue .admin-queue-simple-hero__back:hover,
body.student-theme-dashboard .psu-new-concern-back:hover,
body.student-theme-dashboard .student-feedback-back:hover,
body.student-theme-dashboard .student-status-back:hover,
body.student-theme-dashboard .student-settings-back:hover {
  color: #fff;
  background: linear-gradient(180deg, #a31d50 0%, #871743 55%, #711339 100%);
  border-color: rgba(107, 20, 52, 0.95);
  box-shadow: 0 4px 14px rgba(135, 23, 67, 0.28);
  transform: translateY(-1px);
}

body.admin-theme-queue .admin-queue-simple-hero__back:focus-visible,
body.student-theme-dashboard .psu-new-concern-back:focus-visible,
body.student-theme-dashboard .student-feedback-back:focus-visible,
body.student-theme-dashboard .student-status-back:focus-visible,
body.student-theme-dashboard .student-settings-back:focus-visible {
  outline: 2px solid #f6ae2d;
  outline-offset: 2px;
}

body.admin-theme-queue .admin-escalation-hero {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-escalation-summary {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-escalation-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(128, 0, 0, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fdf8f8 100%);
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.admin-theme-queue .admin-escalation-summary__chip strong {
  color: var(--psu-maroon, #800000);
}

body.admin-theme-queue .admin-evidence-simple-hero {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-evidence-summary {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-evidence-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
}

body.admin-theme-queue .admin-evidence-summary__chip strong {
  color: #0f172a;
}

body.admin-theme-queue .admin-feedback-simple-hero,
body.admin-theme-queue .admin-resolution-simple-hero {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-feedback-summary,
body.admin-theme-queue .admin-resolution-summary {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-feedback-summary__chip,
body.admin-theme-queue .admin-resolution-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
}

body.admin-theme-queue .admin-feedback-summary__chip strong,
body.admin-theme-queue .admin-resolution-summary__chip strong {
  color: #0f172a;
}

body.admin-theme-queue .admin-resolution-summary__chip--warn {
  border-color: rgba(234, 88, 12, 0.4);
  background: #fffbeb;
  color: #9a3412;
}

body.admin-theme-queue .admin-resolution-summary__chip--warn strong {
  color: #7c2d12;
}

body.admin-theme-queue .admin-filter-panel,
body.admin-theme-queue #admin-queue.admin-queue-card,
body.admin-theme-queue .admin-complaint-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(128, 0, 0, 0.12) !important;
  background: linear-gradient(180deg, #fff 0%, #fdf8f8 100%);
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.06);
}

body.admin-theme-queue .admin-filter-panel::before,
body.admin-theme-queue .admin-complaint-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--psu-card-accent-gradient);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-filter-panel::after,
body.admin-theme-queue .admin-complaint-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-escalation-empty-card,
body.admin-theme-queue .admin-escalation-table-card,
body.admin-theme-queue .admin-feedback-empty-card,
body.admin-theme-queue .admin-feedback-table-card,
body.admin-theme-queue .admin-resolution-empty-card,
body.admin-theme-queue .admin-resolution-table-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(128, 0, 0, 0.12) !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.06);
}

body.admin-theme-queue .admin-escalation-empty-card::before,
body.admin-theme-queue .admin-escalation-table-card::before,
body.admin-theme-queue .admin-feedback-empty-card::before,
body.admin-theme-queue .admin-feedback-table-card::before,
body.admin-theme-queue .admin-resolution-empty-card::before,
body.admin-theme-queue .admin-resolution-table-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--psu-card-accent-gradient);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-escalation-empty-card::after,
body.admin-theme-queue .admin-escalation-table-card::after,
body.admin-theme-queue .admin-feedback-empty-card::after,
body.admin-theme-queue .admin-feedback-table-card::after,
body.admin-theme-queue .admin-resolution-empty-card::after,
body.admin-theme-queue .admin-resolution-table-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-evidence-table-card,
body.admin-theme-queue .admin-evidence-filter-card,
body.admin-theme-queue .admin-feedback-filter-card,
body.admin-theme-queue .admin-resolution-filter-card {
  position: relative;
  overflow: hidden;
}

body.admin-theme-queue .admin-evidence-table-card::before,
body.admin-theme-queue .admin-evidence-filter-card::before,
body.admin-theme-queue .admin-feedback-filter-card::before,
body.admin-theme-queue .admin-resolution-filter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--psu-card-accent-gradient);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-evidence-table-card::after,
body.admin-theme-queue .admin-evidence-filter-card::after,
body.admin-theme-queue .admin-feedback-filter-card::after,
body.admin-theme-queue .admin-resolution-filter-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-filter-panel .card-body,
body.admin-theme-queue #admin-queue .card-body {
  padding: 1rem 1.05rem;
}

body.admin-theme-queue .admin-filter-panel__lead {
  font-size: 0.78rem;
  line-height: 1.45;
}

body.admin-theme-queue .admin-filter-panel__label {
  font-size: 0.62rem;
}

body.admin-theme-queue .admin-filter-panel__actions {
  padding-top: 0.5rem;
}

body.admin-theme-queue .priority-urgent {
  border-left: none;
}

body.admin-theme-queue .admin-complaint-card {
  padding: 1rem 1.05rem 1.05rem;
}

body.admin-theme-queue .admin-complaint-card__title {
  font-size: 1.08rem;
  letter-spacing: 0;
}

body.admin-theme-queue .admin-complaint-card__header {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body.admin-theme-queue .concern-facts--admin {
  margin-top: 0.65rem !important;
  margin-bottom: 0.55rem !important;
}

body.admin-theme-queue .admin-concern-callout {
  margin-top: 0.75rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  box-shadow: none;
}

body.admin-theme-queue .admin-concern-callout::before {
  display: none;
}

body.admin-theme-queue .admin-concern-callout__label {
  color: #64748b;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  padding: 0.65rem 0.82rem 0;
}

body.admin-theme-queue .admin-concern-callout__body {
  padding: 0 0.82rem 0.75rem;
  border-left: none;
  margin-left: 0;
}

body.admin-theme-queue .admin-concern-callout__text {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: none;
}

body.admin-theme-queue .admin-ticket-simple {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem !important;
}

body.admin-theme-queue .admin-ticket-simple__info {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.8rem;
  background: #f8fafc;
  padding: 0.62rem 0.72rem;
  display: grid;
  gap: 0.4rem;
}

body.admin-theme-queue .admin-ticket-simple__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
}

body.admin-theme-queue .admin-ticket-simple__label {
  color: #64748b;
  font-weight: 700;
  min-width: 4.6rem;
}

body.admin-theme-queue .complaint-timing-card,
body.admin-theme-queue .admin-ticket-panel {
  border-radius: 0.8rem;
  border-color: rgba(148, 163, 184, 0.24);
  background: #fff;
}

body.admin-theme-queue .complaint-timing-card {
  padding: 0.65rem !important;
}

body.admin-theme-queue .admin-ticket-panel {
  padding: 0.62rem 0.72rem;
}

body.admin-theme-queue .admin-ticket-panel__title {
  color: #0f172a;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

body.admin-theme-queue .admin-ticket-messages {
  max-height: 12rem;
}

body.admin-theme-queue .admin-ticket-message {
  border-radius: 0.66rem;
  padding: 0.5rem 0.56rem;
}

body.admin-theme-queue .admin-ticket-message__body {
  font-size: 0.85rem;
}

body.admin-theme-queue .admin-ticket-actions {
  margin-top: 0.75rem !important;
  display: block;
}

body.admin-theme-queue .admin-ticket-actions .admin-ticket-panel + .admin-ticket-panel {
  margin-top: 0.6rem;
}

body.admin-theme-queue .admin-ticket-panel--actions .form-select.form-select-sm,
body.admin-theme-queue .admin-ticket-panel--actions .form-control.form-control-sm {
  min-height: 2.3rem;
}

body.admin-theme-queue .admin-ticket-panel--actions .admin-btn-save {
  min-height: 2.3rem;
}

body.admin-theme-queue .admin-ticket-panel--message .form-control {
  min-height: 3.2rem;
}

body.admin-theme-queue .admin-escalation-table > :not(caption) > * > * {
  border-color: rgba(148, 163, 184, 0.16);
}

body.admin-theme-queue .admin-escalation-table .btn-psu-outline {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.75rem;
  font-size: 0.8125rem;
}

body.admin-theme-queue .admin-escalation-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  background: #f8fafc;
}

body.admin-theme-queue .admin-escalation-table .btn-outline-secondary {
  border-color: rgba(135, 23, 67, 0.35);
  color: #5c0f2a;
}

body.admin-theme-queue .admin-escalation-table .btn-outline-secondary:hover,
body.admin-theme-queue .admin-escalation-table .btn-outline-secondary:focus-visible {
  border-color: #871743;
  background: #fff3f5;
  color: #4a0f2a;
}

body.admin-theme-queue .admin-evidence-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
}

body.admin-theme-queue .admin-evidence-table tbody td {
  border-color: rgba(148, 163, 184, 0.16);
}

body.admin-theme-queue .admin-feedback-table-card thead th,
body.admin-theme-queue .admin-resolution-table-card thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  background: #f8fafc;
}

body.admin-theme-queue .admin-feedback-table-card .table > :not(caption) > * > *,
body.admin-theme-queue .admin-resolution-table-card .table > :not(caption) > * > * {
  border-color: rgba(148, 163, 184, 0.16);
}

body.admin-theme-queue .admin-feedback-table-card .btn-outline-secondary,
body.admin-theme-queue .admin-resolution-table-card .btn-outline-secondary {
  border-color: rgba(135, 23, 67, 0.35);
  color: #5c0f2a;
}

body.admin-theme-queue .admin-feedback-table-card .btn-outline-secondary:hover,
body.admin-theme-queue .admin-feedback-table-card .btn-outline-secondary:focus-visible,
body.admin-theme-queue .admin-resolution-table-card .btn-outline-secondary:hover,
body.admin-theme-queue .admin-resolution-table-card .btn-outline-secondary:focus-visible {
  border-color: #871743;
  background: #fff3f5;
  color: #4a0f2a;
}

body.admin-theme-queue .admin-evidence-btn-open,
body.admin-theme-queue .admin-evidence-btn-delete {
  border-radius: 0.62rem;
}

@media (max-width: 768px) {
  body.admin-theme-queue .admin-complaint-card {
    padding: 0.9rem 0.9rem;
  }
}

body.role-admin .admin-btn-save,
body.role-super_admin .admin-btn-save {
  background: linear-gradient(180deg, #fde68a 0%, #eab308 45%, var(--psu-accent-amber) 100%) !important;
  border: 1px solid var(--psu-accent-amber-border) !important;
  color: var(--psu-accent-amber-text) !important;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.3);
  transition: filter 0.15s ease, transform 0.15s ease;
}

body.role-admin .admin-btn-save:hover,
body.role-super_admin .admin-btn-save:hover {
  filter: brightness(1.02);
  color: #292524 !important;
  transform: translateY(-1px);
}

body.admin-theme-dashboard.role-admin .admin-btn-save,
body.admin-theme-dashboard.role-super_admin .admin-btn-save,
body.admin-theme-queue.role-admin .admin-btn-save,
body.admin-theme-queue.role-super_admin .admin-btn-save {
  background: linear-gradient(135deg, var(--psu-maroon-bar, #871743) 0%, var(--psu-maroon, #800000) 100%) !important;
  border: 1px solid var(--psu-maroon, #800000) !important;
  color: #fff !important;
  box-shadow: 0 2px 0 rgba(111, 18, 50, 0.35);
}

body.admin-theme-dashboard.role-admin .admin-btn-save:hover,
body.admin-theme-dashboard.role-super_admin .admin-btn-save:hover,
body.admin-theme-queue.role-admin .admin-btn-save:hover,
body.admin-theme-queue.role-super_admin .admin-btn-save:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

body.role-super_admin .admin-queue-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
}

body.role-super_admin .admin-queue-card__head {
  border-color: rgba(111, 128, 161, 0.2) !important;
}

@media (min-width: 768px) {
  .psu-stat-strip .row > .col-md-4:last-child .psu-stat-strip__cell {
    border-right: none;
  }
}

/* —— Admin workspace (dashboard layout, matches student band + stats) —— */
body.admin-theme-dashboard {
  --admin-page-text: #334155;
  --psu-maroon: #800000;
  --psu-maroon-bar: #871743;
  --psu-amber: #f6ae2d;
  --admin-accent: var(--psu-maroon);
  --psu-heading: #0f172a;
  --psu-border: #eee5e5;
  font-family: Inter, "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: #fff !important;
  color: var(--admin-page-text);
}

body.admin-theme-dashboard .admin-dashboard-main {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

#admin-queue {
  scroll-margin-top: 5.5rem;
}

.admin-queue-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-queue-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--admin-accent) 42%, #e2e8f0 58%);
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.admin-queue-filter__btn:hover {
  color: #0f172a;
  border-color: color-mix(in srgb, var(--admin-accent) 58%, #cbd5e1 42%);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12);
  transform: translateY(-1px);
}

.admin-queue-filter__btn.is-active {
  color: #422006;
  border-color: #d97706;
  background: linear-gradient(180deg, #fde68a 0%, #f6ae2d 100%);
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.25);
}

.admin-queue-filter__count {
  font-weight: 600;
  opacity: 0.85;
  margin-left: 0.15rem;
}

/* —— Admin / super admin: evidence hub (matches queue cards + PSU maroon/amber) —— */
.admin-evidence-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid rgba(111, 128, 161, 0.18);
  white-space: nowrap;
}

.admin-evidence-table tbody tr {
  transition: background-color 0.12s ease;
}

.admin-evidence-table tbody tr:hover {
  background-color: rgba(246, 174, 45, 0.14) !important;
}

.admin-evidence-table tbody td {
  border-color: rgba(111, 128, 161, 0.1);
  vertical-align: middle;
}

.admin-evidence-status.status-glow {
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.admin-evidence-category {
  font-weight: 600;
  color: #334155;
}

.admin-evidence-filename {
  display: inline-block;
  min-width: 8rem;
  max-width: 14rem;
  color: #475569;
}

.admin-evidence-link {
  color: var(--student-accent, #800000);
  text-decoration: none;
  font-weight: 700;
}

.admin-evidence-link:hover {
  color: #5c0f2a;
  text-decoration: underline;
}

.admin-evidence-type {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.35em 0.75em;
  border: 1px solid transparent;
}

.admin-evidence-type--image {
  background: color-mix(in srgb, var(--admin-accent) 26%, #fff 74%);
  color: #7c2d12;
  border-color: color-mix(in srgb, var(--admin-accent) 45%, #e2e8f0 55%);
}

.admin-evidence-type--video {
  background: color-mix(in srgb, var(--student-accent) 12%, #fff 88%);
  color: var(--student-accent);
  border-color: rgba(128, 0, 0, 0.22);
}

.admin-evidence-type--other {
  background: #f8fafc;
  color: #475569;
  border-color: rgba(111, 128, 161, 0.22);
}

.admin-evidence-btn-outline {
  border: 1px solid color-mix(in srgb, var(--admin-accent) 35%, #cbd5e1 65%);
  background: #fff;
  color: #334155;
  font-weight: 600;
  border-radius: 0.5rem;
}

.admin-evidence-btn-outline:hover {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  color: #0f172a;
  border-color: color-mix(in srgb, var(--admin-accent) 50%, #94a3b8 50%);
}

body.admin-theme-dashboard .admin-evidence-btn-outline {
  border: 1px solid rgba(128, 0, 0, 0.28);
  color: var(--psu-maroon, #800000);
  background: #fff;
}

body.admin-theme-dashboard .admin-evidence-btn-outline:hover {
  background: rgba(128, 0, 0, 0.04);
  border-color: var(--psu-maroon, #800000);
  color: var(--psu-maroon-bar, #871743);
}

.admin-evidence-btn-open {
  border: 1px solid color-mix(in srgb, var(--admin-accent) 45%, #94a3b8 55%);
  color: #0f172a !important;
  background: #fff;
  font-weight: 600;
  border-radius: 0.45rem;
}

.admin-evidence-btn-open:hover {
  background: #fffbeb;
  border-color: #d97706;
  color: #422006 !important;
}

.admin-evidence-btn-delete {
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #b91c1c !important;
  background: #fff;
  font-weight: 600;
  margin-left: 0.35rem;
  border-radius: 0.45rem;
}

.admin-evidence-btn-delete:hover {
  background: #fef2f2;
  color: #991b1b !important;
}

.admin-evidence-empty {
  background: linear-gradient(180deg, #fdfcfb 0%, #f8fafc 100%);
}

/* —— Admin filter panels (compact “thin” strip) —— */
body.admin-theme-dashboard .admin-filter-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128, 0, 0, 0.12);
  background: linear-gradient(180deg, #fff 0%, #fdf8f8 100%);
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.06);
  border-radius: 0.75rem;
}

body.admin-theme-dashboard .admin-filter-panel > .card-body {
  padding: 0.6rem 0.85rem 0.55rem !important;
}

@media (min-width: 768px) {
  body.admin-theme-dashboard .admin-filter-panel > .card-body {
    padding: 0.65rem 1rem 0.58rem !important;
  }
}

body.admin-theme-dashboard .admin-filter-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0.75rem 0 0 0.75rem;
  background: linear-gradient(180deg, var(--psu-maroon-bar, #871743) 0%, var(--psu-maroon, #800000) 100%);
  opacity: 0.9;
}

body.admin-theme-dashboard.admin-theme-queue .admin-filter-panel::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: auto;
  height: 4px;
  border-radius: 0;
  background: var(--psu-card-accent-gradient);
  opacity: 1;
}

body.admin-theme-dashboard.admin-theme-queue .admin-filter-panel::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-dashboard .admin-filter-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(128, 0, 0, 0.08);
}

body.admin-theme-dashboard .admin-filter-panel__title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 0;
  line-height: 1.22;
}

body.admin-theme-dashboard .admin-filter-panel__lead {
  font-size: 0.72rem;
  line-height: 1.38;
  color: #64748b;
  margin: 0.2rem 0 0;
  max-width: 46rem;
}

body.admin-theme-dashboard .admin-filter-panel__count-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--psu-maroon, #800000);
  background: linear-gradient(180deg, rgba(128, 0, 0, 0.05) 0%, rgba(135, 23, 67, 0.1) 100%);
  border: 1px solid rgba(128, 0, 0, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  white-space: nowrap;
}

body.admin-theme-dashboard .admin-filter-panel__count-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

body.admin-theme-dashboard .admin-filter-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.admin-theme-dashboard .admin-filter-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.4rem 0.65rem;
  align-items: end;
}

body.admin-theme-dashboard .admin-filter-panel__group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.admin-theme-dashboard .admin-filter-panel__label {
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin: 0;
  line-height: 1.15;
}

body.admin-theme-dashboard .admin-filter-panel__control.form-control-sm,
body.admin-theme-dashboard .admin-filter-panel__control.form-select-sm {
  min-height: 2rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  font-size: 0.8125rem;
  border-radius: 0.4rem;
  border-color: rgba(148, 163, 184, 0.42);
}

body.admin-theme-dashboard .admin-filter-panel__search-band .input-group-sm > .input-group-text,
body.admin-theme-dashboard .admin-filter-panel__search-band .input-group-sm > .form-control {
  min-height: 2rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  font-size: 0.8125rem;
}

body.admin-theme-dashboard .admin-filter-panel__search-band .form-control {
  border-radius: 0 0.4rem 0.4rem 0;
}

body.admin-theme-dashboard .admin-filter-panel__control:focus {
  border-color: color-mix(in srgb, var(--psu-maroon, #800000) 58%, #94a3b8 42%);
  box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.12);
}

body.admin-theme-dashboard .admin-filter-panel__search-band {
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(248, 250, 252, 0.88);
  border: 1px dashed rgba(111, 128, 161, 0.2);
}

body.admin-theme-dashboard .admin-filter-panel__search-band:focus-within {
  border-color: rgba(128, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.08);
}

body.admin-theme-dashboard .admin-filter-panel__search-addon.input-group-text {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.42);
  color: #64748b;
  padding: 0.28rem 0.45rem;
}

body.admin-theme-dashboard .admin-filter-panel__search-band .input-group-sm > .admin-filter-panel__search-addon svg {
  width: 14px;
  height: 14px;
}

body.admin-theme-dashboard .admin-filter-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: stretch;
  gap: 0.4rem;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(128, 0, 0, 0.08);
}

body.admin-theme-dashboard .admin-filter-panel__actions > .btn {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: 0.8125rem;
}

@media (max-width: 575.98px) {
  body.admin-theme-dashboard .admin-filter-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-theme-dashboard .admin-filter-panel__actions > .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 576px) {
  body.admin-theme-dashboard .admin-filter-panel__actions {
    justify-content: flex-end;
  }

  body.admin-theme-dashboard .admin-filter-panel__actions > .admin-btn-save {
    min-width: 7rem;
  }

  body.admin-theme-dashboard .admin-filter-panel__actions > .admin-evidence-btn-outline {
    min-width: 5.75rem;
  }
}

/* —— Analytics (admin + super admin) —— */
body.admin-theme-queue .admin-analytics-inner,
body.admin-theme-queue .sa-concerns-oversight-inner,
body.admin-theme-queue .sa-ranking-page.sa-concerns-oversight-inner,
body.admin-theme-queue .sa-evidence-hub-inner,
body.admin-theme-queue .sa-account-directory-inner,
body.admin-theme-queue .sa-escalation-mgmt-inner,
body.admin-theme-queue .sa-system-security-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-analytics-simple-hero {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.3rem;
}

body.admin-theme-queue .admin-analytics-summary {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.admin-theme-queue .admin-analytics-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
}

body.admin-theme-queue .admin-analytics-summary__chip strong {
  color: #0f172a;
}

body.admin-theme-queue .admin-analytics-summary__chip--warn {
  border-color: rgba(234, 88, 12, 0.4);
  background: #fffbeb;
  color: #9a3412;
}

body.admin-theme-queue .admin-analytics-summary__chip--warn strong {
  color: #7c2d12;
}

body.admin-theme-queue .admin-concerns-oversight-hero,
body.admin-theme-queue .admin-account-directory-hero,
body.admin-theme-queue .admin-system-security-hero {
  max-width: 92rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.3rem;
}

body.admin-theme-queue .admin-analytics-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.admin-theme-queue .admin-analytics-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--psu-card-accent-gradient);
  z-index: 2;
  pointer-events: none;
}

body.admin-theme-queue .admin-analytics-panel::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

/* Nested selected ticket uses student-feedback-card accent instead. */
body.admin-theme-queue .admin-selected-ticket.admin-analytics-panel::before,
body.admin-theme-queue .admin-selected-ticket.admin-analytics-panel::after,
body.super-theme-dashboard .admin-selected-ticket.admin-analytics-panel::before,
body.super-theme-dashboard .admin-selected-ticket.admin-analytics-panel::after,
.admin-selected-ticket.admin-analytics-panel::before,
.admin-selected-ticket.admin-analytics-panel::after {
  content: none !important;
  display: none !important;
}

body.super-theme-dashboard.admin-theme-queue .sa-concerns-registry.sa-bento--table.admin-analytics-panel,
body.super-theme-dashboard.admin-theme-queue .sa-ranking-page .sa-bento.admin-analytics-panel,
body.admin-theme-queue .sa-ranking-page .sa-ranking-unified.admin-analytics-panel {
  backdrop-filter: none !important;
  background: #fff !important;
  padding: 1.15rem 1.2rem !important;
}

body.admin-theme-queue .sa-ranking-page .sa-ranking-unified .sa-ranking-section--split {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

@media (min-width: 992px) {
  body.admin-theme-queue .sa-ranking-page .sa-ranking-unified {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.75rem;
    align-items: start;
  }

  body.admin-theme-queue .sa-ranking-page .sa-ranking-unified .sa-ranking-section--split {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    padding-left: 1.75rem;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
  }
}

body.super-theme-dashboard.admin-theme-queue .sa-concerns-registry.sa-bento--table.admin-analytics-panel {
  padding-bottom: 0.55rem !important;
}

body.admin-theme-queue .sa-concerns-unified.admin-analytics-panel {
  padding: 1.15rem 1.2rem !important;
}

body.admin-theme-queue .sa-concerns-queue-controls {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.admin-theme-queue .sa-concerns-unified > .sa-concerns-queue-controls:first-of-type:not(.sa-concerns-queue-controls--after-header) {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

body.admin-theme-queue .sa-concerns-queue-controls--after-header {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

body.admin-theme-queue .sa-concerns-queue-controls__body {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

body.admin-theme-queue .sa-concerns-queue-controls .admin-ticket-toolbar__tools {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 0.85rem;
  margin-top: 0.1rem;
}

body.admin-theme-queue .sa-concerns-queue-table {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.super-theme-dashboard.admin-theme-queue .sa-security-section.sa-bento.admin-analytics-panel {
  backdrop-filter: none !important;
  background: #fff !important;
  padding: 1.15rem 1.25rem !important;
}

body.admin-theme-queue .sa-um-card.admin-analytics-panel {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

.admin-analytics-chart {
  position: relative;
}

.admin-analytics-chart-empty {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(111, 128, 161, 0.25);
}

body.role-super_admin .admin-analytics-table thead th,
body.role-admin .admin-analytics-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #64748b;
}

body.admin-theme-dashboard .admin-dashboard .psu-student-hero__bar {
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.12);
}

.admin-dashboard-hero-meta .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.admin-dashboard-hero-meta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.admin-dashboard-alertstrip {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.admin-dashboard-alertstrip__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  position: relative;
  z-index: 1;
}

.admin-dashboard-alertstrip__item {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.94);
}

.admin-queue-global-search {
  padding: 0.5rem 0.75rem 0.6rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(111, 128, 161, 0.22);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
}

.admin-queue-search__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.admin-queue-search__hint {
  line-height: 1.35;
  max-width: 28rem;
  font-size: 0.78rem !important;
}

.admin-queue-global-search__filters.border-top {
  border-color: rgba(111, 128, 161, 0.2) !important;
}

.admin-queue-global-search .admin-queue-toolbar--solo {
  margin-bottom: 0;
  padding-bottom: 0.1rem !important;
}

.admin-queue-global-search .admin-queue-search .form-label {
  margin-bottom: 0.45rem !important;
}

body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search {
  width: 100%;
  max-width: 100%;
}

.admin-queue-search__field {
  max-width: min(42rem, 100%);
}

body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search .input-group {
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
}

body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search__input {
  border-color: rgba(111, 128, 161, 0.28);
}

body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search__input:focus {
  border-color: rgba(180, 83, 9, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(246, 174, 45, 0.2);
}

.admin-queue-search__addon {
  background: #fafbfc !important;
  border-color: rgba(111, 128, 161, 0.28) !important;
  padding: 0.25rem 0.55rem !important;
}

body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search__btn {
  min-width: 4.5rem;
  font-weight: 700;
  white-space: nowrap;
}

body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search__clear {
  white-space: nowrap;
}

body.admin-theme-dashboard .admin-queue-global-search__filters.admin-queue-filter {
  gap: 0.35rem;
}

body.admin-theme-dashboard .admin-queue-global-search__filters .admin-queue-filter__btn {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

body.admin-theme-dashboard .admin-queue-global-search__filters .admin-queue-filter__btn:hover {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.1);
}

@media (max-width: 575.98px) {
  body.admin-theme-dashboard .admin-queue-global-search .admin-queue-search__btn {
    min-width: 4rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.82rem;
  }
}

.admin-dash-metrics-details {
  border-radius: 0.75rem;
  border: 1px dashed rgba(111, 128, 161, 0.28);
  background: rgba(248, 250, 252, 0.65);
  padding: 0.45rem 0.65rem 0.6rem;
}

.admin-dash-metrics-details__sum {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  list-style-position: outside;
  margin-left: 0.25rem;
}

.admin-dash-metrics-details__sum::marker {
  color: #94a3b8;
}

body.admin-theme-dashboard .admin-complaint-actions__title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.admin-quick-nav__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  min-height: 4.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 55%);
  border: 1px solid color-mix(in srgb, var(--admin-accent) 38%, #e2e8f0 62%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.admin-quick-nav__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7a1f3d;
  background: linear-gradient(135deg, #fde8ef, #fff3d6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-quick-nav__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.admin-quick-nav__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.role-admin .admin-quick-nav__icon {
  color: #1e3a5f;
  background: linear-gradient(135deg, #e8f0ff, #dbeafe);
}

.admin-quick-nav__link:hover {
  color: #0f172a;
  border-color: color-mix(in srgb, var(--admin-accent) 55%, #cbd5e1 45%);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.12);
  transform: translateY(-2px);
}

.admin-quick-nav__kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.35rem;
}

.admin-quick-nav__label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.admin-theme-dashboard .admin-dashboard-empty {
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 1rem;
  background: #f8fafc;
}

body.admin-theme-dashboard .admin-dashboard-empty__title {
  font-weight: 700;
  color: #475569;
  margin: 0;
  font-size: 1.05rem;
}

body.admin-theme-dashboard .admin-dash-insight {
  border-radius: 1rem;
  border: 1px solid rgba(111, 128, 161, 0.14);
}

body.admin-theme-dashboard .admin-dash-insight__title {
  letter-spacing: 0.06em;
  color: #64748b;
}

body.admin-theme-dashboard .admin-dash-insight__btn {
  border: 1px solid color-mix(in srgb, var(--admin-accent) 45%, #94a3b8 55%);
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  border-radius: 0.5rem;
}

body.admin-theme-dashboard .admin-dash-insight__btn:hover {
  background: #fffbeb;
  border-color: #d97706;
  color: #422006;
}

body.admin-theme-dashboard .admin-dash-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(111, 128, 161, 0.2);
  color: #475569;
}

body.admin-theme-dashboard .admin-dash-pill strong {
  color: #0f172a;
  font-weight: 800;
  margin-left: 0.2rem;
}

body.admin-theme-dashboard .admin-dash-pill--warn {
  background: color-mix(in srgb, var(--admin-accent) 18%, #fff 82%);
  border-color: color-mix(in srgb, var(--admin-accent) 40%, #e2e8f0 60%);
}

body.admin-theme-dashboard .admin-dash-feed {
  max-height: 22rem;
  overflow: auto;
  padding: 0;
  margin: 0;
}

body.admin-theme-dashboard .admin-dash-feed__item {
  position: relative;
  padding: 0.75rem 0.5rem 0.75rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(111, 128, 161, 0.12);
  background: #fff;
  margin-bottom: 0.5rem;
}

body.admin-theme-dashboard .admin-dash-feed__item:last-child {
  margin-bottom: 0;
}

body.admin-theme-dashboard .admin-dash-feed__item--unread {
  background: linear-gradient(90deg, rgba(246, 174, 45, 0.12) 0%, #fff 38%);
  border-color: color-mix(in srgb, var(--admin-accent) 35%, #e2e8f0 65%);
}

body.admin-theme-dashboard .admin-dash-feed__item--urgent {
  border-color: rgba(220, 38, 38, 0.28);
}

body.admin-theme-dashboard .admin-dash-feed__link,
body.admin-theme-dashboard .admin-dash-feed__title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--student-accent, #800000);
  text-decoration: none;
  padding-right: 0.25rem;
}

body.admin-theme-dashboard .admin-dash-feed__link:hover {
  text-decoration: underline;
  color: #5c0f2a;
}

body.admin-theme-dashboard .admin-dash-feed__meta {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.15rem;
}

body.admin-theme-dashboard .admin-dash-feed__msg {
  display: block;
  font-size: 0.78rem;
  color: #475569;
  margin-top: 0.35rem;
  line-height: 1.35;
}

body.admin-theme-dashboard .admin-dash-feed-empty {
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 0.75rem;
  background: #f8fafc;
}

body.admin-theme-dashboard .admin-queue-search .input-group {
  min-width: min(100%, 17rem);
}

body.admin-theme-dashboard .admin-queue-search__btn {
  background: linear-gradient(180deg, #fde68a 0%, var(--psu-accent-amber) 100%);
  border: 1px solid var(--psu-accent-amber-border);
  color: var(--psu-accent-amber-text);
  font-weight: 700;
}

body.admin-theme-dashboard .admin-queue-search__btn:hover {
  filter: brightness(1.03);
  color: var(--psu-accent-amber-text);
}

@media (max-width: 991.98px) {
  body.admin-theme-dashboard .admin-stat-row > .col:nth-child(2n) .psu-stat-strip__cell {
    border-right: none;
  }
}

@media (min-width: 992px) {
  body.admin-theme-dashboard .admin-stat-row > .col:last-child .psu-stat-strip__cell {
    border-right: none;
  }
}

body.admin-theme-dashboard a .psu-stat-strip__cell--link {
  transition: filter 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  height: 100%;
}

body.admin-theme-dashboard a:hover .psu-stat-strip__cell--link {
  filter: brightness(1.09);
}

body.admin-theme-dashboard .psu-stat-strip__cell--alert {
  background: linear-gradient(165deg, #7f1d1d 0%, var(--psu-maroon-bar) 50%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.admin-theme-dashboard .psu-stat-strip__cell--alert .psu-stat-strip__value {
  color: #fde047 !important;
}

body.admin-theme-dashboard .admin-dash-pill--accent {
  background: color-mix(in srgb, var(--student-accent, #800000) 12%, #fff 88%);
  border-color: rgba(128, 0, 0, 0.22);
}

body.admin-theme-dashboard .admin-queue-toolbar__chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: #422006;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid color-mix(in srgb, var(--admin-accent) 45%, #e2e8f0 55%);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

body.admin-theme-dashboard .admin-queue-toolbar__chip-clear {
  font-weight: 700;
  margin-left: 0.35rem;
  color: var(--student-accent, #800000);
}

body.admin-theme-dashboard .admin-queue-toolbar__chip-clear:hover {
  text-decoration: underline;
}

body.admin-theme-dashboard .admin-badge-assigned {
  background: rgba(128, 0, 0, 0.12);
  color: #5c0f2a;
  border: 1px solid rgba(128, 0, 0, 0.28);
  font-weight: 700;
  font-size: 0.68rem;
}

body.admin-theme-dashboard .admin-dash-feed__lvl {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  position: relative;
  z-index: 2;
}

body.admin-theme-dashboard .admin-dash-feed__item--urgent .admin-dash-feed__lvl {
  background: rgba(220, 38, 38, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .admin-quick-nav__link {
    transition: none;
  }

  .admin-quick-nav__link:hover {
    transform: none;
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.summary-tile {
  border-radius: 18px;
  border: 1px solid rgba(111, 128, 161, 0.24);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.summary-tile .kpi {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.bento-box {
  border-radius: 18px;
  border: 1px solid rgba(111, 128, 161, 0.24);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

.bento-wide {
  grid-column: span 2;
}

.chart-panel {
  min-height: 290px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  max-height: 250px;
  overflow: hidden;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.user-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.user-card {
  border-radius: 18px;
  border: 1px solid rgba(111, 128, 161, 0.24);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem;
}

.app-footer {
  margin: 1rem 0 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: linear-gradient(135deg, #1a0f14, #221428);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(12, 8, 16, 0.28);
}

.app-footer::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(246, 174, 45, 0.2) 0%, rgba(246, 174, 45, 0) 68%);
  pointer-events: none;
}

.app-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.4rem;
}

.app-footer__brand {
  min-width: 0;
  max-width: 56rem;
}

.app-footer__title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-footer__desc {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.app-footer__meta {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.app-footer__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(246, 174, 45, 0.52);
  background: rgba(246, 174, 45, 0.14);
  color: #f7c86e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
}

.app-footer__meta-text {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.63);
}

.app-footer__tagline {
  margin-left: auto;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.73);
  text-align: right;
}

body.role-admin .app-footer {
  border-top-color: rgba(246, 174, 45, 0.26);
  background: linear-gradient(135deg, #150d14 0%, #271728 54%, #2e2128 100%);
}

body.role-admin .app-footer__pill {
  color: #ffd788;
}

@media (max-width: 767.98px) {
  .app-footer__tagline {
    margin-left: 0;
    text-align: left;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.is-submitting {
  opacity: 0.78;
  pointer-events: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(12px);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.letter-spacing-tight {
  letter-spacing: 0.04em;
}

body.role-student .student-dashboard-hero h1 {
  color: #1a1d2e;
}

body.role-student .student-stat-card {
  background: #fff;
  border: 1px solid rgba(111, 128, 161, 0.18);
  border-radius: 16px;
}

body.role-student .student-stat-card .fs-3 {
  color: #1e4d7a;
}

#new-concern {
  scroll-margin-top: 1rem;
}

body.student-theme-dashboard #view-status {
  scroll-margin-top: 1rem;
}

/* In-app toast (all roles) */
.psu-system-toast-container {
  max-width: 22rem;
  pointer-events: none;
}

.psu-system-toast-container .toast {
  pointer-events: auto;
}

.psu-system-toast {
  border-radius: 1rem;
  overflow: hidden;
  border-left: 4px solid transparent;
  border: 1px solid rgba(14, 24, 39, 0.08);
}

.psu-system-toast__inner {
  padding-right: 0.8rem !important;
}

.psu-system-toast__title {
  letter-spacing: -0.01em;
}

.psu-system-toast__message {
  line-height: 1.45;
}

.psu-system-toast__meta-wrap {
  min-height: 1.4rem;
}

.psu-system-toast__action {
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  border: 1px solid rgba(20, 83, 45, 0.2);
  color: #166534;
  background: rgba(255, 255, 255, 0.72);
}

.psu-system-toast__action:hover {
  color: #14532d;
  border-color: rgba(20, 83, 45, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.psu-system-toast--success {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%);
  border-left-color: #16a34a;
  box-shadow: 0 12px 40px rgba(22, 101, 52, 0.12) !important;
}

.psu-system-toast--success .psu-system-toast__title {
  color: #14532d;
}

.psu-system-toast--success .psu-system-toast__message,
.psu-system-toast--success .psu-system-toast__meta {
  color: #365314;
  opacity: 0.95;
}

.psu-system-toast--success .psu-system-toast__mark {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psu-system-toast--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
  border-left-color: #d97706;
  box-shadow: 0 12px 40px rgba(180, 83, 9, 0.12) !important;
}

.psu-system-toast--warning .psu-system-toast__title {
  color: #92400e;
}

.psu-system-toast--warning .psu-system-toast__message,
.psu-system-toast--warning .psu-system-toast__meta {
  color: #78350f;
  opacity: 0.95;
}

.psu-system-toast--warning .psu-system-toast__action {
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.24);
}

.psu-system-toast--warning .psu-system-toast__mark {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* In-app toast (student: concern submitted, etc.) */
body.student-theme-dashboard .psu-system-toast-container {
  max-width: 22rem;
  pointer-events: none;
}

body.student-theme-dashboard .psu-system-toast-container .toast {
  pointer-events: auto;
}

body.student-theme-dashboard .psu-system-toast {
  border-radius: 1rem;
  overflow: hidden;
  border-left: 4px solid transparent;
  border: 1px solid rgba(14, 24, 39, 0.08);
}

body.student-theme-dashboard .psu-system-toast__inner {
  padding-right: 0.8rem !important;
}

body.student-theme-dashboard .psu-system-toast__title {
  letter-spacing: -0.01em;
}

body.student-theme-dashboard .psu-system-toast__message {
  line-height: 1.45;
}

body.student-theme-dashboard .psu-system-toast__meta-wrap {
  min-height: 1.4rem;
}

body.student-theme-dashboard .psu-system-toast__action {
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  border: 1px solid rgba(20, 83, 45, 0.2);
  color: #166534;
  background: rgba(255, 255, 255, 0.72);
}

body.student-theme-dashboard .psu-system-toast__action:hover {
  color: #14532d;
  border-color: rgba(20, 83, 45, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

body.student-theme-dashboard .psu-system-toast--success {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%);
  border-left-color: #16a34a;
  box-shadow: 0 12px 40px rgba(22, 101, 52, 0.12) !important;
}

body.student-theme-dashboard .psu-system-toast--success .psu-system-toast__title {
  color: #14532d;
}

body.student-theme-dashboard .psu-system-toast--success .psu-system-toast__message,
body.student-theme-dashboard .psu-system-toast--success .psu-system-toast__meta {
  color: #365314;
  opacity: 0.95;
}

body.student-theme-dashboard .psu-system-toast--success .psu-system-toast__mark {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.student-theme-dashboard .psu-system-toast--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
  border-left-color: #d97706;
  box-shadow: 0 12px 40px rgba(180, 83, 9, 0.12) !important;
}

body.student-theme-dashboard .psu-system-toast--warning .psu-system-toast__title {
  color: #92400e;
}

body.student-theme-dashboard .psu-system-toast--warning .psu-system-toast__message,
body.student-theme-dashboard .psu-system-toast--warning .psu-system-toast__meta {
  color: #78350f;
  opacity: 0.95;
}

body.student-theme-dashboard .psu-system-toast--warning .psu-system-toast__action {
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.24);
}

body.student-theme-dashboard .psu-system-toast--warning .psu-system-toast__mark {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New concern page: header + form share one column (aligned) */
body.student-theme-dashboard .psu-new-concern-wrap {
  max-width: 72rem;
  width: 100%;
}

body.student-theme-dashboard .psu-new-concern-hero {
  margin-bottom: 1.35rem;
}

body.student-theme-dashboard .psu-new-concern-hero__lead {
  line-height: 1.55;
  max-width: 40rem;
}

body.student-theme-dashboard .psu-new-concern-hero__link {
  color: var(--psu-maroon);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

body.student-theme-dashboard .psu-new-concern-hero__link:hover {
  color: #5c0f2a;
  text-decoration: underline;
}

/* --- PSU marketing-style top bar (student + admin + super admin pages) --- */
.app-topbar.app-topbar--psu {
  margin: 0 !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  min-height: 4rem;
  border: none;
  border-bottom: 1px solid #eee5e5;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.06);
  align-items: center;
  font-family: Inter, "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.app-topbar--psu .psu-nav-brand {
  min-width: 0;
  max-width: 17rem;
}

@media (min-width: 768px) {
  .app-topbar--psu .psu-nav-brand {
    max-width: 25rem;
  }
}

a.psu-nav-brand:focus-visible {
  outline: 2px solid #800000;
  outline-offset: 3px;
  border-radius: 0.5rem;
}

a.psu-nav-brand:hover .psu-nav-brand__title {
  color: #800000;
}

.psu-nav-brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #d9caca;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.psu-nav-brand__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psu-nav-brand__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.psu-nav-brand__sub {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.25;
  margin-top: 0.1rem;
}

/* --- Student dashboard: align with index.html (Inter, maroon, amber) --- */
body.student-theme-dashboard {
  --psu-heading: #1a1a1a;
  --psu-body: #4a4a4a;
  --psu-border: #eee5e5;
  --psu-tint: #fcf8f8;
  --psu-maroon: #800000;
  --psu-maroon-bar: #871743;
  --psu-amber: #f6ae2d;
  font-family: Inter, "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: #fff !important;
  color: var(--psu-body);
}

body.student-theme-dashboard .text-psu-heading {
  color: var(--psu-heading) !important;
}

body.student-theme-dashboard .student-dashboard-main {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero band (PSU maroon, amber accent) */
.psu-student-hero__bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #871743 0%, #5c0f2a 55%, #3d0a1e 100%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.1);
}

.psu-student-hero__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(246, 174, 45, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}

.psu-student-hero__badge,
.psu-student-hero__title,
.psu-student-hero__sub {
  position: relative;
  z-index: 1;
}

.psu-student-hero__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(246, 174, 45, 0.45);
  background: rgba(246, 174, 45, 0.15);
  color: #ffd788;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
}

.psu-student-hero__title {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.9rem 0 0.5rem;
  line-height: 1.2;
}

.psu-student-hero__accent {
  color: var(--psu-amber);
}

.psu-student-hero__sub {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

/* Stat strip (matches homepage #871743 row) */
.psu-stat-strip {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.08);
}

.psu-stat-strip__cell {
  background: var(--psu-maroon-bar);
  padding: 1rem 0.75rem;
  min-height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
  .psu-stat-strip .row > .col-6:nth-child(2n) .psu-stat-strip__cell {
    border-right: none;
  }
}

@media (min-width: 992px) {
  .psu-stat-strip .row > .col-lg-3:last-child .psu-stat-strip__cell {
    border-right: none;
  }
}

/* Super admin dashboard: 6-cell strip (2 / 3 / 6 per row) */
.sa-dash-stats .row > [class*="col-"] .psu-stat-strip__cell {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 767.98px) {
  .sa-dash-stats .row > [class*="col-"]:nth-child(2n) .psu-stat-strip__cell {
    border-right: none;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .sa-dash-stats .row > [class*="col-"]:nth-child(3n) .psu-stat-strip__cell {
    border-right: none;
  }
}

@media (min-width: 1200px) {
  .sa-dash-stats .row > [class*="col-"] .psu-stat-strip__cell {
    border-bottom: none;
  }

  .sa-dash-stats .row > [class*="col-"]:last-child .psu-stat-strip__cell {
    border-right: none;
  }
}

.psu-stat-strip__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--psu-amber);
}

.psu-stat-strip__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.35rem;
}

.psu-stat-strip__hint {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.15rem;
}

body.student-theme-dashboard .psu-dashboard-cta {
  background: linear-gradient(135deg, #fffdfb 0%, #faf5f7 100%);
  border: 1px solid var(--psu-border);
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.05);
}

body.student-theme-dashboard .student-quick-nav__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 4.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--psu-heading);
  background: linear-gradient(145deg, #fffdfb 0%, #ffffff 55%);
  border: 1px solid var(--psu-border);
  box-shadow: 0 8px 22px rgba(18, 18, 18, 0.06);
}

body.student-theme-dashboard .student-quick-nav__link:hover {
  color: var(--psu-heading);
  border-color: color-mix(in srgb, var(--psu-maroon) 35%, var(--psu-border) 65%);
  box-shadow: 0 12px 28px rgba(128, 0, 0, 0.1);
  transform: translateY(-2px);
}

body.student-theme-dashboard .student-quick-nav__kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.35rem;
}

body.student-theme-dashboard .student-quick-nav__label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.student-theme-dashboard .student-dash-insight {
  border-radius: 1.25rem;
  border: 1px solid var(--psu-border);
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.06);
}

body.student-theme-dashboard .student-dash-insight__title {
  letter-spacing: 0.06em;
  color: #64748b;
}

body.student-theme-dashboard .student-dash-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(111, 128, 161, 0.2);
  color: #475569;
}

body.student-theme-dashboard .student-dash-pill strong {
  color: var(--psu-heading);
  font-weight: 800;
  margin-left: 0.2rem;
}

body.student-theme-dashboard .student-dash-ticket {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(111, 128, 161, 0.18);
}

body.student-theme-dashboard .student-dash-ticket:first-child {
  padding-top: 0;
}

body.student-theme-dashboard .student-dash-ticket:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.student-theme-dashboard .student-dash-todo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body.student-theme-dashboard .student-dash-todo__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(111, 128, 161, 0.2);
  border-left: 4px solid #94a3b8;
}

body.student-theme-dashboard .student-dash-todo__item--reply {
  border-left-color: var(--psu-maroon-bar, #871743);
  background: #fdf6f8;
}

body.student-theme-dashboard .student-dash-todo__item--feedback {
  border-left-color: var(--psu-amber, #f6ae2d);
}

/* Student — help page */
body.student-theme-dashboard .student-help-page,
body.student-theme-dashboard .student-history-page {
  max-width: 62rem;
}

body.student-theme-dashboard .student-help-steps {
  counter-reset: help-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.student-theme-dashboard .student-help-steps li {
  counter-increment: help-step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.student-theme-dashboard .student-help-steps li:last-child {
  margin-bottom: 0;
}

body.student-theme-dashboard .student-help-steps li::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8d1140, #b1414f);
}

body.student-theme-dashboard .student-help-page .sa-security-points .sa-status-pill,
body.student-theme-dashboard .student-help-page .sa-security-points .sa-chip {
  margin-right: 0.35rem;
}

body.student-theme-dashboard .student-help-faq details {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 0.7rem;
  padding: 0.65rem 0.9rem;
  background: #fff;
}

body.student-theme-dashboard .student-help-faq details + details {
  margin-top: 0.5rem;
}

body.student-theme-dashboard .student-help-faq summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c2a31;
  cursor: pointer;
}

body.student-theme-dashboard .student-help-faq details[open] summary {
  margin-bottom: 0.4rem;
  color: var(--psu-maroon, #800000);
}

body.student-theme-dashboard .student-help-faq p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin: 0;
}

/* Student — resolved history */
body.student-theme-dashboard .student-history-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

body.student-theme-dashboard .student-history-filter > .form-select {
  width: auto;
  min-width: 11rem;
}

body.student-theme-dashboard .student-history-list {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.student-theme-dashboard .student-history-item {
  padding: 1rem 1.25rem;
}

body.student-theme-dashboard .student-history-item + .student-history-item {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.student-theme-dashboard .student-history-item .min-w-0 {
  min-width: 0;
}

body.student-theme-dashboard .student-history-stars {
  color: #d97706;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

body.student-theme-dashboard .student-history-desc {
  color: #4a4a4a;
  margin-top: 0.6rem;
}

body.student-theme-dashboard .student-history-resolution {
  border-radius: 0.7rem;
  border: 1px solid rgba(22, 101, 52, 0.18);
  background: #f3fbf5;
  padding: 0.65rem 0.8rem;
}

body.student-theme-dashboard .student-history-resolution__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  margin-bottom: 0.35rem;
}

@media (max-width: 575.98px) {
  body.student-theme-dashboard .student-history-filter > .form-select,
  body.student-theme-dashboard .student-history-filter > .psu-dm-filter {
    flex: 1 1 100%;
    min-width: 0;
  }

  body.student-theme-dashboard .sa-res-block__stats {
    flex-wrap: wrap;
  }
}

body.student-theme-dashboard .student-dash-feed {
  max-height: 22rem;
  overflow: auto;
  padding: 0;
  margin: 0;
}

body.student-theme-dashboard .student-dash-feed__item {
  position: relative;
  padding: 0.75rem 0.5rem 0.75rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid var(--psu-border);
  background: #fff;
  margin-bottom: 0.5rem;
}

body.student-theme-dashboard .student-dash-feed__item:last-child {
  margin-bottom: 0;
}

body.student-theme-dashboard .student-dash-feed__item--unread {
  background: linear-gradient(90deg, rgba(246, 174, 45, 0.12) 0%, #fff 40%);
  border-color: color-mix(in srgb, var(--psu-amber) 40%, var(--psu-border) 60%);
}

body.student-theme-dashboard .student-dash-feed__item--urgent {
  border-color: rgba(220, 38, 38, 0.28);
}

body.student-theme-dashboard .student-dash-feed__link,
body.student-theme-dashboard .student-dash-feed__title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--psu-maroon);
  text-decoration: none;
  padding-right: 0.25rem;
}

body.student-theme-dashboard .student-dash-feed__link:hover {
  text-decoration: underline;
  color: #5c0f2a;
}

body.student-theme-dashboard .student-dash-feed__meta {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.15rem;
}

body.student-theme-dashboard .student-dash-feed__msg {
  display: block;
  font-size: 0.78rem;
  color: #475569;
  margin-top: 0.35rem;
  line-height: 1.35;
}

body.student-theme-dashboard .student-dash-feed__lvl {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  position: relative;
  z-index: 2;
}

body.student-theme-dashboard .student-dash-feed-empty {
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 0.75rem;
  background: #f8fafc;
}

body.student-theme-dashboard .student-ticket-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--psu-heading);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--psu-border);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.student-theme-dashboard .student-ticket-filter__btn:hover {
  color: var(--psu-heading);
  border-color: color-mix(in srgb, var(--psu-maroon) 28%, var(--psu-border) 72%);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
}

body.student-theme-dashboard .student-ticket-filter__btn.is-active {
  color: #422006;
  border-color: #d97706;
  background: linear-gradient(180deg, #fde68a 0%, #f6ae2d 100%);
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.2);
}

body.student-theme-dashboard .student-ticket-filter__count {
  font-weight: 600;
  opacity: 0.85;
  margin-left: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  body.student-theme-dashboard .student-quick-nav__link:hover {
    transform: none;
  }
}

/* Content panels & form */
body.student-theme-dashboard .psu-panel,
body.student-theme-dashboard .psu-panel.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--psu-border) !important;
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.08);
  backdrop-filter: none;
}

body.student-theme-dashboard .psu-panel::before,
body.student-theme-dashboard .psu-panel.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--psu-card-accent-gradient);
  z-index: 2;
  pointer-events: none;
}

body.student-theme-dashboard .psu-panel::after,
body.student-theme-dashboard .psu-panel.card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

body.student-theme-dashboard .psu-input,
body.student-theme-dashboard .psu-form .form-control {
  border-radius: 0.75rem;
  border: 1px solid #e4dede;
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
}

body.student-theme-dashboard .psu-form .form-control:focus {
  border-color: var(--psu-maroon);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .form-check-input:checked {
  background-color: var(--psu-maroon);
  border-color: var(--psu-maroon);
}

body.student-theme-dashboard a.quick-fab {
  background: linear-gradient(135deg, #871743, #5c0f2a) !important;
  box-shadow: 0 14px 30px rgba(92, 15, 42, 0.38) !important;
  animation: psuFabPulse 3.2s ease-in-out infinite;
}

@keyframes psuFabPulse {
  0% {
    box-shadow: 0 14px 30px rgba(92, 15, 42, 0.38);
  }
  50% {
    box-shadow: 0 14px 30px rgba(92, 15, 42, 0.45), 0 0 0 8px rgba(128, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 14px 30px rgba(92, 15, 42, 0.38);
  }
}

body.student-theme-dashboard .psu-empty-state {
  border: 1px dashed #e0d4d4;
  background: var(--psu-tint);
  color: var(--psu-body);
}

body.student-theme-dashboard .complaint-item {
  border: 1px solid var(--psu-border);
  border-left: 3px solid var(--psu-maroon);
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.05);
}

body.student-theme-dashboard .complaint-item:hover {
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
}

body.student-theme-dashboard .psu-ticket__label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

body.student-theme-dashboard .psu-ticket-msg {
  background: #fffdfb;
  border-color: #efe8e8 !important;
}

body.student-theme-dashboard .student-conversation {
  border: 1px solid rgba(135, 23, 67, 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fffdfb 100%);
  overflow: hidden;
}

body.student-theme-dashboard .student-conversation__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border-bottom: 1px solid rgba(135, 23, 67, 0.1);
}

body.student-theme-dashboard .student-conversation__hint {
  color: #7c6f73;
  font-size: 0.78rem;
  line-height: 1.4;
}

body.student-theme-dashboard .student-conversation__count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 1px solid rgba(135, 23, 67, 0.14);
  color: #5c0f2a;
  font-size: 0.72rem;
  font-weight: 700;
}

body.student-theme-dashboard .student-conversation__thread {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  background: #fff;
}

body.student-theme-dashboard .student-conversation__bubble {
  width: min(88%, 42rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 0.78rem 0.9rem;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body.student-theme-dashboard .student-conversation__bubble.is-student {
  justify-self: end;
  background: #fff7ed;
  border-color: rgba(246, 174, 45, 0.38);
}

body.student-theme-dashboard .student-conversation__bubble.is-admin {
  justify-self: start;
  background: #f8fafc;
}

body.student-theme-dashboard .student-conversation__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

body.student-theme-dashboard .student-conversation__sender {
  color: var(--psu-heading);
  font-size: 0.8rem;
  font-weight: 800;
}

body.student-theme-dashboard .student-conversation__role {
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(135, 23, 67, 0.08);
  color: #5c0f2a;
  font-size: 0.65rem;
  font-weight: 800;
}

body.student-theme-dashboard .student-conversation__body {
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.student-theme-dashboard .student-conversation__time {
  display: block;
  margin-top: 0.45rem;
  color: #7c8798;
  font-size: 0.72rem;
}

body.student-theme-dashboard .student-conversation__empty {
  border: 1px dashed rgba(135, 23, 67, 0.2);
  border-radius: 0.85rem;
  padding: 0.9rem;
  color: #7c6f73;
  background: #fffdfb;
  font-size: 0.86rem;
}

body.student-theme-dashboard .student-conversation__reply {
  padding: 0.9rem 1rem 1rem;
  background: #fffdfb;
  border-top: 1px solid rgba(135, 23, 67, 0.1);
}

body.student-theme-dashboard .student-conversation__reply-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--psu-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

body.student-theme-dashboard .student-conversation__reply-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.65rem;
}

body.student-theme-dashboard .student-conversation__reply .form-control {
  min-height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid #e4dede;
  resize: vertical;
}

body.student-theme-dashboard .student-conversation__reply .form-control:focus {
  border-color: var(--psu-maroon);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .psu-ticket-feedback {
  background: var(--psu-tint);
  border: 1px solid var(--psu-border);
}

body.student-theme-dashboard .student-ticket-reply .form-control {
  border-radius: 0.75rem;
  border: 1px solid #e4dede;
}

body.student-theme-dashboard .student-ticket-reply .form-control:focus {
  border-color: var(--psu-maroon);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

@media (max-width: 575.98px) {
  body.student-theme-dashboard .student-conversation__head,
  body.student-theme-dashboard .student-conversation__reply-row {
    grid-template-columns: 1fr;
  }

  body.student-theme-dashboard .student-conversation__head {
    display: grid;
  }

  body.student-theme-dashboard .student-conversation__bubble {
    width: 100%;
  }

  body.student-theme-dashboard .student-conversation__reply-row .btn {
    width: 100%;
  }
}

/* Category pills (align with index.html #categories) */
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-fieldset {
  min-width: 0;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--table {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  vertical-align: middle;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--table:hover {
  transform: none;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--table .psu-cat-pill__dot {
  width: 0.35rem;
  height: 0.35rem;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--psu-border);
  background: #fff;
  color: var(--psu-heading);
  user-select: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:hover {
  border-color: color-mix(in srgb, var(--psu-maroon) 28%, var(--psu-border) 72%);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
  transform: translateY(-1px);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  flex-shrink: 0;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:has(:checked) {
  transform: none;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:has(:focus-within) {
  outline: 2px solid rgba(128, 0, 0, 0.25);
  outline-offset: 2px;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--academic {
  background: #ede9fe;
  color: #5b21b6;
  border-color: rgba(139, 92, 246, 0.38);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--academic .psu-cat-pill__dot {
  background: #8b5cf6;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--academic:hover {
  background: #ddd6fe;
  border-color: rgba(124, 58, 237, 0.45);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--facilities {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.38);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--facilities .psu-cat-pill__dot {
  background: #3b82f6;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--facilities:hover {
  background: #bfdbfe;
  border-color: rgba(37, 99, 235, 0.45);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--safety {
  background: #fee2e2;
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.38);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--safety .psu-cat-pill__dot {
  background: #ef4444;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--safety:hover {
  background: #fecaca;
  border-color: rgba(220, 38, 38, 0.45);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--services {
  background: #dcfce7;
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.38);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--services .psu-cat-pill__dot {
  background: #22c55e;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--services:hover {
  background: #bbf7d0;
  border-color: rgba(22, 163, 74, 0.45);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--technology {
  background: #cffafe;
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.38);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--technology .psu-cat-pill__dot {
  background: #06b6d4;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--technology:hover {
  background: #a5f3fc;
  border-color: rgba(8, 145, 178, 0.45);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--life {
  background: #ffedd5;
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.38);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--life .psu-cat-pill__dot {
  background: #f97316;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--life:hover {
  background: #fed7aa;
  border-color: rgba(234, 88, 12, 0.45);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--financial {
  background: #fef9c3;
  color: #a16207;
  border-color: rgba(234, 179, 8, 0.42);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--financial .psu-cat-pill__dot {
  background: #eab308;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--financial:hover {
  background: #fef08a;
  border-color: rgba(202, 138, 4, 0.48);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--other {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(100, 116, 139, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--other .psu-cat-pill__dot {
  background: #64748b;
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--other:hover {
  background: #e2e8f0;
  border-color: rgba(71, 85, 105, 0.42);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--academic:has(:checked) {
  color: #fff;
  border-color: #6d28d9;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  box-shadow: 0 2px 0 rgba(91, 33, 182, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--facilities:has(:checked) {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 2px 0 rgba(29, 78, 216, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--safety:has(:checked) {
  color: #fff;
  border-color: #dc2626;
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 2px 0 rgba(185, 28, 28, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--services:has(:checked) {
  color: #fff;
  border-color: #16a34a;
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  box-shadow: 0 2px 0 rgba(21, 128, 61, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--technology:has(:checked) {
  color: #fff;
  border-color: #0891b2;
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  box-shadow: 0 2px 0 rgba(14, 116, 144, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--life:has(:checked) {
  color: #fff;
  border-color: #ea580c;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 2px 0 rgba(194, 65, 12, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--financial:has(:checked) {
  color: #422006;
  border-color: #ca8a04;
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  box-shadow: 0 2px 0 rgba(161, 98, 7, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--other:has(:checked) {
  color: #fff;
  border-color: #475569;
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
  box-shadow: 0 2px 0 rgba(51, 65, 85, 0.35);
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:has(:checked) .psu-cat-pill__dot {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill--financial:has(:checked) .psu-cat-pill__dot {
  background: rgba(66, 32, 6, 0.85);
  box-shadow: none;
}

@keyframes psu-concern-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* New concern page — single panel (matches status & evidence page shell) */
body.student-theme-dashboard .student-new-concern-page {
  max-width: 72rem;
}

body.student-theme-dashboard #new-concern {
  scroll-margin-top: 5rem;
}

body.student-theme-dashboard .student-new-concern-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.student-theme-dashboard .student-new-concern-field {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.student-theme-dashboard .student-new-concern-field--first {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

body.student-theme-dashboard .student-new-concern-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

body.student-theme-dashboard .student-new-concern-categories {
  gap: 0.45rem;
}

body.student-theme-dashboard .student-new-concern-textarea {
  min-height: 9rem;
  line-height: 1.55;
  resize: vertical;
  width: 100%;
}

body.student-theme-dashboard .student-new-concern-char {
  font-variant-numeric: tabular-nums;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

body.student-theme-dashboard .student-new-concern-file .form-control[type="file"] {
  padding: 0.45rem 0.65rem;
}

body.student-theme-dashboard .psu-identity-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body.student-theme-dashboard .psu-identity-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 2.6rem 0.9rem 0.9rem;
  border: 1.5px solid var(--psu-border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

body.student-theme-dashboard .psu-identity-option:hover {
  border-color: color-mix(in srgb, var(--psu-maroon, #800000) 30%, #e5e7eb 70%);
  box-shadow: 0 6px 16px rgba(128, 0, 0, 0.07);
  transform: translateY(-1px);
}

body.student-theme-dashboard .psu-identity-option:has(:checked) {
  border-color: var(--psu-maroon, #800000);
  background: linear-gradient(135deg, #fff7f8 0%, #fff 70%);
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.1);
  transform: none;
}

body.student-theme-dashboard .psu-identity-option:has(:focus-visible) {
  outline: 2px solid rgba(128, 0, 0, 0.3);
  outline-offset: 2px;
}

body.student-theme-dashboard .psu-identity-option__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  color: #64748b;
  background: #f1f5f9;
  transition: background 0.15s ease, color 0.15s ease;
}

body.student-theme-dashboard .psu-identity-option:has(:checked) .psu-identity-option__icon {
  color: #fff;
  background: linear-gradient(145deg, #a01d4a 0%, var(--psu-maroon, #800000) 100%);
}

body.student-theme-dashboard .psu-identity-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.student-theme-dashboard .psu-identity-option__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--psu-heading, #0f172a);
}

body.student-theme-dashboard .psu-identity-option__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

body.student-theme-dashboard .psu-identity-option__desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

body.student-theme-dashboard .psu-identity-option__preview {
  margin-top: 0.3rem;
  align-self: flex-start;
  max-width: 100%;
  font-size: 0.76rem;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  overflow-wrap: anywhere;
}

body.student-theme-dashboard .psu-identity-option:has(:checked) .psu-identity-option__preview {
  border-color: rgba(128, 0, 0, 0.25);
  background: #fff;
}

body.student-theme-dashboard .psu-identity-option__preview strong {
  color: var(--psu-heading, #0f172a);
}

body.student-theme-dashboard .psu-identity-option__check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.student-theme-dashboard .psu-identity-option:has(:checked) .psu-identity-option__check {
  border-color: var(--psu-maroon, #800000);
  background: var(--psu-maroon, #800000);
  box-shadow: inset 0 0 0 3px #fff;
}

body.student-theme-dashboard .psu-identity-note {
  color: #64748b;
  background: #f8fafc;
  border-left: 3px solid rgba(128, 0, 0, 0.35);
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
}

@media (max-width: 575.98px) {
  body.student-theme-dashboard .psu-identity-choice {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.student-theme-dashboard .psu-identity-option:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:hover {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  body.student-theme-dashboard .student-new-concern-categories.psu-cat-pills--grid {
    grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
    gap: 0.4rem;
  }

  body.student-theme-dashboard .student-new-concern-categories .psu-cat-pill {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    font-size: 0.8rem;
  }
}

/* Legacy new concern composer styles (dashboard embed / shared form pieces) */

body.student-theme-dashboard .psu-concern-panel__head-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #871743, #5c0f2a);
  box-shadow: 0 6px 16px rgba(92, 15, 42, 0.3);
}

body.student-theme-dashboard .psu-concern-panel__head-icon svg {
  opacity: 0.95;
}

body.student-theme-dashboard .psu-concern-panel__lead {
  line-height: 1.5;
  color: #6b7280 !important;
}

body.student-theme-dashboard .psu-concern-inline-link {
  color: var(--psu-maroon);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.student-theme-dashboard .psu-concern-inline-link:hover {
  color: #5c0f2a;
}

body.student-theme-dashboard .psu-concern-panel__flow {
  counter-reset: psu-concern;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.student-theme-dashboard .psu-concern-step {
  position: relative;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--psu-border);
}

body.student-theme-dashboard .psu-concern-step[data-step="1"] {
  padding-top: 0.15rem;
}
body.student-theme-dashboard .psu-concern-step[data-step="4"] {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

body.student-theme-dashboard .psu-concern-step__head {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

body.student-theme-dashboard .psu-concern-step__badge {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--psu-maroon);
  border: 1px solid rgba(111, 18, 50, 0.35);
  box-shadow: 0 1px 0 rgba(111, 18, 50, 0.2);
  margin-top: 0.1rem;
}

body.student-theme-dashboard .psu-concern-step__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--psu-heading) !important;
  letter-spacing: -0.01em;
}

body.student-theme-dashboard .psu-concern-step__hint {
  margin-top: 0.2rem;
  line-height: 1.45;
  max-width: 26rem;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pills--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.4rem, 1fr));
  gap: 0.45rem 0.5rem;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pills--grid .psu-cat-pill {
  justify-content: center;
  text-align: center;
  min-height: 2.85rem;
  padding: 0.5rem 0.5rem;
  font-size: 0.8rem;
}

:is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pills--grid .psu-cat-pill__text {
  line-height: 1.2;
  display: block;
  word-break: break-word;
  hyphens: auto;
}

body.student-theme-dashboard .psu-concern-textarea {
  min-height: 9rem;
  line-height: 1.55;
  resize: vertical;
}

body.student-theme-dashboard .psu-concern-char {
  font-variant-numeric: tabular-nums;
  color: #8a7a80;
  font-weight: 600;
  white-space: nowrap;
}

body.student-theme-dashboard .psu-file-drop {
  position: relative;
  width: 100%;
}

body.student-theme-dashboard .psu-file-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 6.2rem;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  font-size: 0;
}

body.student-theme-dashboard .psu-file-drop__zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 6.2rem;
  padding: 1rem 0.9rem;
  border: 1px dashed #e4dede;
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
  cursor: pointer;
}

body.student-theme-dashboard .psu-file-drop__zone:hover,
body.student-theme-dashboard .psu-file-drop:has(:focus) .psu-file-drop__zone,
body.student-theme-dashboard .psu-file-drop__input:focus-visible + .psu-file-drop__zone {
  border-color: var(--psu-maroon);
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .psu-file-drop__zone.is-dragover {
  border-style: solid;
  border-color: var(--psu-maroon);
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .psu-file-drop__icon {
  color: var(--psu-maroon);
  margin-bottom: 0.35rem;
  opacity: 0.9;
  display: flex;
}

body.student-theme-dashboard .psu-file-drop__title {
  font-size: 0.9rem;
  color: var(--psu-body);
  margin-bottom: 0.25rem;
  pointer-events: none;
}

body.student-theme-dashboard .psu-file-drop__name {
  font-size: 0.75rem;
  color: #6b7280;
  word-break: break-all;
  max-width: 100%;
  pointer-events: none;
  padding: 0 0.5rem;
}

body.student-theme-dashboard .psu-privacy-tile {
  background: #faf6f4;
  border: 1px solid #f0e6e4;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

body.student-theme-dashboard .psu-privacy-tile__switch .form-check-label {
  line-height: 1.5;
  font-size: 0.9rem;
  color: #4a3d42;
}

body.student-theme-dashboard .psu-concern-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.8rem 1.2rem !important;
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.student-theme-dashboard .psu-concern-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(128, 0, 0, 0.28);
}

body.student-theme-dashboard .psu-concern-submit__label {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

body.student-theme-dashboard .psu-concern-submit__sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  :is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:hover,
  :is(body.student-theme-dashboard, body.admin-theme-queue) .psu-cat-pill:has(:checked) {
    transform: none;
  }
}

@media (max-width: 575px) {
  body.student-theme-dashboard .psu-concern-panel .card-body {
    padding: 0.85rem 0.95rem 1rem !important;
  }

  body.student-theme-dashboard .psu-concern-step__head {
    flex-direction: row;
  }

  body.student-theme-dashboard .psu-concern-meta {
    flex-direction: column;
    align-items: flex-end !important;
  }

  body.student-theme-dashboard .psu-concern-meta .text-body-secondary {
    order: 2;
  }
  body.student-theme-dashboard .psu-concern-char {
    order: 1;
  }
}

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}

/* —— Super Admin: same visual language as student + admin (PSU maroon, amber) */
body.super-theme-dashboard {
  --psu-heading: #1a1a1a;
  --psu-body: #4a4a4a;
  --psu-border: #eee5e5;
  --psu-maroon: #800000;
  --psu-maroon-bar: #871743;
  --psu-amber: #f6ae2d;
  --admin-accent: #f6ae2d;
  font-family: Inter, "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: #fff !important;
  color: var(--psu-body);
}

body.super-theme-dashboard .sa-dashboard,
body.super-theme-dashboard .super-dashboard-main {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

body.super-theme-dashboard .psu-student-hero__bar {
  background: linear-gradient(135deg, #871743 0%, #5c0f2a 55%, #3d0a1e 100%);
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.12);
}

body.super-theme-dashboard .psu-student-hero__bar::after {
  background: radial-gradient(circle at 12% 20%, rgba(246, 174, 45, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
}

body.super-theme-dashboard .psu-student-hero__badge {
  border-color: rgba(246, 174, 45, 0.45);
  background: rgba(246, 174, 45, 0.15);
  color: #ffd788;
}

body.super-theme-dashboard .psu-student-hero__accent {
  color: var(--psu-amber);
}

/* Escalation count in the maroon stat strip (matches urgency without breaking layout) */
body.super-theme-dashboard .psu-stat-strip__cell--alert {
  background: linear-gradient(180deg, #9f1c45 0%, #6d102f 100%);
  box-shadow: inset 0 0 0 1px rgba(254, 202, 202, 0.22);
}

body.super-theme-dashboard .psu-stat-strip__cell--alert .psu-stat-strip__value {
  color: #ffedd5;
}

.sa-dashboard {
  max-width: 75rem;
  margin: 0 auto;
}

.sa-dashboard-inner {
  max-width: 100%;
}

#sa-overview,
#sa-escalations,
#sa-charts,
#sa-staff,
#sa-concerns-cta,
#sa-concerns-table {
  scroll-margin-top: 5.5rem;
}

body.super-theme-dashboard .admin-quick-nav__link {
  min-height: 4.5rem;
}

body.super-theme-dashboard .admin-quick-nav__kicker {
  color: #9a3412;
}

.sa-bento__link {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--psu-maroon, #800000);
  white-space: nowrap;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  margin: -0.2rem 0 0 0.25rem;
}

body.super-theme-dashboard .sa-bento__link:hover {
  text-decoration: underline;
  color: #5c0f2a;
  background: rgba(128, 0, 0, 0.06);
}

.sa-bento__link:hover {
  text-decoration: underline;
  color: #5c0f2a;
  background: rgba(128, 0, 0, 0.06);
}

body.super-theme-dashboard .sa-jump-rail {
  background: linear-gradient(145deg, #fffdfb 0%, #fff 100%);
  border: 1px solid #eee5e5;
  box-shadow: 0 4px 18px rgba(18, 18, 18, 0.05);
}

.sa-jump-rail {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.4rem 0.6rem;
  overflow: hidden;
}

.sa-jump-rail__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.sa-jump-rail__track a {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid transparent;
}

body.super-theme-dashboard .sa-jump-rail__track a {
  color: #4a4a4a;
  background: #fff;
  border: 1px solid #eee5e5;
}

.sa-jump-rail__track a:hover {
  color: #1e3a5f;
  background: #e2e8f0;
}

body.super-theme-dashboard .sa-jump-rail__track a:hover {
  color: #800000;
  background: #fff7ed;
  border-color: rgba(246, 174, 45, 0.45);
}

body.super-theme-dashboard .sa-side-nav {
  background: #fff;
  border: 1px solid #eee5e5;
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.08);
  backdrop-filter: none;
}

.sa-side-nav {
  position: sticky;
  top: 5.75rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}

.sa-side-nav__title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 0 0 0.5rem 0;
}

.sa-side-nav__a {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-radius: 6px;
  line-height: 1.35;
}

body.super-theme-dashboard .sa-side-nav__a:hover {
  color: #800000;
  background: rgba(128, 0, 0, 0.07);
}

.sa-side-nav__a:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.sa-side-nav__badge {
  display: inline-block;
  min-width: 1.1rem;
  margin-left: 0.2rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  vertical-align: middle;
}

.sa-admin-roster-grid {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

@media (min-width: 1200px) {
  .sa-dashboard-primary {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-escalation-card:hover,
  .sa-staff-bento:hover {
    transform: none;
  }
}

.sa-dash-kicker {
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 600;
}

.sa-dash-title {
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sa-dash-header .sa-dash-lead {
  max-width: 42rem;
}

.sa-bento-grid {
  --sa-radius: 14px;
}

body.super-theme-dashboard .sa-bento,
body.super-theme-dashboard .sa-bento--table {
  background: #fff;
  border: 1px solid #eee5e5;
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.08);
  backdrop-filter: none;
  padding: 1.25rem 1.35rem;
}

body.super-theme-dashboard .sa-bento--table {
  padding-bottom: 0.5rem;
}

.sa-bento,
.sa-bento--table {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--sa-radius, 14px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.35rem;
}

.sa-bento--table {
  padding-bottom: 0.5rem;
}

body.super-theme-dashboard .sa-bento--alert {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 50%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 12px 35px rgba(185, 28, 28, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem 1.5rem;
}

.sa-bento--alert {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 8px 32px rgba(185, 28, 28, 0.08);
  padding: 1.25rem 1.35rem 1.5rem;
}

body.super-theme-dashboard .sa-bento__title {
  color: var(--psu-heading, #1a1a1a);
}

.sa-bento__title {
  color: #0f172a;
  letter-spacing: -0.01em;
}

.sa-bento__sub {
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.sa-escalation-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: sa-pulse 2s ease-out infinite;
}

@keyframes sa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.sa-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
}

.sa-chip--urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.sa-chip--muted {
  background: #f1f5f9;
  color: #475569;
  text-transform: none;
  font-size: 0.72rem;
}

.sa-chip--score {
  background: linear-gradient(135deg, #e0f2fe, #e8edf7);
  color: #0c4a6e;
  text-transform: none;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.sa-chip--ok {
  background: #dcfce7;
  color: #166534;
  text-transform: none;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.sa-chip--await {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  text-transform: none;
  font-size: 0.7rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.sa-chip--await::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.sa-chip--await-resolve {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.sa-escalation-card {
  border-radius: 12px;
  border: 1px solid rgba(252, 165, 165, 0.45);
  background: rgba(255, 255, 255, 0.88);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sa-escalation-card:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sa-btn-outline {
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
}

.sa-btn-outline:hover {
  background: #f8fafc;
  border-color: #64748b;
  color: #0f172a;
}

.chart-wrap.sa-chart-wrap {
  min-height: 220px;
  max-height: 280px;
}

.chart-wrap.sa-chart-wrap--wide {
  min-height: 200px;
  max-height: 260px;
}

.chart-wrap.sa-chart-wrap--compact {
  min-height: 160px;
  max-height: 200px;
}

.chart-wrap.sa-chart-wrap--staff-bars {
  min-height: 180px;
  max-height: 320px;
}

body.super-theme-dashboard .sa-bento-grid .chart-wrap.sa-chart-wrap:not(.sa-chart-wrap--wide):not(.sa-chart-wrap--compact):not(.sa-chart-wrap--staff-bars) {
  min-height: 190px;
  max-height: 240px;
}

body.super-theme-dashboard .user-card--compact {
  border: 1px solid #eee5e5;
  background: #fcf8f8;
}

.user-card--compact {
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

body.super-theme-dashboard .sa-staff-bento {
  border-color: #eee5e5;
  background: #fff;
}

body.super-theme-dashboard .sa-chip--score {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  color: #7f1d1d;
}

body.super-theme-dashboard .sa-escalation-card {
  border-color: rgba(248, 113, 113, 0.3);
  background: #fff;
}

body.super-theme-dashboard .sa-btn-outline {
  border-color: rgba(128, 0, 0, 0.28);
  color: #800000;
}

body.super-theme-dashboard .sa-btn-outline:hover {
  background: #fff7ed;
  border-color: #b45309;
  color: #5c0f2a;
}

.sa-staff-bento {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.88);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sa-staff-bento:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.sa-progress-rail {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

body.super-theme-dashboard .sa-progress-fill {
  background: linear-gradient(90deg, #871743, #f6ae2d);
}

.sa-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.4s ease;
}

.sa-metric-chip {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
}

.sa-metric-chip--ok {
  background: #ecfdf5;
  color: #166534;
}

.sa-metric-chip--warn {
  background: #fff7ed;
  color: #c2410c;
}

body.super-theme-dashboard .sa-table-wrap {
  border: 1px solid #eee5e5;
  background: #fff;
}

.sa-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.sa-data-table {
  --bs-table-bg: transparent;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.sa-data-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
  white-space: nowrap;
}

.sa-col-identity {
  min-width: 200px;
}

.sa-identity-wrap {
  vertical-align: middle;
}

.sa-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  max-width: 240px;
}

.sa-identity__visual {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--id-hue, 210), 48%, 52%), hsl(calc(var(--id-hue, 210) + 40), 50%, 38%));
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

.sa-identity__visual--ph {
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.sa-identity--animate.sa-identity--masked .sa-identity__meta {
  transition: opacity 0.35s ease;
}

.sa-identity--animate.sa-identity--masked:hover .sa-identity__meta {
  opacity: 0.9;
}

.sa-identity__meta {
  min-width: 0;
  flex: 1;
}

.sa-identity__name {
  font-size: 0.8rem;
  max-width: 7rem;
}

.sa-identity__anon {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}

.sa-identity--revealed .sa-identity__visual {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.sa-identity__visual--photo {
  padding: 0;
  overflow: hidden;
  background: #e2e8f0;
}

.sa-identity__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sa-btn-reveal {
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(71, 85, 105, 0.35);
  background: #fff;
  color: #0f172a;
  white-space: nowrap;
}

.sa-btn-reveal:hover {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
}

.sa-status-pill {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.sa-status--resolved {
  background: #dcfce7;
  color: #166534;
}

.sa-status--progress {
  background: #fef9c3;
  color: #854d0e;
}

.sa-status--pending {
  background: #ffedd5;
  color: #9a3412;
}

.sa-status--escalated {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  animation: sa-row-glow 2.2s ease-in-out infinite;
}

.sa-row-escalated {
  box-shadow: inset 3px 0 0 #ef4444;
}

.sa-status--muted {
  background: #f1f5f9;
  color: #475569;
}

@keyframes sa-row-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.complaint-focus.sa-complaint-row {
  background: rgba(59, 130, 246, 0.08) !important;
  outline: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
}

.sa-complaint-row--clickable {
  cursor: pointer;
}

.sa-complaint-row--clickable:hover {
  background: rgba(15, 23, 42, 0.03);
}

.sa-complaint-row--clickable:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: -2px;
}

.sa-concern-detail {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.25);
  scroll-margin-top: 84px;
}

.admin-selected-ticket {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.24) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09) !important;
}

.admin-selected-ticket > .card-body {
  padding: 0 !important;
}

.admin-selected-ticket__header {
  margin: 0 !important;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f8fafc 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.admin-selected-ticket__facts {
  margin: 0 !important;
  padding: 0.85rem 1.1rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-selected-ticket__workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.75rem 1.1rem;
  background: #fffaf0;
  border-bottom: 1px solid rgba(217, 119, 6, 0.14);
}

.admin-selected-ticket__workflow-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
}

.admin-selected-ticket__workflow-step + .admin-selected-ticket__workflow-step {
  border-left: 1px solid rgba(217, 119, 6, 0.16);
  padding-left: 0.85rem;
}

.admin-selected-ticket__workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.32);
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-selected-ticket__workflow-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
}

.admin-selected-ticket__workflow-step.is-active span {
  background: #f6ae2d;
  border-color: #d97706;
  color: #422006;
}

.admin-selected-ticket__grid {
  background: #fff;
}

.admin-selected-ticket__main {
  padding: 1rem 1.1rem;
}

.admin-selected-ticket__aside {
  padding: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fffaf0 100%);
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.sa-concern-detail__section {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: #fff;
}

.admin-selected-ticket .sa-concern-detail__section {
  border: 0;
  border-radius: 0;
  padding: 1rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-selected-ticket .sa-concern-detail__section:first-child {
  padding-top: 0;
}

.admin-selected-ticket .sa-concern-detail__section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-selected-ticket .sa-concern-detail__section.mt-3 {
  margin-top: 0 !important;
}

/* Flatten nested callout so Selected concern is one panel, not a card-in-card. */
.admin-selected-ticket .admin-concern-callout,
body.admin-theme-queue .admin-selected-ticket .admin-concern-callout,
body.role-super_admin .admin-selected-ticket .admin-concern-callout,
body.role-admin .admin-selected-ticket .admin-concern-callout,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-concern-callout {
  margin-top: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.admin-selected-ticket .admin-concern-callout::before,
body.admin-theme-queue .admin-selected-ticket .admin-concern-callout::before,
body.role-super_admin .admin-selected-ticket .admin-concern-callout::before,
body.role-admin .admin-selected-ticket .admin-concern-callout::before,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-concern-callout::before {
  display: none !important;
}

.admin-selected-ticket .admin-concern-callout__label,
body.admin-theme-queue .admin-selected-ticket .admin-concern-callout__label,
body.role-super_admin .admin-selected-ticket .admin-concern-callout__label,
body.role-admin .admin-selected-ticket .admin-concern-callout__label,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-concern-callout__label {
  margin: 0 0 0.45rem;
  padding: 0 !important;
  color: #64748b;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.admin-selected-ticket .admin-concern-callout__body,
body.admin-theme-queue .admin-selected-ticket .admin-concern-callout__body,
body.role-super_admin .admin-selected-ticket .admin-concern-callout__body,
body.role-admin .admin-selected-ticket .admin-concern-callout__body,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-concern-callout__body {
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
}

.admin-selected-ticket .admin-concern-callout__text,
body.admin-theme-queue .admin-selected-ticket .admin-concern-callout__text,
body.role-super_admin .admin-selected-ticket .admin-concern-callout__text,
body.role-admin .admin-selected-ticket .admin-concern-callout__text,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-concern-callout__text {
  font-size: 1rem;
  line-height: 1.65;
  max-width: none;
}

.admin-selected-ticket__main > .sa-concern-detail__section:first-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-conversation {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fffdfb 100%);
  overflow: hidden;
}

.admin-conversation__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

.admin-conversation__hint {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-conversation__count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 1px solid rgba(217, 119, 6, 0.22);
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-conversation__thread {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  background: #fff;
}

.admin-conversation__bubble {
  width: min(88%, 42rem);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 0.78rem 0.9rem;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-conversation__bubble.is-admin {
  justify-self: end;
  background: #fff7ed;
  border-color: rgba(246, 174, 45, 0.42);
}

.admin-conversation__bubble.is-student {
  justify-self: start;
  background: #f8fafc;
}

.admin-conversation__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.admin-conversation__sender {
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-conversation__role {
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(217, 119, 6, 0.1);
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 800;
}

.admin-conversation__body {
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-conversation__time {
  display: block;
  margin-top: 0.45rem;
  color: #7c8798;
  font-size: 0.72rem;
}

.admin-conversation__empty {
  border: 1px dashed rgba(217, 119, 6, 0.25);
  border-radius: 0.85rem;
  padding: 0.9rem;
  color: #64748b;
  background: #fffdfb;
  font-size: 0.86rem;
}

.admin-conversation__reply {
  padding: 0.9rem 1rem 1rem;
  background: #fffdfb;
  border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.admin-conversation__reply-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-conversation__reply-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.65rem;
}

.admin-conversation__reply .form-control {
  min-height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  resize: vertical;
}

.admin-conversation__reply .form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 0.2rem rgba(246, 174, 45, 0.22);
}

.admin-ticket-list-heading {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.admin-theme-dashboard .admin-ticket-toolbar,
body.admin-theme-queue .admin-ticket-toolbar {
  border: 1px solid rgba(128, 0, 0, 0.12);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fdf8f8 100%);
  box-shadow: 0 8px 24px rgba(128, 0, 0, 0.06);
  overflow: hidden;
}

body.admin-theme-dashboard .admin-ticket-toolbar__head,
body.admin-theme-queue .admin-ticket-toolbar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(128, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.04) 0%, rgba(246, 174, 45, 0.06) 100%);
}

body.admin-theme-dashboard .admin-ticket-toolbar__eyebrow,
body.admin-theme-queue .admin-ticket-toolbar__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--psu-maroon, #800000);
  margin-bottom: 0.2rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__hint,
body.admin-theme-queue .admin-ticket-toolbar__hint {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 40rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__count,
body.admin-theme-queue .admin-ticket-toolbar__count {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__body,
body.admin-theme-queue .admin-ticket-toolbar__body {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.85rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters,
body.admin-theme-queue .admin-ticket-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0 !important;
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--psu-heading, #0f172a);
  border-radius: 999px;
  border: 1px solid #eee5e5;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn:hover,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn:hover {
  color: var(--psu-heading, #0f172a);
  border-color: color-mix(in srgb, var(--psu-maroon, #800000) 28%, #eee5e5 72%);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
  transform: translateY(-1px);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__count,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__count {
  font-weight: 800;
  opacity: 0.72;
  margin-left: 0.1rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn--all.is-active,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn--all.is-active {
  color: #fff;
  border-color: var(--psu-maroon, #800000);
  background: linear-gradient(135deg, var(--psu-maroon-bar, #871743) 0%, var(--psu-maroon, #800000) 100%);
  box-shadow: 0 2px 0 rgba(111, 18, 50, 0.35);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn--my.is-active,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn--my.is-active {
  color: #fff;
  border-color: var(--psu-maroon-bar, #871743);
  background: linear-gradient(135deg, #a91d47 0%, var(--psu-maroon-bar, #871743) 100%);
  box-shadow: 0 2px 0 rgba(111, 18, 50, 0.35);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn--pending.is-active,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn--pending.is-active {
  border-color: #c2410c;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(154, 52, 18, 0.35);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn--progress.is-active,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn--progress.is-active {
  border-color: #b45309;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #422006;
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.35);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn--resolved.is-active,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn--resolved.is-active {
  border-color: #15803d;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(21, 128, 61, 0.35);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn--urgent.is-active,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn--urgent.is-active {
  border-color: #b91c1c;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(185, 28, 28, 0.35);
}

body.admin-theme-dashboard .admin-ticket-toolbar__filters .admin-queue-filter__btn.is-active .admin-queue-filter__count,
body.admin-theme-queue .admin-ticket-toolbar__filters .admin-queue-filter__btn.is-active .admin-queue-filter__count {
  opacity: 0.92;
}

body.admin-theme-dashboard .admin-ticket-toolbar__tools,
body.admin-theme-queue .admin-ticket-toolbar__tools {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11rem) minmax(10rem, 13rem) minmax(0, 1fr);
  align-items: end;
  gap: 0.65rem 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px dashed rgba(128, 0, 0, 0.1);
}

body.admin-theme-dashboard .admin-ticket-toolbar__field--search,
body.admin-theme-queue .admin-ticket-toolbar__field--search {
  min-width: 0;
}

body.admin-theme-dashboard .admin-ticket-toolbar__label,
body.admin-theme-queue .admin-ticket-toolbar__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body.admin-theme-dashboard .admin-ticket-toolbar__select,
body.admin-theme-queue .admin-ticket-toolbar__select,
body.admin-theme-dashboard .admin-ticket-toolbar__input,
body.admin-theme-queue .admin-ticket-toolbar__input,
body.admin-theme-dashboard .admin-ticket-toolbar__search,
body.admin-theme-queue .admin-ticket-toolbar__search {
  width: 100%;
  min-width: 0;
  border-color: rgba(128, 0, 0, 0.14);
  background: #fff;
  border-radius: 0.65rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__select:focus,
body.admin-theme-queue .admin-ticket-toolbar__select:focus,
body.admin-theme-dashboard .admin-ticket-toolbar__input:focus,
body.admin-theme-queue .admin-ticket-toolbar__input:focus,
body.admin-theme-dashboard .admin-ticket-toolbar__search:focus,
body.admin-theme-queue .admin-ticket-toolbar__search:focus {
  border-color: color-mix(in srgb, var(--psu-maroon, #800000) 45%, #cbd5e1 55%);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.admin-theme-dashboard .admin-ticket-toolbar__search-row,
body.admin-theme-queue .admin-ticket-toolbar__search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__search,
body.admin-theme-queue .admin-ticket-toolbar__search {
  flex: 1 1 12rem;
  min-width: 0;
}

body.admin-theme-dashboard .admin-ticket-toolbar__search-btn,
body.admin-theme-queue .admin-ticket-toolbar__search-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--psu-maroon-bar, #871743) 0%, var(--psu-maroon, #800000) 100%);
  border: 1px solid var(--psu-maroon, #800000);
  border-radius: 999px;
  font-weight: 700;
  padding-inline: 1rem;
}

body.admin-theme-dashboard .admin-ticket-toolbar__search-btn:hover,
body.admin-theme-dashboard .admin-ticket-toolbar__search-btn:focus-visible,
body.admin-theme-queue .admin-ticket-toolbar__search-btn:hover,
body.admin-theme-queue .admin-ticket-toolbar__search-btn:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #6f1232 0%, #6b0000 100%);
  border-color: #6b0000;
}

body.admin-theme-dashboard .admin-ticket-toolbar__clear,
body.admin-theme-queue .admin-ticket-toolbar__clear {
  border-radius: 999px;
  border-color: rgba(100, 116, 139, 0.35);
  color: #64748b;
  font-weight: 600;
}

body.admin-theme-dashboard .admin-ticket-toolbar__clear:hover,
body.admin-theme-queue .admin-ticket-toolbar__clear:hover {
  border-color: rgba(128, 0, 0, 0.25);
  color: var(--psu-maroon, #800000);
  background: #fdf8f8;
}

@media (max-width: 991.98px) {
  body.admin-theme-dashboard .admin-ticket-toolbar__tools,
  body.admin-theme-queue .admin-ticket-toolbar__tools {
    grid-template-columns: 1fr 1fr;
  }

  body.admin-theme-dashboard .admin-ticket-toolbar__field--search,
  body.admin-theme-queue .admin-ticket-toolbar__field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  body.admin-theme-dashboard .admin-ticket-toolbar__tools,
  body.admin-theme-queue .admin-ticket-toolbar__tools {
    grid-template-columns: 1fr;
  }

  body.admin-theme-dashboard .admin-ticket-toolbar__head,
  body.admin-theme-queue .admin-ticket-toolbar__head {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-theme-dashboard .admin-ticket-toolbar__count,
  body.admin-theme-queue .admin-ticket-toolbar__count {
    align-self: flex-start;
  }

  body.admin-theme-dashboard .admin-ticket-toolbar__search-row,
  body.admin-theme-queue .admin-ticket-toolbar__search-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-theme-dashboard .admin-ticket-toolbar__search-btn,
  body.admin-theme-dashboard .admin-ticket-toolbar__clear,
  body.admin-theme-queue .admin-ticket-toolbar__search-btn,
  body.admin-theme-queue .admin-ticket-toolbar__clear {
    width: 100%;
  }
}

.admin-ticket-update__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-ticket-update__hint {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-ticket-update {
  display: grid;
  gap: 0.85rem;
}

.admin-ticket-update__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-ticket-update__choice {
  position: relative;
  display: flex;
  gap: 0.65rem;
  min-height: 5.25rem;
  padding: 0.8rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
  color: #334155;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-ticket-update__choice:hover {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 10px 22px rgba(148, 94, 16, 0.08);
  transform: translateY(-1px);
}

.admin-ticket-update__choice input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  accent-color: var(--psu-accent-amber);
}

.admin-ticket-update__choice strong,
.admin-ticket-update__choice small {
  display: block;
}

.admin-ticket-update__choice strong {
  font-size: 0.82rem;
  line-height: 1.25;
  color: #1f2937;
}

.admin-ticket-update__choice small {
  margin-top: 0.24rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
}

.admin-ticket-update__choice:has(input:checked) {
  border-color: rgba(217, 119, 6, 0.7);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.admin-ticket-update__footer {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.admin-ticket-update__priority {
  max-width: 16rem;
}

.admin-ticket-update__save {
  min-width: 10.5rem;
  min-height: 2.65rem;
  border-radius: 0.8rem !important;
}

@media (max-width: 992px) {
  .admin-selected-ticket__workflow {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .admin-selected-ticket__workflow-step + .admin-selected-ticket__workflow-step {
    border-left: 0;
    padding-left: 0;
  }

  .admin-ticket-update__status {
    grid-template-columns: 1fr;
  }

  .admin-ticket-update__choice {
    min-height: auto;
  }

  .admin-selected-ticket__aside {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }
}

@media (max-width: 576px) {
  .admin-conversation__head,
  .admin-conversation__reply-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-conversation__bubble {
    width: 100%;
  }

  .admin-conversation__reply-row .btn {
    width: 100%;
  }

  .admin-selected-ticket__header,
  .admin-selected-ticket__facts,
  .admin-selected-ticket__workflow,
  .admin-selected-ticket__main,
  .admin-selected-ticket__aside {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .admin-ticket-update__footer {
    grid-template-columns: 1fr;
  }

  .admin-ticket-update__priority {
    max-width: none;
  }

  .admin-ticket-update__save {
    width: 100%;
  }
}

body.super-theme-dashboard .concern-facts--super .concern-fact-chip {
  background: linear-gradient(180deg, #fff 0%, #fcf8f8 100%);
  border-color: #eee5e5;
}

.sa-concern-body {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
  padding: 0.75rem 0.85rem;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #1f2937;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 76ch;
}

body.role-super_admin .sa-audit-ico {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

body.role-super_admin .sa-audit-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sa-audit-pill {
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  font-size: 0.6rem;
  line-height: 1.1rem;
  text-align: center;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}

.sa-audit-menu {
  min-width: 220px;
  max-width: 300px;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 12px;
}

.sa-audit-item + .sa-audit-item {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.sa-audit-time {
  font-size: 0.65rem;
}

/* Session security modal: glass, blurred backdrop when open */
.session-countdown-modal__content {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px);
}

body:has(.session-countdown-modal.show) .modal-backdrop.show {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.38) !important;
}

/* Student concern progress (3-step bar) */
.psu-status-stepbar {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 22rem;
  gap: 0;
}

.psu-status-stepbar__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.psu-status-stepbar__node {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.psu-status-stepbar__text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-top: 0.35rem;
  text-align: center;
  max-width: 4.5rem;
  line-height: 1.2;
}

.psu-status-stepbar__track {
  flex: 1 1 1rem;
  min-width: 0.5rem;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: #e2e8f0;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.psu-status-stepbar__track.is-filled {
  background: linear-gradient(90deg, #871743, #c2410c);
  opacity: 0.9;
}

.psu-status-stepbar__step.is-done .psu-status-stepbar__node {
  background: #871743;
  border-color: #6f1232;
  box-shadow: 0 0 0 2px rgba(135, 23, 67, 0.2);
}

.psu-status-stepbar__step.is-done .psu-status-stepbar__text {
  color: #64748b;
  font-weight: 600;
}

.psu-status-stepbar__step.is-active .psu-status-stepbar__node {
  background: #f8fafc;
  border-color: #871743;
  box-shadow: 0 0 0 3px rgba(135, 23, 67, 0.35);
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.05rem;
}

.psu-status-stepbar__step.is-active .psu-status-stepbar__text {
  color: #871743;
  font-weight: 700;
}

@media (max-width: 420px) {
  .psu-status-stepbar {
    max-width: 100%;
  }
  .psu-status-stepbar__text {
    font-size: 0.58rem;
    max-width: 3.2rem;
  }
}

/* Profile avatars (header + settings) */
.app-user-avatar {
  border: 2px solid rgba(128, 0, 0, 0.12);
  vertical-align: middle;
  object-fit: cover;
}

.app-user-avatar--initials {
  background: linear-gradient(135deg, #6e1428, #4a0f2a);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  user-select: none;
}

.settings-profile-avatar {
  box-shadow: 0 6px 20px rgba(11, 21, 49, 0.12);
}

/* Student account settings page polish */
body.student-theme-dashboard .student-settings-page {
  max-width: 72rem;
}

body.student-theme-dashboard .student-settings-hero {
  padding: 0.35rem 0 0.2rem;
}

body.student-theme-dashboard .student-settings-card {
  position: relative;
  overflow: hidden;
}

body.student-theme-dashboard .student-settings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--psu-maroon, #800000), #b45309);
  opacity: 0.78;
}

body.student-theme-dashboard .student-settings-avatar-panel {
  border-color: rgba(135, 23, 67, 0.1) !important;
  background: linear-gradient(180deg, #fff 0%, #fcfbfb 100%);
}

body.student-theme-dashboard .student-settings-btn {
  background: linear-gradient(135deg, #871743, #5c0f2a);
  color: #fff;
  border: 1px solid rgba(92, 15, 42, 0.65);
  border-radius: 0.7rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
}

body.student-theme-dashboard .student-settings-btn:hover,
body.student-theme-dashboard .student-settings-btn:focus-visible {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.student-theme-dashboard .student-settings-btn--soft {
  background: #fff;
  color: #5c0f2a;
  border-color: rgba(135, 23, 67, 0.25);
}

body.student-theme-dashboard .student-settings-btn--soft:hover,
body.student-theme-dashboard .student-settings-btn--soft:focus-visible {
  color: #4a0f2a;
  background: #fff6f8;
}

body.student-theme-dashboard .student-settings-remove {
  color: #b91c1c;
  font-weight: 600;
}

body.student-theme-dashboard .student-settings-remove:hover {
  color: #991b1b;
}

/* Student view-status page polish */
body.student-theme-dashboard .student-status-page {
  max-width: 72rem;
}

body.student-theme-dashboard #view-status {
  scroll-margin-top: 5rem;
}

body.student-theme-dashboard .student-status-hero {
  padding: 0.3rem 0 0.25rem;
}

body.student-theme-dashboard .student-status-filter {
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  background: #fff;
}

body.student-theme-dashboard .student-status-filter .form-select {
  min-width: 10.5rem;
}

body.student-theme-dashboard .student-status-list {
  gap: 1rem;
}

body.student-theme-dashboard .student-status-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
  position: relative;
  overflow: hidden;
}

body.student-theme-dashboard .student-status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #871743, #f6ae2d, #871743);
  background-size: 200% 100%;
  animation: psu-concern-shimmer 8s ease-in-out infinite;
}

body.student-theme-dashboard .student-status-card__head {
  padding-bottom: 0.35rem;
}

body.student-theme-dashboard .student-status-card__title {
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

body.student-theme-dashboard .student-status-card .concern-fact-chip {
  background: linear-gradient(180deg, #fff 0%, #fff9ef 100%);
  border-color: rgba(180, 83, 9, 0.24);
}

body.student-theme-dashboard .student-status-concern {
  border-radius: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 0.72rem 0.85rem;
}

body.student-theme-dashboard .student-status-concern__text {
  line-height: 1.58;
  color: #1f2937;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.student-theme-dashboard .student-status-timing {
  margin-top: 0.95rem !important;
  background: #f8fafc !important;
  border-color: rgba(111, 128, 161, 0.2) !important;
}

body.student-theme-dashboard .student-status-evidence > div {
  margin-top: 0.95rem;
  border-top-color: rgba(148, 163, 184, 0.22) !important;
}

body.student-theme-dashboard .student-evidence-panel,
body.admin-theme-dashboard .student-evidence-panel,
body.admin-theme-queue .student-evidence-panel,
body.super-theme-dashboard .student-evidence-panel {
  border-radius: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 0.72rem 0.85rem;
}

body.student-theme-dashboard .student-evidence-panel__content,
body.admin-theme-dashboard .student-evidence-panel__content,
body.admin-theme-queue .student-evidence-panel__content,
body.super-theme-dashboard .student-evidence-panel__content {
  margin: 0;
}

body.student-theme-dashboard .student-evidence-panel__list,
body.admin-theme-dashboard .student-evidence-panel__list,
body.admin-theme-queue .student-evidence-panel__list,
body.super-theme-dashboard .student-evidence-panel__list {
  margin-bottom: 0.5rem !important;
}

body.student-theme-dashboard .student-evidence-panel__item,
body.admin-theme-dashboard .student-evidence-panel__item,
body.admin-theme-queue .student-evidence-panel__item,
body.super-theme-dashboard .student-evidence-panel__item {
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

body.student-theme-dashboard .student-evidence-panel__item:last-child,
body.admin-theme-dashboard .student-evidence-panel__item:last-child,
body.admin-theme-queue .student-evidence-panel__item:last-child,
body.super-theme-dashboard .student-evidence-panel__item:last-child {
  margin-bottom: 0;
}

body.student-theme-dashboard .student-evidence-panel .student-ticket-detail__upload {
  margin-top: 0.65rem;
  background: #fff;
  border-color: rgba(148, 163, 184, 0.28);
}

body.student-theme-dashboard .student-status-evidence .btn-outline-primary {
  border-color: rgba(135, 23, 67, 0.45);
  color: #5c0f2a;
}

body.student-theme-dashboard .student-status-evidence .btn-outline-primary:hover,
body.student-theme-dashboard .student-status-evidence .btn-outline-primary:focus-visible {
  background: #fff3f5;
  border-color: #871743;
  color: #4a0f2a;
}

body.student-theme-dashboard .student-status-evidence .btn-link.text-danger {
  color: #b91c1c !important;
}

body.student-theme-dashboard .student-status-update {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: #f8fafc !important;
}

body.student-theme-dashboard .student-status-reply .form-control {
  border-radius: 0.75rem;
  border: 1px solid #e4dede;
}

body.student-theme-dashboard .student-status-reply .form-control:focus {
  border-color: var(--psu-maroon, #800000);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .student-status-update-empty {
  font-size: 0.9rem;
}

body.student-theme-dashboard .student-status-empty {
  max-width: 44rem;
}

@media (max-width: 575.98px) {
  body.student-theme-dashboard .student-status-filter {
    width: 100%;
    justify-content: space-between;
  }
  body.student-theme-dashboard .student-status-filter .form-select {
    min-width: 0;
    width: 62%;
  }
}

/* Student feedback page */
body.student-theme-dashboard .student-feedback-page {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.student-theme-dashboard .student-feedback-hero {
  padding-top: 0.35rem;
  padding-bottom: 0.2rem;
}

body.student-theme-dashboard .student-feedback-toolbar {
  margin-left: auto;
}

body.student-theme-dashboard .student-feedback-filter {
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  background: #fff;
}

body.student-theme-dashboard .student-feedback-filter .form-select {
  min-width: 10.5rem;
}

body.student-theme-dashboard .student-feedback-list {
  max-width: 48rem;
}

body.student-theme-dashboard .student-status-card-list {
  max-width: 48rem;
}

body.student-theme-dashboard .student-status-card .psu-status-stepbar {
  margin-top: 0.15rem;
}

body.student-theme-dashboard .student-status-card__thread {
  max-height: 14rem;
  overflow-y: auto;
}

body.student-theme-dashboard .student-status-card__reply .form-control {
  border-radius: 0.75rem;
  border: 1px solid #e4dede;
}

body.student-theme-dashboard .student-status-card__reply .form-control:focus {
  border-color: var(--psu-maroon, #800000);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .student-feedback-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.07);
}

body.admin-theme-dashboard .student-feedback-card,
body.admin-theme-queue .student-feedback-card,
body.super-theme-dashboard .student-feedback-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%) !important;
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.07) !important;
}

body.student-theme-dashboard .student-feedback-card::before,
body.admin-theme-dashboard .student-feedback-card::before,
body.admin-theme-queue .student-feedback-card::before,
body.super-theme-dashboard .student-feedback-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--psu-card-accent-gradient);
  z-index: 2;
  pointer-events: none;
}

body.student-theme-dashboard .student-feedback-card::after,
body.admin-theme-dashboard .student-feedback-card::after,
body.admin-theme-queue .student-feedback-card::after,
body.super-theme-dashboard .student-feedback-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--psu-card-accent-divider);
  z-index: 2;
  pointer-events: none;
}

body.student-theme-dashboard .student-feedback-desc,
body.admin-theme-dashboard .student-feedback-desc,
body.admin-theme-queue .student-feedback-desc,
body.super-theme-dashboard .student-feedback-desc {
  border-radius: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 0.72rem 0.85rem;
}

body.student-theme-dashboard .student-feedback-desc p,
body.admin-theme-dashboard .student-feedback-desc p,
body.admin-theme-queue .student-feedback-desc p,
body.super-theme-dashboard .student-feedback-desc p {
  line-height: 1.58;
  color: #1f2937;
}

body.student-theme-dashboard .student-feedback-submitted {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
}

body.student-theme-dashboard .student-feedback-card .card-body {
  padding: 1rem 1.05rem 1.05rem;
}

body.student-theme-dashboard .student-feedback-rating .form-check-input {
  cursor: pointer;
}

body.student-theme-dashboard .student-feedback-rating .form-check-label {
  color: #92400e;
  font-weight: 600;
  cursor: pointer;
}

body.student-theme-dashboard .student-feedback-form .form-control {
  border-radius: 0.75rem;
  border: 1px solid #e4dede;
}

body.student-theme-dashboard .student-feedback-form .form-control:focus {
  border-color: var(--psu-maroon, #800000);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

@media (max-width: 767.98px) {
  body.student-theme-dashboard .student-feedback-toolbar {
    margin-left: 0;
    width: 100%;
  }

  body.student-theme-dashboard .student-feedback-filter {
    width: 100%;
    justify-content: space-between;
  }

  body.student-theme-dashboard .student-feedback-filter .form-select {
    min-width: 0;
    width: 64%;
  }
}

/* Super Admin + Admin system reference pages */
.sa-system-page .sa-res-block__section[id] {
  scroll-margin-top: 5.5rem;
}

.sa-system-page .sa-bento h2 {
  letter-spacing: 0.04em;
}

body.super-theme-dashboard .sa-system-page .sa-security-points,
body.admin-theme-dashboard .sa-system-page .sa-security-points,
body.student-theme-dashboard .sa-system-page .sa-security-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.super-theme-dashboard .sa-system-page .sa-security-points li,
body.admin-theme-dashboard .sa-system-page .sa-security-points li,
body.student-theme-dashboard .sa-system-page .sa-security-points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--psu-body, #4a4a4a);
}

body.super-theme-dashboard .sa-system-page .sa-security-points li:last-child,
body.admin-theme-dashboard .sa-system-page .sa-security-points li:last-child,
body.student-theme-dashboard .sa-system-page .sa-security-points li:last-child {
  margin-bottom: 0;
}

body.super-theme-dashboard .sa-system-page .sa-security-points li::before,
body.admin-theme-dashboard .sa-system-page .sa-security-points li::before,
body.student-theme-dashboard .sa-system-page .sa-security-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--psu-maroon-bar, #871743), var(--psu-amber, #f6ae2d));
}

body.super-theme-dashboard .sa-system-page .sa-security-points--tight li,
body.admin-theme-dashboard .sa-system-page .sa-security-points--tight li,
body.student-theme-dashboard .sa-system-page .sa-security-points--tight li {
  margin-bottom: 0.65rem;
}

body.super-theme-dashboard .sa-system-page code.sa-code-inline,
body.admin-theme-dashboard .sa-system-page code.sa-code-inline {
  font-size: 0.8125rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(128, 0, 0, 0.07);
  color: #5c0f2a;
  border: 1px solid rgba(128, 0, 0, 0.14);
}

/* Super Admin — user management */
body.super-theme-dashboard .sa-um-page {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

.sa-um-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.sa-um-breadcrumb__a {
  color: #800000;
  text-decoration: none;
  font-weight: 600;
}

.sa-um-breadcrumb__a:hover {
  text-decoration: underline;
}

.sa-um-breadcrumb__sep {
  color: #94a3b8;
  margin: 0 0.35rem;
}

.sa-um-breadcrumb__here {
  color: #64748b;
}

.sa-um-stat {
  --sa-um-b: #871743;
}

.sa-um-stat__tile {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #fff 0%, #fcf8f8 100%);
  border: 1px solid #eee5e5;
  box-shadow: 0 4px 18px rgba(18, 18, 18, 0.05);
  text-align: left;
}

.sa-um-stat__val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--sa-um-b);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sa-um-stat__lab {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 0.3rem;
}

.sa-um-card {
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #eee5e5;
  box-shadow: 0 12px 35px rgba(18, 18, 18, 0.08) !important;
}

.sa-um-card__head {
  background: #fcf8f8;
  border-bottom: 1px solid #eee5e5;
  border-radius: 1.25rem 1.25rem 0 0;
}

.sa-um-card__title {
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.super-theme-dashboard .sa-um-btn-pri,
body.super-theme-dashboard .sa-um-btn-pri:hover {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--psu-brand-maroon);
  --bs-btn-border-color: var(--psu-brand-maroon);
  --bs-btn-hover-bg: var(--psu-brand-maroon-hover);
  --bs-btn-hover-border-color: var(--psu-brand-maroon-hover);
  --bs-btn-focus-shadow-rgb: 128, 0, 0;
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0.5rem 1.1rem;
}

.sa-um-table-wrap {
  border-top: 1px solid #eee5e5;
}

.sa-um-list-meta {
  max-width: 22rem;
}

.sa-um-count-pills {
  justify-content: flex-end;
}

.sa-um-count-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.sa-um-count-pill--students {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.sa-um-count-pill--staff {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.sa-um-table-help {
  border-color: #eee5e5 !important;
}

.sa-um-help-toggle {
  color: var(--sa-um-b, #871743) !important;
  font-weight: 600;
}

.sa-um-help-toggle:hover {
  color: #5c0f2e !important;
}

.sa-um-help-chevron {
  display: inline-block;
  transition: transform 0.15s ease;
  font-size: 0.65rem;
  opacity: 0.75;
}

.sa-um-help-toggle[aria-expanded="true"] .sa-um-help-chevron {
  transform: rotate(90deg);
}

.sa-um-help-list li {
  margin-bottom: 0.35rem;
}

.sa-um-help-list li:last-child {
  margin-bottom: 0;
}

.sa-um-th-num {
  width: 3.25rem;
  font-size: 0.62rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sa-um-th-dbid {
  width: 4.5rem;
  font-size: 0.62rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sa-um-td-listnum {
  font-variant-numeric: tabular-nums;
}

.sa-um-td-dbid {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem !important;
}

.sa-um-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #eee5e5;
  background: #fafafa;
}

.sa-um-table td {
  vertical-align: middle;
  border-color: #f1f0f0;
}

.sa-um-mono {
  font-size: 0.82rem;
  font-family: ui-monospace, Consolas, monospace;
}

.sa-um-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sa-um-badge--student {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.sa-um-badge--admin {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.sa-um-badge--super {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: 1px solid #334155;
}

.sa-um-badge--muted {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.sa-um-pill--on {
  background: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 600;
  font-size: 0.72rem;
}

.sa-um-pill--off {
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-weight: 600;
  font-size: 0.72rem;
}

.sa-um-actions {
  white-space: nowrap;
  min-width: 9.5rem;
}

.sa-um-actions .btn {
  min-width: 3.5rem;
}

body.super-theme-dashboard .sa-um-btn-edit {
  background: #fff7ed;
  border: 1px solid #f6ae2d;
  color: #7c2d12;
  font-weight: 600;
  border-radius: 0.45rem;
}

body.super-theme-dashboard .sa-um-btn-edit:hover {
  background: #ffedd5;
  color: #431407;
  border-color: #ea580c;
}

body.super-theme-dashboard .sa-um-btn-del {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-weight: 600;
  border-radius: 0.45rem;
  margin-left: 0.35rem;
}

body.super-theme-dashboard .sa-um-btn-del:hover {
  background: #fef2f2;
  color: #991b1b;
}

body.super-theme-dashboard .psu-stat-strip__cell--alert {
  background: linear-gradient(180deg, #9f1c45 0%, #6d102f 100%);
  box-shadow: inset 0 0 0 1px rgba(254, 202, 202, 0.22);
}

body.super-theme-dashboard .psu-stat-strip__cell--alert .psu-stat-strip__value {
  color: #ffedd5;
}

.sa-um-foot {
  background: #fafafa;
  border-top: 1px solid #eee5e5;
}

@media (max-width: 767.98px) {
  .sa-um-table thead {
    display: none;
  }

  .sa-um-table,
  .sa-um-table tbody {
    display: block;
    width: 100%;
  }

  .sa-um-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f0f0;
  }

  .sa-um-table tr:last-child {
    border-bottom: 0;
  }

  .sa-um-table td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .sa-um-table .sa-um-td-listnum,
  .sa-um-table .sa-um-td-dbid {
    display: none;
  }

  .sa-um-td-name {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .sa-um-td-name .fw-medium {
    font-size: 0.98rem;
  }

  .sa-um-m-email {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    margin-top: 0.1rem;
  }

  .sa-um-m-meta {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.15rem;
  }

  .sa-um-td-status {
    justify-self: end;
  }

  .sa-um-table .sa-um-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    text-align: left !important;
  }

  .sa-um-actions > .btn,
  .sa-um-actions > form {
    flex: 1 1 0;
  }

  .sa-um-actions > form .btn {
    width: 100%;
  }

  body.super-theme-dashboard .sa-um-actions .sa-um-btn-del {
    margin-left: 0;
  }

  .sa-um-actions .btn {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}

body.super-theme-dashboard .sa-um-modal {
  border-radius: 1rem;
  border: 1px solid #eee5e5;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

body.super-theme-dashboard .sa-um-modal .form-control:focus,
body.super-theme-dashboard .sa-um-modal .form-select:focus {
  border-color: #800000;
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

/* Top concern ranking — concern list modal */
.sa-rank-modal .modal-dialog {
  max-width: 42rem;
}

.sa-rank-modal__panel {
  border: 1px solid rgba(135, 23, 67, 0.14);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fdf8f9 100%);
}

.sa-rank-modal__header {
  padding: 1.15rem 1.25rem 0.85rem;
  background: linear-gradient(135deg, rgba(135, 23, 67, 0.08) 0%, rgba(255, 255, 255, 0) 72%);
}

.sa-rank-modal__kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #871743;
  background: rgba(135, 23, 67, 0.1);
  border: 1px solid rgba(135, 23, 67, 0.14);
}

.sa-rank-modal__title {
  color: #111827;
  letter-spacing: -0.01em;
}

.sa-rank-modal__sub {
  font-size: 0.84rem;
  color: #6b7280;
}

.sa-rank-modal__sub strong {
  color: #871743;
}

.sa-rank-modal__body {
  padding: 0.35rem 1.25rem 1rem;
}

.sa-rank-modal__footer {
  padding: 0.75rem 1.25rem 1.1rem;
  background: #fafafa;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  justify-content: space-between;
}

.sa-rank-concern-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.sa-rank-concern-item {
  border: 1px solid rgba(135, 23, 67, 0.12);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 6px 18px rgba(135, 23, 67, 0.05);
}

.sa-rank-concern-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.sa-rank-concern-item__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.sa-rank-concern-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #871743;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.sa-rank-concern-item__id {
  font-size: 0.72rem;
  font-weight: 700;
  color: #871743;
  background: rgba(135, 23, 67, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.sa-rank-concern-item__cat {
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
}

.sa-rank-concern-item__quote {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #374151;
  font-style: italic;
}

.sa-rank-concern-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: #6b7280;
}

.sa-rank-concern-item__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
}

.sa-rank-concern-item__chip--priority {
  background: rgba(135, 23, 67, 0.08);
  color: #871743;
}

.sa-rank-concern-item__open {
  width: 100%;
  justify-content: center;
}

.sa-rank-modal__loading,
.sa-rank-modal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 8rem;
  border: 1px dashed rgba(135, 23, 67, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #6b7280;
  text-align: center;
  padding: 1rem;
}

.sa-rank-modal__spinner {
  color: #871743;
  border-color: rgba(135, 23, 67, 0.18);
  border-right-color: #871743;
}

body:has(.sa-rank-modal.show) .modal-backdrop.show {
  backdrop-filter: blur(4px);
}

/* —— Student ticket registry (master-detail, mirrors admin queue) —— */
body.student-theme-dashboard #student-queue {
  scroll-margin-top: 5.5rem;
}

body.student-theme-dashboard .student-queue-panel {
  min-width: 0;
}

body.student-theme-dashboard .student-queue-controls {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.student-theme-dashboard .student-queue-controls__body {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

body.student-theme-dashboard .student-queue-table {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

body.student-theme-dashboard .student-ticket-list-heading {
  margin-top: 0;
}

body.student-theme-dashboard .student-queue-controls .student-ticket-toolbar__tools {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 0.85rem;
  margin-top: 0.1rem;
}

body.student-theme-dashboard .student-ticket-toolbar__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--psu-maroon);
  margin-bottom: 0.2rem;
}

body.student-theme-dashboard .student-ticket-toolbar__hint {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 36rem;
}

body.student-theme-dashboard .student-ticket-toolbar__count {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

body.student-theme-dashboard .student-ticket-toolbar__body {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.85rem;
}

body.student-theme-dashboard .student-ticket-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.student-theme-dashboard .student-ticket-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--psu-heading);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--psu-border);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

body.student-theme-dashboard .student-ticket-filter__btn:hover {
  color: var(--psu-heading);
  border-color: color-mix(in srgb, var(--psu-maroon) 28%, var(--psu-border) 72%);
  box-shadow: 0 4px 14px rgba(128, 0, 0, 0.08);
  transform: translateY(-1px);
}

body.student-theme-dashboard .student-ticket-filter__btn.is-active {
  color: #fff;
  border-color: var(--psu-maroon);
  background: linear-gradient(135deg, var(--psu-maroon-bar) 0%, var(--psu-maroon) 100%);
  box-shadow: 0 2px 0 rgba(111, 18, 50, 0.35);
}

body.student-theme-dashboard .student-ticket-filter__btn--pending.is-active {
  border-color: #c2410c;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 2px 0 rgba(154, 52, 18, 0.35);
}

body.student-theme-dashboard .student-ticket-filter__btn--progress.is-active {
  border-color: #b45309;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 0 rgba(180, 83, 9, 0.35);
  color: #422006;
}

body.student-theme-dashboard .student-ticket-filter__btn--resolved.is-active {
  border-color: #15803d;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 2px 0 rgba(21, 128, 61, 0.35);
}

body.student-theme-dashboard .student-ticket-filter__btn.is-active .student-ticket-filter__count {
  opacity: 0.92;
}

body.student-theme-dashboard .student-ticket-filter__count {
  font-weight: 800;
  opacity: 0.72;
  margin-left: 0.1rem;
}

body.student-theme-dashboard .student-ticket-toolbar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px dashed rgba(128, 0, 0, 0.1);
}

body.student-theme-dashboard .student-ticket-toolbar__field {
  min-width: 0;
}

body.student-theme-dashboard .student-ticket-toolbar__field--search {
  flex: 1 1 14rem;
}

body.student-theme-dashboard .student-ticket-toolbar__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body.student-theme-dashboard .student-ticket-toolbar__select,
body.student-theme-dashboard .student-ticket-toolbar__search {
  min-width: 10.5rem;
  border-color: rgba(128, 0, 0, 0.14);
  background-color: #fff;
  border-radius: 0.65rem;
}

body.student-theme-dashboard .student-ticket-toolbar__select:focus,
body.student-theme-dashboard .student-ticket-toolbar__search:focus {
  border-color: color-mix(in srgb, var(--psu-maroon) 45%, #cbd5e1 55%);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .student-ticket-toolbar__search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

body.student-theme-dashboard .student-ticket-toolbar__search {
  flex: 1 1 11rem;
  min-width: 0;
}

body.student-theme-dashboard .student-ticket-toolbar__search-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--psu-maroon-bar) 0%, var(--psu-maroon) 100%);
  border: 1px solid var(--psu-maroon);
  border-radius: 999px;
  font-weight: 700;
  padding-inline: 1rem;
}

body.student-theme-dashboard .student-ticket-toolbar__search-btn:hover,
body.student-theme-dashboard .student-ticket-toolbar__search-btn:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #6f1232 0%, #6b0000 100%);
  border-color: #6b0000;
}

body.student-theme-dashboard .student-ticket-toolbar__clear {
  border-radius: 999px;
  border-color: rgba(100, 116, 139, 0.35);
  color: #64748b;
  font-weight: 600;
}

body.student-theme-dashboard .student-ticket-toolbar__clear:hover {
  border-color: rgba(128, 0, 0, 0.25);
  color: var(--psu-maroon);
  background: #fdf8f8;
}

@media (max-width: 767.98px) {
  body.student-theme-dashboard .student-ticket-toolbar__head {
    flex-direction: column;
    align-items: stretch;
  }

  body.student-theme-dashboard .student-ticket-toolbar__count {
    align-self: flex-start;
  }

  body.student-theme-dashboard .student-ticket-toolbar__field {
    flex: 1 1 100%;
  }

  body.student-theme-dashboard .student-ticket-toolbar__select {
    width: 100%;
    min-width: 0;
  }

  body.student-theme-dashboard .student-ticket-toolbar__search-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.student-theme-dashboard .student-ticket-toolbar__search {
    flex: 0 0 auto;
    width: 100%;
  }

  body.student-theme-dashboard .student-ticket-toolbar__search-btn,
  body.student-theme-dashboard .student-ticket-toolbar__clear {
    width: 100%;
  }
}

body.student-theme-dashboard .student-selected-ticket,
body.student-theme-dashboard .student-ticket-detail {
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket {
  border: 1px solid rgba(217, 119, 6, 0.24) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .student-selected-ticket__header,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-selected-ticket__header {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f8fafc 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .student-selected-ticket__workflow,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-selected-ticket__workflow {
  background: #fffaf0;
  border-bottom: 1px solid rgba(217, 119, 6, 0.14);
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .student-selected-ticket__workflow-step span,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-selected-ticket__workflow-step span {
  border-color: rgba(217, 119, 6, 0.32);
  color: #92400e;
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .student-selected-ticket__workflow-step.is-active span,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-selected-ticket__workflow-step.is-active span {
  background: #f6ae2d;
  border-color: #d97706;
  color: #422006;
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .student-selected-ticket__aside,
body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-selected-ticket__aside {
  background: linear-gradient(180deg, #f8fafc 0%, #fffaf0 100%);
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .sa-concern-detail__section {
  border: 0;
  border-radius: 0;
  padding: 1rem 0;
  background: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .admin-concern-callout {
  margin-top: 0;
  box-shadow: none;
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .psu-status-stepbar--student .psu-status-stepbar__step.is-active .psu-status-stepbar__node {
  background: #f6ae2d;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

body.student-theme-dashboard .student-selected-ticket.admin-selected-ticket .psu-status-stepbar--student .psu-status-stepbar__step.is-active .psu-status-stepbar__text {
  color: #92400e;
}

/* —— Student ticket detail (status view) —— */
body.student-theme-dashboard .student-ticket-detail__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, #fdf8f8 0%, #fff 60%);
  border-bottom: 1px solid rgba(128, 0, 0, 0.1);
}

body.student-theme-dashboard .student-ticket-detail__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--psu-maroon);
}

body.student-theme-dashboard .student-ticket-detail__title {
  color: var(--psu-heading);
  font-weight: 800;
}

body.student-theme-dashboard .student-ticket-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

body.student-theme-dashboard .student-ticket-detail__meta li {
  display: inline;
}

body.student-theme-dashboard .student-ticket-detail__meta li + li::before {
  content: "·";
  margin: 0 0.45rem;
  color: #cbd5e1;
  font-weight: 700;
}

body.student-theme-dashboard .student-ticket-detail__hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

body.student-theme-dashboard .student-ticket-detail__close {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
}

body.student-theme-dashboard .student-ticket-detail__status-band {
  padding: 1rem 1.25rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.student-theme-dashboard .student-ticket-detail__status-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

body.student-theme-dashboard .psu-status-stepbar--student {
  margin: 0 !important;
  max-width: 28rem;
}

body.student-theme-dashboard .psu-status-stepbar--student .psu-status-stepbar__node {
  width: 0.85rem;
  height: 0.85rem;
}

body.student-theme-dashboard .psu-status-stepbar--student .psu-status-stepbar__step.is-active .psu-status-stepbar__node {
  width: 1rem;
  height: 1rem;
  background: var(--psu-maroon);
  border-color: #6f1232;
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.15);
}

body.student-theme-dashboard .psu-status-stepbar--student .psu-status-stepbar__step.is-active .psu-status-stepbar__text {
  color: var(--psu-maroon);
}

body.student-theme-dashboard .psu-status-stepbar--student .psu-status-stepbar__text {
  font-size: 0.7rem;
  max-width: none;
}

body.student-theme-dashboard .student-ticket-detail__body {
  padding: 0.25rem 1.25rem 1.25rem;
}

body.student-theme-dashboard .student-ticket-detail__block {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.student-theme-dashboard .student-ticket-detail__block:last-child {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

body.student-theme-dashboard .student-ticket-detail__block-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--psu-maroon);
  margin-bottom: 0.5rem;
}

body.student-theme-dashboard .student-ticket-detail__block--concern {
  padding-top: 0.85rem;
}

body.student-theme-dashboard .student-ticket-detail__concern-highlight {
  position: relative;
  margin: 0;
  padding: 1rem 1.1rem 1rem 1.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbeb 48%, #fff 100%);
  border: 1px solid rgba(128, 0, 0, 0.22);
  border-left: 4px solid var(--psu-maroon);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px rgba(128, 0, 0, 0.08);
}

body.student-theme-dashboard .student-ticket-detail__concern-highlight::before {
  content: "\201C";
  position: absolute;
  top: 0.15rem;
  left: 0.55rem;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 800;
  color: rgba(128, 0, 0, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

body.student-theme-dashboard .student-ticket-detail__concern {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  color: #1e293b;
  padding-left: 0.35rem;
}

body.student-theme-dashboard .student-ticket-detail__timing.complaint-timing-card {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.student-theme-dashboard .student-ticket-detail__timing .complaint-timing-card__head {
  display: none;
}

body.student-theme-dashboard .student-ticket-detail__timing .complaint-timing-card__grid {
  gap: 0.65rem;
}

body.student-theme-dashboard .student-ticket-detail__timing .complaint-timing-card__item {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
}

body.student-theme-dashboard .student-ticket-detail__feedback {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  border: 1px solid rgba(246, 174, 45, 0.35);
}

body.student-theme-dashboard .student-ticket-detail__feedback-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  margin-bottom: 0.25rem;
}

body.student-theme-dashboard .student-ticket-detail__panel {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.student-theme-dashboard .student-ticket-detail__panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--psu-maroon);
}

body.student-theme-dashboard .student-ticket-detail__panel-toggle::-webkit-details-marker {
  display: none;
}

body.student-theme-dashboard .student-ticket-detail__panel-toggle::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-right: 2px solid var(--psu-maroon);
  border-bottom: 2px solid var(--psu-maroon);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  vertical-align: 0.1em;
}

body.student-theme-dashboard .student-ticket-detail__panel[open] .student-ticket-detail__panel-toggle::before {
  transform: rotate(45deg);
}

body.student-theme-dashboard .student-ticket-detail__panel-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

body.student-theme-dashboard .student-ticket-detail__panel-body {
  padding: 0 0 1rem;
}

body.student-theme-dashboard .student-ticket-detail__evidence-inner ul {
  margin-bottom: 0.75rem;
}

body.student-theme-dashboard .student-evidence-panel .student-ticket-detail__evidence-inner ul {
  margin-bottom: 0;
}

body.student-theme-dashboard .student-ticket-detail__upload {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: #fdf8f8;
  border: 1px dashed rgba(128, 0, 0, 0.2);
}

body.student-theme-dashboard .student-ticket-detail__messages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body.student-theme-dashboard .student-conversation--detail .student-conversation__thread {
  max-height: 16rem;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

body.student-theme-dashboard .student-conversation__reply--compact {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.student-theme-dashboard .student-selected-ticket > .card-body {
  padding: 0 !important;
}

body.student-theme-dashboard .student-selected-ticket__header {
  margin: 0 !important;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fdf8f8 0%, #ffffff 55%, #fffaf0 100%);
  border-bottom: 1px solid rgba(128, 0, 0, 0.12);
}

body.student-theme-dashboard .student-selected-ticket__facts {
  margin: 0 !important;
  padding: 0.85rem 1.1rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

body.student-theme-dashboard .concern-facts--student .concern-fact-chip {
  background: #fdf8f8;
  border-color: rgba(128, 0, 0, 0.14);
}

body.student-theme-dashboard .student-selected-ticket__workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.75rem 1.1rem;
  background: #fffaf0;
  border-bottom: 1px solid rgba(246, 174, 45, 0.18);
}

body.student-theme-dashboard .student-selected-ticket__workflow-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
}

body.student-theme-dashboard .student-selected-ticket__workflow-step + .student-selected-ticket__workflow-step {
  border-left: 1px solid rgba(246, 174, 45, 0.2);
  padding-left: 0.85rem;
}

body.student-theme-dashboard .student-selected-ticket__workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(128, 0, 0, 0.22);
  color: var(--psu-maroon);
  font-size: 0.72rem;
  font-weight: 800;
}

body.student-theme-dashboard .student-selected-ticket__workflow-step strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
}

body.student-theme-dashboard .student-selected-ticket__workflow-step.is-active span {
  background: var(--psu-gold);
  border-color: #d97706;
  color: #422006;
}

body.student-theme-dashboard .student-selected-ticket__grid {
  background: #fff;
}

body.student-theme-dashboard .student-selected-ticket__main {
  padding: 1rem 1.1rem;
}

body.student-theme-dashboard .student-selected-ticket__aside {
  padding: 1rem;
  background: linear-gradient(180deg, #fdf8f8 0%, #fffaf0 100%);
  border-left: 1px solid rgba(148, 163, 184, 0.16);
}

body.student-theme-dashboard .student-selected-ticket__section {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 1rem 0;
}

body.student-theme-dashboard .student-selected-ticket__section:first-child {
  padding-top: 0;
}

body.student-theme-dashboard .student-selected-ticket__section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.student-theme-dashboard .student-selected-ticket__section.mt-3 {
  margin-top: 0 !important;
}

body.student-theme-dashboard .student-concern-callout {
  border: 1px solid rgba(128, 0, 0, 0.14);
  border-radius: 0.85rem;
  background: #fdf8f8;
  overflow: hidden;
}

body.student-theme-dashboard .student-concern-callout__label {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--psu-maroon);
  background: rgba(128, 0, 0, 0.06);
  border-bottom: 1px solid rgba(128, 0, 0, 0.1);
}

body.student-theme-dashboard .student-concern-callout__body {
  padding: 0.85rem;
}

body.student-theme-dashboard .student-concern-callout__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

body.student-theme-dashboard .student-selected-ticket__summary li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

body.student-theme-dashboard .student-selected-ticket__summary li:last-child {
  border-bottom: 0;
}

body.student-theme-dashboard .student-selected-ticket__summary strong {
  text-align: right;
  color: var(--psu-heading);
}

@media (max-width: 1199.98px) {
  body.student-theme-dashboard .student-selected-ticket__aside {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }
}

@media (max-width: 767.98px) {
  body.student-theme-dashboard .student-selected-ticket__workflow {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body.student-theme-dashboard .student-selected-ticket__workflow-step + .student-selected-ticket__workflow-step {
    border-left: 0;
    padding-left: 0;
  }
}

.sa-res-files {
  min-width: 12rem;
}

.sa-res-files__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sa-res-files__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sa-res-files__preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.sa-res-files__preview:hover .sa-res-files__name {
  text-decoration: underline;
}

.sa-res-files__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  flex-shrink: 0;
}

.sa-res-files__doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.45rem;
  background: rgba(128, 0, 0, 0.08);
  color: var(--psu-maroon, #800000);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.sa-res-files__name {
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-res-files__delete {
  flex-shrink: 0;
}

.sa-res-files--compact .sa-res-files__thumb,
.sa-res-files--compact .sa-res-files__doc {
  width: 36px;
  height: 36px;
}

.sa-res-files--compact .form-control {
  max-width: 14rem;
}

.sa-res-files__upload .form-label {
  color: #64748b;
}

.sa-res-files__note {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
}

.sa-res-files__note-input {
  min-width: 12rem;
  resize: vertical;
}

.sa-res-files--compact .sa-res-files__note-input {
  min-width: 14rem;
}

.sa-cd {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-top: 3px solid var(--psu-maroon, #800000);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.sa-cd__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.1rem 1.35rem 0.9rem;
}

.sa-cd__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--psu-maroon, #800000);
}

.sa-cd__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.15rem 0 0.25rem;
}

.sa-cd__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.84rem;
  color: #64748b;
}

.sa-cd__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sa-cd__progress {
  padding: 0.4rem 1.35rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-cd__progress .psu-status-stepbar {
  max-width: 34rem;
  margin: 0 !important;
}

.sa-cd__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
}

.sa-cd__main {
  min-width: 0;
}

.sa-cd__side {
  min-width: 0;
  background: #f8fafc;
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-cd__section {
  padding: 1rem 1.35rem;
}

.sa-cd__section + .sa-cd__section {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-cd__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 0.55rem;
}

.sa-cd__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.sa-cd__hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: -0.25rem 0 0.6rem;
}

.sa-cd__description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1e293b;
}

.sa-cd__thread {
  padding: 0;
  background: transparent;
}

.sa-cd__status-form {
  display: grid;
  gap: 0.5rem;
}

.sa-cd__student {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sa-cd__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sa-cd__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(128, 0, 0, 0.1);
  color: var(--psu-maroon, #800000);
  font-weight: 700;
  font-size: 0.85rem;
}

.sa-cd__student-meta {
  min-width: 0;
}

.sa-cd__student-name {
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sa-cd__student-id {
  font-size: 0.82rem;
  color: #64748b;
}

.sa-cd__facts {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.sa-cd__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.sa-cd__facts dt {
  font-weight: 500;
  color: #64748b;
}

.sa-cd__facts dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

.sa-cd--urgent {
  border-top-color: #dc2626;
}

.sa-cd__status-hint {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: #475569;
}

.sa-cd .admin-conversation__thread.sa-cd__thread {
  max-height: 22rem;
  overflow-y: auto;
}

.sa-cd .sa-cd__reply {
  padding: 0.85rem 0 0;
  margin-top: 0.75rem;
  background: transparent;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.sa-cd__files li {
  overflow-wrap: anywhere;
  margin-bottom: 0.25rem;
}

.student-cd .student-evidence-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

@media (max-width: 991.98px) {
  .sa-cd__body {
    grid-template-columns: 1fr;
  }

  .sa-cd__side {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }
}

.sa-res-block {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.sa-res-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-top: 3px solid var(--psu-maroon, #800000);
}

.sa-res-block__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
}

.sa-res-block__sub {
  font-size: 0.84rem;
  color: #64748b;
}

.sa-res-block__stats {
  display: flex;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.7rem;
  overflow: hidden;
}

.sa-res-block__stats > div {
  padding: 0.4rem 0.9rem;
  text-align: center;
  min-width: 5.2rem;
}

.sa-res-block__stats > div + div {
  border-left: 1px solid rgba(148, 163, 184, 0.28);
}

.sa-res-block__stats dt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.sa-res-block__stats dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--psu-maroon, #800000);
}

.sa-res-block__stats > div.is-warn dd {
  color: #b45309;
}

.sa-res-block__empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__table {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__table .sa-data-table th:first-child,
.sa-res-block__table .sa-data-table td:first-child {
  padding-left: 1.25rem;
}

.sa-res-block__table .sa-data-table th:last-child,
.sa-res-block__table .sa-data-table td:last-child {
  padding-right: 1.25rem;
}

.sa-res-block__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__section {
  padding: 1.1rem 1.25rem 1.25rem;
  min-width: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__grid > .sa-res-block__section:nth-child(odd) {
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__grid > .sa-res-block__section:nth-last-child(-n + 2):nth-child(odd),
.sa-res-block__grid > .sa-res-block__section:nth-last-child(-n + 2):nth-child(odd) + .sa-res-block__section {
  border-bottom: 0;
}

.sa-res-block__stack {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__body {
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.sa-res-block__stack > .sa-res-block__section:last-child {
  border-bottom: 0;
}

.sa-res-block__section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.15rem;
}

.sa-res-block__section-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.85rem;
}

.sa-res-block__section-empty {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 0.7rem;
}

@media (max-width: 991.98px) {
  .sa-res-block__grid {
    grid-template-columns: 1fr;
  }

  .sa-res-block__grid > .sa-res-block__section:nth-child(odd) {
    border-right: 0;
  }

  .sa-res-block__grid > .sa-res-block__section:nth-last-child(-n + 2):nth-child(odd) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }
}

.sa-res-filter {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 767.98px) {
  .sa-res-block__stats {
    width: 100%;
  }

  .sa-res-block__stats > div {
    flex: 1;
    min-width: 0;
    padding-inline: 0.4rem;
  }
}

@media (max-width: 575.98px) {
  .sa-res-block__stats:has(> div:nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-res-block__stats:has(> div:nth-child(4)) > div:nth-child(odd) {
    border-left: 0;
  }

  .sa-res-block__stats:has(> div:nth-child(4)) > div:nth-child(n + 3) {
    border-top: 1px solid rgba(148, 163, 184, 0.28);
  }

  .sa-res-block__stats dt {
    overflow-wrap: anywhere;
  }
}

.sa-res-filter__form {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto;
  gap: 0.5rem;
  align-items: center;
}

.sa-res-filter__form--wide {
  grid-template-columns: minmax(13rem, 2fr) repeat(4, minmax(8.5rem, 1fr)) auto;
}

.sa-res-filter__form--narrow {
  grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(10rem, 1fr)) auto;
}

.psu-dm-filter {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.psu-dm-filter > .form-select {
  flex: 1 1 auto;
  min-width: 0;
}

.psu-dm-filter > input:not([hidden]) {
  flex: 1 1 9rem;
  min-width: 0;
}

.sa-res-filter .psu-dm-filter:has(input:not([hidden])) {
  grid-column: span 2;
}

@media (max-width: 1199.98px) {
  .sa-res-filter__form--wide {
    grid-template-columns: minmax(13rem, 2fr) repeat(2, minmax(9rem, 1fr)) auto;
  }
}

.sa-res-filter__search {
  position: relative;
}

.sa-res-filter__search svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.sa-res-filter__search .form-control {
  padding-left: 2.1rem;
}

.sa-res-filter .form-control-sm,
.sa-res-filter .form-select-sm {
  height: 2.3rem;
  border-radius: 0.6rem;
  font-size: 0.86rem;
  border-color: rgba(148, 163, 184, 0.45);
}

.sa-res-filter .form-select-sm.is-set {
  border-color: var(--psu-maroon, #800000);
  background-color: rgba(128, 0, 0, 0.04);
  font-weight: 600;
}

.sa-res-filter__btn {
  height: 2.3rem;
  padding-inline: 1.1rem;
  border-radius: 0.6rem;
}

.sa-res-filter__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #64748b;
}

.sa-res-filter__meta strong {
  color: #0f172a;
}

.sa-res-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(128, 0, 0, 0.08);
  color: var(--psu-maroon, #800000);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.sa-res-filter__chip:hover {
  background: rgba(128, 0, 0, 0.15);
  color: var(--psu-maroon, #800000);
}

.sa-res-filter__clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--psu-maroon, #800000);
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .sa-res-filter__form {
    grid-template-columns: 1fr 1fr;
  }

  .sa-res-filter__search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .sa-res-filter__form {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard: simple to-do layout */
.adm-overview .adm-hero-sub {
  font-size: 1rem;
  max-width: 40rem;
}

.adm-overview .adm-hero-btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--psu-maroon, #800000);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  border: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.adm-overview .adm-hero-btn:hover,
.adm-overview .adm-hero-btn:focus-visible {
  background: #fff7e6;
  color: var(--psu-maroon, #800000);
}

.adm-todo__heading,
.adm-section-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.adm-todo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
}

.adm-todo__card {
  display: flex;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #eee5e5;
  border-left: 6px solid var(--psu-maroon, #800000);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.adm-todo__card--urgent {
  border-left-color: #dc2626;
  background: #fff8f8;
}

.adm-todo__card--reply {
  border-left-color: var(--psu-maroon, #800000);
}

.adm-todo__card--late {
  border-left-color: #d97706;
  background: #fffbf2;
}

.adm-todo__step {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--psu-maroon, #800000);
}

.adm-todo__card--urgent .adm-todo__step {
  background: #dc2626;
}

.adm-todo__card--late .adm-todo__step {
  background: #d97706;
}

.adm-todo__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-todo__count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.adm-todo__count strong {
  font-size: 1.6rem;
  margin-right: 0.15rem;
}

.adm-todo__text {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.adm-todo__btn {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--psu-maroon-bar, #871743) 0%, var(--psu-maroon, #800000) 100%);
  border: 0;
}

.adm-todo__btn:hover,
.adm-todo__btn:focus-visible {
  color: #fff;
  filter: brightness(1.1);
}

.adm-todo__card--urgent .adm-todo__btn {
  background: #dc2626;
}

.adm-todo__card--late .adm-todo__btn {
  background: #b45309;
}

.adm-todo__done {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  color: #166534;
}

.adm-todo__done-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: #16a34a;
}

.adm-todo__done-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.adm-todo__waiting {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: #475569;
}

.adm-todo__waiting a {
  font-weight: 700;
  color: var(--psu-maroon, #800000);
}

.adm-guide {
  background: #fff;
  border: 1px dashed #d6c7cc;
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
}

.adm-guide__summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--psu-maroon, #800000);
}

.adm-guide[open] .adm-guide__summary {
  margin-bottom: 0.75rem;
}

.adm-guide__steps {
  font-size: 0.95rem;
  color: #334155;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.adm-guide__steps li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.adm-guide__note {
  font-size: 0.9rem;
  color: #475569;
}

.admin-dashboard .adm-open-btn {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 10px;
}

.admin-dashboard .adm-timeleft {
  font-size: 0.95rem;
  font-weight: 700;
}

.adm-legend {
  color: #64748b;
}

.adm-legend__dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.adm-legend__dot--amber {
  background: #d97706;
}

.adm-legend__dot--red {
  background: #dc2626;
}

body.admin-theme-dashboard .admin-dashboard .psu-stat-strip__label {
  font-size: 0.85rem;
}

body.admin-theme-dashboard .admin-dashboard .psu-stat-strip__hint {
  font-size: 0.78rem;
}

@media (max-width: 575.98px) {
  .adm-todo__card {
    padding: 0.95rem;
  }

  .adm-todo__btn {
    width: 100%;
    text-align: center;
  }
}

/* Realtime notification pop-ups */
.notification-badge.is-bumped {
  animation: app-notif-bump 0.6s ease;
}
@keyframes app-notif-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.app-notif-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.app-notif-toast {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #ead9df;
  border-left: 5px solid #800000;
  border-radius: 0.85rem;
  box-shadow: 0 14px 34px rgba(32, 18, 24, 0.18);
  padding: 0.8rem 0.95rem 0.85rem;
  animation: app-notif-in 0.28s ease-out;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-notif-toast--urgent { border-left-color: #d13e4d; }
.app-notif-toast--escalation { border-left-color: #d98a00; }
.app-notif-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}
@keyframes app-notif-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-notif-toast__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.app-notif-toast__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #800000;
}
.app-notif-toast__close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: #6b5a60;
  padding: 0 0.15rem;
  cursor: pointer;
}
.app-notif-toast__title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #1f1720;
  margin-bottom: 0.15rem;
}
.app-notif-toast__msg {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-notif-toast__open {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: #800000;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.app-notif-toast__open:hover { background: #650000; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .app-notif-toast, .notification-badge.is-bumped { animation: none; }
}

/* Admin dashboard: greeting + summary in one card */
.adm-overview__bar {
  padding: 1.6rem 1.6rem 1.4rem;
}
.adm-overview__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.adm-overview__top .adm-hero-btn {
  flex-shrink: 0;
}
.adm-overview__stats {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.adm-overview__stats-title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd788;
}
.adm-overview__stats-title span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
}
.adm-overview__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}
.adm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.6rem 0.85rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.adm-stat:hover,
.adm-stat:focus-visible {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: translateY(-2px);
}
.adm-stat__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--psu-amber, #f6ae2d);
}
.adm-stat__label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.adm-stat__hint {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}
.adm-stat--alert {
  background: rgba(220, 38, 38, 0.32);
  border-color: rgba(253, 224, 71, 0.55);
}
.adm-stat--alert .adm-stat__value {
  color: #fde047;
}
.adm-stat--alert:hover,
.adm-stat--alert:focus-visible {
  background: rgba(220, 38, 38, 0.45);
}
.adm-stat--done .adm-stat__value {
  color: #86efac;
}
@media (max-width: 991.98px) {
  .adm-overview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .adm-overview__bar {
    padding: 1.25rem 1.1rem 1.1rem;
  }
  .adm-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adm-overview__grid:not(.adm-overview__grid--6) .adm-stat:first-child {
    grid-column: 1 / -1;
  }
  .adm-overview__top .adm-hero-btn {
    width: 100%;
  }
}
@media (min-width: 1200px) {
  .adm-overview__grid--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .adm-overview__grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
div.adm-stat:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
}
.adm-stat--info .adm-stat__value {
  color: #fff;
}

/* Live refresh: brief glow on sections that just changed */
.is-live-updated {
  animation: psu-live-flash 2s ease-out;
}
@keyframes psu-live-flash {
  0% { box-shadow: 0 0 0 3px rgba(246, 174, 45, 0.75); }
  100% { box-shadow: 0 0 0 3px rgba(246, 174, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .is-live-updated { animation: none; }
}

/* Live status change: line fills, a glowing dot travels along it, then the new step pops in */
.psu-status-stepbar__track.is-just-filled {
  position: relative;
  overflow: visible;
  background: #e2e8f0;
}
.psu-status-stepbar__track.is-just-filled::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #871743, #c2410c);
  transform-origin: left center;
  animation: psu-track-fill 0.8s ease-in-out var(--fill-delay, 0ms) both;
}
.psu-status-stepbar__track.is-just-filled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #f6ae2d;
  box-shadow: 0 0 10px 3px rgba(246, 174, 45, 0.75);
  animation: psu-track-dot 0.8s ease-in-out var(--fill-delay, 0ms) both;
}
@keyframes psu-track-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes psu-track-dot {
  0% { left: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
.psu-status-stepbar__step.is-just-reached .psu-status-stepbar__node {
  animation:
    psu-node-reach 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reach-delay, 0ms) backwards,
    psu-node-pulse 1.1s ease-out calc(var(--reach-delay, 0ms) + 600ms) 2;
}
.psu-status-stepbar__step.is-just-reached .psu-status-stepbar__text {
  animation: psu-step-text 0.5s ease-out var(--reach-delay, 0ms) backwards;
}
@keyframes psu-node-reach {
  0% { transform: scale(0.5); background: #e2e8f0; border-color: #cbd5e1; box-shadow: none; }
  60% { transform: scale(1.6); box-shadow: 0 0 0 6px rgba(246, 174, 45, 0.45); }
  100% { transform: scale(1); }
}
@keyframes psu-node-pulse {
  0% { box-shadow: 0 0 0 0 rgba(135, 23, 67, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(135, 23, 67, 0); }
}
@keyframes psu-step-text {
  0% { color: #94a3b8; transform: translateY(4px); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .psu-status-stepbar__track.is-just-filled::before,
  .psu-status-stepbar__track.is-just-filled::after,
  .psu-status-stepbar__step.is-just-reached .psu-status-stepbar__node,
  .psu-status-stepbar__step.is-just-reached .psu-status-stepbar__text {
    animation: none;
  }
}

/* —— Responsive safety net (all roles, all screen sizes) —— */
/* Absolutely positioned children (e.g. .visually-hidden headers) must stay inside the scroll box. */
.table-responsive {
  position: relative;
}

/* Bootstrap has no min-width utility; flex children need this for .text-truncate to work. */
.min-w-0 {
  min-width: 0 !important;
}

/* Phones: topbar menus span the (sticky) topbar instead of hanging off their button. */
@media (max-width: 575.98px) {
  .app-topbar #appNotificationDropdown,
  .app-topbar .sa-audit-wrap {
    position: static;
  }

  .app-topbar .notification-dropdown,
  .app-topbar .sa-audit-menu {
    top: calc(100% + 0.35rem) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(70vh, 30rem);
  }
}
