:root {
  color-scheme: dark;
  --brand-display: var(--ech-font-display, "Inter", "Segoe UI Variable Display", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif);
  --brand-sans: var(--ech-font-sans, "Inter", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.68 var(--brand-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--student-accent, #9ce0f7);
  text-underline-offset: 4px;
}

button, select, input, textarea {
  font: inherit;
}

button, select {
  color: var(--ink);
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px 12px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

button {
  cursor: pointer;
  font-weight: 650;
}

button:hover {
  background: var(--raised);
  border-color: var(--accent-line);
}

button:active:not(:disabled) {
  transform: scale(0.985);
}

button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ech-cyan, #5ef2e4);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 14px;
  padding: 10px 16px;
  z-index: 80;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus {
  top: 10px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 24, 38, 0.9);
  backdrop-filter: blur(14px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding-block: 8px;
}

.notice {
  background: var(--lav);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
}

.kicker {
  color: var(--student-accent);
}

.primary {
  background: var(--lime);
  color: var(--on-lime);
}

.primary:hover {
  background: var(--lime-hover);
}

.bubble {
  font-size: 15px;
}

.bubble small {
  font-size: 11px;
}

@media (max-width: 900px) {
  .top-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .student-top-nav {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .student-top-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
