:root {
  --blue: #0078d4;
  --blue-strong: #005a9e;
  --blue-soft: #eaf5ff;
  --cyan: #50e6ff;
  --green: #107c10;
  --yellow: #ffb900;
  --red: #d83b01;
  --ink: #1a1f29;
  --muted: #5d6778;
  --line: #d9e2ec;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-strong: #edf5ff;
  --shadow: 0 18px 45px rgba(0, 65, 120, 0.11);
  --shadow-soft: 0 10px 30px rgba(0, 55, 100, 0.08);
  --ring: 0 0 0 3px rgba(0, 120, 212, 0.16);
  --radius: 8px;
  font-family:
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-color: rgba(0, 120, 212, 0.42) rgba(237, 245, 255, 0.7);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgba(80, 230, 255, 0.18), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(255, 185, 0, 0.13), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--surface-soft) 42%, #eef6ff 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(0, 120, 212, 0.18);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(237, 245, 255, 0.72);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(237, 245, 255, 0.92);
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.38);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 120, 212, 0.56);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 120, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 120, 212, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.container {
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section.compact {
  padding: 48px 0;
}

.section-title {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 30px;
}

.eyebrow {
  width: fit-content;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 226, 236, 0.7);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.9));
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
}

.brand:hover .logo-mark {
  transform: rotate(-2deg) scale(1.04);
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 8px 18px rgba(0, 35, 70, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-links button {
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links .active {
  background: var(--surface-strong);
  color: var(--blue-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9));
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: 0 12px 24px rgba(0, 120, 212, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 120, 212, 0.1);
}

.btn.primary {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), #0b63ce);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 120, 212, 0.22);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #006fc4, #075ec8);
  box-shadow: 0 16px 30px rgba(0, 120, 212, 0.26);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.btn.wide {
  width: 100%;
}

.mobile-menu {
  display: none;
  width: 42px;
  min-width: 42px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 22%, rgba(80, 230, 255, 0.22), transparent 26%),
    radial-gradient(circle at 18% 72%, rgba(255, 185, 0, 0.16), transparent 24%),
    linear-gradient(104deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(236, 247, 255, 0.78) 100%),
    #f8fbff;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(0deg, var(--surface-soft), rgba(246, 249, 252, 0));
  z-index: -1;
}

.hero-inner {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 72px);
  gap: 28px;
  padding: 64px 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 780px;
  min-width: 0;
}

.hero-copy p {
  max-width: min(100%, 660px);
  font-size: 18px;
}

.hero-slogan {
  color: transparent;
  background: linear-gradient(90deg, var(--blue-strong), var(--blue), #0f8d8f);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 850;
  line-height: 1.08;
}

.hero-lead {
  margin-top: 2px;
  border-left: 3px solid rgba(255, 185, 0, 0.72);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  min-height: 34px;
  border: 1px solid rgba(0, 120, 212, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-stage {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 70px rgba(0, 64, 128, 0.16);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-stage:hover {
  border-color: rgba(0, 120, 212, 0.34);
  box-shadow: 0 34px 80px rgba(0, 64, 128, 0.2);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(80, 230, 255, 0.22), transparent);
  transform: translateX(-100%);
  animation: stage-scan 5s ease-in-out infinite;
  pointer-events: none;
}

.stage-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-dot {
  color: var(--green);
  font-size: 18px;
  animation: live-pulse 1.4s ease-in-out infinite;
}

.stage-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(0, 50, 95, 0.06);
}

.stage-card-main {
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(255, 255, 255, 0.95)),
    #fff;
}

.hero-photo-wall {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
  min-height: 170px;
}

.photo-main,
.photo-stack span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 53, 100, 0.16);
}

.photo-main {
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(4, 18, 38, 0.02), rgba(3, 20, 42, 0.72)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.photo-main::after,
.photo-stack span::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: photo-sheen 7s ease-in-out infinite;
}

.photo-main span,
.photo-main strong {
  position: relative;
  z-index: 1;
}

.photo-main span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-main strong {
  font-size: 20px;
  line-height: 1.2;
}

.photo-stack {
  display: grid;
  gap: 10px;
}

.photo-stack span {
  display: grid;
  place-items: end start;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(2, 24, 51, 0.04), rgba(0, 77, 129, 0.62)),
    radial-gradient(circle at 20% 22%, rgba(80, 230, 255, 0.82), transparent 26%),
    linear-gradient(135deg, #0067b8, #0f8d8f);
  font-size: 13px;
  font-weight: 900;
}

.stage-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef8;
}

.stage-progress span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stage-grid div {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.8);
}

.stage-grid strong {
  color: var(--blue-strong);
  font-size: 24px;
}

.stage-grid span {
  color: var(--muted);
  font-size: 13px;
}

.code-card {
  position: relative;
  z-index: 1;
  border-color: rgba(0, 120, 212, 0.22);
  background: #172033;
  color: #e7f3ff;
  font-size: 13px;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-dashboard article {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 26px rgba(0, 65, 120, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.hero-dashboard article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--cyan), var(--yellow));
}

.hero-dashboard article:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.32);
  box-shadow: 0 18px 34px rgba(0, 65, 120, 0.12);
}

.hero-dashboard strong {
  color: var(--blue-strong);
  font-size: 28px;
  line-height: 1;
}

.hero-dashboard span {
  color: var(--ink);
  font-weight: 900;
}

.hero-dashboard small {
  color: var(--muted);
}

.metric-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 148px;
  border: 1px solid rgba(0, 120, 212, 0.18);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0, 65, 120, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.metric-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.32);
}

.metric-chip strong {
  font-size: 22px;
  color: var(--blue-strong);
}

.metric-chip span {
  color: var(--muted);
  font-size: 13px;
}

.home-live-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 120, 212, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbff, #fff);
}

.section-title.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-preview-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 26%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.home-preview-card.ai-recommend-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 185, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #fff, #f8fbff);
}

.home-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-preview-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px 12px;
  border: 1px solid rgba(0, 120, 212, 0.1);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(248, 252, 255, 0.76);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.home-preview-row:hover {
  transform: translateX(3px);
  border-color: rgba(0, 120, 212, 0.28);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 70, 120, 0.08);
}

.home-preview-row span {
  grid-row: span 2;
  align-self: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 120, 212, 0.08);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.home-preview-row strong,
.home-preview-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-preview-row small {
  color: var(--muted);
}

.mission-strip {
  border-top: 1px solid rgba(0, 120, 212, 0.12);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.mission-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.mission-item:last-child {
  border-right: 0;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes stage-scan {
  0%,
  58% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes photo-sheen {
  0%,
  62% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes drawer-enter {
  from {
    opacity: 0;
    transform: translateX(14px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes route-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-progress-slide {
  0% {
    transform: translateX(-110%);
  }

  52% {
    transform: translateX(82vw);
  }

  100% {
    transform: translateX(120vw);
  }
}

@keyframes ux-ripple {
  to {
    opacity: 0;
    transform: scale(2.25);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes avatar-breathe {
  0%,
  100% {
    box-shadow: 0 16px 36px rgba(0, 54, 112, 0.14);
  }

  50% {
    box-shadow:
      0 20px 42px rgba(0, 120, 212, 0.18),
      0 0 0 7px rgba(80, 230, 255, 0.1);
  }
}

@keyframes active-glow {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(0, 120, 212, 0.14);
  }

  50% {
    box-shadow: 0 16px 32px rgba(0, 120, 212, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.band {
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.story-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(135deg, #ffffff, #f3f9ff);
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.feature-card,
.module-card,
.post-card,
.competition-card,
.knowledge-card,
.leader-card,
.admin-card,
.form-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.94));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), var(--shadow-soft);
  overflow: hidden;
}

.card::before,
.feature-card::before,
.module-card::before,
.post-card::before,
.competition-card::before,
.knowledge-card::before,
.leader-card::before,
.admin-card::before,
.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--yellow));
  opacity: 0.76;
}

.card,
.feature-card,
.module-card,
.knowledge-card,
.admin-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.24);
  box-shadow: var(--shadow-soft);
}

.direction-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0, 120, 212, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.badge.gold {
  border: 1px solid rgba(186, 127, 24, 0.26);
  background: linear-gradient(135deg, rgba(250, 225, 140, 0.45), rgba(210, 152, 38, 0.22));
  color: #8a5a0a;
}

.danger-text {
  color: #b42318 !important;
}

.badge.green {
  background: #e7f6e7;
  color: var(--green);
}

.badge.blue {
  background: #e8f3ff;
  color: var(--blue-strong);
}

.badge.yellow {
  background: #fff4ce;
  color: #8a6500;
}

.badge.red {
  background: #fde7e9;
  color: var(--red);
}

.badge.gray {
  background: #eef2f7;
  color: var(--muted);
}

.feature-card {
  min-height: 210px;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #40b6ff);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 120, 212, 0.18);
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  background: var(--green);
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--yellow);
  color: var(--ink);
}

.feature-card:nth-child(4) .feature-icon {
  background: var(--red);
}

.pathway-panel {
  display: grid;
  gap: 10px;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pathway-step {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 230, 255, 0.16), transparent 34%),
    var(--surface);
}

.pathway-step::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -16px;
  width: 18px;
  height: 2px;
  background: rgba(0, 120, 212, 0.24);
}

.pathway-step:last-child::after {
  display: none;
}

.pathway-step span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.pathway-step h3 {
  margin: 0;
}

.pathway-step p {
  margin: 0;
  color: var(--muted);
}

.join-band {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}

.join-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.public-status-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.public-status-card p {
  margin: 0;
  color: var(--muted);
}

.public-status-card small {
  color: var(--blue-strong);
  font-weight: 800;
}

.contact-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border: 1px dashed rgba(0, 120, 212, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, rgba(0, 120, 212, 0.09) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 120, 212, 0.09) 25%, transparent 25%),
    #fff;
  background-size: 18px 18px;
  color: var(--blue-strong);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  background: var(--surface);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: 64px;
  background: #f4f9ff;
}

.auth-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-copy {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 520px;
  z-index: 1;
}

.auth-status-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 230, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.auth-status-card strong {
  display: block;
  color: var(--ink);
}

.auth-status-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-steps {
  display: grid;
  gap: 8px;
}

.auth-steps span {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 10px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.auth-recruit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(0, 65, 120, 0.12);
  backdrop-filter: blur(16px);
}

.auth-recruit-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 950;
}

.auth-recruit-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0;
}

.auth-recruit-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-recruit-card img {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 44%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 65, 120, 0.1);
}

.mobile-auth-recruit {
  display: none;
}

.auth-shell {
  display: grid;
  align-content: center;
  padding: 42px;
}

.form-panel {
  width: min(100%, 520px);
  justify-self: center;
  display: grid;
  gap: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-head {
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.96));
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(0, 120, 212, 0.28);
}

input::placeholder,
textarea::placeholder {
  color: #8a94a6;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: var(--ring);
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.admin-login-entry {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 20;
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(20, 35, 70, 0.14);
  color: var(--blue-strong);
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.admin-login-entry:hover {
  border-color: rgba(0, 120, 212, 0.36);
  background: #fff;
  transform: translateY(-1px);
}

.admin-login-entry.active {
  border-color: rgba(181, 126, 22, 0.5);
  background:
    linear-gradient(135deg, #fff7d6, #d8a73a 48%, #fff0ad);
  color: #3b2404;
  box-shadow: 0 14px 28px rgba(157, 103, 14, 0.2);
}

.alert {
  position: relative;
  overflow: hidden;
  border: 1px solid #f3b8b8;
  border-radius: var(--radius);
  padding: 12px 14px 12px 16px;
  background: #fff4f4;
  color: #a4262c;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(164, 38, 44, 0.06);
}

.alert::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: currentColor;
  opacity: 0.72;
}

.success {
  border-color: #b9e6b9;
  background:
    radial-gradient(circle at 98% 0%, rgba(16, 124, 16, 0.08), transparent 26%),
    #f2fbf2;
  color: var(--green);
  box-shadow: 0 10px 22px rgba(16, 124, 16, 0.06);
}

.app-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.app-layout.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(80, 230, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.94));
  padding: 22px;
  z-index: 25;
  box-shadow: 8px 0 30px rgba(0, 55, 100, 0.04);
}

.app-layout.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  border-right: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-collapse-btn,
.sidebar-restore-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--blue-strong);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.sidebar-collapse-btn:hover,
.sidebar-restore-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.3);
  box-shadow: 0 10px 20px rgba(0, 120, 212, 0.1);
}

.sidebar-collapse-btn {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  font-size: 20px;
  line-height: 1;
}

.sidebar-restore-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.side-nav a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--surface-strong);
  color: var(--blue-strong);
}

.side-nav a:hover {
  transform: translateX(2px);
}

.side-nav a.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.side-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mini-metrics span {
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.mini-user {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.avatar,
.avatar-sm {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
}

.avatar {
  width: 46px;
  height: 46px;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.78);
  background:
    linear-gradient(90deg, rgba(246, 249, 252, 0.94), rgba(255, 255, 255, 0.88));
  padding: 0 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(0, 55, 100, 0.04);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-title {
  flex: 1 1 auto;
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-title h3,
.app-title p {
  min-width: 0;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: normal;
  overflow-wrap: break-word;
}

.app-title p {
  font-size: 13px;
}

.topbar-actions .btn {
  min-height: 36px;
  padding: 0 13px;
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.api-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 185, 0, 0.12);
}

.api-status.online {
  color: var(--green);
}

.api-status.online span {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 124, 16, 0.12);
}

.api-status.offline {
  color: var(--red);
}

.api-status.offline span {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(216, 59, 1, 0.12);
}

.api-status.degraded {
  color: #8a6500;
}

.api-status.degraded span {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 185, 0, 0.16);
}

.api-detail {
  margin-bottom: 18px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 13px;
}

.connection-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(0, 120, 212, 0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  background:
    radial-gradient(circle at 96% 18%, rgba(80, 230, 255, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.9);
  color: var(--muted);
}

.connection-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.connection-notice p {
  margin: 0;
  font-size: 13px;
}

.connection-notice.degraded {
  border-color: rgba(255, 185, 0, 0.38);
  background:
    radial-gradient(circle at 96% 18%, rgba(255, 185, 0, 0.18), transparent 28%),
    #fffaf0;
}

.connection-notice.offline {
  border-color: rgba(216, 59, 1, 0.24);
  background:
    radial-gradient(circle at 96% 18%, rgba(216, 59, 1, 0.1), transparent 28%),
    #fff7f4;
}

.form-panel .connection-notice,
.app-content > .connection-notice {
  margin-bottom: 18px;
}

.app-content {
  width: calc(100% - 44px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0 54px;
}

.app-content.knowledge-page-content {
  width: calc(100% - 56px);
  max-width: 1480px;
}

.app-content.route-enter {
  animation: route-enter 0.28s ease both;
}

.app-content > .alert {
  margin-bottom: 18px;
}

.app-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.app-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--yellow));
  box-shadow: 0 0 18px rgba(80, 230, 255, 0.42);
  transform: translateX(-110%);
}

.app-progress.active {
  opacity: 1;
}

.app-progress.active span {
  animation: app-progress-slide 1.15s ease-in-out infinite;
}

.notice-toast {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 48px));
  border: 1px solid rgba(16, 124, 16, 0.18);
  border-radius: var(--radius);
  padding: 12px 12px;
  background:
    radial-gradient(circle at 96% 0%, rgba(80, 230, 255, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(0, 35, 70, 0.18);
  backdrop-filter: blur(16px);
  animation: toast-enter 0.24s ease both;
}

.notice-toast > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(16, 124, 16, 0.12);
}

.notice-toast p {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.notice-toast button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.notice-toast button:hover {
  background: var(--surface-strong);
  color: var(--blue-strong);
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.floating-action {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9));
  color: var(--blue-strong);
  font-weight: 1000;
  box-shadow: 0 14px 34px rgba(0, 55, 100, 0.14);
  backdrop-filter: blur(14px);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.floating-action:hover,
.floating-action.active {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.34);
  box-shadow: 0 18px 40px rgba(0, 120, 212, 0.18);
}

.floating-action.active {
  animation: active-glow 2.4s ease-in-out infinite;
}

.ux-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: rgba(80, 230, 255, 0.28);
  pointer-events: none;
  transform: scale(0);
  animation: ux-ripple 0.56s ease-out forwards;
}

.btn > :not(.ux-ripple),
.filter > :not(.ux-ripple),
.algorithm-tab > :not(.ux-ripple),
.chat-room-tab > :not(.ux-ripple),
.side-nav a > :not(.ux-ripple),
.floating-action > :not(.ux-ripple) {
  position: relative;
  z-index: 1;
}

.btn:active,
.filter:active,
.algorithm-tab:active,
.chat-room-tab:active,
.floating-action:active,
.sidebar-collapse-btn:active,
.sidebar-restore-btn:active {
  transform: translateY(1px) scale(0.985);
}

.motion-item {
  --reveal-y: 18px;
  --reveal-scale: 0.985;
  opacity: 0;
  filter: blur(7px);
  transition:
    opacity 0.52s ease,
    filter 0.52s ease,
    transform 0.56s cubic-bezier(0.2, 0.82, 0.22, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  transition-delay: var(--motion-delay, 0ms);
  will-change: transform, opacity, filter;
}

.motion-item:not(.motion-tilt) {
  transform: translateY(var(--reveal-y)) scale(var(--reveal-scale));
}

.motion-item.motion-in {
  --reveal-y: 0px;
  --reveal-scale: 1;
  opacity: 1;
  filter: blur(0);
}

.motion-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --motion-lift: 0px;
  --shine-x: 50%;
  --shine-y: 0%;
  position: relative;
  overflow: hidden;
  transform:
    perspective(920px)
    translateY(calc(var(--reveal-y, 0px) + var(--motion-lift)))
    scale(var(--reveal-scale, 1))
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
}

.motion-tilt:hover {
  --motion-lift: -4px;
}

.motion-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.66), transparent 26%),
    linear-gradient(135deg, transparent 10%, rgba(80, 230, 255, 0.08), transparent 44%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.motion-tilt:hover::after {
  opacity: 0.75;
}

.motion-tilt > :not(.ux-ripple) {
  position: relative;
  z-index: 1;
}

.profile-avatar,
.avatar-upload-preview,
.chat-avatar {
  animation: avatar-breathe 4.8s ease-in-out infinite;
}

.profile-score,
.path-progress,
.medal-badge.featured {
  animation: soft-float 5.2s ease-in-out infinite;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.welcome-panel,
.user-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.welcome-panel {
  min-height: 230px;
  background:
    radial-gradient(circle at 90% 15%, rgba(80, 230, 255, 0.3), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef7ff);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid rgba(0, 120, 212, 0.18);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.stat strong {
  display: block;
  color: var(--blue-strong);
  font-size: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-orbit span {
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.today-flow {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 120, 212, 0.08), transparent 28%),
    var(--surface);
}

.today-flow .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: none;
  margin-bottom: 16px;
}

.today-flow .section-title h2 {
  margin-bottom: 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.92));
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.flow-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.34);
  box-shadow: 0 16px 38px rgba(0, 32, 80, 0.08);
}

.flow-card span {
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.flow-card strong {
  color: var(--ink);
  line-height: 1.45;
}

.flow-card small {
  align-self: end;
  color: var(--muted);
  line-height: 1.5;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
  margin-bottom: 18px;
}

.ops-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 94% 0%, rgba(80, 230, 255, 0.12), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.ops-card-blue {
  background:
    radial-gradient(circle at 90% 0%, rgba(80, 230, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #ffffff, #edf7ff);
}

.ops-steps {
  display: grid;
  gap: 10px;
}

.ops-steps span {
  position: relative;
  border-left: 3px solid var(--line);
  padding: 3px 0 3px 12px;
  color: var(--muted);
}

.ops-steps .done {
  border-left-color: var(--green);
  color: var(--green);
  font-weight: 800;
}

.ops-steps .active {
  border-left-color: var(--blue);
  color: var(--blue-strong);
  font-weight: 800;
}

.pulse-bars {
  display: grid;
  gap: 12px;
}

.pulse-bars span {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8f1fb;
}

.pulse-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: linear-gradient(90deg, rgba(0, 120, 212, 0.22), rgba(80, 230, 255, 0.35));
}

.pulse-bars b {
  position: relative;
  z-index: 1;
  color: var(--blue-strong);
}

.module-card {
  min-height: 190px;
  cursor: pointer;
  text-align: left;
  background:
    radial-gradient(circle at 96% 8%, rgba(0, 120, 212, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: var(--shadow);
}

.module-card p {
  min-height: 54px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.community-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.community-overview article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 30%),
    var(--surface);
}

.community-overview strong {
  color: var(--blue-strong);
  font-size: 26px;
}

.community-overview span,
.community-overview small {
  color: var(--muted);
}

.community-search-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
}

.community-search-box .btn {
  min-height: 40px;
  padding: 0 12px;
}

.community-scope-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 12px;
}

.community-scope-strip .filter {
  gap: 8px;
}

.community-scope-strip .filter span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  position: relative;
  overflow: hidden;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.filter:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.28);
  background: var(--surface-strong);
  color: var(--blue-strong);
  box-shadow: 0 8px 18px rgba(0, 120, 212, 0.08);
}

.filter.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 120, 212, 0.18);
}

.tag-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 18px;
}

.search-box {
  min-width: min(320px, 100%);
  background:
    linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.post-list,
.competition-list,
.knowledge-list {
  display: grid;
  gap: 14px;
}

.knowledge-page-content .knowledge-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  align-items: stretch;
  gap: 18px;
}

.post-card,
.competition-card,
.leader-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.post-card,
.knowledge-card,
.leader-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.post-card:hover,
.knowledge-card:hover,
.leader-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.28);
  box-shadow: 0 16px 34px rgba(0, 55, 100, 0.08);
}

.competition-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 185, 0, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.96));
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.competition-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 120, 212, 0.32);
  box-shadow: var(--shadow);
}

.post-cover,
.knowledge-cover {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.knowledge-cover {
  max-height: 180px;
}

.upload-inline {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  border: 1px dashed rgba(0, 120, 212, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(244, 250, 255, 0.78);
  color: var(--blue-strong);
  cursor: pointer;
}

.upload-inline span {
  font-weight: 800;
}

.upload-inline small,
.upload-status {
  color: var(--muted);
  font-size: 12px;
}

.upload-inline input {
  margin-top: 6px;
  font-size: 12px;
}

.post-head,
.competition-head,
.leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row span,
.meta-row time {
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.chat-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 28%),
    var(--surface);
  box-shadow: 0 12px 28px rgba(0, 55, 100, 0.05);
}

.chat-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.chat-panel-head h2,
.chat-panel-head p {
  margin: 0;
}

.chat-panel-head p {
  color: var(--muted);
}

.room-owner-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid rgba(181, 126, 22, 0.38);
  border-radius: 999px;
  padding: 6px 11px;
  background: linear-gradient(135deg, #fff8df 0%, #ddb14d 46%, #fff1b9 62%, #9f6a19 100%);
  color: #3b2404;
  box-shadow: 0 10px 22px rgba(157, 103, 14, 0.15);
  font-size: 12px;
  font-weight: 900;
}

.room-owner-line span,
.room-owner-line em {
  color: rgba(59, 36, 4, 0.72);
  font-style: normal;
}

.room-owner-line strong {
  color: #3b2404;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.chat-room-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chat-room-tab {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.chat-room-tab:hover,
.chat-room-tab.active {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.42);
  box-shadow: 0 14px 28px rgba(0, 54, 112, 0.09);
}

.chat-room-tab.active {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.12), rgba(80, 230, 255, 0.12));
}

.chat-room-tab span,
.chat-room-tab small,
.chat-room-tab em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-room-tab span {
  font-weight: 900;
}

.chat-room-tab small {
  color: var(--muted);
  font-weight: 700;
}

.chat-room-tab em {
  color: #8a5a0a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chat-stream,
.direct-stream {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 440px;
  max-height: 58vh;
  overflow: auto;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.82), rgba(255, 255, 255, 0.96));
  scrollbar-width: thin;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-message.mine {
  flex-direction: row-reverse;
}

.chat-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-weight: 900;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble {
  max-width: min(72%, 520px);
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 35, 70, 0.04);
}

.chat-message.mine .chat-bubble {
  border-color: rgba(0, 120, 212, 0.24);
  background: linear-gradient(135deg, var(--blue), #0b63ce);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 120, 212, 0.18);
}

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12px;
}

.chat-meta span {
  color: var(--muted);
}

.chat-meta .name-with-title {
  flex: 1;
}

.chat-meta .member-title {
  flex: 0 0 auto;
}

.chat-message.mine .chat-meta span {
  color: rgba(255, 255, 255, 0.76);
}

.chat-message.mine .member-title {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.chat-bubble p,
.direct-message p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-input-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.direct-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  min-height: 520px;
}

.direct-contact-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  max-height: 68vh;
}

.direct-contact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  text-align: left;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.direct-contact:hover,
.direct-contact.active {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.34);
  background: var(--surface-strong);
  box-shadow: 0 10px 22px rgba(0, 120, 212, 0.08);
}

.direct-contact strong,
.direct-contact small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-contact small {
  color: var(--muted);
}

.direct-contact em {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(0, 120, 212, 0.08);
  color: var(--blue-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.direct-contact b {
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.direct-conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
}

.direct-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.direct-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.direct-title strong,
.direct-title span {
  display: block;
}

.direct-title span {
  color: var(--muted);
  font-size: 13px;
}

.direct-stream {
  min-height: 390px;
}

.direct-message {
  justify-self: start;
  max-width: 76%;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.direct-message.mine {
  justify-self: end;
  border-color: rgba(0, 120, 212, 0.24);
  background: var(--blue);
  color: #fff;
}

.direct-message span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.direct-message.mine span {
  color: rgba(255, 255, 255, 0.76);
}

.direct-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.direct-message-meta span,
.direct-message .member-title {
  margin-top: 0;
}

.direct-message .member-title {
  display: inline-flex;
  color: var(--blue-strong);
}

.direct-message .member-title.featured {
  color: #7a4c05;
}

.direct-message.mine .member-title {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.friend-request-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(244, 250, 255, 0.72);
}

.friend-request-head,
.friend-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.friend-request-head span,
.friend-request-item small {
  color: var(--muted);
}

.friend-request-list {
  display: grid;
  gap: 8px;
}

.friend-request-list.outgoing {
  border-top: 1px solid rgba(0, 120, 212, 0.1);
  padding-top: 10px;
}

.friend-request-item {
  border: 1px solid rgba(0, 120, 212, 0.1);
  border-radius: var(--radius);
  padding: 8px;
  background: #fff;
}

.friend-request-item > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.friend-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.btn.compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.composer,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.composer {
  display: grid;
  gap: 14px;
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.composer-head h3 {
  margin: 0;
}

.composer-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sync-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.sync-pill.degraded {
  border-color: rgba(255, 185, 0, 0.36);
  background: #fff8e8;
  color: #8a6500;
}

.sync-pill.offline {
  border-color: rgba(216, 59, 1, 0.22);
  background: #fff7f4;
  color: var(--red);
}

.composer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.composer-tags button {
  cursor: pointer;
}

.composer-ai-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.markdown-preview-panel {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.92), #fff);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.markdown-preview-panel[hidden] {
  display: none;
}

.markdown-preview-panel h3,
.markdown-preview-panel p {
  margin: 0;
}

.markdown-preview-panel ul {
  margin: 0;
  padding-left: 18px;
}

.markdown-preview-panel .article-code {
  margin: 0;
}

.ai-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 156px);
}

.conversation-list,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.95));
  box-shadow: var(--shadow-soft);
}

.conversation-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
}

.conversation-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(246, 249, 252, 0.86);
  color: var(--muted);
  font-weight: 700;
}

.conversation-item.active {
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.12), rgba(80, 230, 255, 0.16)),
    var(--surface-strong);
  color: var(--blue-strong);
}

.conversation-item > button:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-radius: 6px;
  padding: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.conversation-item strong,
.conversation-item span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.conversation-delete {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(216, 59, 1, 0.08);
  color: var(--red);
  font-size: 18px;
  line-height: 1;
}

.conversation-delete:hover {
  background: rgba(216, 59, 1, 0.15);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 620px;
}

.chat-head,
.chat-input {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.chat-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.chat-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.prompt-starters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 0;
}

.prompt-starters button {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(80, 230, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 248, 255, 0.92));
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.prompt-starters button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.34);
  box-shadow: 0 12px 28px rgba(0, 32, 80, 0.08);
}

.prompt-starters span {
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-starters strong {
  color: var(--ink);
  font-size: 13px;
}

.chat-input {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.messages {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.message {
  display: grid;
  gap: 6px;
  max-width: min(720px, 88%);
}

.message p {
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(0, 45, 85, 0.05);
}

.message.user {
  justify-self: end;
}

.message.user p {
  border-color: rgba(0, 120, 212, 0.22);
  background: linear-gradient(135deg, var(--blue), #0b63ce);
  color: #fff;
}

.bubble {
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface-soft);
  line-height: 1.7;
}

.message.user .bubble {
  background: var(--blue);
  color: #fff;
}

.ai-prose {
  display: grid;
  gap: 10px;
  max-width: 100%;
  color: var(--ink);
}

.ai-prose h3,
.ai-prose h4 {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.35;
}

.ai-prose h3 {
  font-size: 18px;
}

.ai-prose h4 {
  font-size: 16px;
}

.ai-prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.ai-prose ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.75;
}

.ai-prose li::marker {
  color: var(--blue-strong);
}

.ai-prose strong {
  color: var(--ink);
}

.ai-prose a {
  color: var(--blue-strong);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ai-prose code {
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 6px;
  padding: 1px 5px;
  background: rgba(0, 120, 212, 0.06);
  color: #12304d;
  font-size: 0.92em;
}

.ai-prose pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(0, 120, 212, 0.13);
  border-radius: 12px;
  padding: 12px;
  background: #f7fbff;
}

.ai-prose pre code {
  border: 0;
  padding: 0;
  background: transparent;
  white-space: pre;
}

.message small {
  color: var(--muted);
}

.message-source {
  justify-self: start;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-weight: 800;
}

.chat-form {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.chat-options {
  display: grid;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.toggle-row input {
  width: auto;
  min-height: 0;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.competition-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.competition-overview article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 230, 255, 0.18), transparent 34%),
    var(--surface);
}

.competition-overview span,
.competition-overview small {
  color: var(--muted);
}

.competition-overview strong {
  color: var(--blue-strong);
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.competition-intelligence {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-bottom: 18px;
}

.competition-insight-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.1), transparent 30%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.calendar-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 120, 212, 0.1), transparent 28%),
    linear-gradient(180deg, #fff, #f7fbff);
}

.reminder-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 185, 0, 0.16), transparent 30%),
    #fff;
}

.insight-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.insight-head h3 {
  margin: 0;
}

.calendar-list {
  display: grid;
  gap: 8px;
}

.calendar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.1);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(248, 252, 255, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.calendar-row:hover {
  transform: translateX(3px);
  border-color: rgba(0, 120, 212, 0.28);
  background: #fff;
}

.calendar-row.urgent {
  border-color: rgba(216, 59, 1, 0.24);
  background: #fff7f4;
}

.calendar-row.soon {
  border-color: rgba(255, 185, 0, 0.36);
  background: #fffaf0;
}

.calendar-row span,
.calendar-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.calendar-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-row.urgent em,
.calendar-row.urgent span {
  color: var(--red);
}

.reminder-row {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 120, 212, 0.1);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(248, 252, 255, 0.82);
}

.reminder-row.urgent {
  border-color: rgba(216, 59, 1, 0.22);
  background: #fff7f4;
}

.reminder-row span {
  color: var(--muted);
  font-size: 13px;
}

.crawler-stats,
.source-trust-grid {
  display: grid;
  gap: 8px;
}

.crawler-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crawler-stats span,
.source-trust-grid span {
  border: 1px solid rgba(0, 120, 212, 0.1);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(248, 252, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.crawler-stats strong {
  display: block;
  color: var(--blue-strong);
  font-size: 22px;
}

.source-trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.competition-card {
  min-height: 244px;
}

.competition-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 900;
}

.competition-topline span {
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
}

.competition-topline .deadline-pill.urgent {
  background: #fde7e9;
  color: var(--red);
}

.competition-topline .deadline-pill.soon {
  background: #fff4ce;
  color: #8a6500;
}

.competition-topline .deadline-pill.ended {
  background: #eef2f7;
  color: var(--muted);
}

.competition-topline .source-pill.official {
  background: #e7f6e7;
  color: var(--green);
}

.competition-topline .source-pill.github {
  background: #eef2ff;
  color: #3740a1;
}

.competition-topline .source-pill.platform {
  background: #e8f3ff;
  color: var(--blue-strong);
}

.competition-topline .source-pill.manual {
  background: #fff4ce;
  color: #8a6500;
}

.timeline {
  display: grid;
  gap: 10px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

.timeline div {
  position: relative;
}

.timeline div::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.competition-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competition-stats span {
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.challenge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.algorithm-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.algorithm-overview article {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 88% 8%, rgba(80, 230, 255, 0.14), transparent 32%),
    var(--surface);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.algorithm-overview article:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 120, 212, 0.26);
  box-shadow: 0 16px 30px rgba(0, 120, 212, 0.1);
}

.algorithm-overview span,
.algorithm-overview small {
  color: var(--muted);
  font-size: 13px;
}

.algorithm-overview strong {
  color: var(--blue-strong);
  font-size: 26px;
  line-height: 1;
}

.algorithm-switcher {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.algorithm-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.algorithm-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.algorithm-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.24);
  box-shadow: 0 14px 26px rgba(0, 120, 212, 0.08);
}

.algorithm-tab span {
  color: var(--ink);
  font-weight: 900;
}

.algorithm-tab small {
  color: var(--muted);
  font-weight: 700;
}

.algorithm-tab.active {
  border-color: rgba(0, 120, 212, 0.34);
  background:
    radial-gradient(circle at 90% 8%, rgba(80, 230, 255, 0.18), transparent 34%),
    #f7fbff;
  box-shadow: 0 10px 24px rgba(0, 120, 212, 0.1);
}

.challenge-panel,
.oj-panel,
.code-panel,
.solution-panel,
.submission-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}

.challenge-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.challenge-overview span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(80, 230, 255, 0.14), transparent 34%),
    var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.challenge-overview strong {
  color: var(--blue-strong);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.oj-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 120, 212, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.08), transparent 38%),
    var(--surface);
}

.oj-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.oj-panel .direction-top p,
.code-panel .direction-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.oj-panel textarea {
  min-height: 190px;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  line-height: 1.55;
}

.judge-workbench {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 120, 212, 0.2);
  background:
    linear-gradient(180deg, rgba(0, 120, 212, 0.06), transparent 34%),
    var(--surface);
}

.judge-workbench::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.judge-workbench textarea {
  min-height: 420px;
  resize: vertical;
  border-color: rgba(0, 120, 212, 0.2);
  background:
    linear-gradient(90deg, rgba(0, 120, 212, 0.045), transparent 20px),
    #fbfdff;
  color: #102033;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  tab-size: 2;
  caret-color: var(--blue);
  letter-spacing: 0;
  white-space: pre;
  overflow: auto;
}

.judge-workbench textarea:focus {
  border-color: rgba(0, 120, 212, 0.48);
  box-shadow:
    0 0 0 3px rgba(0, 120, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.draft-hint,
.judge-retain-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.runtime-hint {
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.runtime-hint.ready {
  border-color: rgba(16, 124, 16, 0.18);
  background: #f2fbf4;
  color: var(--green);
}

.runtime-hint.failed {
  border-color: rgba(216, 59, 1, 0.2);
  background: #fff7f4;
  color: var(--red);
}

.oj-result {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.oj-result > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.oj-result strong {
  color: var(--ink);
}

.oj-result p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.oj-result.accepted {
  border-color: rgba(16, 124, 16, 0.24);
  background: #f2fbf4;
}

.oj-result.partial {
  border-color: rgba(255, 185, 0, 0.36);
  background: #fff9e8;
}

.oj-result.failed {
  border-color: rgba(216, 59, 1, 0.22);
  background: #fff7f4;
}

.oj-result.muted {
  background: var(--surface-soft);
}

.oj-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oj-cases span {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.oj-cases small,
.judge-case-detail {
  flex-basis: 100%;
  border: 1px dashed rgba(216, 59, 1, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.judge-case-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
}

.judge-case-detail b {
  color: var(--red);
}

.judge-value {
  display: block;
  overflow: auto;
  max-height: 180px;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  color: #263246;
  white-space: pre-wrap;
  word-break: break-word;
}

.oj-cases .passed {
  background: rgba(16, 124, 16, 0.1);
  color: var(--green);
}

.oj-cases .failed {
  background: rgba(216, 59, 1, 0.1);
  color: var(--red);
}

.submission-panel {
  gap: 14px;
}

.submission-panel .direction-top p {
  font-size: 13px;
}

.submission-list {
  display: grid;
  gap: 10px;
}

.submission-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.submission-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.submission-item span {
  color: var(--muted);
  font-size: 13px;
}

.submission-item code {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  color: #263246;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recent-submissions {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.recent-submission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.recent-submission-row strong {
  color: var(--blue-strong);
}

.submission-history {
  display: grid;
  gap: 18px;
}

.submission-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.submission-summary article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(80, 230, 255, 0.14), transparent 34%),
    var(--surface);
}

.submission-summary span,
.submission-summary small {
  color: var(--muted);
  font-size: 13px;
}

.submission-summary strong {
  color: var(--blue-strong);
  font-size: 26px;
  line-height: 1;
}

.submission-history-list {
  display: grid;
  gap: 14px;
}

.submission-history-item {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.submission-history-item.done {
  border-color: rgba(16, 124, 16, 0.18);
}

.submission-history-item.partial {
  border-color: rgba(255, 185, 0, 0.26);
}

.submission-history-item.failed {
  border-color: rgba(216, 59, 1, 0.18);
}

.submission-history-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.submission-history-head h3 {
  margin: 4px 0;
  font-size: 22px;
}

.submission-history-head p,
.submission-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.submission-verdict {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 116px;
}

.submission-verdict strong {
  color: var(--ink);
}

.submission-verdict small {
  color: var(--muted);
  font-weight: 800;
}

.submission-case-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.submission-case-overview span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.submission-detail,
.submission-code {
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.submission-detail summary,
.submission-code summary {
  color: var(--blue-strong);
  cursor: pointer;
  font-weight: 900;
}

.submission-cases {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.submission-case {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.submission-case.failed {
  border-color: rgba(216, 59, 1, 0.22);
  background: #fff7f4;
}

.submission-case.passed {
  border-color: rgba(16, 124, 16, 0.18);
  background: #f2fbf4;
}

.submission-case > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.submission-case span {
  color: var(--muted);
  font-size: 13px;
}

.submission-case dl {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
}

.submission-case dt {
  color: var(--muted);
  font-weight: 900;
}

.submission-case dd {
  margin: 0;
  min-width: 0;
}

.submission-case code,
.submission-case .judge-value,
.submission-code code {
  display: block;
  overflow: auto;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  color: #263246;
  white-space: pre-wrap;
}

.submission-code pre {
  margin: 12px 0 0;
}

.solution-content {
  display: grid;
  gap: 10px;
}

.solution-content h3,
.solution-content p,
.solution-content ul {
  margin: 0;
}

.solution-content ul {
  padding-left: 20px;
}

.algorithm-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 18px;
  align-items: start;
}

.oj-workspace-board {
  grid-template-columns: 1fr;
}

.problem-list-drawer {
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.problem-list-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.problem-list-drawer summary::-webkit-details-marker {
  display: none;
}

.problem-list-drawer summary span {
  display: grid;
  gap: 4px;
}

.problem-list-drawer summary strong {
  color: var(--ink);
  font-size: 17px;
}

.problem-list-drawer summary small {
  color: var(--muted);
  line-height: 1.45;
}

.problem-list-drawer summary em {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.problem-list-content {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.problem-bank-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.problem-bank-summary article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 96% 0%, rgba(80, 230, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.82);
}

.problem-bank-summary span,
.problem-bank-summary small {
  color: var(--muted);
  font-size: 12px;
}

.problem-bank-summary strong {
  color: var(--blue-strong);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.problem-filter-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed rgba(0, 120, 212, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.problem-filter-summary span {
  color: var(--blue-strong);
  font-weight: 900;
}

.problem-filter-summary .btn {
  min-height: 32px;
  padding: 0 10px;
}

.problem-reading-panel {
  min-height: calc(100vh - 160px);
}

.problem-table-panel,
.selected-problem-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.problem-table-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.table-toolbar {
  margin-bottom: 0;
}

.problem-table-wrap {
  overflow: auto;
  max-height: 650px;
  border: 1px solid rgba(0, 120, 212, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.problem-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.problem-table th,
.problem-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.problem-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, #fbfdff, #f2f8ff);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.problem-table tr:last-child td {
  border-bottom: 0;
}

.problem-table tbody tr {
  transition:
    background 0.14s ease,
    box-shadow 0.14s ease;
}

.problem-table tbody tr:hover td {
  background: rgba(0, 120, 212, 0.035);
}

.problem-table tr.active td {
  background: rgba(0, 120, 212, 0.06);
}

.problem-table tr.active td:first-child {
  box-shadow: inset 3px 0 0 var(--blue);
}

.algorithm-topic-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 30%),
    #fff;
}

.algorithm-topic-head,
.algorithm-topic-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.algorithm-topic-head strong,
.algorithm-topic-group-head strong {
  font-size: 15px;
}

.algorithm-topic-head span,
.algorithm-topic-group-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.algorithm-topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.algorithm-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.algorithm-topic:hover,
.algorithm-topic.active {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.36);
  background: var(--surface-strong);
  color: var(--blue-strong);
}

.algorithm-topic small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--blue-strong);
  font-size: 12px;
}

.algorithm-grouped-list {
  display: grid;
  gap: 14px;
}

.algorithm-topic-group {
  display: grid;
  gap: 10px;
}

.algorithm-topic-group .problem-table-wrap {
  max-height: 420px;
}

.table-title-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue-strong);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(0, 120, 212, 0.18);
  text-underline-offset: 3px;
}

.table-title-button:hover {
  color: var(--blue);
  text-decoration-color: rgba(0, 120, 212, 0.5);
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.completion-mark {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(102, 112, 133, 0.22);
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 11px;
  font-weight: 900;
}

.completion-mark.done {
  border-color: rgba(16, 124, 16, 0.28);
  background: rgba(16, 124, 16, 0.1);
  color: var(--green);
}

.completion-mark.partial {
  border-color: rgba(255, 185, 0, 0.34);
  background: rgba(255, 185, 0, 0.14);
  color: #8a5a00;
}

.completion-mark.failed {
  border-color: rgba(216, 59, 1, 0.28);
  background: rgba(216, 59, 1, 0.1);
  color: var(--red);
}

.result-choice {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.result-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.result-choice input {
  width: 16px;
  min-height: 16px;
}

.selected-problem-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 18px;
}

.selected-problem-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.selected-problem-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.selected-status-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-soft);
}

.selected-status-row small {
  color: var(--muted);
}

.problem-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.06), rgba(80, 230, 255, 0.08)),
    var(--surface);
}

.problem-pager span {
  color: var(--blue-strong);
  font-weight: 900;
  white-space: nowrap;
}

.problem-pager .btn {
  min-height: 36px;
  padding: 0 14px;
}

.problem-pager .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.problem-detail-drawer {
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.problem-detail-drawer summary {
  color: var(--blue-strong);
  cursor: pointer;
  font-weight: 900;
}

.problem-detail-drawer[open] {
  display: grid;
  gap: 12px;
}

.practice-bank {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.section-head.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head.compact p {
  max-width: 720px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.practice-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.practice-card.active {
  border-color: rgba(0, 120, 212, 0.4);
  box-shadow: 0 14px 34px rgba(0, 120, 212, 0.12);
}

.practice-card-top,
.practice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.practice-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.practice-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 63px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.practice-meta {
  color: var(--muted);
  font-size: 13px;
}

.problem-block {
  display: grid;
  gap: 10px;
}

pre {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0;
  padding: 14px;
  background: #f4f7fb;
  color: #263246;
  line-height: 1.65;
}

code {
  font-family: "Cascadia Code", "Consolas", monospace;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.knowledge-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.knowledge-feature,
.knowledge-metrics article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.knowledge-feature {
  display: grid;
  gap: 12px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(80, 230, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #ffffff, #f3f9ff);
}

.knowledge-feature h2 {
  margin: 0;
}

.knowledge-feature p {
  margin: 0;
  color: var(--muted);
}

.knowledge-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.publisher-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.publisher-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.publisher-badge span {
  color: var(--muted);
}

.publisher-badge strong {
  color: var(--blue-strong);
}

.publisher-badge.gold {
  border-color: rgba(181, 126, 22, 0.42);
  background:
    linear-gradient(135deg, #fff7d6 0%, #d8a73a 45%, #fff0ad 58%, #9b6816 100%);
  color: #4a2b03;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 18px rgba(157, 103, 14, 0.16);
}

.publisher-badge.gold span,
.publisher-badge.gold strong {
  color: #3b2404;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.publisher-badge .member-title {
  margin-left: 2px;
  color: var(--blue-strong);
}

.publisher-badge.gold .member-title {
  color: #7a4c05;
  text-shadow: none;
}

.knowledge-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-metrics article {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.knowledge-metrics strong {
  color: var(--blue-strong);
  font-size: 24px;
}

.knowledge-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.freshman-c-path {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(80, 230, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #f5fbff);
}

.freshman-c-path-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.freshman-c-path-head h2,
.freshman-c-path-head p {
  margin: 0;
}

.freshman-c-path-head h2 {
  margin-top: 4px;
}

.freshman-c-path-head p {
  margin-top: 6px;
  color: var(--muted);
}

.path-progress {
  display: grid;
  place-items: center;
  min-width: 120px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  text-align: center;
}

.path-progress strong {
  color: var(--blue-strong);
  font-size: 24px;
}

.freshman-c-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.freshman-c-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.freshman-c-step:hover {
  border-color: rgba(0, 120, 212, 0.34);
  background: var(--surface-strong);
}

.freshman-c-step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.freshman-c-step strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.freshman-c-step small {
  color: var(--muted);
}

.knowledge-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(80, 230, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow: 0 18px 42px rgba(0, 35, 70, 0.06);
}

.knowledge-nav a {
  display: grid;
  gap: 4px;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
}

.knowledge-nav a.active,
.knowledge-nav a:hover {
  background: var(--surface-strong);
  color: var(--blue-strong);
}

.knowledge-submit-panel {
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  margin-bottom: 18px;
  background: var(--surface);
  overflow: hidden;
}

.knowledge-submit-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.knowledge-submit-panel summary::-webkit-details-marker {
  display: none;
}

.knowledge-submit-panel summary span {
  display: grid;
  gap: 4px;
}

.knowledge-submit-panel summary strong {
  color: var(--ink);
  font-size: 17px;
}

.knowledge-submit-panel summary small {
  color: var(--muted);
}

.knowledge-submit-panel summary b {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(216, 167, 58, 0.16);
  color: #8a5a0a;
  font-size: 12px;
}

.knowledge-submit-form {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.knowledge-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-search-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.knowledge-search-panel label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.knowledge-search-panel small {
  color: var(--muted);
}

.knowledge-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.knowledge-search-box .btn {
  min-height: 40px;
  padding: 0 12px;
}

.knowledge-search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.knowledge-search-hints .filter {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.knowledge-direction-stats {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.knowledge-direction-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.knowledge-direction-stats strong {
  color: var(--blue-strong);
  font-size: 16px;
}

.knowledge-sidebar-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.knowledge-sidebar-card strong {
  color: var(--ink);
  font-size: 15px;
}

.knowledge-sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.knowledge-sidebar-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: guide-step;
  list-style: none;
}

.knowledge-sidebar-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.knowledge-sidebar-card li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--blue-strong);
  font-size: 12px;
}

.knowledge-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-tag-cloud button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.knowledge-tag-cloud button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.34);
  background: var(--surface-strong);
}

.knowledge-tag-cloud span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.11);
  color: var(--muted);
  font-size: 11px;
}

.knowledge-sidebar-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(16, 124, 16, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(16, 124, 16, 0.12), transparent 30%),
    #f7fcf7;
}

.knowledge-sidebar-note span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(16, 124, 16, 0.08);
}

.knowledge-sidebar-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.knowledge-card {
  align-content: start;
  gap: 11px;
  min-height: 100%;
  padding: 18px;
  cursor: pointer;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #fff, #fbfdff);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.knowledge-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 212, 0.28);
  box-shadow: 0 16px 34px rgba(0, 35, 70, 0.08);
}

.freshman-course-card {
  border-color: rgba(0, 120, 212, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 185, 0, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(0, 120, 212, 0.06), transparent 42%),
    #fff;
}

.course-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 120, 212, 0.1);
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.course-card-head span {
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--blue);
  color: #fff;
  letter-spacing: 0;
}

.knowledge-card .meta-row {
  align-items: center;
}

.knowledge-card .meta-row .btn,
.knowledge-actions .btn {
  min-height: 34px;
  padding: 0 12px;
}

.knowledge-card .meta-row .btn:first-of-type,
.knowledge-actions .btn:first-child {
  border-color: rgba(0, 120, 212, 0.24);
  background: var(--surface-strong);
  color: var(--blue-strong);
}

.knowledge-card .direction-top {
  align-items: flex-start;
}

.knowledge-card .direction-top h3 {
  margin: 0;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.35;
}

.knowledge-card .direction-top .badge {
  flex: 0 0 auto;
}

.knowledge-summary {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.knowledge-card .tag-row {
  gap: 7px;
}

.knowledge-card .badge {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 12px;
}

.knowledge-card-foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 120, 212, 0.1);
  padding-top: 12px;
}

.knowledge-card-foot > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-stats span {
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
}

.leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.leaderboard-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.leaderboard-overview article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 230, 255, 0.18), transparent 34%),
    var(--surface);
}

.leaderboard-overview span,
.leaderboard-overview small {
  color: var(--muted);
}

.leaderboard-overview strong {
  color: var(--blue-strong);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.leader-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
}

.leader-row.rank-1,
.leader-row.rank-2,
.leader-row.rank-3 {
  border-color: rgba(0, 120, 212, 0.2);
  background:
    radial-gradient(circle at 98% 0%, rgba(80, 230, 255, 0.14), transparent 28%),
    var(--surface);
}

.leader-row.rank-1 .rank-number {
  background: linear-gradient(135deg, #ffe9a3, #ffb900);
  color: #5b3b00;
}

.leader-row.rank-2 .rank-number {
  background: linear-gradient(135deg, #f2f4f7, #c7d7e8);
  color: #344054;
}

.leader-row.rank-3 .rank-number {
  background: linear-gradient(135deg, #ffe0c2, #d97706);
  color: #4a2500;
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-weight: 800;
}

.my-rank-card {
  display: grid;
  gap: 14px;
}

.my-rank-hero {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(80, 230, 255, 0.2), transparent 32%),
    var(--surface-soft);
}

.my-rank-hero span {
  color: var(--blue-strong);
  font-weight: 900;
}

.my-rank-hero strong {
  color: var(--ink);
  font-size: 34px;
}

.my-rank-hero small {
  color: var(--muted);
}

.my-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.my-rank-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  background: var(--surface);
}

.my-rank-grid strong {
  color: var(--blue-strong);
  font-size: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 88% 0%, rgba(80, 230, 255, 0.14), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-metric strong {
  display: block;
  color: var(--blue-strong);
  font-size: 24px;
}

.admin-jump-nav {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 35, 70, 0.08);
  backdrop-filter: blur(16px);
}

.admin-jump-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-jump-nav a:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.admin-jump-nav a.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

#admin-overview,
#admin-ops,
#admin-create,
#admin-members,
#admin-review,
#admin-reports,
#admin-sources {
  scroll-margin-top: 136px;
}

.admin-ops-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(280px, 0.8fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  margin: 18px 0;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 255, 0.92));
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-job-status {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.job-running,
.job-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(248, 252, 255, 0.86);
}

.job-running span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 120, 212, 0.12);
  animation: live-pulse 1.1s ease-in-out infinite;
}

.job-running small,
.job-result small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.job-result.success {
  border-color: rgba(16, 124, 16, 0.18);
  background: #f3fbf3;
}

.job-result span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.job-log-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.job-log-strip span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 120, 212, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.job-log-strip strong {
  margin-right: 6px;
  color: var(--blue-strong);
}

.admin-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-data-card,
.admin-create-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.95));
  box-shadow: var(--shadow-soft);
}

.admin-data-card.wide,
.admin-create-card.wide {
  grid-column: 1 / -1;
}

.admin-create-card {
  align-content: start;
  background:
    radial-gradient(circle at 96% 0%, rgba(80, 230, 255, 0.14), transparent 24%),
    var(--surface);
}

.admin-create-card textarea {
  min-height: 92px;
}

.admin-create-card.wide textarea {
  min-height: 104px;
}

.admin-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-section-head code {
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-size: 0.92em;
}

.admin-list-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.admin-list-toolbar label {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-list-toolbar input {
  min-width: min(320px, 100%);
  flex: 1 1 320px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions .btn {
  min-height: 34px;
  padding: 0 12px;
}

.admin-content-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.admin-content-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-weight: 900;
}

.admin-content-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-content-thumb.empty {
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.08), rgba(80, 230, 255, 0.16)),
    var(--surface-soft);
}

.admin-content-preview strong,
.admin-content-preview p {
  display: block;
  min-width: 0;
}

.admin-content-preview p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.admin-content-meta span {
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 800;
}

.ai-risk-hint {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 120, 212, 0.06);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.ai-risk-hint.green {
  border-color: rgba(16, 124, 16, 0.18);
  background: #e7f6e7;
  color: var(--green);
}

.ai-risk-hint.yellow {
  border-color: rgba(255, 185, 0, 0.28);
  background: #fff4ce;
  color: #8a6500;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.audit-filter-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-strong);
  font-size: 13px;
}

.audit-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.audit-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
}

.audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-head strong {
  color: var(--ink);
}

.audit-head span,
.audit-item p,
.audit-item small {
  color: var(--muted);
  font-size: 12px;
}

.audit-item p {
  margin-top: 4px;
}

.audit-item small {
  display: block;
  margin-top: 6px;
  word-break: break-word;
}

.source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-summary span {
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-soft);
  color: var(--muted);
}

.source-summary strong {
  margin-right: 6px;
  color: var(--blue-strong);
  font-size: 20px;
}

.table-link {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  color: var(--blue-strong);
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.table-control {
  width: 100%;
  min-width: 132px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.table-control.mini {
  min-width: 86px;
}

td span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 45, 85, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead {
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.92), rgba(247, 251, 255, 0.92));
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: rgba(237, 245, 255, 0.42);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  text-align: center;
  color: var(--muted);
}

.empty-state::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.72;
}

.empty-state h3 {
  color: var(--ink);
  margin-bottom: 6px;
}

.empty-state.compact {
  padding: 16px;
}

.empty-state.compact::before {
  display: none;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(circle at 82% 12%, rgba(80, 230, 255, 0.12), transparent 28%),
    rgba(16, 24, 40, 0.32);
  backdrop-filter: blur(8px);
}

.detail-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 61;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(720px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(0, 120, 212, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(0, 35, 70, 0.24);
  animation: drawer-enter 0.18s ease both;
}

.detail-drawer.reader-fullscreen {
  inset: 14px;
  width: auto;
  border-color: rgba(0, 120, 212, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.98);
}

.reader-fullscreen .detail-head {
  padding: 20px clamp(20px, 5vw, 72px);
}

.reader-fullscreen .detail-body {
  width: min(1040px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.reader-fullscreen .detail-summary {
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  background: var(--surface-soft);
  font-size: 17px;
  line-height: 1.8;
}

.detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(80, 230, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #ffffff, #f3f9ff);
}

.detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 22px;
}

.detail-summary {
  border-left: 3px solid rgba(0, 120, 212, 0.5);
  padding-left: 14px;
  color: var(--ink);
  font-size: 16px;
}

.detail-cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-stats span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  color: var(--muted);
  font-size: 13px;
}

.detail-stats strong {
  color: var(--blue-strong);
  font-size: 22px;
}

.detail-content-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.14), transparent 34%),
    var(--surface-soft);
}

.detail-content-block h3 {
  margin: 0;
  color: var(--blue-strong);
}

.detail-content-block p {
  margin: 0;
  white-space: pre-wrap;
}

.article-reader {
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff, #f6fbff);
}

.article-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.article-reader h3 {
  margin: 6px 0 0;
  font-size: 18px;
}

.article-reader p {
  color: var(--ink);
  line-height: 1.85;
  white-space: pre-wrap;
}

.article-reader ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.article-reader li {
  line-height: 1.75;
}

.article-code {
  position: relative;
  overflow: auto;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 8px;
  margin: 0;
  padding: 16px;
  background: #111827;
  color: #e5f3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.article-code::before {
  content: attr(data-language);
  display: block;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-code code {
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.detail-meta-grid strong {
  color: var(--blue-strong);
}

.detail-meta-grid span {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.detail-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.detail-comments {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.comment-item span {
  color: var(--muted);
  font-size: 13px;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.profile-hero-card,
.profile-side .info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-hero-card {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  border-color: rgba(0, 120, 212, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 185, 0, 0.16), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(80, 230, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #ffffff, #f0f7ff);
  box-shadow: 0 18px 42px rgba(0, 120, 212, 0.1);
}

.profile-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 32%),
    radial-gradient(circle, rgba(0, 120, 212, 0.14), transparent 64%);
  pointer-events: none;
}

.profile-hero-card > * {
  position: relative;
  z-index: 1;
}

.profile-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.profile-title-line small {
  color: var(--muted);
  font-weight: 800;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-score {
  display: grid;
  place-items: center;
  min-width: 88px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 26px rgba(0, 120, 212, 0.08);
}

.profile-score strong {
  color: var(--blue-strong);
  font-size: 30px;
}

.profile-insights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.profile-insights article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.16), transparent 32%),
    var(--surface);
}

.profile-insights span,
.profile-insights small {
  color: var(--muted);
}

.profile-insights strong {
  color: var(--blue-strong);
  font-size: 22px;
}

.mini-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.12);
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.member-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 30px;
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 999px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  color: var(--blue-strong);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 120, 212, 0.08);
  isolation: isolate;
}

.member-title i {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(0, 120, 212, 0.08);
  font-size: 11px;
  font-style: normal;
}

.member-title strong {
  font-size: 13px;
}

.member-title.featured {
  border-color: rgba(186, 127, 24, 0.34);
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.72) 28%, transparent 46%),
    linear-gradient(135deg, rgba(255, 242, 180, 0.88), rgba(219, 160, 45, 0.34)),
    #fffaf0;
  color: #7a4c05;
  box-shadow: 0 12px 28px rgba(186, 127, 24, 0.2);
}

.member-title.featured i {
  background: rgba(122, 76, 5, 0.12);
}

.member-title.locked {
  border-style: dashed;
  background: var(--surface-soft);
  color: var(--muted);
  box-shadow: none;
}

.member-title.role-badge {
  border-color: rgba(0, 120, 212, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.2), transparent 52%),
    linear-gradient(135deg, #f7fbff, #fff);
}

.member-title.mini {
  min-height: 26px;
  gap: 5px;
  padding: 4px 9px;
  font-size: 12px;
}

.member-title.mini i {
  padding: 1px 6px;
  font-size: 10px;
}

.member-title.mini strong {
  font-size: 12px;
}

.member-title.tiny {
  min-height: 22px;
  gap: 4px;
  padding: 2px 7px;
  font-size: 11px;
  box-shadow: 0 5px 12px rgba(0, 120, 212, 0.06);
  vertical-align: middle;
}

.member-title.tiny i {
  padding: 1px 5px;
  font-size: 9px;
}

.member-title.tiny strong {
  font-size: 11px;
}

.name-with-title,
.rank-member-name,
.direct-contact strong,
.direct-title strong,
.comment-item strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.mini-user .member-title {
  margin-top: 6px;
}

.topbar-actions .member-title {
  max-width: 180px;
  white-space: nowrap;
}

.profile-layout > .title-system-panel {
  grid-column: 1 / -1;
}

.title-system-panel {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 4%, rgba(255, 185, 0, 0.1), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(80, 230, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 16px 36px rgba(0, 120, 212, 0.08);
}

.title-system-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #f2c94c);
}

.title-system-panel > * {
  position: relative;
  z-index: 1;
}

.title-system-panel.compact {
  padding: 16px;
  margin-bottom: 2px;
}

.title-system-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.title-system-head h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 22px;
}

.title-system-head p,
.title-sync-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.title-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.title-stat-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.title-stat-grid span,
.title-stat-grid small {
  color: var(--muted);
  font-size: 12px;
}

.title-stat-grid strong {
  color: var(--blue-strong);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.title-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.title-progress {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.12);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.title-progress i {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #f2c94c);
  box-shadow: 0 0 18px rgba(80, 230, 255, 0.35);
}

.title-progress b {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -50%);
}

.title-progress b.unlocked {
  background: #f2c94c;
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.18);
}

.title-progress-row strong {
  color: var(--blue-strong);
  font-size: 14px;
}

.title-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.title-token {
  position: relative;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.title-token:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 120, 212, 0.09);
}

.title-token-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.title-token span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.title-token em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.title-token strong {
  color: var(--ink);
  font-size: 18px;
}

.title-token small,
.title-token p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.title-token.unlocked {
  border-color: rgba(16, 124, 16, 0.18);
  background: #f2fbf4;
}

.title-token.unlocked span {
  background: rgba(16, 124, 16, 0.1);
  color: var(--green);
}

.title-token.featured {
  border-color: rgba(186, 127, 24, 0.28);
  background:
    linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.72) 36%, transparent 52%),
    radial-gradient(circle at 92% 6%, rgba(255, 236, 150, 0.46), transparent 34%),
    #fffdf5;
}

.title-token.featured::after {
  content: "MASTER";
  position: absolute;
  right: -24px;
  top: 16px;
  width: 108px;
  padding: 4px 0;
  background: rgba(186, 127, 24, 0.14);
  color: #8a5a0a;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
  transform: rotate(34deg);
}

.title-token.featured.unlocked {
  box-shadow: 0 12px 28px rgba(186, 127, 24, 0.14);
}

.medal-celebration {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 236, 150, 0.24), transparent 28%),
    rgba(10, 18, 32, 0.42);
  backdrop-filter: blur(10px);
  animation: medal-backdrop-in 0.22s ease both;
}

.medal-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid rgba(0, 120, 212, 0.22);
  border-radius: 8px;
  padding: 30px 26px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(80, 230, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: 0 34px 90px rgba(0, 20, 52, 0.34);
  text-align: center;
  animation: medal-card-pop 0.52s cubic-bezier(0.2, 1.15, 0.24, 1) both;
}

.medal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, 0.8) 38%, transparent 55%);
  transform: translateX(-120%);
  animation: medal-shine 1.7s ease 0.28s both;
  pointer-events: none;
}

.medal-card.featured {
  border-color: rgba(186, 127, 24, 0.36);
  background:
    radial-gradient(circle at 50% -4%, rgba(255, 236, 150, 0.48), transparent 34%),
    linear-gradient(180deg, #fffdf5, #fff8df);
}

.medal-aura {
  position: absolute;
  top: 28px;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 185, 0, 0.28), transparent 54%),
    radial-gradient(circle, rgba(80, 230, 255, 0.2), transparent 68%);
  animation: medal-aura-pulse 1.4s ease-in-out infinite;
}

.medal-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 4px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background:
    linear-gradient(135deg, #fff2b8, #d99f2f 55%, #8a5a0a),
    #f2c94c;
  color: #6b4200;
  box-shadow:
    0 18px 34px rgba(186, 127, 24, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.72);
  animation: medal-icon-pop 0.62s cubic-bezier(0.2, 1.2, 0.2, 1) both;
}

.medal-icon::before,
.medal-icon::after {
  content: "";
  position: absolute;
  top: 80px;
  width: 26px;
  height: 52px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, var(--blue), #0b63ce);
  z-index: -1;
}

.medal-icon::before {
  left: 28px;
  transform: rotate(16deg);
}

.medal-icon::after {
  right: 28px;
  transform: rotate(-16deg);
}

.medal-icon span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(122, 76, 5, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  font-size: 24px;
  font-weight: 1000;
}

.medal-icon i {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(122, 76, 5, 0.22);
  border-radius: 50%;
}

.medal-card h2 {
  font-size: 32px;
}

.medal-card strong {
  color: #7a4c05;
  font-size: 22px;
}

.medal-card p {
  max-width: 340px;
  line-height: 1.65;
}

.medal-card small {
  color: var(--muted);
  font-weight: 900;
}

.medal-progress-mini {
  overflow: hidden;
  width: min(280px, 100%);
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.12);
}

.medal-progress-mini b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #f2c94c);
  animation: medal-progress-glow 1.2s ease-in-out infinite;
}

.medal-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.medal-particles span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: hsl(var(--h), 86%, 58%);
  animation: medal-particle 1.2s ease-out both;
  animation-delay: var(--d);
  transform: rotate(var(--r));
}

@keyframes medal-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes medal-card-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }

  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.018);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes medal-icon-pop {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.52);
  }

  68% {
    opacity: 1;
    transform: rotate(4deg) scale(1.08);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes medal-aura-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes medal-shine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes medal-progress-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(242, 201, 76, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(242, 201, 76, 0.46);
  }
}

@keyframes medal-particle {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r)) scale(0.2);
  }

  20% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(calc(var(--r) + 150deg)) scale(1);
  }
}

.profile-form {
  width: 100%;
  justify-self: stretch;
}

.password-form small {
  color: var(--muted);
}

.profile-side {
  display: grid;
  gap: 18px;
}

.api-config-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.api-config-form .hero-actions {
  gap: 8px;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.doc-links .btn {
  min-height: 34px;
  padding: 0 12px;
}

.feedback-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.feedback-hero article,
.feedback-stats,
.feedback-guide article,
.feedback-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.feedback-hero article {
  display: grid;
  gap: 12px;
  padding: 26px;
}

.feedback-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
  line-height: 1.08;
}

.feedback-hero p,
.feedback-guide p,
.feedback-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feedback-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.feedback-stats span,
.feedback-admin-summary span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feedback-stats strong,
.feedback-admin-summary strong {
  color: var(--blue-strong);
  font-size: 26px;
  line-height: 1;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.feedback-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.feedback-form textarea {
  min-height: 170px;
}

.feedback-guide {
  display: grid;
  gap: 14px;
}

.feedback-guide article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.feedback-guide strong {
  color: var(--ink);
  font-size: 17px;
}

.feedback-history {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
}

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-item {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 120, 212, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.feedback-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--yellow);
}

.feedback-item.approved::before {
  background: var(--green);
}

.feedback-item.rejected::before {
  background: var(--red);
}

.feedback-item-head,
.feedback-meta,
.feedback-admin-actions,
.feedback-admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-item-head {
  justify-content: space-between;
}

.feedback-item-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.feedback-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feedback-reply {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(16, 124, 16, 0.13);
  border-radius: 10px;
  padding: 12px;
  background: #f6fbf6;
}

.feedback-reply strong {
  color: var(--green);
}

.feedback-admin-summary {
  margin-bottom: 12px;
}

.feedback-admin-summary span {
  min-width: 140px;
}

.profile-side .api-status {
  margin: 10px 0;
}

.diagnostic-card {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 0%, rgba(80, 230, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.92));
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 120, 212, 0.1);
}

.diagnostic-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.diagnostic-row span {
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.diagnostic-row small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.55;
}

.connection-checklist {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.connection-checklist span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.connection-checklist span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(102, 112, 133, 0.32);
}

.connection-checklist span.done {
  color: var(--ink);
  font-weight: 700;
}

.connection-checklist span.done::before {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.profile-side code,
.form-head code {
  border: 1px solid rgba(0, 120, 212, 0.16);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--surface-strong);
  color: var(--blue-strong);
  font-size: 0.92em;
}

.avatar-upload-panel {
  display: grid;
  gap: 12px;
}

.avatar-upload-preview {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 54, 112, 0.16);
  font-size: 34px;
  font-weight: 900;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-drop {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 116px;
  border: 1px dashed rgba(0, 120, 212, 0.36);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(80, 230, 255, 0.2), transparent 30%),
    var(--surface-soft);
  color: var(--blue-strong);
  cursor: pointer;
  text-align: center;
}

.upload-drop span {
  color: var(--blue-strong);
  font-size: 16px;
  font-weight: 800;
}

.upload-drop small {
  color: var(--muted);
}

.upload-drop input {
  width: auto;
  min-height: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.motion-tilt.motion-item {
  transform:
    perspective(920px)
    translateY(calc(var(--reveal-y, 0px) + var(--motion-lift, 0px)))
    scale(var(--reveal-scale, 1))
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
}

.motion-tilt.motion-item:hover {
  --motion-lift: -4px;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.not-found div {
  display: grid;
  gap: 16px;
}

.page-wust-home {
  min-width: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 91, 172, 0.1), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #f7fbff 46%, #ffffff 100%);
  color: #17191d;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Segoe UI",
    system-ui,
    sans-serif;
}

.page-wust-home section[id] {
  scroll-margin-top: 92px;
}

.page-wust-home .site-header {
  border-bottom: 1px solid rgba(20, 35, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(18, 42, 82, 0.05);
  backdrop-filter: blur(22px) saturate(1.4);
}

.page-wust-home .header-inner {
  min-height: 76px;
}

.wust-brand {
  gap: 12px;
  color: #17191d;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.wust-brand .logo-mark {
  width: 36px;
  height: 36px;
  border-color: rgba(17, 19, 24, 0.12);
  background: #111318;
  box-shadow:
    0 12px 28px rgba(17, 19, 24, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.wust-brand:hover .logo-mark,
.wust-brand:hover .wust-ms-logo {
  transform: translateY(-1px) scale(1.03);
}

.wust-ms-logo {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 3px;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.wust-ms-logo span {
  display: block;
  border-radius: 2px;
}

.wust-ms-logo span:nth-child(1) {
  background: #f25022;
}

.wust-ms-logo span:nth-child(2) {
  background: #7fba00;
}

.wust-ms-logo span:nth-child(3) {
  background: #00a4ef;
}

.wust-ms-logo span:nth-child(4) {
  background: #ffb900;
}

.wust-nav-links {
  gap: 2px;
}

.wust-nav-links a {
  color: rgba(23, 25, 29, 0.68);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.wust-nav-links a:hover {
  background: rgba(0, 91, 172, 0.07);
  color: #005bac;
}

.wust-oj-btn {
  min-height: 38px;
  border-color: rgba(0, 91, 172, 0.24);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.8);
  color: #005bac;
  box-shadow: none;
  white-space: nowrap;
}

.wust-oj-btn:hover {
  border-color: rgba(0, 91, 172, 0.42);
  background: rgba(234, 245, 255, 0.96);
  color: #004a8c;
  box-shadow: 0 12px 26px rgba(0, 91, 172, 0.12);
}

.wust-join-btn {
  min-height: 38px;
  border-color: #111318;
  border-radius: 999px;
  padding: 0 18px;
  background: #111318;
  color: #fff;
  box-shadow: 0 14px 26px rgba(17, 19, 24, 0.18);
}

.wust-join-btn:hover {
  border-color: #111318;
  background: #111318;
  box-shadow: 0 18px 34px rgba(17, 19, 24, 0.22);
}

.wust-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 58px;
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 91, 172, 0.16), transparent 31%),
    radial-gradient(circle at 92% 68%, rgba(80, 230, 255, 0.12), transparent 26%),
    linear-gradient(118deg, #fffdf8 0%, #fbfdff 52%, #eef7ff 100%);
  isolation: isolate;
}

.wust-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 91, 172, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 91, 172, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
  animation: wust-grid-drift 18s linear infinite;
}

.wust-hero::after {
  content: "";
  position: absolute;
  inset: 9% -12% 10% auto;
  width: 58%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 34%, rgba(80, 230, 255, 0.16), transparent 28%),
    radial-gradient(circle at 62% 58%, rgba(0, 91, 172, 0.12), transparent 34%);
  filter: blur(18px);
  opacity: 0.78;
  transform: translate3d(var(--wust-parallax-x, 0px), var(--wust-parallax-y, 0px), 0);
  pointer-events: none;
  animation: wust-aurora 10s ease-in-out infinite alternate;
}

.wust-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.86fr);
  align-items: center;
  gap: 74px;
  min-height: 540px;
}

.wust-hero-copy {
  display: grid;
  gap: 24px;
  max-width: 690px;
  -webkit-user-select: none;
  user-select: none;
}

.wust-eyebrow {
  color: #005bac;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wust-hero-copy h1 {
  margin: 0;
  color: #17191d;
  font-size: clamp(58px, 5.4vw, 82px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
  user-select: none;
}

.wust-hero-copy h1 span {
  display: inline-block;
  animation: wust-title-rise 0.86s cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.wust-hero-copy h1 .wust-headline-main {
  color: transparent;
  background: linear-gradient(112deg, #003f88 0%, #005bac 54%, #1b9cff 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    wust-title-rise 0.86s cubic-bezier(0.2, 0.82, 0.22, 1) both,
    wust-title-gradient 5.8s ease-in-out infinite;
}

.wust-headline-line {
  color: #17191d;
  white-space: nowrap;
  animation-delay: 0.08s;
}

.wust-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(23, 25, 29, 0.64);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.62;
}

.wust-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.wust-primary-btn,
.wust-outline-btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.wust-primary-btn::after,
.wust-outline-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 44%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.58s ease;
  pointer-events: none;
}

.wust-primary-btn:hover::after,
.wust-outline-btn:hover::after {
  transform: translateX(120%);
}

.wust-primary-btn {
  border-color: #005bac;
  background: linear-gradient(135deg, #005bac, #0878d8);
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 91, 172, 0.22);
}

.wust-primary-btn:hover {
  border-color: #005bac;
  background: linear-gradient(135deg, #004f9a, #006dc8);
  box-shadow: 0 22px 42px rgba(0, 91, 172, 0.25);
  transform: translateY(-2px);
}

.wust-outline-btn {
  border-color: rgba(0, 43, 84, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #17191d;
  backdrop-filter: blur(14px);
}

.wust-outline-btn:hover {
  border-color: rgba(0, 91, 172, 0.26);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

.wust-hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  transform:
    translate3d(calc(var(--wust-parallax-x, 0px) * -0.45), calc(var(--wust-parallax-y, 0px) * -0.45), 0);
  transition: transform 0.16s ease-out;
  will-change: transform;
}

.page-wust-home .wust-hero-visual.motion-item {
  transform:
    translateY(var(--reveal-y))
    scale(var(--reveal-scale))
    translate3d(calc(var(--wust-parallax-x, 0px) * -0.45), calc(var(--wust-parallax-y, 0px) * -0.45), 0);
}

.wust-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wust-hero-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 91, 172, 0.2);
  box-shadow: 0 0 0 8px rgba(0, 91, 172, 0.05);
  animation: wust-particle-float 6.4s ease-in-out infinite;
}

.wust-hero-particles span:nth-child(1) {
  left: 8%;
  top: 18%;
  background: rgba(242, 80, 34, 0.32);
}

.wust-hero-particles span:nth-child(2) {
  left: 78%;
  top: 18%;
  animation-delay: -1.2s;
}

.wust-hero-particles span:nth-child(3) {
  left: 34%;
  top: 72%;
  background: rgba(127, 186, 0, 0.3);
  animation-delay: -2.4s;
}

.wust-hero-particles span:nth-child(4) {
  left: 88%;
  top: 58%;
  background: rgba(255, 185, 0, 0.32);
  animation-delay: -3.6s;
}

.wust-hero-particles span:nth-child(5) {
  left: 18%;
  top: 46%;
  background: rgba(80, 230, 255, 0.36);
  animation-delay: -4.8s;
}

.wust-glass-sphere {
  position: absolute;
  top: 78px;
  right: 34px;
  width: 360px;
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 62% 58%, rgba(80, 230, 255, 0.26), transparent 29%),
    radial-gradient(circle at 38% 62%, rgba(0, 91, 172, 0.78), rgba(3, 40, 91, 0.88) 58%, rgba(3, 18, 43, 0.94) 100%);
  box-shadow:
    0 48px 90px rgba(0, 41, 92, 0.28),
    inset 28px 28px 52px rgba(255, 255, 255, 0.18),
    inset -30px -36px 68px rgba(0, 13, 38, 0.42);
  backdrop-filter: blur(18px);
  animation: wust-float 7s ease-in-out infinite;
}

.wust-glass-sphere::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.2) 48%, transparent 62%);
  transform: translateX(-52%) rotate(12deg);
  animation: wust-sphere-sweep 7.5s ease-in-out infinite;
}

.sphere-grid {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.52;
  transform: rotate(-14deg);
  animation: wust-sphere-grid 18s linear infinite;
}

.sphere-core {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #ffffff, rgba(80, 230, 255, 0.62) 28%, rgba(0, 91, 172, 0.1) 68%, transparent 72%);
  filter: blur(1px);
  opacity: 0.62;
  animation: wust-core-pulse 4.8s ease-in-out infinite;
}

.sphere-shine {
  position: absolute;
  left: 72px;
  top: 54px;
  width: 120px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(9px);
  transform: rotate(-22deg);
  animation: wust-shine-breathe 5.8s ease-in-out infinite;
}

.wust-orbit {
  position: absolute;
  top: 228px;
  right: -2px;
  width: 444px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.26),
    0 16px 46px rgba(0, 91, 172, 0.1);
  backdrop-filter: blur(7px);
  transform: rotate(var(--orbit-angle, -18deg)) translateY(var(--orbit-y, 0px));
  animation: wust-orbit-drift 8.6s ease-in-out infinite;
}

.wust-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: 74px;
  top: 14px;
  border-radius: 50%;
  background: #50e6ff;
  box-shadow: 0 0 0 8px rgba(80, 230, 255, 0.13);
  animation: wust-dot-pulse 2.6s ease-in-out infinite;
}

.orbit-two {
  top: 182px;
  right: 16px;
  width: 418px;
  height: 118px;
  border-color: rgba(0, 91, 172, 0.2);
  --orbit-angle: 22deg;
  animation-delay: -3.2s;
}

.orbit-two::after {
  left: 88px;
  right: auto;
  top: 88px;
  background: #ffb900;
  box-shadow: 0 0 0 8px rgba(255, 185, 0, 0.14);
}

.wust-floating-tag {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(23, 25, 29, 0.72);
  box-shadow: 0 16px 42px rgba(0, 47, 97, 0.11);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 900;
  animation: wust-tag-float 5.4s ease-in-out infinite;
}

.tag-ai {
  right: 360px;
  top: 116px;
}

.tag-code {
  right: 54px;
  bottom: 134px;
  animation-delay: -1.8s;
}

.tag-team {
  left: 48px;
  top: 248px;
  animation-delay: -3.1s;
}

.wust-award-card {
  position: absolute;
  top: 62px;
  right: 0;
  display: grid;
  gap: 2px;
  width: 166px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 24px 54px rgba(0, 47, 97, 0.13);
  backdrop-filter: blur(20px) saturate(1.4);
  animation: wust-card-hover 6.6s ease-in-out infinite;
}

.wust-award-card strong {
  color: #005bac;
  font-size: 44px;
  line-height: 1;
}

.wust-award-card span {
  color: rgba(23, 25, 29, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.wust-code-card {
  position: absolute;
  left: 0;
  bottom: 48px;
  width: min(360px, 82%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  padding: 22px 24px;
  background: rgba(8, 25, 52, 0.72);
  color: #eaf6ff;
  box-shadow: 0 28px 70px rgba(0, 40, 84, 0.22);
  backdrop-filter: blur(24px);
  font-size: 14px;
  line-height: 1.72;
  overflow: hidden;
  animation: wust-code-float 7.2s ease-in-out infinite;
}

.wust-code-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.14) 46%, transparent 58%);
  transform: translateX(-120%);
  animation: wust-code-scan 4.8s ease-in-out infinite;
  pointer-events: none;
}

.wust-code-card code {
  position: relative;
  z-index: 1;
}

.wust-stats-section {
  padding: 20px 0 44px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.wust-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(0, 43, 84, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 62px rgba(17, 42, 81, 0.07);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.wust-stats-grid article {
  display: grid;
  gap: 8px;
  padding: 34px 42px;
  min-height: 150px;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.wust-stats-grid article:hover {
  background: linear-gradient(180deg, rgba(0, 91, 172, 0.045), rgba(255, 255, 255, 0));
  transform: translateY(-3px);
}

.wust-stats-grid article + article {
  border-left: 1px solid rgba(0, 43, 84, 0.08);
}

.wust-stats-grid strong {
  display: inline-block;
  color: #17191d;
  font-size: 54px;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wust-stat-pop {
  animation: wust-stat-pop 0.72s cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.wust-stats-grid span {
  color: #005bac;
  font-size: 15px;
  font-weight: 900;
}

.wust-stats-grid p {
  margin: 0;
  color: rgba(23, 25, 29, 0.58);
  font-size: 14px;
}

.wust-create-section,
.wust-direction-section,
.wust-showcase-section,
.wust-join-section {
  padding: 72px 0;
  background: #fff;
}

.wust-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.wust-section-head h2,
.wust-direction-panel h2,
.wust-showcase-panel h2,
.wust-join-panel h2 {
  margin: 0;
  color: #17191d;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.wust-section-head a {
  color: #005bac;
  font-weight: 900;
  white-space: nowrap;
}

.wust-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wust-program-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  min-height: 246px;
  border: 1px solid rgba(0, 43, 84, 0.09);
  border-radius: 30px;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 91, 172, 0.08), transparent 34%),
    #fff;
  box-shadow: 0 22px 56px rgba(18, 42, 82, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.wust-program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 91, 172, 0.18);
  box-shadow: 0 30px 72px rgba(18, 42, 82, 0.12);
}

.wust-program-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(0, 91, 172, 0.08);
  color: #005bac;
  font-size: 12px;
  font-weight: 950;
}

.wust-program-card h3 {
  margin: 56px 0 12px;
  color: #17191d;
  font-size: 28px;
  letter-spacing: 0;
}

.wust-program-card p {
  margin: 0;
  color: rgba(23, 25, 29, 0.58);
  font-size: 16px;
  font-weight: 750;
}

.wust-program-card i {
  position: absolute;
  right: 26px;
  top: 26px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #f25022 0 25%, #7fba00 25% 50%, #00a4ef 50% 75%, #ffb900 75%);
  opacity: 0.18;
}

.wust-direction-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 91, 172, 0.08), transparent 28%),
    #f8fbff;
}

.wust-direction-panel,
.wust-showcase-panel,
.wust-join-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(0, 43, 84, 0.08);
  border-radius: 34px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 68px rgba(18, 42, 82, 0.08);
  backdrop-filter: blur(18px);
}

.wust-direction-list {
  display: grid;
  gap: 12px;
}

.wust-direction-list span {
  border: 1px solid rgba(0, 91, 172, 0.1);
  border-radius: 999px;
  padding: 13px 16px;
  background: #fff;
  color: rgba(23, 25, 29, 0.74);
  font-weight: 850;
}

.wust-showcase-panel p {
  max-width: 620px;
  color: rgba(23, 25, 29, 0.62);
  font-size: 18px;
  line-height: 1.8;
}

.wust-join-section {
  padding-top: 26px;
  background:
    linear-gradient(180deg, #fff, #f7fbff);
}

.wust-join-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff, #f6fbff);
}

.wust-join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.wust-nav-accent {
  color: #005bac !important;
}

.wust-about-section,
.wust-tools-section {
  padding: 82px 0;
  background: #fff;
}

.wust-about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 42px;
  align-items: stretch;
}

.wust-about-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  border: 1px solid rgba(0, 43, 84, 0.08);
  border-radius: 34px;
  padding: 46px;
  background:
    radial-gradient(circle at 86% 16%, rgba(0, 91, 172, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 24px 68px rgba(18, 42, 82, 0.08);
}

.wust-about-copy h2,
.wust-activity-head h2 {
  margin: 0;
  color: #17191d;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.wust-about-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(23, 25, 29, 0.64);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.85;
}

.wust-about-facts {
  display: grid;
  gap: 16px;
}

.wust-about-facts article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 91, 172, 0.1);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(18, 42, 82, 0.07);
}

.wust-about-facts strong {
  color: #17191d;
  font-size: 21px;
}

.wust-about-facts span {
  color: rgba(23, 25, 29, 0.58);
  line-height: 1.65;
}

.wust-direction-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wust-direction-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  min-height: 320px;
  border: 1px solid rgba(0, 43, 84, 0.09);
  border-radius: 30px;
  padding: 30px;
  background:
    radial-gradient(circle at 92% 0%, var(--direction-glow, rgba(0, 91, 172, 0.12)), transparent 36%),
    #fff;
  box-shadow: 0 24px 62px rgba(18, 42, 82, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.wust-direction-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 91, 172, 0.2);
  box-shadow: 0 34px 76px rgba(18, 42, 82, 0.12);
}

.wust-direction-card.blue {
  --direction-glow: rgba(0, 91, 172, 0.15);
}

.wust-direction-card.green {
  --direction-glow: rgba(127, 186, 0, 0.15);
}

.wust-direction-card.violet {
  --direction-glow: rgba(104, 80, 255, 0.13);
}

.wust-direction-card > span,
.wust-tool-card > span,
.wust-feature-activity-card > span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 91, 172, 0.08);
  color: #005bac;
  font-size: 12px;
  font-weight: 950;
}

.wust-direction-card h3,
.wust-tool-card h3,
.wust-feature-activity-card h3 {
  margin: 0;
  color: #17191d;
  font-size: 28px;
  line-height: 1.25;
}

.wust-direction-card p,
.wust-tool-card p {
  margin: 0;
  color: rgba(23, 25, 29, 0.6);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

.wust-direction-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.wust-direction-card em {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f2f7fc;
  color: rgba(23, 25, 29, 0.7);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.wust-activity-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 76% 16%, rgba(80, 230, 255, 0.18), transparent 30%),
    radial-gradient(circle at 12% 76%, rgba(0, 91, 172, 0.24), transparent 28%),
    #071121;
  color: #fff;
}

.wust-activity-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.54;
  pointer-events: none;
}

.wust-activity-section .container {
  position: relative;
  z-index: 1;
}

.wust-activity-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 30px;
}

.wust-activity-head h2,
.wust-activity-head .wust-eyebrow {
  color: #fff;
}

.wust-activity-head p,
.wust-feature-activity-card p,
.wust-activity-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.wust-activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  gap: 22px;
  align-items: stretch;
}

.wust-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wust-activity-card,
.wust-feature-activity-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.wust-activity-card {
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 24px;
}

.wust-activity-card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.wust-feature-activity-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 230, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.09);
}

.wust-feature-activity-card h3 {
  color: #fff;
  font-size: 32px;
}

.wust-dark-btn {
  min-height: 48px;
  border-color: #111318;
  border-radius: 999px;
  padding: 0 24px;
  background: #111318;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.wust-showcase-panel {
  overflow: hidden;
}

.wust-achievement-metric {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.wust-achievement-metric strong {
  color: #005bac;
  font-size: 58px;
  line-height: 1;
}

.wust-achievement-metric span {
  color: rgba(23, 25, 29, 0.68);
  font-weight: 850;
}

.wust-achievement-visual {
  position: relative;
  min-height: 320px;
}

.wust-achievement-orb {
  position: absolute;
  inset: 46px 72px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.86), transparent 18%),
    radial-gradient(circle at 58% 58%, rgba(80, 230, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #005bac, #071121);
  box-shadow:
    0 34px 78px rgba(0, 47, 97, 0.24),
    inset 18px 20px 40px rgba(255, 255, 255, 0.2);
  animation: wust-float 7.4s ease-in-out infinite;
}

.wust-achievement-ring {
  position: absolute;
  border: 1px solid rgba(0, 91, 172, 0.18);
  border-radius: 50%;
}

.ring-a {
  inset: 106px 14px auto auto;
  width: 300px;
  height: 84px;
  transform: rotate(-18deg);
}

.ring-b {
  inset: 138px 6px auto auto;
  width: 310px;
  height: 92px;
  transform: rotate(18deg);
}

.wust-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wust-tool-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 310px;
  border: 1px solid rgba(0, 43, 84, 0.09);
  border-radius: 32px;
  padding: 34px;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 91, 172, 0.1), transparent 36%),
    #fff;
  box-shadow: 0 24px 66px rgba(18, 42, 82, 0.08);
}

.wust-tool-card.agent {
  background:
    radial-gradient(circle at 88% 12%, rgba(80, 230, 255, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff, #f6fbff);
}

.wust-agent-bubble {
  width: fit-content;
  border: 1px solid rgba(0, 91, 172, 0.1);
  border-radius: 18px 18px 18px 6px;
  padding: 14px 16px;
  background: rgba(0, 91, 172, 0.06);
}

.wust-join-panel {
  color: #fff;
  background:
    radial-gradient(circle at 94% 8%, rgba(80, 230, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #071121, #0b2b58);
}

.wust-join-panel h2,
.wust-join-panel .wust-eyebrow {
  color: #fff;
}

.wust-join-panel p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.wust-join-panel small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58);
}

.wust-join-panel .wust-outline-btn {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wust-recruit-card {
  display: grid;
  gap: 14px;
  justify-self: end;
  width: min(100%, 330px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.wust-recruit-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wust-recruit-card span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 950;
}

.wust-recruit-card strong {
  color: #fff;
  font-size: 22px;
  letter-spacing: 0;
}

.wust-recruit-card img {
  display: block;
  width: 100%;
  max-height: 390px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 44%;
  background: #fff;
}

.wust-recruit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.wust-footer {
  border-top: 1px solid rgba(0, 43, 84, 0.08);
  padding: 36px 0;
  background: #fff;
}

.wust-footer-inner {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
}

.wust-footer p,
.wust-footer small {
  margin: 0;
  color: rgba(23, 25, 29, 0.56);
  font-weight: 650;
}

.wust-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wust-footer a {
  color: rgba(23, 25, 29, 0.7);
  font-weight: 850;
}

@keyframes wust-title-rise {
  from {
    transform: translateY(28px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes wust-title-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes wust-stat-pop {
  0% {
    transform: translateY(10px) scale(0.94);
  }

  62% {
    transform: translateY(-2px) scale(1.03);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes wust-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes wust-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes wust-aurora {
  0% {
    transform: translate3d(var(--wust-parallax-x, 0px), var(--wust-parallax-y, 0px), 0) scale(0.98);
    opacity: 0.62;
  }

  100% {
    transform: translate3d(var(--wust-parallax-x, 0px), var(--wust-parallax-y, 0px), 0) scale(1.04);
    opacity: 0.86;
  }
}

@keyframes wust-particle-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.64;
  }

  50% {
    transform: translate3d(10px, -18px, 0) scale(1.22);
    opacity: 1;
  }
}

@keyframes wust-sphere-sweep {
  0%,
  36% {
    transform: translateX(-62%) rotate(12deg);
    opacity: 0;
  }

  56% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(62%) rotate(12deg);
    opacity: 0;
  }
}

@keyframes wust-sphere-grid {
  from {
    transform: rotate(-14deg);
  }

  to {
    transform: rotate(346deg);
  }
}

@keyframes wust-core-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.54;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.72;
  }
}

@keyframes wust-shine-breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: translate3d(0, 0, 0) rotate(-22deg);
  }

  50% {
    opacity: 0.78;
    transform: translate3d(14px, -4px, 0) rotate(-22deg);
  }
}

@keyframes wust-orbit-drift {
  0%,
  100% {
    transform: rotate(var(--orbit-angle, -18deg)) translateY(0);
  }

  50% {
    transform: rotate(var(--orbit-angle, -18deg)) translateY(-8px);
  }
}

@keyframes wust-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes wust-tag-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes wust-card-hover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes wust-code-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

@keyframes wust-code-scan {
  0%,
  42% {
    transform: translateX(-120%);
  }

  72%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 1180px) {
  .wust-nav-links {
    display: none;
  }

  .page-wust-home .mobile-menu {
    display: inline-grid;
    place-items: center;
  }

  .page-wust-home .site-header.open .wust-nav-links,
  .page-wust-home .site-header.open .wust-header-actions {
    display: grid;
    width: 100%;
  }

  .page-wust-home .site-header.open .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }
}

@media (max-width: 1040px) {
  .wust-hero-inner,
  .wust-about-panel,
  .wust-activity-layout,
  .wust-direction-panel,
  .wust-showcase-panel,
  .wust-join-panel {
    grid-template-columns: 1fr;
  }

  .wust-hero-visual {
    min-height: 470px;
    max-width: 620px;
  }

  .wust-hero-copy {
    max-width: 760px;
  }

  .wust-hero-copy h1 {
    font-size: clamp(50px, 8.2vw, 72px);
  }

  .wust-headline-line {
    white-space: normal;
  }

  .wust-card-grid,
  .wust-stats-grid,
  .wust-direction-cards,
  .wust-tools-grid {
    grid-template-columns: 1fr;
  }

  .wust-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wust-stats-grid article + article {
    border-left: 0;
    border-top: 1px solid rgba(0, 43, 84, 0.08);
  }

  .wust-join-actions {
    justify-content: flex-start;
  }

  .wust-recruit-card {
    justify-self: start;
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .wust-brand {
    max-width: calc(100vw - 116px);
    font-size: 14px;
  }

  .wust-brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wust-hero {
    padding: 58px 0 34px;
  }

  .wust-hero-inner {
    min-height: auto;
    gap: 34px;
  }

  .wust-hero-copy h1 {
    font-size: 52px;
  }

  .wust-headline-line {
    white-space: normal;
  }

  .wust-hero-copy p {
    font-size: 18px;
  }

  .wust-hero-visual {
    min-height: 390px;
  }

  .wust-floating-tag {
    display: none;
  }

  .wust-glass-sphere {
    right: 0;
    width: 280px;
    height: 280px;
  }

  .wust-orbit {
    right: -44px;
    width: 330px;
  }

  .wust-award-card {
    right: 0;
    width: 142px;
  }

  .wust-code-card {
    width: 92%;
    font-size: 12px;
  }

  .wust-stats-grid article,
  .wust-about-copy,
  .wust-direction-card,
  .wust-tool-card,
  .wust-direction-panel,
  .wust-showcase-panel,
  .wust-join-panel {
    padding: 26px;
  }

  .wust-recruit-card {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .wust-recruit-card img {
    max-height: none;
  }

  .wust-activity-grid {
    grid-template-columns: 1fr;
  }

  .wust-feature-activity-card {
    padding: 26px;
  }

  .wust-achievement-visual {
    min-height: 250px;
  }

  .wust-section-head {
    display: grid;
    align-items: start;
  }

  .wust-section-head h2,
  .wust-about-copy h2,
  .wust-activity-head h2,
  .wust-direction-panel h2,
  .wust-showcase-panel h2,
  .wust-join-panel h2 {
    font-size: 38px;
  }

  .wust-about-section,
  .wust-tools-section,
  .wust-activity-section {
    padding: 58px 0;
  }
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-stage {
    max-width: 680px;
  }

  .hero-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-preview-grid,
  .competition-intelligence {
    grid-template-columns: 1fr;
  }

  .admin-ops-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .card-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .algorithm-overview,
  .problem-bank-summary,
  .submission-summary,
  .freshman-c-steps,
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pathway-step::after {
    display: none;
  }

  .module-grid,
  .ops-grid,
  .community-overview,
  .admin-grid,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .chat-layout,
  .challenge-layout,
  .algorithm-board,
  .profile-layout,
  .leaderboard-layout {
    grid-template-columns: 1fr;
  }

  .direct-layout {
    grid-template-columns: 1fr;
  }

  .selected-problem-panel {
    position: static;
    max-height: none;
  }

  .profile-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .title-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: inline-grid;
    place-items: center;
  }

  .site-header.open .nav-links,
  .site-header.open .header-actions {
    display: grid;
    width: 100%;
  }

  .site-header.open .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .intro-grid,
  .join-layout,
  .mission-grid,
  .auth-page,
  .dashboard-hero,
  .flow-grid,
  .ai-layout,
  .knowledge-overview,
  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .app-content.knowledge-page-content {
    width: calc(100% - 28px);
  }

  .knowledge-nav {
    position: static;
    max-height: none;
  }

  .freshman-c-path-head {
    flex-direction: column;
  }

  .auth-visual {
    min-height: 360px;
    padding: 40px;
  }

  .auth-recruit-card {
    max-width: 560px;
  }

  .auth-page {
    min-height: 100svh;
  }

  .auth-shell {
    align-content: start;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .app-layout.sidebar-collapsed .sidebar {
    width: 0;
    padding: 0;
    transform: translateX(-102%);
  }

  .app-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 10px 14px;
  }

  .app-topbar .sidebar-restore-btn {
    display: none;
  }

  .app-title {
    overflow: hidden;
  }

  .app-title h3 {
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-title p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .topbar-actions .btn {
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .topbar-actions .member-title {
    display: none;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .prompt-starters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .algorithm-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .notice-toast {
    top: 74px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-action {
    width: 40px;
    height: 40px;
  }

  .chat-panel-head {
    display: grid;
  }

  .chat-input-form {
    grid-template-columns: 1fr;
  }

  .chat-room-tabs {
    grid-template-columns: 1fr;
  }

  .knowledge-search-box {
    grid-template-columns: 1fr;
  }

  .app-content.knowledge-page-content {
    width: calc(100% - 20px);
    padding-top: 16px;
  }

  .knowledge-overview,
  .knowledge-layout {
    gap: 14px;
  }

  .knowledge-feature,
  .knowledge-nav,
  .knowledge-card {
    border-radius: 18px;
  }

  .knowledge-feature {
    padding: 16px;
  }

  .knowledge-feature h2 {
    font-size: 22px;
    line-height: 1.25;
  }

  .knowledge-nav {
    padding: 12px;
  }

  .knowledge-nav a {
    padding: 10px;
  }

  .knowledge-nav a strong,
  .knowledge-nav a span,
  .knowledge-search-panel label,
  .knowledge-sidebar-card strong,
  .knowledge-sidebar-card p,
  .knowledge-sidebar-card li,
  .knowledge-sidebar-note p,
  .knowledge-card .direction-top h3,
  .knowledge-summary,
  .knowledge-card-foot > span {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .knowledge-direction-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-direction-stats span {
    display: grid;
    justify-content: stretch;
    min-width: 0;
  }

  .community-search-box,
  .community-overview {
    grid-template-columns: 1fr;
  }

  .section-title.inline {
    display: grid;
    align-items: start;
  }

  .chat-bubble,
  .direct-message {
    max-width: 88%;
  }

  .container,
  .app-content {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .section {
    padding: 58px 0;
  }

  .card-grid,
  .card-grid.five,
  .module-grid,
  .ops-grid,
    .competition-grid,
    .competition-intelligence,
    .admin-grid,
    .admin-metrics,
    .quick-stats,
  .flow-grid,
  .competition-overview,
  .algorithm-overview,
  .problem-bank-summary,
  .submission-summary,
  .practice-grid,
  .knowledge-metrics,
  .freshman-c-steps,
  .prompt-starters,
  .challenge-overview,
    .leaderboard-overview,
    .pathway-grid,
    .form-row.two,
    .hero-dashboard,
    .home-preview-grid,
    .crawler-stats,
    .source-trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wall,
  .calendar-row,
  .home-preview-row {
    grid-template-columns: 1fr;
  }

  .today-flow .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .profile-insights {
    grid-template-columns: 1fr;
  }

  .title-system-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .title-stat-grid {
    grid-template-columns: 1fr;
  }

  .title-track {
    grid-template-columns: 1fr;
  }

  .detail-drawer {
    inset: 10px;
    width: auto;
  }

  .reader-fullscreen .detail-head {
    padding: 18px;
  }

  .reader-fullscreen .detail-body {
    width: calc(100vw - 48px);
    padding: 20px 0 36px;
  }

  .detail-head {
    flex-direction: column;
  }

  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    display: grid;
  }

  .api-config-form .hero-actions {
    display: grid;
  }

  .admin-ops-panel,
  .admin-actions,
  .admin-section-head {
    display: grid;
    justify-content: stretch;
  }

  .admin-jump-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    top: 64px;
  }

  .admin-jump-nav a {
    white-space: nowrap;
  }

  .connection-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-create-grid {
    grid-template-columns: 1fr;
  }

  .feedback-hero,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .feedback-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    padding: 42px 0;
  }

  .hero-layout {
    gap: 18px;
  }

  .hero-stage {
    padding: 14px;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }

  .mission-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .mission-item:last-child {
    border-bottom: 0;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .auth-shell,
  .auth-visual {
    padding: 26px;
  }

  .page-auth {
    background:
      radial-gradient(circle at 20% 0%, rgba(80, 230, 255, 0.18), transparent 36%),
      linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f5f9ff 100%);
  }

  .auth-page {
    display: block;
    min-height: 100svh;
    background: transparent;
  }

  .auth-visual {
    display: none;
  }

  .auth-shell {
    min-height: 100svh;
    padding: 18px;
  }

  .mobile-auth-recruit {
    display: grid;
    margin: 0;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr) 92px;
    border-radius: 18px;
  }

  .mobile-auth-recruit strong {
    margin-top: 8px;
    font-size: 20px;
  }

  .mobile-auth-recruit p {
    font-size: 13px;
  }

  .mobile-auth-recruit img {
    width: 92px;
    height: 92px;
    border-radius: 14px;
  }

  .auth-recruit-card {
    grid-template-columns: 1fr;
  }

  .auth-recruit-card img {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
  }

  .form-panel {
    width: 100%;
    padding: 24px;
    border-radius: 18px;
  }

  input,
  select,
  textarea,
  .btn {
    min-height: 48px;
  }

  .check-row {
    align-items: flex-start;
    gap: 12px;
  }

  .admin-login-entry {
    right: 14px;
    bottom: 14px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .post-head,
  .competition-head,
  .competition-topline,
  .leader-row,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 12px;
  }

  .form-panel {
    gap: 18px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(0, 65, 120, 0.1);
  }

  .form-head h2 {
    font-size: clamp(30px, 10vw, 44px);
    line-height: 1.05;
  }

  .form-head p {
    line-height: 1.55;
  }

  .form-grid {
    gap: 13px;
  }

  .mobile-auth-recruit {
    grid-template-columns: 1fr;
  }

  .mobile-auth-recruit img {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 1;
  }

  .admin-login-entry {
    position: static;
    justify-self: center;
    margin: 12px auto 0;
  }

  .app-topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: auto;
    gap: 8px;
    padding: 10px;
  }

  .mobile-menu {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 20px;
  }

  .app-title h3 {
    font-size: 17px;
  }

  .app-title p {
    font-size: 11.5px;
  }

  .topbar-actions .btn {
    width: auto;
    min-width: 58px;
    min-height: 40px;
    padding: 0 10px;
  }

  .floating-actions {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .floating-action {
    width: 38px;
    height: 38px;
    box-shadow: 0 10px 24px rgba(0, 55, 100, 0.14);
  }

  .knowledge-page-content .knowledge-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .knowledge-card {
    padding: 15px;
  }

  .knowledge-card .direction-top {
    display: grid;
    gap: 8px;
  }

  .knowledge-card .direction-top .badge {
    justify-self: start;
  }

  .knowledge-actions .btn {
    flex: 1 1 112px;
  }

  .knowledge-submit-panel summary {
    display: grid;
    align-items: start;
  }

  .knowledge-submit-panel summary b {
    justify-self: start;
  }

  .feedback-stats {
    grid-template-columns: 1fr;
  }

  .feedback-hero article,
  .feedback-history,
  .feedback-form {
    padding: 18px;
  }
}
