/* Dark liquid-glass theme. Applied only when html[data-theme="glass"]. */

[data-theme="glass"] {
  color-scheme: dark;
  --bs-body-color: #e8edf7;
  --bs-body-bg: transparent;
  --bs-emphasis-color: #fff;
  --bs-secondary-color: rgba(226, 232, 240, 0.68);
  --bs-border-color: rgba(255, 255, 255, 0.14);
  --bs-link-color: #93c5fd;
  --bs-link-hover-color: #dbeafe;
  --bs-heading-color: #f8fafc;
  --app-bg: transparent;
  --app-surface: rgba(255, 255, 255, 0.07);
  --app-border: rgba(255, 255, 255, 0.14);
  --app-primary: #7dd3fc;
  --app-primary-dark: #38bdf8;
  --app-text-muted: #94a3b8;
  --app-radius: 1.15rem;
  --app-shadow: 0 12px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --app-shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.03) 100%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.16);
  --glass-blur: blur(18px) saturate(160%);
  background-color: #121526;
  background-image:
    radial-gradient(ellipse 90% 70% at 8% -10%, rgba(59, 91, 255, 0.42), transparent 58%),
    radial-gradient(ellipse 80% 60% at 100% 8%, rgba(99, 80, 220, 0.36), transparent 52%),
    radial-gradient(ellipse 70% 55% at 70% 110%, rgba(14, 165, 233, 0.34), transparent 55%);
  overflow-x: clip;
}

[data-theme="glass"]::before,
[data-theme="glass"]::after,
[data-theme="glass"] body::before {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
}

[data-theme="glass"]::before {
  width: 58vw;
  height: 58vw;
  min-width: 22rem;
  min-height: 22rem;
  top: -18%;
  left: -12%;
  background: rgba(59, 91, 255, 0.38);
  animation: glass-drift 22s ease-in-out infinite;
}

[data-theme="glass"]::after {
  width: 46vw;
  height: 46vw;
  min-width: 18rem;
  min-height: 18rem;
  right: -10%;
  top: 12%;
  background: rgba(129, 90, 255, 0.38);
  animation: glass-drift 28s ease-in-out infinite reverse;
}

[data-theme="glass"] body {
  color: #e8edf7;
  background: transparent;
}

[data-theme="glass"] body::before {
  width: 50vw;
  height: 40vw;
  min-width: 18rem;
  min-height: 14rem;
  left: 28%;
  bottom: -22%;
  background: rgba(56, 189, 248, 0.36);
  animation: glass-drift 26s ease-in-out infinite 1.4s;
}

@keyframes glass-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); }
}

[data-theme="glass"] .site-bg-glow--a {
  width: 32rem;
  height: 32rem;
  margin: -16rem 0 0 -16rem;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.32) 0%, rgba(56, 189, 248, 0.1) 42%, transparent 70%);
}

[data-theme="glass"] .site-bg-glow--b {
  width: 44rem;
  height: 44rem;
  margin: -22rem 0 0 -22rem;
  background: radial-gradient(circle, rgba(129, 90, 255, 0.26) 0%, rgba(14, 165, 233, 0.1) 45%, transparent 70%);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="glass"]::before,
  [data-theme="glass"]::after,
  [data-theme="glass"] body::before {
    animation: none;
  }

  [data-theme="glass"] .btn:not(.btn-link):not(:disabled):hover,
  [data-theme="glass"] .btn:not(.btn-link):not(:disabled):active {
    transform: none;
  }
}

[data-theme="glass"] a {
  color: var(--bs-link-color);
}

[data-theme="glass"] a:hover {
  color: var(--bs-link-hover-color);
}

[data-theme="glass"] .text-muted,
[data-theme="glass"] .form-text,
[data-theme="glass"] .page-lead {
  color: var(--app-text-muted) !important;
}

[data-theme="glass"] .text-danger {
  color: #fca5a5 !important;
}

[data-theme="glass"] .invalid-feedback {
  color: #fca5a5;
}

/* ——— Shared glass surfaces ——— */
[data-theme="glass"] .card,
[data-theme="glass"] .filter-panel,
[data-theme="glass"] .help-panel,
[data-theme="glass"] .context-strip,
[data-theme="glass"] .table-responsive,
[data-theme="glass"] .login-card,
[data-theme="glass"] .campus-pair {
  background: var(--glass-bg);
  background-color: rgba(16, 18, 28, 0.28);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--app-shadow);
  border-radius: var(--app-radius);
}

[data-theme="glass"] .card {
  --bs-card-bg: transparent;
  --bs-card-border-color: transparent;
  --bs-card-color: #e8edf7;
  color: #e8edf7;
}

[data-theme="glass"] .card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--app-shadow-lg);
  border-color: rgba(255, 255, 255, 0.28);
}

[data-theme="glass"] .filter-panel .form-label,
[data-theme="glass"] .form-label {
  color: #cbd5e1;
}

[data-theme="glass"] .help-panel-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: #e0f2fe;
}

[data-theme="glass"] .help-panel-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-theme="glass"] .help-panel-toggle:focus-visible {
  outline-color: rgba(125, 211, 252, 0.8);
}

[data-theme="glass"] .help-panel-toggle-action {
  color: rgba(226, 232, 240, 0.72);
}

[data-theme="glass"] .help-panel-body {
  color: var(--app-text-muted);
  border-top-color: var(--app-border);
}

[data-theme="glass"] .help-panel-body kbd,
[data-theme="glass"] kbd {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

[data-theme="glass"] .workflow-step {
  background: rgba(125, 211, 252, 0.18);
  color: #bae6fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

[data-theme="glass"] .workflow-card .card-text {
  color: var(--app-text-muted);
}

/* ——— Navbar ——— */
[data-theme="glass"] .navbar-brand-icon {
  background: rgba(125, 211, 252, 0.16);
  border-color: rgba(186, 230, 253, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 14px rgba(14, 165, 233, 0.18);
}

[data-theme="glass"] .app-navbar {
  position: sticky;
  top: 0.65rem;
  z-index: 1040;
  margin: 0.65rem 0.85rem 0;
  border-radius: 1.25rem;
  background: rgba(12, 14, 24, 0.42) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="glass"] .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="glass"] .navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

[data-theme="glass"] .badge.bg-light {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #e0f2fe !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="glass"] .campus-switcher .form-select {
  background-color: rgba(8, 10, 18, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8edf7;
}

[data-theme="glass"] .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: transparent;
  --bs-btn-active-bg: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 14px rgba(0, 0, 0, 0.18);
}

[data-theme="glass"] .btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #fff;
}

[data-theme="glass"] .theme-switcher {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="glass"] .theme-switcher-btn {
  color: rgba(232, 237, 247, 0.72);
}

[data-theme="glass"] .theme-switcher-btn.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.12) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.18);
}

[data-theme="glass"] .theme-switcher--guest {
  box-shadow: var(--app-shadow);
}

/* ——— Forms & buttons ——— */
[data-theme="glass"] .form-control,
[data-theme="glass"] .form-select {
  background-color: rgba(8, 10, 18, 0.48);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e8edf7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="glass"] .form-control::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

[data-theme="glass"] .form-control:focus,
[data-theme="glass"] .form-select:focus {
  background-color: rgba(8, 10, 18, 0.62);
  border-color: rgba(147, 197, 253, 0.7);
  color: #f8fafc;
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.28);
}

[data-theme="glass"] .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e8edf7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

[data-theme="glass"] .form-control::file-selector-button {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e8edf7;
}

[data-theme="glass"] .btn {
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: transparent;
  --bs-btn-active-bg: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px !important;
  border-width: 1px;
  border-style: solid;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

[data-theme="glass"] .btn::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -55%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 42%, transparent 70%);
  pointer-events: none;
}

[data-theme="glass"] .btn-link {
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  border-radius: 0.375rem !important;
  color: #93c5fd;
}

[data-theme="glass"] .btn-link::before {
  display: none;
}

[data-theme="glass"] .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.38);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 20, 50, 0.4);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(64, 156, 255, 0.42) 0%, rgba(10, 132, 255, 0.28) 100%);
  background-color: rgba(10, 132, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 30, 70, 0.35),
    0 10px 28px rgba(10, 132, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="glass"] .btn-primary:hover,
[data-theme="glass"] .btn-primary:focus {
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(90, 175, 255, 0.5) 0%, rgba(10, 132, 255, 0.34) 100%);
  background-color: rgba(10, 132, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(0, 30, 70, 0.28),
    0 12px 32px rgba(10, 132, 255, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

[data-theme="glass"] .btn-success {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 40, 16, 0.35);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(52, 211, 96, 0.38) 0%, rgba(22, 163, 74, 0.26) 100%);
  background-color: rgba(22, 163, 74, 0.2);
  border-color: rgba(220, 255, 230, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 50, 20, 0.28),
    0 10px 28px rgba(22, 163, 74, 0.22);
}

[data-theme="glass"] .btn-success:hover,
[data-theme="glass"] .btn-success:focus {
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(74, 222, 128, 0.44) 0%, rgba(22, 163, 74, 0.3) 100%);
  background-color: rgba(22, 163, 74, 0.24);
  border-color: rgba(230, 255, 240, 0.5);
}

[data-theme="glass"] .btn-outline-primary,
[data-theme="glass"] .btn-outline-secondary,
[data-theme="glass"] .btn-outline-success,
[data-theme="glass"] .btn-outline-danger {
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.16);
}

[data-theme="glass"] .btn-outline-primary {
  --bs-btn-color: #e0f2fe;
  color: #e0f2fe;
  border-color: rgba(186, 230, 253, 0.38);
}

[data-theme="glass"] .btn-outline-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.28) 0%, rgba(14, 165, 233, 0.16) 100%);
  border-color: rgba(224, 242, 254, 0.5);
}

[data-theme="glass"] .btn-outline-secondary {
  --bs-btn-color: #e2e8f0;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.26);
}

[data-theme="glass"] .btn-outline-secondary:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.42);
}

[data-theme="glass"] .btn-outline-success {
  --bs-btn-color: #dcfce7;
  color: #dcfce7;
  border-color: rgba(134, 239, 172, 0.38);
}

[data-theme="glass"] .btn-outline-success:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(134, 239, 172, 0.28) 0%, rgba(22, 163, 74, 0.16) 100%);
}

[data-theme="glass"] .btn-outline-danger {
  --bs-btn-color: #fecaca;
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.4);
}

[data-theme="glass"] .btn-outline-danger:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(252, 165, 165, 0.28) 0%, rgba(239, 68, 68, 0.16) 100%);
}

[data-theme="glass"] .btn:not(.btn-link):not(:disabled):hover {
  transform: translateY(-1px);
}

[data-theme="glass"] .btn:not(.btn-link):not(:disabled):active {
  transform: scale(0.98);
}

[data-theme="glass"] .btn-link {
  color: #93c5fd;
}

[data-theme="glass"] .btn:focus-visible,
[data-theme="glass"] .form-control:focus-visible,
[data-theme="glass"] .form-select:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(125, 211, 252, 0.3);
}

/* ——— Alerts ——— */
[data-theme="glass"] .alert {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--app-shadow);
}

[data-theme="glass"] .alert-info {
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
}

[data-theme="glass"] .alert-success {
  background: rgba(34, 197, 94, 0.16);
  color: #dcfce7;
}

[data-theme="glass"] .alert-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

[data-theme="glass"] .alert-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

[data-theme="glass"] .alert .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}

[data-theme="glass"] .alert code {
  color: #fde68a;
}

[data-theme="glass"] pre.bg-light {
  background: rgba(8, 10, 18, 0.55) !important;
  color: #e8edf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
}

/* ——— Tables ——— */
[data-theme="glass"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e8edf7;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.045);
  --bs-table-striped-color: #e8edf7;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.07);
  --bs-table-hover-color: #fff;
  color: #e8edf7;
}

[data-theme="glass"] .table-responsive {
  background-color: rgba(16, 18, 28, 0.28);
}

[data-theme="glass"] .table > thead.table-light th,
[data-theme="glass"] .table-light {
  --bs-table-bg: rgba(255, 255, 255, 0.06);
  --bs-table-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1;
}

[data-theme="glass"] .table-group-header th {
  color: var(--app-text-muted);
  background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="glass"] .table-warning > td {
  --bs-table-bg: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

[data-theme="glass"] .schedule-save-bar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
}

/* ——— Broadcast / login extras ——— */
[data-theme="glass"] .broadcast-section {
  border-left-color: rgba(125, 211, 252, 0.7);
}

[data-theme="glass"] .login-card {
  box-shadow: var(--app-shadow-lg);
}

[data-theme="glass"] .app-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: var(--app-text-muted);
}

/* ——— Tom Select ——— */
[data-theme="glass"] .ts-wrapper .ts-control {
  background: rgba(8, 10, 18, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e8edf7;
  box-shadow: none;
}

[data-theme="glass"] .ts-wrapper .ts-control input {
  color: #e8edf7 !important;
}

[data-theme="glass"] .ts-wrapper.focus .ts-control {
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.28);
}

[data-theme="glass"] .ts-dropdown {
  background: rgba(16, 18, 28, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8edf7;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="glass"] .ts-dropdown .option,
[data-theme="glass"] .ts-dropdown .no-results {
  color: #e8edf7;
}

[data-theme="glass"] .ts-dropdown .active,
[data-theme="glass"] .ts-dropdown .option.selected,
[data-theme="glass"] .ts-dropdown .option.active {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}

[data-theme="glass"] .ts-wrapper.multi .ts-control > .item {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: #e0f2fe;
}

/* ——— Campus schedule ——— */
[data-theme="glass"] .campus-pick-hint {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(125, 211, 252, 0.28);
  border-left-color: #38bdf8;
  color: #e2e8f0;
}

[data-theme="glass"] .campus-legend {
  color: var(--app-text-muted);
}

[data-theme="glass"] .campus-pair-head {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.55), rgba(126, 34, 206, 0.42));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="glass"] .campus-matrix thead th {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

[data-theme="glass"] .room-label {
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

[data-theme="glass"] .campus-row--empty {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="glass"] .campus-row--empty .campus-free-cell {
  color: rgba(148, 163, 184, 0.85);
}

[data-theme="glass"] .campus-row--empty:hover {
  background: rgba(56, 189, 248, 0.12);
}

[data-theme="glass"] .campus-row--substitution {
  background: rgba(245, 158, 11, 0.22) !important;
}

[data-theme="glass"] .campus-row--new {
  background: rgba(34, 197, 94, 0.2) !important;
}

[data-theme="glass"] .campus-row--modified {
  background: rgba(56, 189, 248, 0.22) !important;
}

[data-theme="glass"] .campus-row--moved {
  background: rgba(168, 85, 247, 0.24) !important;
}

[data-theme="glass"] .campus-row--session-changed.campus-row--empty {
  background: rgba(249, 115, 22, 0.16) !important;
}

[data-theme="glass"] .campus-row--picked {
  outline-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-theme="glass"] .card,
  [data-theme="glass"] .filter-panel,
  [data-theme="glass"] .help-panel,
  [data-theme="glass"] .context-strip,
  [data-theme="glass"] .table-responsive,
  [data-theme="glass"] .login-card,
  [data-theme="glass"] .campus-pair,
  [data-theme="glass"] .app-navbar,
  [data-theme="glass"] .ts-dropdown {
    background: rgba(18, 20, 32, 0.94);
  }
}

[data-theme="glass"] .campus-status--dirty,
[data-theme="glass"] .campus-status--modified { color: #fff; }

[data-theme="glass"] .campus-row:focus-visible { outline-color: #7dd3fc; }

[data-theme="glass"] .campus-row--empty .campus-free-cell { color: #b6c2d3; }

[data-theme="glass"] .table-warning > td { color: #fef3c7; }

[data-theme="glass"] .undo-toast {
  background: rgba(16, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (prefers-contrast: more) {
  [data-theme="glass"] .card,
  [data-theme="glass"] .filter-panel,
  [data-theme="glass"] .help-panel,
  [data-theme="glass"] .context-strip,
  [data-theme="glass"] .table-responsive,
  [data-theme="glass"] .login-card,
  [data-theme="glass"] .campus-pair,
  [data-theme="glass"] .app-navbar,
  [data-theme="glass"] .ts-dropdown {
    background: #151827;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: rgba(255, 255, 255, 0.5);
  }
}
