:root {
  /* Standard (light) theme */
  --bg-gradient: linear-gradient(135deg, #f4f7ff 0%, #edf3ff 42%, #e5ecff 100%);
  --text-primary: #17223b;
  --text-secondary: #4f5f82;
  --accent: #3557d6;
  --on-accent: #ffffff;
  --accent-gradient: linear-gradient(135deg, #3557d6, #4f70ee);
  --line: rgba(23, 34, 59, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: 1px solid rgba(23, 34, 59, 0.08);
  --shadow: 0 8px 32px rgba(20, 35, 70, 0.12);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --overlay-a: rgba(53, 87, 214, 0.16);
  --overlay-b: rgba(116, 87, 229, 0.14);
  --map-glow: rgba(53, 87, 214, 0.18);
  --toast-bg: rgba(245, 248, 255, 0.95);
}

[data-theme="dark"] {
  --bg-gradient: linear-gradient(135deg, #071a46 0%, #1d2c72 45%, #4a278f 100%);
  --text-primary: #f4f7ff;
  --text-secondary: #b8c2e0;
  --accent: #7ea2ff;
  --on-accent: #0a1f44;
  --accent-gradient: linear-gradient(135deg, #7ea2ff, #9a8cff);
  --line: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  --overlay-a: rgba(126, 162, 255, 0.2);
  --overlay-b: rgba(154, 140, 255, 0.2);
  --map-glow: rgba(126, 162, 255, 0.24);
  --toast-bg: rgba(9, 24, 59, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text-primary);
  font-family: Inter, "Noto Sans SC", sans-serif;
  background: var(--bg-gradient);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, var(--overlay-a), transparent 32%),
    radial-gradient(circle at 82% 70%, var(--overlay-b), transparent 38%);
  pointer-events: none;
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

p,
label,
input,
textarea,
button,
select,
a {
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.glass {
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.top-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 28px));
  border-radius: var(--radius);
  padding: 14px 18px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.menu {
  display: flex;
  gap: 14px;
}

.home-nav-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
  justify-content: space-between;
}

.home-nav-bubble-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-primary);
  background: color-mix(in oklab, var(--glass-bg) 86%, transparent);
  box-shadow: var(--shadow);
}

.home-nav-bubble-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.menu a:hover {
  color: var(--accent);
}

.auth-slot {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#topRightTools {
  gap: 10px;
}

.auth-link,
button {
  border: 0;
  border-radius: 12px;
  color: var(--on-accent);
  background: var(--accent-gradient);
  text-decoration: none;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.auth-link.secondary,
button.secondary {
  background: color-mix(in oklab, var(--glass-bg) 78%, transparent);
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.auth-link:hover,
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.35);
}

main {
  width: min(1200px, calc(100% - 28px));
  margin: 104px auto 48px;
  display: grid;
  gap: 22px;
}

.card {
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  min-width: 0;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.login-main,
.register-main {
  min-height: calc(100vh - 156px);
  align-content: center;
}

.login-card,
.register-card {
  width: min(680px, 100%);
  margin: 0 auto;
}

.register-card {
  width: min(720px, 100%);
}

.login-card:hover,
.register-card:hover {
  transform: none;
}

.login-form,
.register-form {
  margin-top: 14px;
}

.login-form-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.login-register-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-page .top-nav,
.register-page .top-nav {
  justify-content: space-between;
}

.login-page .top-nav .menu,
.register-page .top-nav .menu {
  margin-left: auto;
}

label {
  color: var(--text-secondary);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  transition: var(--transition);
  min-width: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(47, 107, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18);
}

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

.map-core {
  min-height: clamp(330px, 70vh, 680px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}

.viewer-host {
  padding: 0;
}

.viewer-host::before {
  display: none;
}

.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #071021;
}

.map-load-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(165deg, rgba(8, 28, 62, 0.88) 0%, rgba(10, 37, 80, 0.92) 100%),
    radial-gradient(circle at 18% 20%, rgba(126, 162, 255, 0.3), transparent 42%);
  color: rgba(239, 246, 255, 0.98);
}

.map-load-overlay-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 203, 255, 0.9);
}

.map-load-overlay h3 {
  margin: 0;
  font-size: clamp(19px, 4vw, 24px);
}

.map-load-overlay p {
  margin: 0;
  max-width: 380px;
  color: rgba(217, 233, 255, 0.92);
}

.map-load-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 13px 22px;
  border: 1px solid rgba(206, 228, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(196, 220, 255, 0.3) 0%, rgba(127, 167, 246, 0.26) 100%),
    rgba(230, 241, 255, 0.16);
  color: #e9f3ff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 12px 26px rgba(25, 56, 118, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-load-btn:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.map-load-btn::after {
  content: "→";
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: rgba(233, 243, 255, 0.96);
  animation: mapLoadArrowHint 1.2s ease-in-out infinite;
}

.map-load-btn:disabled::after {
  animation: none;
  opacity: 0.7;
}

@keyframes mapLoadArrowHint {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.84;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

.viewer-host.map-lazy-mode:not(.map-loaded) .map-load-overlay {
  display: grid;
}

.viewer-host.map-lazy-mode:not(.map-loaded) .map-iframe {
  visibility: hidden;
  pointer-events: none;
}

.viewer-host.map-lazy-mode:not(.map-loaded) .viewer-fullscreen-btn {
  opacity: 0.56;
  pointer-events: none;
}

.viewer-fullscreen-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--glass-bg) 88%, transparent);
  color: var(--text-primary);
  box-shadow: var(--shadow);
}

.viewer-fullscreen-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer-fullscreen-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.35);
}

.map-core::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--map-glow), transparent 58%),
    linear-gradient(to bottom, rgba(10, 31, 68, 0.1), rgba(10, 31, 68, 0.42));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4);
}

.map-overlay {
  z-index: 1;
  text-align: center;
  padding: 20px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

.list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.item {
  background: color-mix(in oklab, var(--glass-bg) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  transition: var(--transition);
  min-width: 0;
}

.item:hover {
  transform: translateY(-4px) scale(1.01);
}

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

.campus-service-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 84px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--glass-bg) 76%, transparent);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.campus-service-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.campus-service-card:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 70%, #ffffff);
  outline-offset: 2px;
}

.campus-service-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--glass-bg) 82%, transparent);
  flex: 0 0 34px;
}

.campus-service-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.campus-service-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.campus-service-body strong {
  font-size: 15px;
  line-height: 1.25;
}

.campus-service-body small {
  font-size: 12px;
  color: var(--text-secondary);
}

.campus-service-card.placeholder {
  border-style: dashed;
  opacity: 0.84;
}

.campus-service-card.placeholder:hover {
  transform: none;
}

.third-party-service-entry {
  position: relative;
  overflow: hidden;
}

.third-party-service-entry::after {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(120deg, rgba(126, 162, 255, 0.18), rgba(154, 140, 255, 0.04)),
    radial-gradient(circle at 85% 18%, rgba(146, 242, 255, 0.18), transparent 42%);
  pointer-events: none;
}

[data-theme="dark"] .third-party-service-entry::after {
  background:
    linear-gradient(120deg, rgba(126, 162, 255, 0.2), rgba(154, 140, 255, 0.08)),
    radial-gradient(circle at 85% 18%, rgba(146, 242, 255, 0.2), transparent 42%);
}

.published-activity {
  cursor: pointer;
}

.published-activity.active {
  border-color: rgba(255, 213, 106, 0.9);
  box-shadow: 0 10px 28px rgba(255, 213, 106, 0.28);
}

.publish-map-picker {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.publish-viewer-host {
  min-height: clamp(280px, 45vh, 420px);
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 8px;
}

.admin-third-qrcode {
  margin-top: 8px;
  width: 160px;
  max-width: min(60vw, 220px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in oklab, var(--glass-bg) 78%, transparent);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.row.wrap {
  flex-wrap: wrap;
}

.row.space {
  justify-content: space-between;
}

.service-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--glass-bg) 72%, transparent);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.service-update-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fd17f;
  box-shadow: 0 0 0 0 rgba(63, 209, 127, 0.45);
  animation: serviceDotPulse 1.8s ease-out infinite;
}

@keyframes serviceDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 209, 127, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(63, 209, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 209, 127, 0);
  }
}

.split {
  border-bottom: 1px solid var(--line);
  margin: 14px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: color-mix(in oklab, var(--glass-bg) 72%, transparent);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-secondary);
}

.badge.pending {
  color: #ffd992;
}

.badge.published {
  color: #9ae6ba;
}

.badge.rejected {
  color: #ffb3b3;
}

.table-wrap {
  overflow-x: auto;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.admin-sidebar {
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-extra-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-decoration: none;
}

.admin-tab-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--glass-bg) 80%, transparent);
  color: var(--text-primary);
  text-align: left;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.22);
}

.admin-tab-btn.active {
  background: var(--accent-gradient);
  color: var(--on-accent);
  border-color: transparent;
}

.admin-content {
  min-width: 0;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-tab-panel:hover {
  transform: none;
}

.admin-tab-panel:not(#tab-clubs) .item:hover {
  transform: none;
  box-shadow: none;
}

#tab-clubs .item:hover {
  transform: translateY(-1px);
}

#tab-clubs:hover {
  transform: none;
}

#clubOperationBackdrop[hidden] {
  display: none !important;
}

#clubOperationBackdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background:
    radial-gradient(circle at 20% 18%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 42%),
    rgba(5, 12, 28, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#clubOperationPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 84px);
  overflow: auto;
  z-index: 90;
  border-radius: 16px;
  padding: 16px;
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(8, 18, 44, 0.35);
}

#clubOperationPanel:hover {
  transform: translate(-50%, -50%);
}

#clubOperationPanel[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

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

.club-op-grid.single {
  grid-template-columns: 1fr;
}

.club-op-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.club-op-media-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--glass-bg) 80%, transparent);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
}

#tab-users table {
  min-width: 0;
  table-layout: fixed;
}

#tab-users .table-wrap {
  overflow-x: visible;
}

#tab-users th,
#tab-users td {
  padding: 8px 6px;
  overflow-wrap: normal;
  word-break: normal;
}

#tab-users th:nth-child(3),
#tab-users td:nth-child(3) {
  display: none;
}

#tab-users td:nth-child(1),
#tab-users td:nth-child(7),
#tab-users td:nth-child(8) {
  white-space: nowrap;
}

#tab-users th:nth-child(1),
#tab-users td:nth-child(1) {
  width: 4%;
}

#tab-users th:nth-child(2),
#tab-users td:nth-child(2) {
  width: 8%;
}

#tab-users th:nth-child(4),
#tab-users td:nth-child(4) {
  width: 7%;
}

#tab-users th:nth-child(5),
#tab-users td:nth-child(5) {
  width: 8%;
}

#tab-users th:nth-child(6),
#tab-users td:nth-child(6) {
  width: 8%;
}

#tab-users td:nth-child(5),
#tab-users td:nth-child(6) {
  word-break: break-all;
}

#tab-users th:nth-child(7),
#tab-users td:nth-child(7) {
  width: 5%;
}

#tab-users th:nth-child(8),
#tab-users td:nth-child(8) {
  width: 5%;
}

#tab-users th:nth-child(9),
#tab-users td:nth-child(9) {
  width: 34%;
}

#tab-users td:nth-child(9) .row.wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

#tab-users td:nth-child(9) button {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.icon.large {
  width: 40px;
  height: 40px;
}

.brand:hover .icon {
  stroke: var(--accent);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--toast-bg);
  color: var(--text-primary);
  padding: 11px 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 99;
}

.theme-dropdown {
  position: relative;
}

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 136px;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--glass-bg) 88%, transparent);
  box-shadow: var(--shadow);
  z-index: 40;
}

.theme-dropdown.open .theme-menu {
  display: grid;
}

.theme-menu-item {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.theme-menu-item:hover,
.theme-menu-item.active {
  background: var(--accent-gradient);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: none;
}

.made-by-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-primary);
  background: color-mix(in oklab, var(--glass-bg) 86%, transparent);
  transition: var(--transition);
}

.made-by-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.25);
}

.welcome-bubble-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-primary);
  background: color-mix(in oklab, var(--glass-bg) 88%, transparent);
  transition: var(--transition);
}

.welcome-bubble-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.25);
}

.welcome-bubble-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 26%, transparent);
}

.made-by-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.author-main {
  max-width: 1220px;
}

.author-v2 {
  gap: 20px;
}

.author-showcase {
  display: block;
}

.author-canvas {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(130deg, rgba(8, 24, 56, 0.9), rgba(10, 48, 95, 0.66) 44%, rgba(16, 87, 133, 0.55));
  isolation: isolate;
}

.author-canvas::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(122, 168, 255, 0.3), transparent 34%),
    radial-gradient(circle at 15% 15%, rgba(146, 242, 255, 0.18), transparent 40%);
  z-index: -1;
}

.author-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.04) 20%, transparent 32%),
    repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(255, 255, 255, 0.05) 19px, transparent 20px);
  pointer-events: none;
}

.author-headline-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.author-visual {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: center;
  min-height: 300px;
}

.author-avatar {
  width: min(250px, 92%);
  aspect-ratio: 1;
  border-radius: 32% 68% 59% 41% / 44% 37% 63% 56%;
  object-fit: cover;
  border: 2px solid rgba(213, 238, 255, 0.55);
  box-shadow:
    0 20px 46px rgba(5, 10, 22, 0.45),
    0 0 0 10px rgba(95, 152, 255, 0.18);
  transform: rotate(-4deg);
  animation: floatAvatar 4.8s ease-in-out infinite;
}

.author-name-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.author-name-stack h1 {
  font-family: "Space Grotesk", Inter, "Noto Sans SC", sans-serif;
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-shadow: 0 8px 32px rgba(15, 34, 82, 0.42);
}

.author-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(216, 236, 255, 0.8);
}

.author-intro {
  max-width: 760px;
  margin: 0;
  color: rgba(225, 241, 255, 0.95);
  line-height: 1.8;
  font-size: 17px;
}

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

.author-tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(214, 231, 255, 0.4);
  padding: 7px 12px;
  font-size: 12px;
  color: #e7f4ff;
  background: rgba(14, 54, 112, 0.55);
}

.author-back-link {
  width: fit-content;
}

.author-orbit-tag {
  position: absolute;
  top: 14px;
  right: -26px;
  transform: rotate(12deg);
  border-radius: 10px;
  border: 1px solid rgba(226, 243, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #eff8ff;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(6px);
}

.author-strip {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(187, 216, 255, 0.38);
  background: rgba(8, 37, 77, 0.66);
}

.author-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 24px;
  padding: 10px 0;
  animation: authorStripMove 26s linear infinite;
}

.author-strip-track span {
  color: rgba(216, 236, 255, 0.92);
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.author-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
}

.author-panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 18px;
}

.author-panel-wide {
  background: color-mix(in oklab, var(--glass-bg) 82%, rgba(8, 31, 72, 0.42));
}

.author-pin-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-pin-list li {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 11px;
  font-size: 13px;
  color: var(--text-secondary);
  background: color-mix(in oklab, var(--glass-bg) 86%, transparent);
}

.author-panel-tilt {
  transform: rotate(-2.2deg) translateY(8px);
  background: linear-gradient(150deg, rgba(16, 62, 132, 0.76), rgba(8, 31, 75, 0.84));
  color: #f2f8ff;
}

.author-panel-tilt h3 {
  color: #ebf5ff;
}

.author-metric {
  margin: 10px 0 6px;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.author-panel-code {
  background: color-mix(in oklab, var(--glass-bg) 82%, rgba(5, 18, 42, 0.55));
}

.author-code {
  margin: 12px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(127, 172, 255, 0.26);
  background: rgba(5, 16, 39, 0.82);
  padding: 12px;
  color: #a9d0ff;
  font-size: 13px;
  overflow-x: auto;
}

.author-roadmap {
  display: grid;
  gap: 14px;
}

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

.author-step {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  background: color-mix(in oklab, var(--glass-bg) 86%, transparent);
}

.author-step::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-gradient);
}

.author-step-year {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.author-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.author-step p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

.author-contact-zone {
  display: grid;
}

.author-contact-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--glass-bg) 88%, transparent), color-mix(in oklab, var(--glass-bg) 66%, transparent)),
    radial-gradient(circle at 90% 10%, rgba(139, 188, 255, 0.18), transparent 38%);
}

.author-text {
  color: color-mix(in oklab, var(--text-primary) 82%, #e8f0ff);
  line-height: 1.7;
  margin: 0;
}

.wechat-btn {
  border-radius: 14px;
  background: linear-gradient(135deg, #07c160, #10a04f);
  color: #fff;
}

.wechat-btn:hover {
  box-shadow: 0 10px 24px rgba(7, 193, 96, 0.35);
}

.wechat-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(5, 10, 26, 0.6);
  z-index: 90;
}

.wechat-modal.show {
  display: grid;
  animation: fadeIn 0.35s ease forwards;
}

.wechat-card {
  width: min(90vw, 420px);
  border-radius: 16px;
  padding: 14px 14px 12px;
  position: relative;
}

.wechat-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
}

.wechat-qr {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  margin-top: 28px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatAvatar {
  0% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-8px);
  }
  100% {
    transform: rotate(-4deg) translateY(0);
  }
}

@keyframes authorStripMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.home-welcome {
  width: min(1200px, calc(100% - 28px));
  margin: 8px auto 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--text-secondary) 92%, transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.6s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.08s;
}

.reveal.delay-2 {
  animation-delay: 0.16s;
}

.welcome-entry {
  display: block;
}

.welcome-entry-card {
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 20%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 42%),
    color-mix(in oklab, var(--glass-bg) 82%, transparent);
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.welcome-entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 45%, color-mix(in oklab, var(--accent) 12%, transparent));
  pointer-events: none;
}

.welcome-entry-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.welcome-entry-card h2,
.welcome-entry-card p,
.welcome-entry-cta {
  position: relative;
  z-index: 1;
}

.welcome-entry-card h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.16;
}

.welcome-entry-card p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 820px;
}

.welcome-entry-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--accent-gradient);
  color: var(--on-accent);
}

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

@media (max-width: 1024px) {
  main {
    margin-top: 118px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .grid-three {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  table {
    min-width: 680px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .author-headline-wrap {
    grid-template-columns: 1fr;
  }

  .author-lab {
    grid-template-columns: 1fr 1fr;
  }

  .author-panel-wide {
    grid-column: 1 / span 2;
  }

  .author-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top-nav {
    top: 10px;
    width: calc(100% - 16px);
    padding: 12px;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }

  main {
    width: calc(100% - 16px);
    margin-top: 210px;
    margin-bottom: 18px;
    gap: 16px;
  }

  .menu {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .auth-slot {
    width: 100%;
    justify-content: flex-start;
  }

  #topRightTools {
    width: 100%;
    justify-content: flex-start;
  }

  .card {
    padding: 16px;
  }

  .map-core {
    min-height: 52vh;
  }

  .map-iframe {
    min-height: 52vh;
  }

  .viewer-fullscreen-btn {
    left: 10px;
    bottom: 10px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .map-load-overlay {
    padding: 18px;
    gap: 10px;
  }

  .map-load-overlay h3 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .map-load-overlay p {
    font-size: 14px;
  }

  .meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .campus-service-grid {
    grid-template-columns: 1fr;
  }

  .row.space {
    flex-wrap: wrap;
  }

  .auth-link,
  button {
    padding: 8px 11px;
    font-size: 14px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  table {
    min-width: 620px;
  }

  #tab-users .table-wrap {
    overflow-x: auto;
  }

  #tab-users table {
    min-width: 1040px;
    table-layout: auto;
  }

  #tab-users th,
  #tab-users td {
    padding: 9px 8px;
  }

  #tab-users th:nth-child(1),
  #tab-users td:nth-child(1),
  #tab-users th:nth-child(2),
  #tab-users td:nth-child(2),
  #tab-users th:nth-child(4),
  #tab-users td:nth-child(4),
  #tab-users th:nth-child(5),
  #tab-users td:nth-child(5),
  #tab-users th:nth-child(6),
  #tab-users td:nth-child(6),
  #tab-users th:nth-child(7),
  #tab-users td:nth-child(7),
  #tab-users th:nth-child(8),
  #tab-users td:nth-child(8) {
    width: auto;
  }

  #tab-users th:nth-child(9),
  #tab-users td:nth-child(9) {
    min-width: 280px;
    width: 280px;
  }

  #tab-users td:nth-child(9) button {
    padding: 6px 8px;
    font-size: 12px;
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .author-headline-wrap {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .author-name-stack h1 {
    font-size: clamp(40px, 18vw, 66px);
  }

  .author-orbit-tag {
    display: none;
  }

  .author-strip {
    margin-top: 12px;
  }

  .author-lab {
    grid-template-columns: 1fr;
  }

  .author-panel-wide {
    grid-column: auto;
  }

  .author-panel-tilt {
    transform: none;
  }

  .author-steps {
    grid-template-columns: 1fr;
  }

  .home-welcome {
    width: calc(100% - 16px);
    margin-bottom: 12px;
    font-size: 11px;
  }

  .login-page .top-nav,
  .register-page .top-nav {
    align-items: center;
  }

  .login-page .top-nav .menu,
  .register-page .top-nav .menu {
    width: auto;
    order: 2;
    margin-left: auto;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .login-page .top-nav .auth-slot,
  .register-page .top-nav .auth-slot {
    display: none;
  }

  .login-page .top-nav .menu a,
  .register-page .top-nav .menu a {
    min-height: 36px;
    padding: 6px 10px;
  }

  .login-page .login-main,
  .register-page .register-main {
    margin-top: 120px;
    margin-bottom: 14px;
    min-height: calc(100dvh - 150px);
  }

  .login-page .login-card,
  .register-page .register-card {
    padding: 16px;
  }

  .login-page .login-form-actions .auth-link,
  .login-page .login-form-actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (orientation: portrait) {
  main {
    margin-top: 126px;
  }

  #homeTopNav {
    align-items: center;
    gap: 10px;
  }

  #homeTopNav .brand {
    min-width: 0;
    flex: 1;
  }

  #homeTopNav .home-nav-bubble-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  #homeTopNav .home-nav-panel {
    position: absolute;
    right: 12px;
    top: calc(100% + 10px);
    min-width: min(88vw, 420px);
    max-width: min(92vw, 520px);
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(
      155deg,
      color-mix(in oklab, #f2f7ff 88%, var(--glass-bg)) 0%,
      color-mix(in oklab, #e6efff 86%, var(--glass-bg)) 100%
    );
    box-shadow: 0 20px 48px rgba(28, 56, 112, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 35;
  }

  [data-theme="dark"] #homeTopNav .home-nav-panel {
    background: linear-gradient(155deg, rgba(18, 44, 105, 0.97) 0%, rgba(12, 34, 86, 0.96) 100%);
    box-shadow: 0 20px 50px rgba(0, 12, 34, 0.46);
  }

  #homeTopNav .menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    border: 1px solid color-mix(in oklab, var(--line) 90%, transparent);
    border-radius: 12px;
    background: color-mix(in oklab, #eef5ff 90%, var(--glass-bg));
    padding: 6px;
  }

  #homeTopNav .menu a {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    background: color-mix(in oklab, #ffffff 68%, transparent);
    color: var(--text-primary);
    font-weight: 500;
  }

  #homeTopNav .menu a:hover {
    background: color-mix(in oklab, #d9e7ff 80%, var(--accent) 20%);
    color: var(--text-primary);
  }

  #homeTopNav #topRightTools {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    justify-content: stretch;
    border: 1px solid color-mix(in oklab, var(--line) 90%, transparent);
    border-radius: 12px;
    background: color-mix(in oklab, #eef5ff 90%, var(--glass-bg));
    padding: 6px;
  }

  #homeTopNav #topRightTools > * {
    width: 100%;
  }

  #homeTopNav #topRightTools .auth-slot {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    justify-content: stretch;
  }

  #homeTopNav #topRightTools .auth-slot .muted {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 6px 10px;
  }

  #homeTopNav #topRightTools .welcome-bubble-link,
  #homeTopNav #topRightTools .made-by-link,
  #homeTopNav #topRightTools .auth-link,
  #homeTopNav #topRightTools button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-primary);
    background: color-mix(in oklab, #ffffff 68%, transparent);
    box-shadow: none;
  }

  #homeTopNav #topRightTools .welcome-bubble-link:hover,
  #homeTopNav #topRightTools .made-by-link:hover,
  #homeTopNav #topRightTools .auth-link:hover,
  #homeTopNav #topRightTools button:hover {
    transform: none;
    box-shadow: none;
    background: color-mix(in oklab, #d9e7ff 80%, var(--accent) 20%);
  }

  #homeTopNav #topRightTools .welcome-bubble-dot {
    display: none;
  }

  #homeTopNav #topRightTools .made-by-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  #homeTopNav #topRightTools .theme-dropdown {
    width: 100%;
  }

  #homeTopNav #topRightTools .theme-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    border-radius: 10px;
    box-shadow: none;
    background: color-mix(in oklab, #e8f1ff 92%, var(--glass-bg));
    padding: 4px;
  }

  [data-theme="dark"] #homeTopNav .menu,
  [data-theme="dark"] #homeTopNav #topRightTools {
    background: rgba(26, 58, 126, 0.72);
    border-color: rgba(146, 188, 255, 0.28);
  }

  [data-theme="dark"] #homeTopNav .menu a,
  [data-theme="dark"] #homeTopNav #topRightTools .welcome-bubble-link,
  [data-theme="dark"] #homeTopNav #topRightTools .made-by-link,
  [data-theme="dark"] #homeTopNav #topRightTools .auth-link,
  [data-theme="dark"] #homeTopNav #topRightTools button {
    background: rgba(18, 48, 110, 0.78);
    color: rgba(237, 245, 255, 0.98);
  }

  [data-theme="dark"] #homeTopNav .menu a:hover,
  [data-theme="dark"] #homeTopNav #topRightTools .welcome-bubble-link:hover,
  [data-theme="dark"] #homeTopNav #topRightTools .made-by-link:hover,
  [data-theme="dark"] #homeTopNav #topRightTools .auth-link:hover,
  [data-theme="dark"] #homeTopNav #topRightTools button:hover {
    background: rgba(43, 86, 168, 0.82);
  }

  [data-theme="dark"] #homeTopNav #topRightTools .theme-menu {
    background: rgba(20, 51, 116, 0.86);
    border-color: rgba(146, 188, 255, 0.28);
  }

  #homeTopNav #topRightTools .theme-menu-item {
    border-radius: 8px;
    min-height: 36px;
  }

  #homeTopNav.nav-bubble-open .home-nav-panel {
    display: flex;
  }
}

@media (max-width: 520px) {
  main {
    margin-top: 126px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    height: 28px;
  }

  .menu a {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .toast {
    right: 10px;
    left: 10px;
    max-width: unset;
  }
}

/* Author X: fully isolated redesign */
body.author-x-page {
  --author-x-c1: #3557d6;
  --author-x-c2: #4f70ee;
  --author-x-c3: #7ea2ff;
  --author-x-c4: #071a46;
  --author-x-c5: #1d2c72;
  --author-x-c6: #4a278f;
  --author-x-mx: 50%;
  --author-x-my: 50%;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: rgba(242, 247, 255, 1);
  font-family: "Sora", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(126, 162, 255, 0.24), transparent 34%),
    radial-gradient(circle at 86% 22%, rgba(74, 39, 143, 0.26), transparent 36%),
    radial-gradient(circle at 20% 86%, rgba(79, 112, 238, 0.18), transparent 42%),
    linear-gradient(130deg, var(--author-x-c4), var(--author-x-c5) 44%, var(--author-x-c6));
}

body.author-x-page::before {
  content: none;
}

.author-x-main {
  width: min(1240px, calc(100% - 28px));
  margin: 88px auto 44px;
  display: grid;
  gap: 16px;
}

.author-x-home {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(1240px, calc(100% - 28px));
  text-decoration: none;
  color: rgba(246, 249, 255, 1);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(126, 162, 255, 0.45);
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(53, 87, 214, 0.9), rgba(79, 112, 238, 0.86));
  box-shadow: 0 12px 32px rgba(4, 16, 38, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.author-x-home:hover,
.author-x-home:focus-visible {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 16px 34px rgba(8, 24, 60, 0.52);
}

.author-x-home:focus-visible,
.author-x-cta:focus-visible,
.author-x-modal-close:focus-visible {
  outline: 2px solid #7ea2ff;
  outline-offset: 2px;
}

.author-x-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(20px, 3.4vw, 40px);
  border: 1px solid rgba(126, 162, 255, 0.25);
  background:
    linear-gradient(122deg, rgba(7, 26, 70, 0.9), rgba(29, 44, 114, 0.82) 48%, rgba(74, 39, 143, 0.7));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 340px);
  grid-template-areas:
    "left avatar"
    "left status"
    "stream stream";
  gap: 14px;
}

.author-x-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--author-x-mx) var(--author-x-my), rgba(126, 162, 255, 0.34), transparent 34%);
}

.author-x-gridline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 97%, rgba(126, 162, 255, 0.08) 100%),
    linear-gradient(90deg, transparent 97%, rgba(126, 162, 255, 0.08) 100%);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 36%, transparent 82%);
}

.author-x-left {
  grid-area: left;
  z-index: 2;
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: center;
}

.author-x-label {
  margin: 0;
  color: rgba(226, 239, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.author-x-name {
  margin: 0;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-shadow: 0 12px 32px rgba(8, 22, 60, 0.5);
}

.author-x-tagline {
  margin: 0;
  max-width: 760px;
  color: rgba(236, 245, 255, 0.95);
  font-size: 17px;
  line-height: 1.8;
}

.author-x-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-x-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.author-x-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid rgba(126, 162, 255, 0.44);
  background: rgba(53, 87, 214, 0.24);
  color: rgba(232, 243, 255, 1);
}

.author-x-avatar-wrap {
  grid-area: avatar;
  z-index: 2;
  margin: 0;
  display: grid;
  place-items: center;
  align-content: start;
  gap: 8px;
}

.author-x-avatar {
  width: min(290px, 92%);
  aspect-ratio: 1;
  border-radius: 34% 66% 56% 44% / 41% 34% 66% 59%;
  object-fit: cover;
  border: 2px solid rgba(126, 162, 255, 0.52);
  box-shadow:
    0 22px 44px rgba(4, 12, 34, 0.52),
    0 0 0 10px rgba(79, 112, 238, 0.18);
  animation: authorXFloat 6s ease-in-out infinite;
}

.author-x-avatar-caption {
  color: rgba(220, 236, 255, 0.84);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-x-status {
  grid-area: status;
  z-index: 2;
  border-radius: 16px;
  border: 1px solid rgba(126, 162, 255, 0.36);
  background: rgba(10, 24, 62, 0.68);
  padding: 14px;
  transform-style: preserve-3d;
  transition: transform 0.28s ease;
}

.author-x-status-head {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(215, 232, 255, 0.86);
}

.author-x-status ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.author-x-status li {
  display: grid;
  gap: 4px;
}

.author-x-status span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(191, 212, 241, 0.8);
}

.author-x-status strong {
  font-size: 14px;
  color: rgba(240, 247, 255, 1);
  font-weight: 600;
}

.author-x-stream {
  grid-area: stream;
  z-index: 2;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(126, 162, 255, 0.36);
  background: rgba(7, 24, 68, 0.7);
  padding-inline: 10px;
}

.author-x-stream-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 10px 16px;
  animation: authorXMarquee 24s linear infinite;
  will-change: transform;
}

.author-x-stream-track span {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(224, 240, 255, 0.88);
  white-space: nowrap;
}

.author-x-signature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 12px;
}

.author-x-panel {
  border-radius: 18px;
  border: 1px solid rgba(126, 162, 255, 0.24);
  background: rgba(10, 24, 62, 0.62);
  padding: 18px;
  transition: transform 0.28s ease;
}

.author-x-panel-main h2,
.author-x-data h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
}

.author-x-panel-main p {
  margin: 0;
  line-height: 1.84;
  color: rgba(224, 238, 255, 0.92);
}

.author-x-path {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-x-path li {
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(126, 162, 255, 0.35);
  background: rgba(79, 112, 238, 0.2);
  font-size: 12px;
}

.author-x-panel-metric {
  background: linear-gradient(150deg, rgba(53, 87, 214, 0.7), rgba(74, 39, 143, 0.8));
}

.author-x-kpi-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(234, 244, 255, 0.88);
}

.author-x-kpi-value {
  margin: 10px 0 2px;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(44px, 8vw, 74px);
  line-height: 0.94;
  text-shadow: 0 8px 24px rgba(9, 16, 42, 0.35);
}

.author-x-kpi-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(230, 241, 255, 0.86);
}

.author-x-data {
  border-radius: 22px;
  border: 1px solid rgba(126, 162, 255, 0.24);
  background:
    radial-gradient(circle at 88% 14%, rgba(126, 162, 255, 0.18), transparent 30%),
    rgba(8, 22, 58, 0.65);
  padding: 18px;
}

.author-x-data-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.author-x-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 162, 255, 0.42);
  border-radius: 12px;
  padding: 9px 14px;
  color: rgba(242, 247, 255, 1);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(53, 87, 214, 0.95), rgba(79, 112, 238, 0.86));
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.author-x-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 18, 44, 0.48);
}

.author-x-cta:visited {
  color: rgba(242, 247, 255, 1);
}

.author-x-cta-github {
  background: linear-gradient(135deg, rgba(29, 44, 114, 0.92), rgba(74, 39, 143, 0.8));
}

.author-x-track {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.author-x-links {
  border-radius: 22px;
  border: 1px solid rgba(126, 162, 255, 0.24);
  background:
    radial-gradient(circle at 10% 20%, rgba(79, 112, 238, 0.18), transparent 30%),
    rgba(9, 24, 60, 0.72);
  padding: 18px;
}

.author-x-links h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
}

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

.author-x-link-card {
  border-radius: 16px;
  border: 1px solid rgba(126, 162, 255, 0.28);
  background: rgba(12, 28, 70, 0.78);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.author-x-link-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-x-link-head h3 {
  margin: 0;
  font-size: 20px;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
}

.author-x-link-head p {
  margin: 4px 0 0;
  color: rgba(206, 227, 255, 0.88);
  font-size: 14px;
}

.author-x-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.author-x-link-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.author-x-link-icon-wechat {
  color: rgba(242, 247, 255, 1);
  background: linear-gradient(135deg, rgba(53, 87, 214, 0.86), rgba(79, 112, 238, 0.86));
  border: 1px solid rgba(126, 162, 255, 0.4);
}

.author-x-link-icon-github {
  color: rgba(242, 247, 255, 1);
  background: linear-gradient(135deg, rgba(29, 44, 114, 0.9), rgba(74, 39, 143, 0.82));
  border: 1px solid rgba(126, 162, 255, 0.34);
}

.author-x-node {
  border-radius: 14px;
  border: 1px solid rgba(126, 162, 255, 0.24);
  background: rgba(12, 28, 71, 0.76);
  padding: 14px;
  transition: transform 0.28s ease;
}

.author-x-node span {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(126, 162, 255, 0.4);
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(205, 225, 255, 0.92);
  margin-bottom: 8px;
}

.author-x-node h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
}

.author-x-node p {
  margin: 0;
  color: rgba(212, 231, 255, 0.9);
  line-height: 1.72;
}

.author-x-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 26, 0.76);
  padding: 12px;
}

.author-x-modal[hidden] {
  display: none !important;
}

.author-x-modal-card {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(126, 162, 255, 0.32);
  background: linear-gradient(145deg, rgba(7, 26, 70, 0.94), rgba(29, 44, 114, 0.84));
  padding: 16px;
  position: relative;
  box-shadow: 0 24px 48px rgba(3, 8, 24, 0.6);
}

.author-x-modal-card h2 {
  margin: 0 26px 12px 0;
  font-family: "Space Grotesk", "Sora", "Noto Sans SC", sans-serif;
  font-size: 24px;
}

.author-x-modal-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(126, 162, 255, 0.36);
  display: block;
}

.author-x-modal-card p {
  margin: 12px 0 0;
  color: rgba(206, 227, 255, 0.88);
}

.author-x-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(126, 162, 255, 0.42);
  color: rgba(238, 246, 255, 1);
  background: rgba(53, 87, 214, 0.42);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@keyframes authorXFloat {
  0% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
  100% {
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes authorXMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .author-x-main {
    width: calc(100% - 20px);
    margin-top: 86px;
  }

  .author-x-home {
    width: calc(100% - 20px);
    top: 10px;
  }

  .author-x-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "avatar"
      "status"
      "stream";
  }

  .author-x-signature {
    grid-template-columns: 1fr 1fr;
  }

  .author-x-track {
    grid-template-columns: 1fr;
  }

  .author-x-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .author-x-main {
    margin-top: 82px;
    margin-bottom: 24px;
    gap: 12px;
  }

  .author-x-home {
    padding: 9px 12px;
    font-size: 14px;
  }

  .author-x-name {
    font-size: clamp(42px, 18vw, 72px);
  }

  .author-x-tagline {
    font-size: 15px;
  }

  .author-x-signature {
    grid-template-columns: 1fr;
  }

  .author-x-panel-main {
    grid-column: auto;
  }

  .author-x-kpi-value {
    font-size: clamp(36px, 18vw, 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-x-avatar,
  .author-x-stream-track {
    animation: none !important;
  }

  .author-x-home,
  .author-x-cta,
  .author-x-panel,
  .author-x-node {
    transition: none !important;
  }
}

body.author-x-page {
  position: relative;
  isolation: isolate;
}

.author-x-particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.94;
}

body.author-x-page[data-author-x-theme="light"] .author-x-particle-canvas {
  opacity: 0.8;
}

.author-x-main {
  position: relative;
  z-index: 2;
}

.author-x-bg-orbs {
  position: fixed;
  inset: -10vh -10vw;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.author-x-bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.42;
  will-change: transform;
}

.author-x-bg-orbs span:nth-child(1) {
  width: clamp(240px, 26vw, 420px);
  aspect-ratio: 1;
  left: 4%;
  top: 8%;
  background: radial-gradient(circle, rgba(126, 162, 255, 0.22), rgba(126, 162, 255, 0));
  animation: authorXOrbDriftOne 18s ease-in-out infinite;
}

.author-x-bg-orbs span:nth-child(2) {
  width: clamp(220px, 24vw, 390px);
  aspect-ratio: 1;
  right: 10%;
  top: 18%;
  background: radial-gradient(circle, rgba(74, 39, 143, 0.16), rgba(74, 39, 143, 0));
  animation: authorXOrbDriftTwo 22s ease-in-out infinite;
}

.author-x-bg-orbs span:nth-child(3) {
  width: clamp(260px, 28vw, 450px);
  aspect-ratio: 1;
  left: 28%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(53, 87, 214, 0.18), rgba(53, 87, 214, 0));
  animation: authorXOrbDriftThree 20s ease-in-out infinite;
}

.author-x-topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 42;
  width: min(1240px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-x-home {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  flex: 1;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
}

.author-x-theme-bubble {
  position: relative;
  right: auto;
  top: auto;
  z-index: 1;
  border: 1px solid rgba(126, 162, 255, 0.42);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 26, 70, 0.54);
  color: rgba(238, 246, 255, 1);
  box-shadow: 0 10px 24px rgba(3, 8, 24, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.author-x-home:hover,
.author-x-home:focus-visible {
  transform: translateY(-2px);
}

.author-x-theme-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(8, 24, 60, 0.38);
}

.author-x-theme-bubble:focus-visible {
  outline: 2px solid #7ea2ff;
  outline-offset: 2px;
}

.author-x-theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ea2ff;
  box-shadow: 0 0 0 5px rgba(126, 162, 255, 0.22);
}

body.author-x-page[data-author-x-theme="light"] {
  --author-x-m3-primary: #4d6f9c;
  --author-x-m3-on-primary: #ffffff;
  --author-x-m3-primary-container: #dce8f6;
  --author-x-m3-on-primary-container: #10223f;
  --author-x-m3-secondary: #6a7080;
  --author-x-m3-on-secondary: #ffffff;
  --author-x-m3-secondary-container: #e6e4dd;
  --author-x-m3-on-secondary-container: #262a33;
  --author-x-m3-surface: #fffdf7;
  --author-x-m3-surface-container-low: #f8f3e8;
  --author-x-m3-surface-container: #f3ecdf;
  --author-x-m3-surface-container-high: #ece4d6;
  --author-x-m3-surface-container-highest: #e6dece;
  --author-x-m3-on-surface: #252422;
  --author-x-m3-on-surface-variant: #5b5750;
  --author-x-m3-outline: #a59d90;
  --author-x-m3-outline-variant: #d5cebf;
  color: var(--author-x-m3-on-surface);
  background:
    radial-gradient(circle at 16% 14%, rgba(206, 226, 243, 0.34), transparent 38%),
    radial-gradient(circle at 84% 20%, rgba(161, 209, 232, 0.24), transparent 36%),
    radial-gradient(circle at 20% 86%, rgba(125, 180, 217, 0.16), transparent 44%),
    linear-gradient(140deg, #fffdf7, #faf6ee 44%, #f4eee3 100%);
}

body.author-x-page[data-author-x-theme="light"] .author-x-theme-bubble {
  background: color-mix(in oklab, var(--author-x-m3-surface-container-high) 94%, #ffffff);
  color: var(--author-x-m3-on-surface);
  border-color: var(--author-x-m3-outline-variant);
  box-shadow: 0 8px 18px rgba(37, 36, 34, 0.08);
}

body.author-x-page[data-author-x-theme="light"] .author-x-theme-dot {
  background: var(--author-x-m3-primary);
  box-shadow: 0 0 0 5px rgba(77, 111, 156, 0.2);
}

body.author-x-page[data-author-x-theme="light"] .author-x-home {
  border-color: var(--author-x-m3-outline-variant);
  background: color-mix(in oklab, var(--author-x-m3-surface-container-high) 90%, #ffffff);
  color: var(--author-x-m3-on-surface);
  box-shadow: 0 8px 16px rgba(37, 36, 34, 0.08);
}

body.author-x-page[data-author-x-theme="light"] .author-x-hero {
  border-color: var(--author-x-m3-outline-variant);
  background: linear-gradient(
    122deg,
    color-mix(in oklab, var(--author-x-m3-surface) 96%, #ffffff),
    color-mix(in oklab, var(--author-x-m3-surface-container-low) 88%, #ffffff) 48%,
    color-mix(in oklab, var(--author-x-m3-surface-container) 90%, #ffffff)
  );
  box-shadow: 0 12px 24px rgba(37, 36, 34, 0.08);
}

body.author-x-page[data-author-x-theme="light"] .author-x-gridline {
  background:
    linear-gradient(transparent 97%, rgba(53, 87, 214, 0.07) 100%),
    linear-gradient(90deg, transparent 97%, rgba(53, 87, 214, 0.07) 100%);
}

body.author-x-page[data-author-x-theme="light"] .author-x-hero::before {
  background: radial-gradient(circle at var(--author-x-mx) var(--author-x-my), rgba(161, 209, 232, 0.24), transparent 42%);
}

body.author-x-page[data-author-x-theme="light"] .author-x-label {
  color: color-mix(in oklab, var(--author-x-m3-on-surface-variant) 85%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-name {
  color: var(--author-x-m3-on-primary-container);
  text-shadow: 0 10px 20px rgba(53, 87, 214, 0.14);
}

body.author-x-page[data-author-x-theme="light"] .author-x-tagline {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-chip {
  background: color-mix(in oklab, var(--author-x-m3-primary-container) 62%, #ffffff);
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 22%, var(--author-x-m3-outline-variant));
  color: var(--author-x-m3-on-primary-container);
}

body.author-x-page[data-author-x-theme="light"] .author-x-avatar {
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 26%, var(--author-x-m3-outline-variant));
  box-shadow:
    0 14px 26px rgba(37, 36, 34, 0.12),
    0 0 0 10px rgba(161, 209, 232, 0.16);
}

body.author-x-page[data-author-x-theme="light"] .author-x-avatar-caption {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-status {
  border-color: var(--author-x-m3-outline-variant);
  background: color-mix(in oklab, var(--author-x-m3-surface-container-high) 88%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-status-head {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-status span {
  color: color-mix(in oklab, var(--author-x-m3-on-surface-variant) 84%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-status strong {
  color: var(--author-x-m3-on-surface);
}

body.author-x-page[data-author-x-theme="light"] .author-x-stream {
  border-color: var(--author-x-m3-outline-variant);
  background: color-mix(in oklab, var(--author-x-m3-surface-container-low) 92%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-stream-track span {
  color: color-mix(in oklab, var(--author-x-m3-on-surface-variant) 78%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-panel {
  border-color: var(--author-x-m3-outline-variant);
  background: color-mix(in oklab, var(--author-x-m3-surface-container) 90%, #ffffff);
  box-shadow: 0 8px 18px rgba(37, 36, 34, 0.08);
}

body.author-x-page[data-author-x-theme="light"] .author-x-panel h2,
body.author-x-page[data-author-x-theme="light"] .author-x-panel h3,
body.author-x-page[data-author-x-theme="light"] .author-x-data h2,
body.author-x-page[data-author-x-theme="light"] .author-x-links h2 {
  color: var(--author-x-m3-on-surface);
}

body.author-x-page[data-author-x-theme="light"] .author-x-panel-main p {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-path li {
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 20%, var(--author-x-m3-outline-variant));
  background: color-mix(in oklab, var(--author-x-m3-primary-container) 66%, #ffffff);
  color: var(--author-x-m3-on-primary-container);
}

body.author-x-page[data-author-x-theme="light"] .author-x-panel-metric {
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 22%, var(--author-x-m3-outline-variant));
  background: linear-gradient(150deg, #e3edf9, #d4e3f4 62%, #c8dced);
}

body.author-x-page[data-author-x-theme="light"] .author-x-panel-metric .author-x-kpi-title,
body.author-x-page[data-author-x-theme="light"] .author-x-panel-metric .author-x-kpi-label {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-panel-metric .author-x-kpi-value {
  color: var(--author-x-m3-on-primary-container);
}

body.author-x-page[data-author-x-theme="light"] .author-x-data {
  border-color: var(--author-x-m3-outline-variant);
  background:
    radial-gradient(circle at 88% 14%, rgba(161, 209, 232, 0.18), transparent 32%),
    color-mix(in oklab, var(--author-x-m3-surface-container) 88%, #ffffff);
  box-shadow: 0 8px 18px rgba(37, 36, 34, 0.08);
}

body.author-x-page[data-author-x-theme="light"] .author-x-links {
  border-color: var(--author-x-m3-outline-variant);
  background:
    radial-gradient(circle at 10% 20%, rgba(161, 209, 232, 0.16), transparent 34%),
    color-mix(in oklab, var(--author-x-m3-surface-container) 90%, #ffffff);
  box-shadow: 0 8px 18px rgba(37, 36, 34, 0.08);
}

body.author-x-page[data-author-x-theme="light"] .author-x-link-card {
  border-color: var(--author-x-m3-outline-variant);
  background: color-mix(in oklab, var(--author-x-m3-surface-container-low) 92%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-link-head p {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-node {
  border-color: var(--author-x-m3-outline-variant);
  background: color-mix(in oklab, var(--author-x-m3-surface-container-low) 92%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-node span {
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 20%, var(--author-x-m3-outline-variant));
  color: var(--author-x-m3-primary);
}

body.author-x-page[data-author-x-theme="light"] .author-x-node p {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-cta {
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 32%, var(--author-x-m3-outline-variant));
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--author-x-m3-primary) 88%, #ffffff),
    color-mix(in oklab, #7db4d9 74%, #ffffff)
  );
  color: var(--author-x-m3-on-primary);
}

body.author-x-page[data-author-x-theme="light"] .author-x-cta-github {
  background: linear-gradient(
    135deg,
    color-mix(in oklab, #4d6f9c 92%, #ffffff),
    color-mix(in oklab, #6e85aa 82%, #ffffff)
  );
}

body.author-x-page[data-author-x-theme="light"] .author-x-link-icon-wechat {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, #4d6f9c 90%, #ffffff),
    color-mix(in oklab, #7db4d9 78%, #ffffff)
  );
  border-color: color-mix(in oklab, #4d6f9c 34%, var(--author-x-m3-outline-variant));
}

body.author-x-page[data-author-x-theme="light"] .author-x-link-icon-github {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, #5f769d 88%, #ffffff),
    color-mix(in oklab, #4d6f9c 86%, #ffffff)
  );
  border-color: color-mix(in oklab, #4d6f9c 30%, var(--author-x-m3-outline-variant));
}

body.author-x-page[data-author-x-theme="light"] .author-x-modal {
  background: rgba(28, 27, 31, 0.28);
}

body.author-x-page[data-author-x-theme="light"] .author-x-modal-card {
  border-color: var(--author-x-m3-outline-variant);
  background: linear-gradient(
    145deg,
    color-mix(in oklab, var(--author-x-m3-surface) 96%, #ffffff),
    color-mix(in oklab, var(--author-x-m3-surface-container-high) 90%, #ffffff)
  );
  box-shadow: 0 18px 36px rgba(28, 27, 31, 0.16);
}

body.author-x-page[data-author-x-theme="light"] .author-x-modal-card h2 {
  color: var(--author-x-m3-on-surface);
}

body.author-x-page[data-author-x-theme="light"] .author-x-modal-card p {
  color: var(--author-x-m3-on-surface-variant);
}

body.author-x-page[data-author-x-theme="light"] .author-x-modal-close {
  border-color: color-mix(in oklab, var(--author-x-m3-primary) 20%, var(--author-x-m3-outline-variant));
  color: var(--author-x-m3-on-primary-container);
  background: color-mix(in oklab, var(--author-x-m3-primary-container) 80%, #ffffff);
}

body.author-x-page[data-author-x-theme="light"] .author-x-bg-orbs span:nth-child(1) {
  background: radial-gradient(circle, rgba(206, 226, 243, 0.48), rgba(206, 226, 243, 0));
}

body.author-x-page[data-author-x-theme="light"] .author-x-bg-orbs span:nth-child(2) {
  background: radial-gradient(circle, rgba(161, 209, 232, 0.34), rgba(161, 209, 232, 0));
}

body.author-x-page[data-author-x-theme="light"] .author-x-bg-orbs span:nth-child(3) {
  background: radial-gradient(circle, rgba(125, 180, 217, 0.26), rgba(125, 180, 217, 0));
}

@keyframes authorXOrbDriftOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(32px, -24px, 0) scale(1.06);
  }
}

@keyframes authorXOrbDriftTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-34px, 22px, 0) scale(0.94);
  }
}

@keyframes authorXOrbDriftThree {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -18px, 0) scale(1.04);
  }
}

@media (max-width: 760px) {
  .author-x-topbar {
    top: 10px;
    width: calc(100% - 16px);
    gap: 8px;
  }

  .author-x-home {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 14px;
  }

  .author-x-theme-bubble {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .author-x-theme-dot {
    width: 8px;
    height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-x-bg-orbs span {
    animation: none !important;
  }

  .author-x-theme-bubble {
    transition: none !important;
  }
}

