:root {
  --bg: #0b0f1f;
  --bg-2: #0f1228;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.07);
  --accent: #f8c24d;
  --accent-2: #a78bfa;
  --text: #f8fafc;
  --muted: #cbd5f5;
  --app-text-primary: #f8fafc;
  --app-text-secondary: #cbd5f5;
  --app-text-tertiary: #94a3b8;
  --app-border: rgba(255, 255, 255, 0.1);
  --app-surface-soft: rgba(255, 255, 255, 0.05);
  --app-surface-card: rgba(255, 255, 255, 0.03);
  --app-surface-card-strong: rgba(255, 255, 255, 0.06);
  --app-chip-bg: rgba(255, 255, 255, 0.02);
  --app-hover-soft: rgba(255, 255, 255, 0.1);
}

html[data-theme=light] {
  --bg: #eef3fb;
  --bg-2: #f8fbff;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.92);
  --stroke: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #475569;
  --app-text-primary: #0f172a;
  --app-text-secondary: #334155;
  --app-text-tertiary: #475569;
  --app-border: rgba(15, 23, 42, 0.2);
  --app-surface-soft: rgba(255, 255, 255, 0.94);
  --app-surface-card: rgba(255, 255, 255, 0.9);
  --app-surface-card-strong: rgba(255, 255, 255, 0.97);
  --app-chip-bg: rgba(255, 255, 255, 0.92);
  --app-hover-soft: rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

html {
  background: radial-gradient(900px 520px at 82% -8%, rgba(59, 130, 246, 0.065), transparent 64%), radial-gradient(760px 480px at 8% 12%, rgba(16, 185, 129, 0.05), transparent 66%), radial-gradient(680px 420px at 50% 110%, rgba(245, 158, 11, 0.04), transparent 70%), radial-gradient(560px 320px at 50% 45%, rgba(125, 211, 252, 0.03), transparent 72%), repeating-linear-gradient(180deg, rgba(125, 211, 252, 0.018) 0px, rgba(125, 211, 252, 0.018) 1px, transparent 1px, transparent 3px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(125,211,252,0.025)' stroke-width='1'%3E%3Cpath d='M0 0H180V180H0z'/%3E%3Cpath d='M0 45H180M0 90H180M0 135H180M45 0V180M90 0V180M135 0V180'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #060913 0%, #070d1f 48%, #050816 100%);
  background-attachment: scroll, scroll, scroll, scroll, scroll, scroll, scroll;
  background-size: auto, auto, auto, auto, auto, 180px 180px, auto;
  background-color: #060913;
}

html[data-theme=dark] {
  color-scheme: dark;
}

html[data-theme=light] {
  color-scheme: light;
  background: radial-gradient(900px 520px at 82% -8%, rgba(59, 130, 246, 0.06), transparent 66%), radial-gradient(760px 480px at 8% 12%, rgba(16, 185, 129, 0.045), transparent 68%), radial-gradient(680px 420px at 50% 110%, rgba(245, 158, 11, 0.035), transparent 72%), repeating-linear-gradient(180deg, rgba(59, 130, 246, 0.02) 0px, rgba(59, 130, 246, 0.02) 1px, transparent 1px, transparent 4px), linear-gradient(180deg, #fbfdff 0%, #f5f9ff 54%, #f2f7ff 100%);
  background-attachment: scroll, scroll, scroll, scroll, scroll;
  background-size: auto, auto, auto, auto, auto;
  background-color: #f4f8ff;
}

body {
  font-family: "Inter Variable", "Inter", system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text);
}

.font-display {
  font-family: "Inter Variable", "Inter", system-ui, -apple-system, sans-serif;
}

.app-text-primary {
  color: var(--app-text-primary);
}

.app-text-secondary {
  color: var(--app-text-secondary);
}

.app-text-tertiary {
  color: var(--app-text-tertiary);
}

.app-border {
  border-color: var(--app-border);
}

.app-surface-soft {
  background-color: var(--app-surface-soft);
}

.app-surface-card {
  background-color: var(--app-surface-card);
}

.app-surface-card-strong {
  background-color: var(--app-surface-card-strong);
}

.app-chip-bg {
  background-color: var(--app-chip-bg);
}

.placeholder\:app-text-tertiary::placeholder {
  color: var(--app-text-tertiary);
}

.placeholder\:app-text-secondary::placeholder {
  color: var(--app-text-secondary);
}

.app-button-subtle {
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-soft);
  color: var(--app-text-primary);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.app-button-subtle:hover {
  background-color: var(--app-hover-soft);
}

.app-nav-link {
  color: var(--app-text-secondary);
}

.app-nav-link:hover {
  color: var(--app-text-primary);
}

.user-menu-dropdown {
  color: var(--app-text-primary);
  border: 1px solid var(--app-border);
  background: radial-gradient(130% 130% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 56%), rgba(9, 15, 31, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.45);
}

.user-menu-item:hover {
  background-color: var(--app-hover-soft);
}

.glass-btn {
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--app-text-secondary);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.glass-btn:hover {
  color: var(--app-text-primary);
}

.btn-subtle {
  border-radius: 0.75rem;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-soft);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--app-text-secondary);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.btn-subtle:hover {
  border-color: rgba(252, 211, 77, 0.6);
  color: var(--app-text-primary);
}

.btn-subtle-sm {
  border-radius: 0.75rem;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-soft);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--app-text-secondary);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.btn-subtle-sm:hover {
  border-color: rgba(252, 211, 77, 0.6);
  color: var(--app-text-primary);
}

.btn-subtle-lg {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-soft);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--app-text-primary) 86%, var(--app-text-secondary));
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.btn-subtle-lg:hover {
  border-color: rgba(252, 211, 77, 0.6);
  color: var(--app-text-primary);
}

.primary-btn {
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(252, 211, 77, 0.6);
  background-color: rgba(251, 191, 36, 0.15);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: #fde68a;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.primary-btn:hover {
  border-color: rgba(253, 230, 138, 0.9);
  background-color: rgba(251, 191, 36, 0.3);
  color: #fff;
}

.primary-btn-md {
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background-color: rgba(251, 191, 36, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: #fde68a;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.primary-btn-md:hover {
  border-color: rgba(253, 230, 138, 0.9);
  background-color: rgba(251, 191, 36, 0.3);
  color: #fff;
}

.success-btn {
  border-radius: 0.75rem;
  border: 1px solid rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.15);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: #d1fae5;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.success-btn:hover {
  border-color: rgba(167, 243, 208, 0.95);
  background-color: rgba(52, 211, 153, 0.25);
  color: #fff;
}

.success-btn-md {
  border-radius: 0.75rem;
  border: 1px solid rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.15);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: #d1fae5;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.success-btn-md:hover {
  border-color: rgba(167, 243, 208, 0.95);
  background-color: rgba(52, 211, 153, 0.25);
  color: #fff;
}

.filter-chip {
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.filter-chip-option {
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.chip-muted {
  border-color: var(--app-border);
  color: var(--app-text-secondary);
}

.chip-muted:hover {
  border-color: rgba(252, 211, 77, 0.6);
  color: var(--app-text-primary);
}

.chip-amber {
  border-color: rgba(252, 211, 77, 0.6);
  background-color: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

.chip-emerald {
  border-color: rgba(110, 231, 183, 0.6);
  background-color: rgba(52, 211, 153, 0.15);
  color: #a7f3d0;
}

.chip-cyan {
  border-color: rgba(103, 232, 249, 0.6);
  background-color: rgba(34, 211, 238, 0.15);
  color: #a5f3fc;
}

.chip-violet {
  border-color: rgba(196, 181, 253, 0.6);
  background-color: rgba(167, 139, 250, 0.15);
  color: #ddd6fe;
}

.learning-chip-cyan {
  display: flex;
  height: 2.5rem;
  flex-direction: column;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background-image: linear-gradient(to right, rgba(34, 211, 238, 0.15), rgba(103, 232, 249, 0.05));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #cffafe;
}

.lesson-item-current {
  border-color: rgba(103, 232, 249, 0.6);
  background-color: rgba(34, 211, 238, 0.15);
  color: #cffafe;
}

.chip-xs-cyan {
  border-radius: 0.375rem;
  border: 1px solid rgba(103, 232, 249, 0.35);
  background-color: rgba(34, 211, 238, 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #a5f3fc;
}

.chip-xs-amber {
  border-radius: 0.375rem;
  border: 1px solid rgba(252, 211, 77, 0.35);
  background-color: rgba(251, 191, 36, 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #fcd34d;
}

.pill-cyan {
  border-radius: 9999px;
  border: 1px solid rgba(103, 232, 249, 0.4);
  background-color: rgba(34, 211, 238, 0.1);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #a5f3fc;
}

.pill-sky {
  border-radius: 9999px;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background-color: rgba(56, 189, 248, 0.15);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #bae6fd;
}

.pill-emerald {
  border-radius: 9999px;
  border: 1px solid rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.15);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #a7f3d0;
}

.status-pill-emerald {
  border-radius: 9999px;
  background-color: rgba(52, 211, 153, 0.2);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #a7f3d0;
}

.pill-neutral {
  border-radius: 9999px;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-soft);
  padding: 0.125rem 0.625rem;
  color: var(--app-text-primary);
}

.badge-sky {
  border-color: rgba(125, 211, 252, 0.5);
  background-color: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
}

.badge-emerald {
  border-color: rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.15);
  color: #a7f3d0;
}

.badge-emerald-sm {
  border-radius: 0.5rem;
  border: 1px solid rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.2);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: #d1fae5;
}

.badge-emerald-md {
  border-radius: 0.375rem;
  border: 1px solid rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.2);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #d1fae5;
}

.badge-emerald-panel {
  border-radius: 0.75rem;
  border: 1px solid rgba(110, 231, 183, 0.4);
  background-color: rgba(52, 211, 153, 0.1);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #a7f3d0;
}

.badge-amber-panel {
  border-radius: 0.75rem;
  border: 1px solid rgba(252, 211, 77, 0.4);
  background-color: rgba(251, 191, 36, 0.1);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #fcd34d;
}

.badge-emerald-xs {
  flex-shrink: 0;
  border-radius: 0.375rem;
  border: 1px solid rgba(110, 231, 183, 0.5);
  background-color: rgba(52, 211, 153, 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 500;
  color: #d1fae5;
}

.badge-emerald-soft-xs {
  border-radius: 0.5rem;
  border: 1px solid rgba(110, 231, 183, 0.4);
  background-color: rgba(52, 211, 153, 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #a7f3d0;
}

.badge-blue {
  border-color: rgba(147, 197, 253, 0.5);
  background-color: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
}

.badge-indigo {
  border-color: rgba(165, 180, 252, 0.5);
  background-color: rgba(129, 140, 248, 0.15);
  color: #c7d2fe;
}

.badge-cyan-pill {
  border-color: rgba(103, 232, 249, 0.5);
  background-color: rgba(34, 211, 238, 0.15);
  color: #a5f3fc;
}

.badge-fuchsia-pill {
  border-color: rgba(244, 114, 182, 0.5);
  background-color: rgba(232, 121, 249, 0.15);
  color: #f5d0fe;
}

.badge-violet-pill {
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(196, 181, 253, 0.5);
  background-color: rgba(167, 139, 250, 0.15);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #ddd6fe;
}

.badge-rose-pill-xs {
  border-radius: 9999px;
  border: 1px solid rgba(253, 164, 175, 0.5);
  background-color: rgba(244, 63, 94, 0.15);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #fecdd3;
}

.pill-blue-xs {
  border-radius: 9999px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  background-color: rgba(96, 165, 250, 0.15);
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #bfdbfe;
}

.badge-amber-sm {
  border-radius: 0.5rem;
  border: 1px solid rgba(252, 211, 77, 0.45);
  background-color: rgba(251, 191, 36, 0.15);
  padding: 0.25rem 0.5rem;
  color: #fef3c7;
}

.badge-amber-soft {
  border-radius: 0.5rem;
  border: 1px solid rgba(252, 211, 77, 0.25);
  background-color: rgba(251, 191, 36, 0.1);
  padding: 0.25rem 0.5rem;
  color: #fef3c7;
}

.chip-option-active {
  border-color: rgba(252, 211, 77, 0.65);
  background-image: linear-gradient(to right, rgba(251, 191, 36, 0.25), rgba(253, 186, 116, 0.2));
  color: #fde68a;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.18);
}

.chip-option-muted {
  border-color: var(--app-border);
  background-color: var(--app-surface-card);
  color: var(--app-text-secondary);
}

.chip-option-muted:hover {
  border-color: rgba(252, 211, 77, 0.6);
  color: var(--app-text-primary);
}

.panel-card {
  border-radius: 1rem;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-card);
}

.panel-block {
  border-radius: 0.75rem;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-card);
}

.panel-theme-default {
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-card);
}

.panel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--app-border);
  background-color: var(--app-surface-card);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--app-text-secondary);
}

.alert-amber {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(252, 211, 77, 0.7);
  background-image: linear-gradient(to right, rgba(252, 211, 77, 0.3), rgba(253, 230, 138, 0.2), rgba(110, 231, 183, 0.2));
  box-shadow: 0 10px 34px rgba(251, 191, 36, 0.24);
}

.alert-icon-amber {
  margin-top: 0.125rem;
  display: inline-flex;
  height: 1.5rem;
  width: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(254, 243, 199, 0.8);
  background-color: rgba(253, 230, 138, 0.28);
  color: #fffbeb;
}

.progress-track {
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
}

.progress-track-inset {
  padding: 2px;
}

.progress-track-inset-sm {
  padding: 3px;
}

.divider-faint {
  height: 1px;
  flex: 1 1 0%;
  background-color: rgba(255, 255, 255, 0.1);
}

html[data-theme=light] .primary-btn,
html[data-theme=light] .primary-btn-md,
html[data-theme=light] .chip-amber {
  border-color: rgba(217, 119, 6, 0.45);
  background-color: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

html[data-theme=light] .primary-btn:hover,
html[data-theme=light] .primary-btn-md:hover {
  border-color: rgba(180, 83, 9, 0.65);
  background-color: rgba(245, 158, 11, 0.24);
  color: #78350f;
}

html[data-theme=light] .success-btn,
html[data-theme=light] .success-btn-md {
  border-color: rgba(5, 150, 105, 0.42);
  background-color: rgba(16, 185, 129, 0.18);
  color: #065f46;
}

html[data-theme=light] .success-btn:hover,
html[data-theme=light] .success-btn-md:hover {
  border-color: rgba(4, 120, 87, 0.58);
  background-color: rgba(16, 185, 129, 0.24);
  color: #064e3b;
}

html[data-theme=light] .chip-xs-cyan,
html[data-theme=light] .pill-cyan,
html[data-theme=light] .badge-sky,
html[data-theme=light] .pill-sky {
  border-color: rgba(8, 145, 178, 0.45);
  background-color: rgba(34, 211, 238, 0.18);
  color: #155e75;
}

html[data-theme=light] .badge-blue,
html[data-theme=light] .pill-blue-xs {
  border-color: rgba(29, 78, 216, 0.42);
  background-color: rgba(59, 130, 246, 0.2);
  color: #1e3a8a;
}

html[data-theme=light] .badge-indigo {
  border-color: rgba(67, 56, 202, 0.42);
  background-color: rgba(99, 102, 241, 0.22);
  color: #3730a3;
}

html[data-theme=light] .badge-cyan-pill {
  border-color: rgba(8, 145, 178, 0.46);
  background-color: rgba(34, 211, 238, 0.2);
  color: #155e75;
}

html[data-theme=light] .badge-fuchsia-pill {
  border-color: rgba(162, 28, 175, 0.44);
  background-color: rgba(232, 121, 249, 0.2);
  color: #86198f;
}

html[data-theme=light] .badge-violet-pill {
  border-color: rgba(109, 40, 217, 0.44);
  background-color: rgba(139, 92, 246, 0.22);
  color: #5b21b6;
}

html[data-theme=light] .badge-rose-pill-xs {
  border-color: rgba(190, 24, 93, 0.42);
  background-color: rgba(244, 63, 94, 0.2);
  color: #9f1239;
}

html[data-theme=light] .filter-chip.chip-cyan {
  border-color: rgba(8, 145, 178, 0.5);
  background-color: rgba(34, 211, 238, 0.2);
  color: #155e75;
}

html[data-theme=light] .learning-chip-cyan {
  border-color: rgba(8, 145, 178, 0.38);
  background-image: linear-gradient(to right, rgba(34, 211, 238, 0.2), rgba(125, 211, 252, 0.12));
  color: #155e75;
}

html[data-theme=light] .lesson-item-current {
  border-color: rgba(8, 145, 178, 0.48) !important;
  background-color: rgba(34, 211, 238, 0.22) !important;
  color: #0e7490 !important;
}

html[data-theme=light] .filter-chip.chip-cyan:hover {
  border-color: rgba(14, 116, 144, 0.62);
  background-color: rgba(34, 211, 238, 0.26);
  color: #0e7490;
}

html[data-theme=light] .filter-chip.chip-emerald {
  border-color: rgba(5, 150, 105, 0.5);
  background-color: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

html[data-theme=light] .filter-chip.chip-emerald:hover {
  border-color: rgba(4, 120, 87, 0.62);
  background-color: rgba(16, 185, 129, 0.26);
  color: #065f46;
}

html[data-theme=light] .filter-chip.chip-violet {
  border-color: rgba(109, 40, 217, 0.46);
  background-color: rgba(139, 92, 246, 0.22);
  color: #5b21b6;
}

html[data-theme=light] .filter-chip.chip-violet:hover {
  border-color: rgba(91, 33, 182, 0.62);
  background-color: rgba(139, 92, 246, 0.28);
  color: #4c1d95;
}

html[data-theme=light] .chip-xs-amber {
  border-color: rgba(180, 83, 9, 0.45);
  background-color: rgba(251, 191, 36, 0.18);
  color: #78350f;
}

html[data-theme=light] .filter-chip-option {
  border-color: rgba(100, 116, 139, 0.24);
  background-color: rgba(255, 255, 255, 0.9);
  color: #334155;
}

html[data-theme=light] .filter-chip-option:hover {
  border-color: rgba(180, 83, 9, 0.42);
  background-color: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

html[data-theme=light] .chip-option-active {
  border-color: rgba(180, 83, 9, 0.55);
  background-image: linear-gradient(to right, rgba(245, 158, 11, 0.28), rgba(251, 191, 36, 0.24));
  color: #78350f;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.15), 0 0 0 1px rgba(245, 158, 11, 0.14) inset;
}

html[data-theme=light] .badge-amber-sm {
  border-color: rgba(180, 83, 9, 0.45);
  background-color: rgba(245, 158, 11, 0.2);
  color: #78350f;
}

html[data-theme=light] .badge-amber-soft {
  border-color: rgba(180, 83, 9, 0.38);
  background-color: rgba(245, 158, 11, 0.16);
  color: #78350f;
}

html[data-theme=light] .alert-amber {
  border-color: rgba(180, 83, 9, 0.45);
  background-image: linear-gradient(to right, rgba(245, 158, 11, 0.24), rgba(251, 191, 36, 0.2), rgba(16, 185, 129, 0.16));
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.14), 0 0 0 1px rgba(245, 158, 11, 0.12) inset;
}

html[data-theme=light] .alert-amber .text-amber-50,
html[data-theme=light] .alert-amber .text-amber-50\/95 {
  color: #78350f !important;
}

html[data-theme=light] .alert-icon-amber {
  border-color: rgba(180, 83, 9, 0.4);
  background-color: rgba(245, 158, 11, 0.2);
  color: #78350f;
}

html[data-theme=light] .progress-track {
  background-color: rgba(15, 23, 42, 0.16);
}

html[data-theme=light] .divider-faint {
  background-color: rgba(15, 23, 42, 0.16);
}

html[data-theme=light] .pill-emerald,
html[data-theme=light] .badge-emerald {
  border-color: rgba(5, 150, 105, 0.44);
  background-color: rgba(16, 185, 129, 0.18);
  color: #065f46;
}

html[data-theme=light] .badge-emerald-sm {
  border-color: rgba(5, 150, 105, 0.48);
  background-color: rgba(16, 185, 129, 0.24);
  color: #065f46;
}

html[data-theme=light] .badge-emerald-md {
  border-color: rgba(5, 150, 105, 0.48);
  background-color: rgba(16, 185, 129, 0.24);
  color: #065f46;
}

html[data-theme=light] .badge-emerald-panel {
  border-color: rgba(5, 150, 105, 0.44);
  background-color: rgba(16, 185, 129, 0.18);
  color: #065f46;
}

html[data-theme=light] .badge-amber-panel {
  border-color: rgba(180, 83, 9, 0.44);
  background-color: rgba(245, 158, 11, 0.18);
  color: #78350f;
}

html[data-theme=light] .badge-emerald-xs {
  border-color: rgba(5, 150, 105, 0.46);
  background-color: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

html[data-theme=light] .badge-emerald-soft-xs {
  border-color: rgba(5, 150, 105, 0.42);
  background-color: rgba(16, 185, 129, 0.16);
  color: #065f46;
}

html[data-theme=light] .status-pill-emerald {
  background-color: rgba(16, 185, 129, 0.22);
  color: #065f46;
}

/* Light mode contrast fix for inline utility-style buttons/chips */
html[data-theme=light] :is(a, button, [role=button])[class*=border-amber-300][class*=text-amber-] {
  border-color: rgba(180, 83, 9, 0.5) !important;
  color: #78350f !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=bg-amber-][class*=text-amber-] {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #78350f !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=border-emerald-300][class*=text-emerald-] {
  border-color: rgba(5, 150, 105, 0.5) !important;
  color: #065f46 !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=bg-emerald-][class*=text-emerald-] {
  background-color: rgba(16, 185, 129, 0.2) !important;
  color: #065f46 !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=border-cyan-300][class*=text-cyan-] {
  border-color: rgba(8, 145, 178, 0.52) !important;
  color: #155e75 !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=bg-cyan-][class*=text-cyan-] {
  background-color: rgba(34, 211, 238, 0.2) !important;
  color: #155e75 !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=border-sky-300][class*=text-sky-] {
  border-color: rgba(3, 105, 161, 0.45) !important;
  color: #0c4a6e !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=bg-sky-][class*=text-sky-] {
  background-color: rgba(56, 189, 248, 0.2) !important;
  color: #0c4a6e !important;
}

html[data-theme=light] [class*="border-sky-200/35"][class*="bg-sky-300/10"][class*=text-sky-100] {
  border-color: rgba(14, 116, 144, 0.42) !important;
  background-color: rgba(56, 189, 248, 0.18) !important;
  color: #0e7490 !important;
}

html[data-theme=light] [class*="border-fuchsia-300/50"][class*="bg-fuchsia-300/15"][class*=text-fuchsia-200] {
  border-color: rgba(162, 28, 175, 0.44) !important;
  background-color: rgba(217, 70, 239, 0.2) !important;
  color: #86198f !important;
}

html[data-theme=light] [class*="border-teal-300/50"][class*="bg-teal-300/15"][class*=text-teal-200] {
  border-color: rgba(13, 148, 136, 0.44) !important;
  background-color: rgba(45, 212, 191, 0.2) !important;
  color: #0f766e !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=border-violet-300][class*=text-violet-],
html[data-theme=light] :is(a, button, [role=button])[class*=border-indigo-300][class*=text-indigo-] {
  border-color: rgba(109, 40, 217, 0.44) !important;
  color: #5b21b6 !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=bg-violet-][class*=text-violet-],
html[data-theme=light] :is(a, button, [role=button])[class*=bg-indigo-][class*=text-indigo-] {
  background-color: rgba(139, 92, 246, 0.22) !important;
  color: #5b21b6 !important;
}

html[data-theme=light] [class*="border-rose-300/60"][class*="bg-rose-300/10"][class*=text-rose-100] {
  border-color: rgba(190, 24, 93, 0.42) !important;
  background-color: rgba(244, 63, 94, 0.16) !important;
  color: #be185d !important;
}

html[data-theme=light] [class*="border-blue-300/40"][class*="bg-blue-300/12"][class*=text-blue-100] {
  border-color: rgba(59, 130, 246, 0.42) !important;
  background-color: rgba(59, 130, 246, 0.16) !important;
  color: #3b82f6 !important;
}

html[data-theme=light] :is(a, button, [role=button])[class*=from-amber-300][class*=text-white],
html[data-theme=light] :is(a, button, [role=button])[class*=from-emerald-300][class*=text-white],
html[data-theme=light] :is(a, button, [role=button])[class*=from-cyan-300][class*=text-white],
html[data-theme=light] :is(a, button, [role=button])[class*=from-indigo-300][class*=text-white] {
  color: #0f172a !important;
}

html[data-theme=light] [class*=text-amber-200] {
  color: #92400e !important;
}

html[data-theme=light] [class*=text-cyan-200] {
  color: #155e75 !important;
}

html[data-theme=light] [class*=text-cyan-100] {
  color: #0e7490 !important;
}

.glass {
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 40px rgba(7, 9, 26, 0.5);
  background-clip: padding-box;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.glass-strong {
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(6, 8, 24, 0.6);
  background-clip: padding-box;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.glow {
  box-shadow: 0 0 0 1px rgba(248, 194, 77, 0.15), 0 0 28px rgba(167, 139, 250, 0.18);
}

.border-dash {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-size: 16px 1px;
  background-repeat: repeat-x;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.input-glass {
  background: rgba(15, 18, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-theme=light] .glass {
  position: relative;
  background: radial-gradient(120% 140% at 8% 0%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 52%), linear-gradient(155deg, rgba(255, 255, 255, 0.48), rgba(246, 251, 255, 0.3));
  border-color: rgba(71, 85, 105, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 -1px 0 rgba(148, 163, 184, 0.08) inset;
  -webkit-backdrop-filter: blur(14px) saturate(138%);
  backdrop-filter: blur(14px) saturate(138%);
}

html[data-theme=light] .glass-strong {
  background: radial-gradient(120% 150% at 10% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 56%), linear-gradient(155deg, rgba(255, 255, 255, 0.54), rgba(242, 248, 255, 0.36));
  border-color: rgba(71, 85, 105, 0.1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.46) inset, 0 -1px 0 rgba(148, 163, 184, 0.1) inset;
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

html[data-theme=light] .glass::before,
html[data-theme=light] .glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 38%), linear-gradient(0deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0) 30%);
}

html[data-theme=light] .glass::after,
html[data-theme=light] .glass-strong::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 2px rgba(148, 163, 184, 0.02);
}

html[data-theme=light] .input-glass {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme=light] .site-header__bar {
  border-color: rgba(100, 116, 139, 0.3) !important;
  background: radial-gradient(120% 120% at 10% 0%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 50%), linear-gradient(155deg, rgba(255, 255, 255, 0.52), rgba(244, 249, 255, 0.35)) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11), 0 1px 0 rgba(255, 255, 255, 0.4) inset !important;
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  backdrop-filter: blur(15px) saturate(140%);
}

html[data-theme=light] .app-nav-link {
  color: #334155 !important;
}

html[data-theme=light] .app-nav-link:hover {
  color: #0f172a !important;
}

html[data-theme=light] .user-menu-trigger {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme=light] .user-menu-trigger .text-slate-300,
html[data-theme=light] .user-menu-dropdown .text-slate-300 {
  color: #64748b !important;
}

html[data-theme=light] .user-menu-dropdown {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.15);
}

html[data-theme=light] .user-menu-item:hover {
  background: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme=light] .app-mobile-menu {
  border-top-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme=light] .app-mobile-nav {
  color: #334155 !important;
}

html[data-theme=light] .app-mobile-nav a:hover,
html[data-theme=light] .app-mobile-nav button:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

html[data-theme=light] .fi-body {
  color: #0f172a;
}

html[data-theme=light] .fi-body [class*=text-slate-100] {
  color: #1e293b !important;
}

html[data-theme=light] .fi-body [class*=text-slate-200] {
  color: #334155 !important;
}

html[data-theme=light] .fi-body [class*=text-slate-300] {
  color: #334155 !important;
}

html[data-theme=light] .fi-body [class*=text-slate-400],
html[data-theme=light] .fi-body [class*=text-slate-500] {
  color: #475569 !important;
}

html[data-theme=light] .glass .text-white,
html[data-theme=light] .glass .text-white\/90,
html[data-theme=light] .glass-strong .text-white,
html[data-theme=light] .glass-strong .text-white\/90 {
  color: #0f172a !important;
}

html[data-theme=light] .glass .text-slate-200,
html[data-theme=light] .glass .text-slate-300,
html[data-theme=light] .glass .text-slate-400,
html[data-theme=light] .glass .text-slate-500,
html[data-theme=light] .glass-strong .text-slate-200,
html[data-theme=light] .glass-strong .text-slate-300,
html[data-theme=light] .glass-strong .text-slate-400,
html[data-theme=light] .glass-strong .text-slate-500 {
  color: #334155 !important;
}

html[data-theme=light] [class*="bg-[#0b0f1f"],
html[data-theme=light] [class*="bg-[#090d1a"],
html[data-theme=light] [class*="bg-[#0a1118"],
html[data-theme=light] [class*="bg-[#111820"] {
  background-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme=light] [class*="bg-[#0b0f1f"][class*=text-white],
html[data-theme=light] [class*="bg-[#090d1a"][class*=text-white],
html[data-theme=light] [class*="bg-[#0a1118"][class*=text-white],
html[data-theme=light] [class*="bg-[#111820"][class*=text-white],
html[data-theme=light] [class*="bg-white/3"][class*=text-white],
html[data-theme=light] [class*="bg-white/5"][class*=text-white],
html[data-theme=light] [class*="bg-white/10"][class*=text-white],
html[data-theme=light] [class*="bg-white/[0.0"][class*=text-white] {
  color: #0f172a !important;
}

html[data-theme=light] [class*="bg-[#0b0f1f"] [class*=text-white],
html[data-theme=light] [class*="bg-[#090d1a"] [class*=text-white],
html[data-theme=light] [class*="bg-[#0a1118"] [class*=text-white],
html[data-theme=light] [class*="bg-[#111820"] [class*=text-white],
html[data-theme=light] [class*="bg-white/3"] [class*=text-white],
html[data-theme=light] [class*="bg-white/5"] [class*=text-white],
html[data-theme=light] [class*="bg-white/10"] [class*=text-white],
html[data-theme=light] [class*="bg-white/[0.0"] [class*=text-white],
html[data-theme=light] [class*="hover:text-white"]:hover {
  color: #0f172a !important;
}

html[data-theme=light] input[class*="bg-[#0b0f1f"],
html[data-theme=light] input[class*="bg-[#090d1a"],
html[data-theme=light] textarea[class*="bg-[#0b0f1f"],
html[data-theme=light] textarea[class*="bg-[#090d1a"],
html[data-theme=light] select[class*="bg-[#0b0f1f"],
html[data-theme=light] select[class*="bg-[#090d1a"] {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
}

html[data-theme=light] input[class*="bg-[#0b0f1f"]::placeholder,
html[data-theme=light] input[class*="bg-[#090d1a"]::placeholder,
html[data-theme=light] textarea[class*="bg-[#0b0f1f"]::placeholder,
html[data-theme=light] textarea[class*="bg-[#090d1a"]::placeholder {
  color: #94a3b8 !important;
}

html[data-theme=light] [class*="border-white/10"],
html[data-theme=light] [class*="border-white/15"],
html[data-theme=light] [class*="border-white/20"],
html[data-theme=light] [class*="border-white/30"] {
  border-color: rgba(15, 23, 42, 0.22) !important;
}

html[data-theme=light] [class*="ring-white/10"] {
  --tw-ring-color: rgba(15, 23, 42, 0.22) !important;
}

html[data-theme=light] [class*="hover:bg-white/5"]:hover,
html[data-theme=light] [class*="hover:bg-white/10"]:hover,
html[data-theme=light] [class*="hover:bg-white/[0.0"]:hover {
  background-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme=light] .fi-no-notification {
  color: #0f172a;
  border-color: rgba(59, 130, 246, 0.4);
  background: radial-gradient(120% 140% at 100% 0%, rgba(59, 130, 246, 0.2), transparent 52%), radial-gradient(100% 120% at 0% 100%, rgba(16, 185, 129, 0.14), transparent 55%), rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

html[data-theme=light] .fi-no-notification-title {
  color: #0f172a;
}

html[data-theme=light] .fi-no-notification-body {
  color: #334155;
}

html[data-theme=light] .fi-no-notification-date {
  color: #64748b;
}

html[data-theme=light] .course-cover-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.58) 0%, rgba(15, 23, 42, 0.28) 44%, rgba(15, 23, 42, 0.03) 78%, transparent 100%) !important;
}

html[data-theme=light] .course-cover-content .app-text-primary,
html[data-theme=light] .course-cover-content .app-text-secondary,
html[data-theme=light] .course-cover-content [class*=text-white] {
  color: #f8fafc !important;
}

html[data-theme=light] .course-cover-content [class*="border-white/20"] {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html[data-theme=light] .course-cover-content [class*="bg-white/10"] {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme=light] .course-cover-content [class*="hover:border-white/40"]:hover {
  border-color: rgba(255, 255, 255, 0.42) !important;
}

html[data-theme=light] .course-cover-content .course-cover-badge {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

html[data-theme=light] .course-cover-content .course-cover-badge[class*=emerald] {
  border-color: rgba(110, 231, 183, 0.58) !important;
  background-color: rgba(52, 211, 153, 0.2) !important;
  color: #d1fae5 !important;
}

html[data-theme=light] .course-cover-content .course-cover-badge[class*=cyan],
html[data-theme=light] .course-cover-content .course-cover-badge[class*=sky] {
  border-color: rgba(103, 232, 249, 0.58) !important;
  background-color: rgba(34, 211, 238, 0.2) !important;
  color: #cffafe !important;
}

html[data-theme=light] .course-cover-content .course-cover-badge[class*=fuchsia],
html[data-theme=light] .course-cover-content .course-cover-badge[class*=indigo] {
  border-color: rgba(196, 181, 253, 0.56) !important;
  background-color: rgba(139, 92, 246, 0.2) !important;
  color: #ede9fe !important;
}

html[data-theme=light] .course-cover-content .course-cover-badge[class*=amber] {
  border-color: rgba(252, 211, 77, 0.6) !important;
  background-color: rgba(251, 191, 36, 0.22) !important;
  color: #fef3c7 !important;
}

html[data-theme=light] .course-cover-content .course-cover-badge[class*=rose] {
  border-color: rgba(253, 164, 175, 0.58) !important;
  background-color: rgba(244, 63, 94, 0.2) !important;
  color: #ffe4e6 !important;
}

html[data-theme=light] .course-quiz-score-card {
  border-color: rgba(8, 145, 178, 0.34) !important;
  background: linear-gradient(130deg, rgba(34, 211, 238, 0.16), rgba(56, 189, 248, 0.12), rgba(16, 185, 129, 0.1)) !important;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.12);
}

html[data-theme=light] .course-quiz-score-card .text-cyan-50,
html[data-theme=light] .course-quiz-score-card .text-cyan-50\/95,
html[data-theme=light] .course-quiz-score-card .text-cyan-100\/90 {
  color: #0e7490 !important;
}

html[data-theme=light] .course-quiz-score-card .course-quiz-score-item {
  border-color: rgba(15, 23, 42, 0.18) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme=light] .course-quiz-score-card .course-quiz-score-item .text-white {
  color: #0f172a !important;
}

html[data-theme=light] .course-quiz-score-card .course-quiz-score-item [class*="border-white/20"] {
  border-color: rgba(15, 23, 42, 0.18) !important;
}

html[data-theme=light] .course-quiz-score-card .course-quiz-score-item [class*="bg-white/10"] {
  background-color: rgba(255, 255, 255, 0.92) !important;
  color: #334155 !important;
}

html[data-theme=light] .course-quiz-page .quiz-hero-card,
html[data-theme=light] .course-quiz-page .quiz-side-card,
html[data-theme=light] .course-quiz-page .quiz-question-card {
  border-color: rgba(15, 23, 42, 0.16) !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 255, 0.9)) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

html[data-theme=light] .course-quiz-page :is(.quiz-hero-card, .quiz-side-card, .quiz-question-card) [class*=text-white] {
  color: #0f172a !important;
}

html[data-theme=light] .course-quiz-page .quiz-hero-card [class*=text-cyan-100] {
  color: #155e75 !important;
}

html[data-theme=light] .course-quiz-page .quiz-side-card [class*=text-amber-100] {
  color: #92400e !important;
}

html[data-theme=light] .course-quiz-page .quiz-side-card [class*=text-rose-100] {
  color: #be123c !important;
}

.course-quiz-page .quiz-cyan-soft {
  border-color: rgba(103, 232, 249, 0.4);
  background-color: rgba(34, 211, 238, 0.1);
}

html[data-theme=light] .course-quiz-page .quiz-cyan-soft {
  border-color: rgba(8, 145, 178, 0.5) !important;
  background-color: rgba(34, 211, 238, 0.22) !important;
}

html[data-theme=light] .course-quiz-page label > input.peer:checked + span {
  border-color: rgba(8, 145, 178, 0.52) !important;
  background-color: rgba(34, 211, 238, 0.2) !important;
  color: #0e7490 !important;
}

html[data-theme=light] .course-quiz-page .quiz-question-card textarea {
  border-color: rgba(15, 23, 42, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
}

html[data-theme=light] .course-quiz-page .quiz-question-card textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme=light] .competition-play-page :is(.glass, .glass-strong, [class*=panel_wrapper]) {
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme=light] .competition-play-page [class*=from-indigo-950],
html[data-theme=light] .competition-play-page [class*=from-emerald-950],
html[data-theme=light] .competition-play-page [class*=from-slate-900],
html[data-theme=light] .competition-play-page [class*="via-[#131a33]"],
html[data-theme=light] .competition-play-page [class*="via-[#132820]"],
html[data-theme=light] .competition-play-page [class*="via-[#101a2f]"],
html[data-theme=light] .competition-play-page [class*=to-slate-900],
html[data-theme=light] .competition-play-page [class*="to-[#16263d]"] {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9)) !important;
}

html[data-theme=light] .competition-play-page [class*="bg-[#0b0f1f"],
html[data-theme=light] .competition-play-page [class*="bg-[#090d1a"] {
  background-color: rgba(255, 255, 255, 0.96) !important;
}

html[data-theme=light] .competition-play-page [class*=text-white],
html[data-theme=light] .competition-play-page [class*=text-slate-50] {
  color: #0f172a !important;
}

html[data-theme=light] .competition-play-page [class*=text-cyan-100],
html[data-theme=light] .competition-play-page [class*=text-cyan-200] {
  color: #155e75 !important;
}

html[data-theme=light] .competition-play-page [class*=text-cyan-50] {
  color: #0e7490 !important;
}

html[data-theme=light] .competition-play-page [class*=text-emerald-100],
html[data-theme=light] .competition-play-page [class*=text-emerald-200] {
  color: #065f46 !important;
}

html[data-theme=light] .competition-play-page [class*=text-emerald-50] {
  color: #047857 !important;
}

html[data-theme=light] .competition-play-page [class*=text-amber-100],
html[data-theme=light] .competition-play-page [class*=text-amber-200] {
  color: #78350f !important;
}

html[data-theme=light] .competition-play-page [class*=text-amber-50] {
  color: #92400e !important;
}

html[data-theme=light] .competition-play-page [class*=text-indigo-100],
html[data-theme=light] .competition-play-page [class*=text-indigo-200],
html[data-theme=light] .competition-play-page [class*=text-violet-100],
html[data-theme=light] .competition-play-page [class*=text-violet-200],
html[data-theme=light] .competition-play-page [class*=text-fuchsia-100],
html[data-theme=light] .competition-play-page [class*=text-fuchsia-200] {
  color: #5b21b6 !important;
}

html[data-theme=light] .competition-play-page [class*=text-rose-100],
html[data-theme=light] .competition-play-page [class*=text-rose-200] {
  color: #9f1239 !important;
}

html[data-theme=light] .competition-play-page [class*="bg-white/12"],
html[data-theme=light] .competition-play-page [class*="bg-white/[0.06]"],
html[data-theme=light] .competition-play-page [class*="bg-white/10"] {
  background-color: rgba(255, 255, 255, 0.88) !important;
}

html[data-theme=light] .competition-play-page [class*="border-white/25"],
html[data-theme=light] .competition-play-page [class*="border-white/20"],
html[data-theme=light] .competition-play-page [class*="border-white/15"] {
  border-color: rgba(15, 23, 42, 0.2) !important;
}

html[data-theme=light] .competition-play-page input[class*="bg-[#090d1a"],
html[data-theme=light] .competition-play-page textarea[class*="bg-[#090d1a"] {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
}

html[data-theme=light] .competition-play-page :is(#knowledge-answer-entry, #knowledge-level-answer-entry, #answer-submit-panel) {
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  background-image: linear-gradient(145deg, rgba(241, 249, 255, 0.96), rgba(255, 255, 255, 0.92)) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme=light] .competition-play-page :is(#knowledge-answer-entry, #knowledge-level-answer-entry, #answer-submit-panel) [class*="bg-slate-900/40"] {
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
}

html[data-theme=light] .competition-play-page :is(#knowledge-answer-entry, #knowledge-level-answer-entry, #answer-submit-panel) :is([class*="bg-white/[0.06]"], [class*="bg-white/10"], [class*="bg-white/12"]) {
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background-color: rgba(248, 250, 252, 0.96) !important;
}

html[data-theme=light] .competition-play-page :is(#knowledge-answer-entry, #knowledge-level-answer-entry, #answer-submit-panel) [class*="bg-gradient-to-r from-slate-800/40"] {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background-image: linear-gradient(120deg, rgba(241, 245, 249, 0.96), rgba(255, 255, 255, 0.92)) !important;
}

html[data-theme=light] .competition-play-page .competition-play-floating {
  border-color: rgba(15, 23, 42, 0.26) !important;
  background-image: linear-gradient(145deg, rgba(248, 252, 255, 0.95), rgba(241, 249, 255, 0.88)) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme=light] .competition-play-page[data-competition-type=knowledge] .competition-play-floating {
  border-color: rgba(14, 116, 144, 0.32) !important;
  background-image: linear-gradient(145deg, rgba(236, 254, 255, 0.96), rgba(224, 242, 254, 0.9)) !important;
}

html[data-theme=light] .competition-play-page[data-competition-type=knowledge_2] .competition-play-floating {
  border-color: rgba(5, 150, 105, 0.3) !important;
  background-image: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(209, 250, 229, 0.9)) !important;
}

html[data-theme=light] .competition-play-page[data-competition-type=solution] .competition-play-floating {
  border-color: rgba(180, 83, 9, 0.34) !important;
  background-image: linear-gradient(145deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.9)) !important;
}

html[data-theme=light] .course-study-page {
  background-color: #f4f8ff !important;
  color: #0f172a !important;
}

html[data-theme=light] .course-study-page [class*="bg-[#111820"],
html[data-theme=light] .course-study-page [class*="bg-[#0a1118"],
html[data-theme=light] .course-study-page [class*="bg-[#0a0f14"],
html[data-theme=light] .course-study-page [class*="bg-[#0b0f14"],
html[data-theme=light] .course-study-page [class*="bg-[#0f1720"] {
  background-color: rgba(255, 255, 255, 0.96) !important;
}

html[data-theme=light] .course-study-page [class*=text-white] {
  color: #0f172a !important;
}

html[data-theme=light] .course-study-page [class*=text-cyan-100] {
  color: #0e7490 !important;
}

html[data-theme=light] .course-study-page [class*=text-cyan-50] {
  color: #155e75 !important;
}

html[data-theme=light] .course-study-page [class*=text-amber-100] {
  color: #92400e !important;
}

html[data-theme=light] .course-study-page [class*=text-amber-50] {
  color: #b45309 !important;
}

html[data-theme=light] .course-study-page [class*=text-emerald-50],
html[data-theme=light] .course-study-page [class*=text-emerald-100],
html[data-theme=light] .course-study-page [class*=text-emerald-200] {
  color: #065f46 !important;
}

html[data-theme=light] .course-study-page [class*="border-white/20"],
html[data-theme=light] .course-study-page [class*="border-white/15"] {
  border-color: rgba(15, 23, 42, 0.2) !important;
}

html[data-theme=light] .course-study-page [class*="bg-white/[0.06]"],
html[data-theme=light] .course-study-page [class*="bg-white/10"] {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme=light] .course-study-page aside[class*="bg-[#0f1720"] {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme=light] .battle-prepare-theme--classic {
  background-image: radial-gradient(78rem 30rem at 0% -8%, rgba(251, 191, 36, 0.12), transparent 66%), radial-gradient(68rem 28rem at 100% -6%, rgba(16, 185, 129, 0.1), transparent 68%);
}

html[data-theme=light] .battle-prepare-theme--scenario {
  background-image: radial-gradient(82rem 32rem at 0% -8%, rgba(168, 85, 247, 0.12), transparent 66%), radial-gradient(70rem 30rem at 100% -6%, rgba(20, 184, 166, 0.1), transparent 68%);
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-panel {
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--countdown {
  border-color: rgba(5, 150, 105, 0.4) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(52, 211, 153, 0.16)) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--countdown .text-emerald-50,
html[data-theme=light] .battle-prepare-theme .battle-prepare-card--countdown .text-emerald-100\/80 {
  color: #065f46 !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--info {
  border-color: rgba(180, 83, 9, 0.32) !important;
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.2), rgba(16, 185, 129, 0.12)) !important;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.12) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--info .text-amber-50,
html[data-theme=light] .battle-prepare-theme .battle-prepare-card--info .text-amber-50\/95,
html[data-theme=light] .battle-prepare-theme .battle-prepare-card--info .text-amber-100\/80 {
  color: #92400e !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--stat {
  border-color: rgba(15, 23, 42, 0.16) !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--group-wrap {
  border-color: rgba(15, 23, 42, 0.16) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--group-wrap [class*=text-white] {
  color: #0f172a !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--group-a {
  border-color: rgba(190, 24, 93, 0.34) !important;
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.14), rgba(255, 255, 255, 0.9)) !important;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.12) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--group-b {
  border-color: rgba(14, 116, 144, 0.34) !important;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(255, 255, 255, 0.9)) !important;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.12) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--member-a,
html[data-theme=light] .battle-prepare-theme .battle-prepare-card--member-b {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background-color: rgba(255, 255, 255, 0.88) !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--member-a .text-cyan-200,
html[data-theme=light] .battle-prepare-theme .battle-prepare-card--member-b .text-cyan-200 {
  color: #0e7490 !important;
}

html[data-theme=light] .battle-prepare-theme .battle-prepare-card--member-a .text-emerald-200,
html[data-theme=light] .battle-prepare-theme .battle-prepare-card--member-b .text-emerald-200 {
  color: #047857 !important;
}

.site-header {
  transition: padding 280ms ease;
}

.site-header__bar {
  /* transition: border-color 280ms ease, background-color 280ms ease; */
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
}

.site-header__inner {
  transition: padding 280ms ease;
}

.site-header__inner nav {
  overflow: hidden;
  padding: 0.75rem 0;
}

.site-header.is-scrolled {
  padding-top: 2rem;
}

.site-header.is-scrolled .site-header__inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.s-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.s-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.s-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.s-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.fi-no {
  position: fixed;
  top: 5.75rem;
  right: 1.2rem;
  left: auto;
  bottom: auto;
  z-index: 120;
  pointer-events: none;
  display: grid;
  width: min(520px, 100vw - 1.6rem);
  gap: 0.9rem;
}

.fi-no-notification {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  border: 1px solid rgba(251, 191, 36, 0.58);
  background: radial-gradient(120% 140% at 100% 0%, rgba(251, 191, 36, 0.3), transparent 52%), radial-gradient(100% 120% at 0% 100%, rgba(16, 185, 129, 0.2), transparent 55%), rgba(10, 16, 32, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.1rem;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.62), 0 0 0 1px rgba(251, 191, 36, 0.15) inset;
  color: #f8fafc;
  padding: 1rem 1.05rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  animation: fi-no-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fi-no-notification-icon {
  color: rgba(251, 191, 36, 0.96);
  margin-top: 0;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fi-no-notification-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.fi-no-notification-main {
  display: grid;
  gap: 0.24rem;
  flex: 1;
  min-width: 0;
  align-content: center;
}

.fi-no-notification-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #ffffff;
}

.fi-no-notification-body {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.9);
}

.fi-no-notification-date {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.8);
}

.fi-no-notification.fi-color {
  border-color: rgba(16, 185, 129, 0.72);
  background: radial-gradient(120% 130% at 100% 0%, rgba(16, 185, 129, 0.28), transparent 56%), radial-gradient(100% 110% at 0% 100%, rgba(45, 212, 191, 0.18), transparent 58%), rgba(10, 22, 27, 0.97);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.56), 0 0 0 1px rgba(16, 185, 129, 0.2) inset;
}

.fi-no-notification.fi-danger {
  border-color: rgba(251, 113, 133, 0.78);
  background: radial-gradient(120% 130% at 100% 0%, rgba(251, 113, 133, 0.34), transparent 56%), radial-gradient(100% 110% at 0% 100%, rgba(220, 38, 38, 0.2), transparent 58%), rgba(30, 10, 16, 0.98);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.62), 0 0 0 1px rgba(251, 113, 133, 0.3) inset;
  animation: fi-no-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both, fi-no-danger-shake 420ms ease-out 80ms both;
}

.fi-no-notification.fi-danger .fi-no-notification-icon {
  color: rgba(251, 113, 133, 0.98);
}

.fi-no-notification.fi-warning {
  border-color: rgba(251, 191, 36, 0.75);
  background: radial-gradient(120% 130% at 100% 0%, rgba(251, 191, 36, 0.36), transparent 56%), radial-gradient(100% 110% at 0% 100%, rgba(245, 158, 11, 0.22), transparent 58%), rgba(29, 19, 7, 0.98);
}

.fi-no-notification.fi-warning .fi-no-notification-icon {
  color: rgba(251, 191, 36, 0.98);
}

.fi-no-notification.fi-info {
  border-color: rgba(56, 189, 248, 0.75);
  background: radial-gradient(120% 130% at 100% 0%, rgba(56, 189, 248, 0.3), transparent 56%), radial-gradient(100% 110% at 0% 100%, rgba(14, 165, 233, 0.2), transparent 58%), rgba(7, 18, 34, 0.98);
}

.fi-no-notification.fi-info .fi-no-notification-icon {
  color: rgba(56, 189, 248, 0.98);
}

.fi-no-notification-close-btn {
  width: 2.05rem;
  height: 2.05rem;
  min-width: 2.05rem;
  min-height: 2.05rem;
  border-radius: 0.7rem;
}

.fi-no-notification:nth-child(2) {
  animation-delay: 60ms;
}

.fi-no-notification:nth-child(3) {
  animation-delay: 110ms;
}

@keyframes fi-no-enter {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}
@keyframes fi-no-danger-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  45% {
    transform: translateX(4px);
  }
  70% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (max-width: 640px) {
  .fi-no {
    top: 5.2rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
  .fi-no-notification {
    width: 100%;
  }
}
.battle-room-theme {
  background-color: #060b18;
  color-scheme: dark;
  --app-text-primary: #f8fafc;
  --app-text-secondary: #cbd5f5;
  --app-text-tertiary: #94a3b8;
  --app-border: rgba(255, 255, 255, 0.1);
  --app-surface-soft: rgba(255, 255, 255, 0.05);
  --app-surface-card: rgba(255, 255, 255, 0.03);
  --app-surface-card-strong: rgba(255, 255, 255, 0.06);
}

.battle-room-theme--classic {
  background-image: radial-gradient(64rem 30rem at -6% -10%, rgba(244, 63, 94, 0.18), transparent 62%), radial-gradient(72rem 32rem at 110% -6%, rgba(56, 189, 248, 0.16), transparent 64%);
}

.battle-room-theme--scenario {
  background-image: radial-gradient(72rem 34rem at -8% -12%, rgba(192, 132, 252, 0.2), transparent 62%), radial-gradient(70rem 30rem at 112% -8%, rgba(45, 212, 191, 0.18), transparent 64%);
}

.battle-room-theme .battle-room-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
}

.battle-room-theme--classic .battle-card {
  background-color: rgba(14, 23, 40, 0.78);
}

.battle-room-theme--classic .battle-card--active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(190, 24, 93, 0.14));
}

.battle-room-theme--classic .battle-card--team-a,
.battle-room-theme--classic .battle-card--timeline-col-a,
.battle-room-theme--classic .battle-card--timeline-head-a {
  background-color: rgba(136, 19, 55, 0.2);
}

.battle-room-theme--classic .battle-card--team-b,
.battle-room-theme--classic .battle-card--timeline-col-b,
.battle-room-theme--classic .battle-card--timeline-head-b {
  background-color: rgba(14, 116, 144, 0.2);
}

.battle-room-theme--classic .battle-card--speech {
  background-color: rgba(255, 255, 255, 0.08);
}

.battle-room-theme--scenario .battle-room-panel {
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(45, 212, 191, 0.1) inset;
}

.battle-room-theme--scenario .battle-card {
  background-color: rgba(20, 26, 49, 0.8);
}

.battle-room-theme--scenario .battle-card--active {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.24), rgba(45, 212, 191, 0.15));
}

.battle-room-theme--scenario .battle-card--team-a,
.battle-room-theme--scenario .battle-card--timeline-col-a,
.battle-room-theme--scenario .battle-card--timeline-head-a {
  background-color: rgba(126, 34, 206, 0.2);
}

.battle-room-theme--scenario .battle-card--team-b,
.battle-room-theme--scenario .battle-card--timeline-col-b,
.battle-room-theme--scenario .battle-card--timeline-head-b {
  background-color: rgba(8, 145, 178, 0.2);
}

.battle-room-theme--scenario .battle-card--speech {
  background-color: rgba(30, 41, 59, 0.58);
}

.battle-prepare-theme--classic {
  background-image: radial-gradient(80rem 32rem at 0% -8%, rgba(251, 191, 36, 0.16), transparent 64%), radial-gradient(68rem 28rem at 100% -6%, rgba(16, 185, 129, 0.14), transparent 66%);
}

.battle-prepare-theme--scenario {
  background-image: radial-gradient(84rem 34rem at 0% -8%, rgba(192, 132, 252, 0.18), transparent 64%), radial-gradient(72rem 30rem at 100% -6%, rgba(20, 184, 166, 0.16), transparent 66%);
}

.battle-prepare-theme .battle-prepare-panel {
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.battle-prepare-theme--classic .battle-prepare-card--countdown {
  background-color: rgba(16, 185, 129, 0.2);
}

.battle-prepare-theme--classic .battle-prepare-card--info {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.24), rgba(16, 185, 129, 0.16));
}

.battle-prepare-theme--classic .battle-prepare-card--stat {
  background-color: rgba(15, 23, 42, 0.42);
}

.battle-prepare-theme--classic .battle-prepare-card--group-a {
  background: linear-gradient(145deg, rgba(136, 19, 55, 0.34), rgba(15, 23, 42, 0.74));
}

.battle-prepare-theme--classic .battle-prepare-card--group-b {
  background: linear-gradient(145deg, rgba(14, 116, 144, 0.3), rgba(15, 23, 42, 0.74));
}

.battle-prepare-theme--classic .battle-prepare-card--member-a,
.battle-prepare-theme--classic .battle-prepare-card--member-b {
  background-color: rgba(2, 6, 23, 0.34);
}

.battle-prepare-theme--scenario .battle-prepare-panel {
  border-color: rgba(167, 139, 250, 0.45) !important;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.34), 0 0 0 1px rgba(45, 212, 191, 0.12) inset;
}

.battle-prepare-theme--scenario .battle-prepare-card--countdown {
  background-color: rgba(45, 212, 191, 0.18);
}

.battle-prepare-theme--scenario .battle-prepare-card--info {
  background: linear-gradient(120deg, rgba(192, 132, 252, 0.24), rgba(20, 184, 166, 0.18));
}

.battle-prepare-theme--scenario .battle-prepare-card--stat {
  background-color: rgba(30, 41, 59, 0.48);
}

.battle-prepare-theme--scenario .battle-prepare-card--group-a {
  background: linear-gradient(145deg, rgba(126, 34, 206, 0.34), rgba(15, 23, 42, 0.74));
}

.battle-prepare-theme--scenario .battle-prepare-card--group-b {
  background: linear-gradient(145deg, rgba(8, 145, 178, 0.32), rgba(15, 23, 42, 0.74));
}

.battle-prepare-theme--scenario .battle-prepare-card--member-a,
.battle-prepare-theme--scenario .battle-prepare-card--member-b {
  background-color: rgba(15, 23, 42, 0.44);
}

.competition-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.competition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.competition-card:hover {
  transform: translateY(-2px);
}

.competition-card--knowledge {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 30px rgba(30, 64, 175, 0.22);
}

.competition-card--knowledge::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(59, 130, 246, 0.16), transparent 72%), linear-gradient(180deg, rgba(30, 64, 175, 0.08), transparent 46%);
}

.competition-card--knowledge-2 {
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: 0 18px 30px rgba(6, 95, 70, 0.24);
}

.competition-card--knowledge-2::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(16, 185, 129, 0.18), transparent 72%), linear-gradient(180deg, rgba(5, 150, 105, 0.1), transparent 46%);
}

.competition-card--solution {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 18px 30px rgba(14, 116, 144, 0.24);
}

.competition-card--solution::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(34, 211, 238, 0.16), transparent 72%), linear-gradient(180deg, rgba(8, 145, 178, 0.08), transparent 46%);
}

.competition-card--battle {
  border-color: rgba(232, 121, 249, 0.35);
  box-shadow: 0 18px 30px rgba(162, 28, 175, 0.24);
}

.competition-card--battle::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(232, 121, 249, 0.18), transparent 72%), linear-gradient(180deg, rgba(190, 24, 93, 0.08), transparent 46%);
}

.competition-card--scenario {
  border-color: rgba(129, 140, 248, 0.38);
  box-shadow: 0 18px 30px rgba(67, 56, 202, 0.24);
}

.competition-card--scenario::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(129, 140, 248, 0.2), transparent 72%), linear-gradient(180deg, rgba(99, 102, 241, 0.1), transparent 46%);
}

.competition-card--default {
  border-color: rgba(148, 163, 184, 0.35);
}

html[data-theme=light] .competition-card {
  border-color: rgba(15, 23, 42, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.9));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme=light] .competition-card::before {
  opacity: 1;
}

html[data-theme=light] .competition-card:hover {
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

html[data-theme=light] .competition-card--knowledge {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
}

html[data-theme=light] .competition-card--knowledge::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(59, 130, 246, 0.18), transparent 74%), linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 48%);
}

html[data-theme=light] .competition-card--knowledge-2 {
  border-color: rgba(5, 150, 105, 0.34);
  box-shadow: 0 16px 30px rgba(5, 150, 105, 0.16);
}

html[data-theme=light] .competition-card--knowledge-2::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(16, 185, 129, 0.18), transparent 74%), linear-gradient(180deg, rgba(16, 185, 129, 0.08), transparent 48%);
}

html[data-theme=light] .competition-card--solution {
  border-color: rgba(8, 145, 178, 0.34);
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.15);
}

html[data-theme=light] .competition-card--solution::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(34, 211, 238, 0.2), transparent 74%), linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 48%);
}

html[data-theme=light] .competition-card--battle {
  border-color: rgba(162, 28, 175, 0.32);
  box-shadow: 0 16px 30px rgba(162, 28, 175, 0.15);
}

html[data-theme=light] .competition-card--battle::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(232, 121, 249, 0.18), transparent 74%), linear-gradient(180deg, rgba(236, 72, 153, 0.08), transparent 48%);
}

html[data-theme=light] .competition-card--scenario {
  border-color: rgba(67, 56, 202, 0.32);
  box-shadow: 0 16px 30px rgba(67, 56, 202, 0.15);
}

html[data-theme=light] .competition-card--scenario::before {
  background: radial-gradient(30rem 12rem at 0% 0%, rgba(129, 140, 248, 0.2), transparent 74%), linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent 48%);
}

html[data-theme=light] .competition-card--default {
  border-color: rgba(71, 85, 105, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
