:root {
  --bg: #090b10;
  --bg-elevated: #0f1218;
  --panel: #151a24;
  --sidebar: #0d1017;
  --border: #252d3d;
  --text: #eef0f5;
  --muted: #8b93a7;
  --accent: #5b7cfa;
  --accent2: #38bdf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --sidebar-w-expanded: 168px;
  --sidebar-w-collapsed: 68px;
  --sidebar-w: var(--sidebar-w-expanded);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'SF Pro Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-screen.is-hidden {
  display: none !important;
  pointer-events: none;
}

.login-card {
  width: min(400px, 100%);
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}


.login-card input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1218;
  color: var(--text);
  font-size: 1rem;
}

.login-card input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.login-card input:focus::placeholder {
  color: #5c6370;
}

.err {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 8px 0 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-shell.is-hidden {
  display: none !important;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px 10px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  transition: width 0.2s ease;
}

.sidebar.is-collapsed {
  --sidebar-w: var(--sidebar-w-collapsed);
  padding-left: 6px;
  padding-right: 6px;
}

.sidebar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.sidebar-brand-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.15s ease, max-width 0.2s ease;
}

.sidebar-brand-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.is-collapsed .sidebar-brand {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.sidebar.is-collapsed .sidebar-brand-text {
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-toggle:hover {
  color: var(--text);
  border-color: rgba(91, 124, 250, 0.45);
  background: rgba(91, 124, 250, 0.1);
}

.sidebar-toggle-ico {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.sidebar.is-collapsed .sidebar-toggle-ico {
  transform: rotate(180deg);
}

.nav-label {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
  text-align: left;
  transition: opacity 0.15s ease, max-width 0.2s ease;
}

.sidebar.is-collapsed .nav-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  flex: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-icon {
  margin-right: 8px;
  opacity: 0.85;
}

.nav-svg,
.stat-svg {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-svg {
  width: 20px;
  height: 20px;
  opacity: 0.72;
}

.nav-tab.is-active .nav-svg,
.nav-tab:hover .nav-svg {
  opacity: 1;
}

.nav-tab--support .nav-svg--support {
  opacity: 0.88;
}

.nav-tab--support:hover .nav-svg--support,
.nav-tab--support.is-active .nav-svg--support {
  opacity: 1;
  color: #ffb347;
  filter: drop-shadow(0 0 6px rgba(255, 179, 71, 0.35));
}

.nav-tab--support.is-active {
  background: linear-gradient(90deg, rgba(255, 140, 66, 0.12), rgba(91, 124, 250, 0.08));
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand-logo {
  display: block;
  width: 48px;
  height: 48px;
}

.login-card .login-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 8px;
  padding: 8px 0 12px;
  overflow: visible;
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  flex-shrink: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, padding 0.2s ease;
}

.sidebar.is-collapsed .nav-tab {
  justify-content: center;
  gap: 0;
  padding: 10px 6px;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(127, 127, 127, 0.1);
}

.nav-tab.is-active {
  color: var(--text);
  background: rgba(91, 124, 250, 0.22);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* 菜单与底栏之间的留白：装饰动画（不占菜单间距） */
.sidebar-deco {
  flex: 1 1 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 2px 6px;
  pointer-events: none;
  overflow: visible;
}

.sidebar-deco-inner {
  position: relative;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 20px;
}

.sidebar-deco-glow {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 85% 75% at 50% 100%, rgba(45, 212, 191, 0.32), transparent 68%),
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(56, 189, 248, 0.08), transparent 70%);
  border: 1px solid rgba(45, 212, 191, 0.16);
  box-shadow:
    0 0 24px rgba(45, 212, 191, 0.14),
    inset 0 0 20px rgba(45, 212, 191, 0.05);
  pointer-events: none;
  animation: sidebar-deco-glow-breathe 6s ease-in-out infinite;
}

.sidebar-deco-scan {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  top: 22%;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.95), transparent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
  animation: sidebar-deco-scan-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
  opacity: 0.5;
}

@keyframes sidebar-deco-glow-breathe {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes sidebar-deco-scan-sweep {
  0%,
  100% {
    top: 18%;
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  50% {
    top: 78%;
    opacity: 0.35;
  }
  92% {
    opacity: 0;
  }
}

/* 侧栏底部：抽象科技羚羊（同构 LOGO 形态 + 多层动效） */
.sidebar-tech-antelope {
  position: relative;
  z-index: 3;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 8px 22px rgba(45, 212, 191, 0.2));
  animation: nx-float 5.5s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-orbit {
  transform-origin: 64px 66px;
  animation: nx-orbit-spin 18s linear infinite;
}

.sidebar-tech-antelope .nx-orbit--inner {
  animation-direction: reverse;
  animation-duration: 24s;
}

.sidebar-tech-antelope .nx-corner {
  animation: nx-corner-blink 5s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-corner:nth-child(2) {
  animation-delay: 1.2s;
}

.sidebar-tech-antelope .nx-corner:nth-child(3) {
  animation-delay: 2.4s;
}

.sidebar-tech-antelope .nx-corner:nth-child(4) {
  animation-delay: 3.6s;
}

.sidebar-tech-antelope .nx-bust {
  transform: translate(64px, 80px);
  transform-box: fill-box;
  transform-origin: center;
  animation: nx-bust-breathe 5s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-cheek-l {
  animation: nx-cheek-soft 4.2s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-cheek-r {
  animation: nx-cheek-soft 4.2s ease-in-out infinite 0.55s;
}

.sidebar-tech-antelope .nx-horn {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation:
    nx-horn-draw 4.5s ease-in-out infinite,
    nx-horn-glow 4s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-horn-l {
  transform-origin: 0 -1px;
  transform-box: fill-box;
  animation:
    nx-horn-draw 4.5s ease-in-out infinite,
    nx-horn-glow 4s ease-in-out infinite,
    nx-horn-sway-l 9s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-horn-r {
  transform-origin: 0 -1px;
  transform-box: fill-box;
  animation:
    nx-horn-draw 4.5s ease-in-out infinite 0.2s,
    nx-horn-glow 4s ease-in-out infinite 0.15s,
    nx-horn-sway-r 9s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-muzzle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: nx-muzzle-draw 4.2s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-snout {
  transform-origin: 0 15px;
  transform-box: fill-box;
  animation: nx-snout-pulse 3.6s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-snout-ring {
  transform-origin: 0 15px;
  transform-box: fill-box;
  animation: nx-snout-ring-pulse 3.6s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-snout-core {
  transform-origin: 0 15px;
  transform-box: fill-box;
  animation: nx-core-pulse 2.8s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-star-wrap {
  transform: translate(91px, 32px);
  transform-box: fill-box;
  transform-origin: center;
  animation: nx-star-float 4.5s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-star {
  transform-origin: center;
  animation: nx-star-twinkle 2.6s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-star-halo {
  transform-origin: center;
  animation: nx-star-halo-pulse 2.6s ease-in-out infinite;
}

.sidebar-tech-antelope .nx-pedestal {
  transform-origin: 64px 110px;
  animation: nx-pedestal-glow 4s ease-in-out infinite;
}

@keyframes nx-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes nx-orbit-spin {
  0% {
    transform: rotate(0deg);
    opacity: 0.28;
  }
  50% {
    opacity: 0.42;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.28;
  }
}

@keyframes nx-corner-blink {
  0%,
  82%,
  100% {
    opacity: 0.35;
  }
  90% {
    opacity: 1;
  }
}

@keyframes nx-bust-breathe {
  0%,
  100% {
    transform: translate(64px, 80px) scale(1);
  }
  50% {
    transform: translate(64px, 80px) scale(1.04);
  }
}

@keyframes nx-cheek-soft {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.42;
  }
}

@keyframes nx-horn-draw {
  0%,
  12% {
    stroke-dashoffset: 100;
    opacity: 0.35;
  }
  38%,
  72% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  88%,
  100% {
    stroke-dashoffset: 100;
    opacity: 0.35;
  }
}

@keyframes nx-horn-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
  }
}

@keyframes nx-horn-sway-l {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-2.5deg);
  }
}

@keyframes nx-horn-sway-r {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

@keyframes nx-muzzle-draw {
  0%,
  18% {
    stroke-dashoffset: 100;
    opacity: 0.4;
  }
  42%,
  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  92%,
  100% {
    stroke-dashoffset: 100;
    opacity: 0.4;
  }
}

@keyframes nx-snout-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes nx-snout-ring-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.55;
  }
}

@keyframes nx-core-pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes nx-star-float {
  0%,
  100% {
    transform: translate(91px, 32px);
  }
  50% {
    transform: translate(91px, 28px);
  }
}

@keyframes nx-star-twinkle {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.92) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.14) rotate(12deg);
  }
}

@keyframes nx-star-halo-pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.85;
  }
}

@keyframes nx-pedestal-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.06);
  }
}

@keyframes gazelle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes ground-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 0.85;
    transform: scaleX(0.92);
  }
}

@keyframes silhouette-draw {
  0% {
    stroke-dashoffset: 280;
    opacity: 0.35;
  }
  40%,
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes holo-flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes core-shimmer {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes horn-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes horn-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-1.5deg);
  }
}

@keyframes ring-flash {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes head-proud {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  35% {
    transform: rotate(-2deg) translateY(-1px);
  }
  70% {
    transform: rotate(1deg) translateY(0);
  }
}

@keyframes tail-flick {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

@keyframes leg-step-a {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes leg-step-b {
  0%,
  100% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-4deg);
  }
}

@keyframes spine-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -16;
  }
}

@keyframes stripe-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes particle-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes deco-scan-sweep {
  0% {
    top: 12%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  70% {
    top: 78%;
    opacity: 0.5;
  }
  100% {
    top: 82%;
    opacity: 0;
  }
}

@keyframes eye-glint {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes antelope-body-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes antelope-shadow-pulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(0.88);
    opacity: 0.22;
  }
}

@keyframes antelope-tail-sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(14deg);
  }
}

@keyframes antelope-head-nod {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-3deg);
  }
  70% {
    transform: rotate(2deg);
  }
}

@keyframes antelope-ear-twitch {
  0%,
  88%,
  100% {
    transform: rotate(0deg);
  }
  92% {
    transform: rotate(-12deg);
  }
  96% {
    transform: rotate(6deg);
  }
}

@keyframes antelope-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.12);
  }
}

@keyframes antelope-leg-shift-a {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes antelope-leg-shift-b {
  0%,
  100% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

@keyframes antelope-horn-sway-l {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-2.5deg);
  }
}

@keyframes antelope-horn-sway-r {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}

@keyframes horn-ridge-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tech-circuit-pulse {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes tech-mesh-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tech-core-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

@keyframes tech-scan-beam-move {
  0% {
    transform: translateY(-8px);
    opacity: 0.15;
  }
  35% {
    opacity: 0.75;
  }
  70% {
    transform: translateY(52px);
    opacity: 0.35;
  }
  100% {
    transform: translateY(58px);
    opacity: 0;
  }
}

@keyframes tech-joint-pulse {
  0%,
  100% {
    stroke-width: 0.65;
  }
  50% {
    stroke-width: 1.1;
  }
}

@keyframes tech-scan-sweep {
  0% {
    transform: translateY(-42px);
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  45% {
    transform: translateY(38px);
    opacity: 0.35;
  }
  100% {
    transform: translateY(52px);
    opacity: 0;
  }
}

@keyframes tech-horn-pulse {
  0%,
  100% {
    stroke-width: 2;
    opacity: 0.85;
  }
  50% {
    stroke-width: 2.6;
    opacity: 1;
  }
}

@keyframes tech-node-blink {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes tech-eye-glint {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tech-platform-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes tech-hud-fade {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes sidebar-tech-halo {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.96);
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter: hue-rotate(8deg);
  }
}

@keyframes sidebar-tech-ring {
  0% {
    transform: rotate(0deg);
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-deco-glow,
  .sidebar-deco-scan,
  .sidebar-tech-antelope,
  .sidebar-tech-antelope * {
    animation: none !important;
  }
}

.sidebar.is-collapsed .sidebar-deco-inner {
  width: 52px;
  height: 50px;
}

.sidebar.is-collapsed .sidebar-tech-antelope {
  width: 46px;
  height: 46px;
}

.sidebar.is-collapsed .sidebar-deco-glow {
  inset: -2px;
  border-radius: 12px;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar-logout {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 9px 12px;
  font-size: 0.92rem;
  border-radius: 8px;
  margin-top: 0;
}

.sidebar.is-collapsed .sidebar-logout {
  justify-content: center;
  gap: 0;
  padding: 10px 4px;
}

.sidebar .nav-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke-width: 1.65;
  opacity: 0.78;
}

.sidebar-logout .btn-ico-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0c1018 0%, var(--bg) 120px);
}

.main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 8px;
  border-bottom: 1px solid rgba(37, 45, 61, 0.6);
}

.main-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-sub {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.main {
  flex: 1;
  padding: 20px 24px 48px;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.panel-works {
  width: 100%;
  max-width: none;
}

.panel-works.is-active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 168px);
}

.panel-works .table-wrap-wide {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}

#works-pager.pager {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 0;
  padding: 14px 0 10px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 28%);
  border-top: 1px solid var(--border);
}

.page-title {
  margin: 0;
  font-size: 1.25rem;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

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

.panel-head .page-title {
  margin: 0;
}

.panel-head--compact {
  margin-bottom: 10px;
}

.panel-head--packages {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.filters--works {
  width: 100%;
}

.works-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.works-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.works-act-btn__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.works-act-btn--feature:hover {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.works-act-btn--warn:hover {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.works-act-btn--del:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

/* 作品页：搜索/类型在左，Tab+刷新在右，整行铺满 */
.works-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  margin-bottom: 12px;
}

.works-toolbar .filters--works {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.works-toolbar .filters--works .search-input {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: none;
}

.works-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.works-toolbar .works-subtabs {
  flex-shrink: 0;
  margin-bottom: 0;
}

.panel-works .table-wrap-wide {
  width: 100%;
}

.panel-works .bulk-bar {
  width: 100%;
}

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

.filters input,
.filters select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1218;
  color: var(--text);
  font-size: 0.88rem;
}

.check {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 16px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  background: var(--panel);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border-color: transparent;
  color: #fff;
}

.login-card .btn-primary {
  width: 100%;
}

.btn-ghost:hover {
  background: rgba(127, 127, 127, 0.12);
}

.btn-warn {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--warn);
}

.btn-danger {
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.bulk-count {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: auto;
}

/* —— 数据概览（分层 KPI） —— */
.overview-dash {
  margin-bottom: 8px;
}

.overview-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.overview-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: overview-pulse 2s ease-in-out infinite;
}

@keyframes overview-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.overview-updated {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 首屏 4 个核心 KPI，单行铺满 */
.overview-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-card {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--kpi-accent, var(--accent));
}

.kpi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 20px;
}

.kpi-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--kpi-accent, var(--accent));
  opacity: 0.7;
}

.kpi-ico .stat-svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.15;
  opacity: 1;
}

.kpi-label {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.kpi-delta {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.kpi-delta.up {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
}

.kpi-delta.down {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
}

.kpi-delta.flat {
  color: var(--muted);
  background: rgba(139, 147, 167, 0.1);
}

/* 次要指标：分组两行（充值 / 精选） */
.overview-submetrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.overview-sub-row {
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 24, 32, 0.92) 0%, rgba(15, 18, 24, 0.78) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.overview-sub-row--orders {
  border-color: rgba(251, 191, 36, 0.18);
  background: linear-gradient(
    165deg,
    rgba(251, 191, 36, 0.06) 0%,
    rgba(15, 18, 24, 0.88) 42%
  );
}

.overview-sub-row--featured {
  border-color: rgba(253, 224, 71, 0.28);
  background: linear-gradient(
    145deg,
    rgba(253, 224, 71, 0.1) 0%,
    rgba(52, 211, 153, 0.05) 38%,
    rgba(15, 18, 24, 0.9) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 28px rgba(253, 224, 71, 0.06);
}

.overview-sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(37, 45, 61, 0.65);
}

.overview-sub-row--featured .overview-sub-head {
  border-bottom-color: rgba(253, 224, 71, 0.15);
}

.overview-sub-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.overview-sub-row--featured .overview-sub-title::before {
  content: '★';
  display: inline-block;
  margin-right: 6px;
  font-size: 0.72rem;
  color: #fde047;
  opacity: 0.95;
}

.overview-sub-hint {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.overview-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}

.overview-sub-row--orders .overview-sub-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.overview-sub-row--featured .overview-sub-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.submetric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(37, 45, 61, 0.75);
  background: rgba(12, 15, 20, 0.55);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.submetric-card:hover {
  border-color: rgba(107, 114, 128, 0.45);
  background: rgba(18, 22, 30, 0.75);
}

.overview-sub-row--featured .submetric-card {
  border-color: rgba(253, 224, 71, 0.12);
  background: rgba(15, 18, 24, 0.5);
}

.overview-sub-row--featured .submetric-card:hover {
  border-color: rgba(253, 224, 71, 0.32);
  background: rgba(253, 224, 71, 0.06);
}

.submetric-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submetric-value {
  font-size: 1.12rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sub-accent, var(--text));
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.overview-sub-row--featured .submetric-value {
  color: var(--sub-accent, #fde047);
}

.overview-submetrics--more .overview-sub-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.overview-more {
  margin-bottom: 24px;
}

.overview-more summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 8px 0;
  list-style: none;
  user-select: none;
}

.overview-more summary::-webkit-details-marker {
  display: none;
}

.overview-more summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s;
}

.overview-more[open] summary::before {
  transform: rotate(90deg);
}

.overview-more[open] summary {
  color: var(--text);
  margin-bottom: 10px;
}

.overview-charts-block {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(37, 45, 61, 0.7);
}

.overview-charts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.overview-charts-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.overview-charts-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.overview-range-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(91, 124, 250, 0.15);
  color: var(--accent2);
  border: 1px solid rgba(91, 124, 250, 0.25);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-grid-compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.stat-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 14px;
  background: linear-gradient(155deg, rgba(24, 30, 42, 0.92) 0%, rgba(12, 15, 22, 0.98) 100%);
  border: 1px solid rgba(37, 45, 61, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 100% 0%,
    color-mix(in srgb, var(--stat-accent, var(--accent)) 12%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.stat-card:hover {
  border-color: color-mix(in srgb, var(--stat-accent, var(--accent)) 45%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.stat-card-hero {
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
  min-height: 148px;
}

.stat-card-hero .stat-icon-wrap {
  width: 38px;
  height: 38px;
}

.stat-card-hero .stat-svg {
  width: 20px;
  height: 20px;
}

.stat-card-hero .value {
  font-size: 2rem;
}

.stat-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--stat-accent, var(--accent)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--stat-accent, var(--accent)) 35%, transparent);
  color: var(--stat-accent, var(--accent));
  position: relative;
  z-index: 1;
}

.stat-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.stat-card .stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.stat-delta-cap {
  opacity: 0.75;
  font-weight: 500;
}

.stat-delta.up {
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok);
}

.stat-delta.down {
  background: rgba(248, 113, 113, 0.14);
  color: var(--danger);
}

.stat-delta.flat {
  background: rgba(139, 147, 167, 0.12);
  color: var(--muted);
}

.stat-card .label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat-grid-compact .stat-card {
  flex-direction: row;
  padding: 12px 12px 10px;
  min-height: 0;
}

.stat-grid-compact .stat-card .value {
  font-size: 1.2rem;
}

.stat-grid-compact .stat-icon-wrap {
  width: 30px;
  height: 30px;
}

.stat-grid-compact .stat-svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.stat-card .hint {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.9;
}

.chart-card-premium {
  background: linear-gradient(160deg, rgba(21, 26, 36, 0.98), rgba(12, 15, 22, 0.95));
  border-color: rgba(37, 45, 61, 0.95);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.22);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.chart-grid-overview .chart-card-wide {
  grid-column: 1 / -1;
}

.chart-grid-overview .chart-card:not(.chart-card-wide) {
  min-height: 200px;
}

.ip-prot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1160px;
  width: 100%;
}

#panel-ip-protection .ip-prot-regions-wrap,
#panel-ip-protection .panel-head,
#panel-ip-protection .table-wrap,
#panel-ip-protection .table-wrap-wide,
#panel-ip-protection .pager {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.ip-prot-desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  max-width: 520px;
}

.ip-prot-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ip-prot-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.ip-prot-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ip-prot-switch-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
}

.ip-prot-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.ip-prot-switch input:checked + .ip-prot-switch-ui {
  background: linear-gradient(135deg, #3ee08f, #2dd4bf);
}

.ip-prot-switch input:checked + .ip-prot-switch-ui::after {
  transform: translateX(20px);
}

.ip-prot-switch-label.is-on {
  color: #5eead4;
}

.ip-prot-kpi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 0 auto 24px;
  padding: 4px 0;
  max-width: 1160px;
  width: 100%;
}

.ip-prot-kpi-card {
  position: relative;
  flex: 1 1 148px;
  min-width: 132px;
  max-width: 168px;
  padding: 16px 12px 14px;
  text-align: center;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}

.ip-prot-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--accent, #2dd4bf);
  opacity: 0.9;
}

.ip-prot-kpi-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.ip-prot-kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.ip-prot-kpi-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}

@media (max-width: 1080px) {
  .ip-prot-kpi-card {
    flex: 1 1 calc(25% - 12px);
    max-width: none;
    min-width: 140px;
  }
}

@media (max-width: 720px) {
  .ip-prot-kpi {
    gap: 10px;
  }

  .ip-prot-kpi-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .ip-prot-kpi-value {
    font-size: 1.45rem;
  }
}

.ip-prot-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.ip-prot-regions-wrap {
  margin-bottom: 22px;
}

.ip-prot-regions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}

.ip-prot-region-row {
  display: grid;
  grid-template-columns: 88px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.ip-prot-region-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ip-prot-region-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  border-radius: 4px;
}

.ip-prot-region-n {
  text-align: right;
  color: var(--muted);
}

.ip-prot-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.ip-prot-tag--ok {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.ip-prot-tag--rate {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.ip-prot-tag--bl {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
}

.ip-prot-detail {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-input--sm {
  max-width: 160px;
}

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

.orders-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.orders-kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.orders-kpi-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.orders-kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.orders-chart-wrap {
  margin-bottom: 20px;
}

.chart-canvas-mid {
  height: 220px;
}

.chart-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.chart-legend {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.chart-legend .dot.uv {
  background: var(--accent2);
}

.chart-legend .dot.pv {
  background: var(--accent);
}

.chart-canvas-wrap {
  position: relative;
  height: 220px;
}

.chart-canvas-wrap.chart-canvas-tall {
  height: 280px;
}

.chart-card-wide .chart-canvas-wrap {
  height: 260px;
}

.table-wrap {
  overflow-x: hidden;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr.row-disabled td {
  opacity: 0.55;
}

.data-table .col-check {
  width: 40px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-paid {
  background: rgba(52, 211, 153, 0.15);
  color: var(--ok);
}

.badge-pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warn);
}

.badge-disabled {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pager-meta {
  flex: 1;
  min-width: 0;
}

.pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.pager-jump-label,
.pager-jump-suffix {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.pager-jump-input {
  width: 52px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.84rem;
  text-align: center;
  -moz-appearance: textfield;
}

.pager-jump-input::-webkit-outer-spin-button,
.pager-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pager-jump-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.18);
}

.search-input {
  min-width: 200px;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.88rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.works-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.works-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.works-subtab .btn-ico-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.works-subtab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(91, 124, 250, 0.12);
}

.works-subtab.is-active .btn-ico-svg {
  opacity: 1;
  color: var(--accent);
}

.featured-upload-bar {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(91, 124, 250, 0.06);
}

.featured-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.featured-upload-form input[type='text'],
.featured-upload-form select {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.featured-upload-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-row {
  display: grid;
  grid-template-columns: auto 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.work-row.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.work-row-check {
  position: static;
  align-self: center;
}

.work-row-thumb {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #141820;
  flex-shrink: 0;
}

.work-row-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-row-body {
  min-width: 0;
}

.work-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.work-row-id {
  font-weight: 600;
  color: var(--text);
}

.work-row-type {
  color: var(--muted);
}

.work-row-points {
  margin-left: auto;
  color: #fbbf24;
  font-size: 0.82rem;
}

.work-row-prompt {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.work-creator-name {
  font-weight: 500;
  color: var(--text);
}

.work-creator-sub {
  font-size: 0.78rem;
}

.work-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 旧版网格已废弃，强制单行列表 */
.works-grid {
  display: none !important;
}

#works-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.work-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.work-check-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  cursor: pointer;
}

.work-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.work-check-ui {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 11, 16, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.work-check-wrap:hover .work-check-ui {
  border-color: rgba(255, 255, 255, 0.45);
}

.work-check:checked + .work-check-ui {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.35);
}

.work-check:checked + .work-check-ui::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  margin: 3px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.work-card.is-selected .work-check-ui {
  border-color: rgba(91, 124, 250, 0.6);
}

.work-card .work-pub-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.85);
  color: #0c0e14;
  font-weight: 600;
}

.work-thumb {
  display: block;
  position: relative;
  background: #141820;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.work-thumb-bg {
  position: absolute;
  inset: -12px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.55;
}

.work-thumb-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.work-thumb-img.is-broken {
  opacity: 0;
}

.work-thumb-fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: linear-gradient(160deg, #1a2030, #12151c);
}

.work-card--broken .work-thumb-fallback {
  display: flex;
}

.work-card--broken {
  opacity: 0.72;
}

.work-card .meta {
  padding: 8px 10px;
  font-size: 0.75rem;
}

.work-card .meta p {
  margin: 0 0 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .overview-sub-row--orders .overview-sub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .overview-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-sub-row--orders .overview-sub-grid,
  .overview-sub-row--featured .overview-sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .work-row {
    grid-template-columns: auto 72px 1fr;
    grid-template-rows: auto auto;
  }

  .work-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

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

  .overview-kpi-row {
    grid-template-columns: 1fr;
  }

  .overview-sub-row--orders .overview-sub-grid,
  .overview-sub-row--featured .overview-sub-grid {
    grid-template-columns: 1fr;
  }
}

.mini-table table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
}

.mini-table th,
.mini-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.mini-table th {
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 18px;
  border-radius: 10px;
  background: #1e2430;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.is-err {
  border-color: #7f1d1d;
  color: #fecaca;
}

.table-wrap-wide {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.panel .table-wrap,
.panel .table-wrap-wide {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.data-table-users {
  font-size: 0.82rem;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.data-table-users .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table-users th.col-check,
.data-table-users td.col-check {
  padding-left: 14px;
  padding-right: 8px;
}

.data-table-users th.col-actions,
.data-table-users td.col-actions {
  text-align: center;
  padding-left: 10px;
  padding-right: 14px;
  width: 152px;
  max-width: 152px;
  vertical-align: middle;
}

.data-table-users .col-actions {
  white-space: nowrap;
}

.users-cell-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 0 2px;
}

.users-cell-actions .btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.data-table-users .col-oid {
  width: 22%;
  min-width: 0;
  max-width: 22%;
}

.data-table .col-oid .cell-copy-wrap {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-right: 28px;
  box-sizing: border-box;
}

.data-table .col-oid .cell-copy-text--mono {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.data-table .col-oid .cell-copy-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* 操作列：表头与内容居中，左右留白对称 */
.data-table th.col-actions,
.data-table td.col-actions {
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

td.col-actions.actions-icons {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.data-table-works {
  font-size: 0.82rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.data-table-works th,
.data-table-works td {
  vertical-align: middle;
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px 6px;
}

.data-table-works .col-seq {
  width: 4%;
  text-align: center;
  white-space: nowrap;
}

.data-table-works .works-seq-num {
  display: inline-block;
  min-width: 1.5em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.data-table-works .col-check {
  width: 4%;
  text-align: center;
  white-space: nowrap;
}

.works-check-all,
.works-row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  margin: 0;
}

.works-check-all span,
.works-row-check .works-check-ui {
  display: none;
}

.works-check-all input,
.works-row-check input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.works-check-all::before,
.works-row-check::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(139, 147, 167, 0.85);
  background: rgba(12, 14, 20, 0.6);
  box-sizing: border-box;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.works-check-all:has(input:checked)::before,
.works-row-check:has(input:checked)::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.28);
}

.works-check-all:has(input:checked)::after,
.works-row-check:has(input:checked)::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.works-check-all,
.works-row-check {
  position: relative;
}

.data-table-works .col-num {
  width: 5%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 列宽合计 100%，避免 min-width 撑出横向滚动 */

.data-table-works .col-thumb {
  width: 8%;
  white-space: nowrap;
}

.data-table-works .col-type {
  width: 6%;
  text-align: center;
  white-space: nowrap;
}

.works-cell-type {
  vertical-align: middle;
}

.works-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.works-type-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.works-type-badge--draw {
  background: rgba(91, 124, 250, 0.14);
  color: #a8b8ff;
}

.works-type-badge--video {
  background: rgba(168, 85, 247, 0.14);
  color: #c9a8ff;
}

.works-type-badge--game {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.works-type-badge--app {
  background: rgba(45, 212, 191, 0.14);
  color: #7dd3fc;
}

.works-type-badge--article {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.data-table-works .col-content {
  width: 25%;
  min-width: 0;
  white-space: normal;
}

.data-table-works .col-oid {
  width: 14%;
  min-width: 0;
}

.data-table-works .col-meta {
  width: 6%;
  min-width: 0;
}

.data-table-works td:not(.works-cell-content) .cell-copy-wrap {
  max-width: 100%;
}

.data-table-works td:not(.works-cell-content) .cell-copy-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table-works th.col-actions,
.data-table-works td.col-actions {
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

.data-table-works .col-actions {
  width: 10%;
  min-width: 0;
  max-width: 10%;
  vertical-align: middle;
  white-space: nowrap;
}

.works-cell-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  white-space: nowrap;
  box-sizing: border-box;
}

.works-cell-actions .btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* 未精选：空心星、低对比，避免像 btn-primary 那样「已选中」 */
.works-cell-actions .btn-work-feature:not(.is-featured) {
  color: #5c6478;
  border-color: rgba(90, 98, 118, 0.32);
  background: rgba(18, 22, 30, 0.55);
}

.works-cell-actions .btn-work-feature:not(.is-featured) .btn-ico-svg {
  opacity: 0.52;
  stroke-width: 1.75;
}

.works-cell-actions .btn-work-feature:not(.is-featured):hover {
  color: #8b93a7;
  border-color: rgba(107, 114, 128, 0.45);
  background: rgba(127, 127, 127, 0.1);
}

.works-cell-actions .btn-work-feature:not(.is-featured):hover .btn-ico-svg {
  opacity: 0.72;
}

/* 已精选：实心星 + 绿色强调 */
.works-cell-actions .btn-work-feature.is-featured {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.12);
}

.works-cell-actions .btn-work-feature.is-featured .btn-ico-svg--filled {
  opacity: 1;
}

.works-cell-actions .btn-work-del:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.data-table-works tr.is-selected td {
  background: rgba(91, 124, 250, 0.08);
}

.data-table-works tbody tr:hover td {
  background: rgba(127, 127, 127, 0.05);
}

.data-table-works tr.is-selected:hover td {
  background: rgba(91, 124, 250, 0.1);
}

.works-cell-thumb {
  vertical-align: middle;
}

.data-table-works .works-cell-media {
  width: 56px;
  height: 56px;
  max-width: 100%;
}

.works-cell-content {
  vertical-align: middle;
  line-height: 1.5;
  min-width: 0;
}

.works-cell-content .cell-copy-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding-right: 28px;
  box-sizing: border-box;
}

.works-cell-content .cell-copy-btn {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
}

.cell-copy-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  position: relative;
}

.cell-copy-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
  word-break: break-word;
  white-space: normal;
  line-height: 1.45;
}

.cell-copy-text--clamp2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  max-height: calc(1.5em * 2 + 2px);
  text-overflow: clip;
}

.cell-copy-text--clamp3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-copy-text--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #b8beca;
}

.cell-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #8b93a7;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s, color 0.12s;
}

.cell-copy-wrap:hover .cell-copy-btn,
.cell-copy-wrap:focus-within .cell-copy-btn {
  opacity: 1;
}

.cell-copy-btn:hover {
  background: rgba(91, 124, 250, 0.15);
  color: var(--accent);
}

.cell-copy-ico {
  width: 14px;
  height: 14px;
  display: block;
}

.works-cell-oid {
  max-width: 100%;
}

/* 应用内确认 / 输入弹窗 */
.admin-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.admin-dialog[hidden] {
  display: none !important;
}

.admin-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.admin-dialog-card {
  position: relative;
  width: min(100%, 400px);
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.admin-dialog-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.admin-dialog-message {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  word-break: break-word;
}

.admin-dialog-message[hidden] {
  display: none;
}

.admin-dialog-input {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text);
  background: #0f1218;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.admin-dialog-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.22);
}

.admin-dialog-input[aria-invalid='true'] {
  border-color: #e85d5d;
  box-shadow: 0 0 0 3px rgba(232, 93, 93, 0.18);
}

.admin-dialog-input[hidden] {
  display: none;
}

.admin-dialog-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-dialog-fields .admin-dialog-input {
  margin: 0;
}

.admin-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-dialog-field-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

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

.admin-dialog-btn {
  min-width: 84px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.admin-dialog-btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.admin-dialog-btn--ghost:hover {
  background: rgba(127, 127, 127, 0.12);
}

.admin-dialog-btn--primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.admin-dialog-btn--primary:hover {
  filter: brightness(1.08);
}

.admin-dialog-btn--danger {
  background: #e5484d;
  border-color: #e5484d;
}

.admin-dialog-btn--danger:hover {
  filter: brightness(1.06);
}

body.is-admin-dialog-open,
body.is-package-modal-open {
  overflow: hidden;
}

/* 精品套餐编辑弹窗 */
.package-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

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

.package-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.package-modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.package-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.package-modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.package-modal-body {
  padding: 18px 20px 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.package-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.config-card {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(91, 124, 250, 0.04);
}

.config-card-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
}

.config-hint {
  margin: 0 0 16px;
  font-size: 0.85rem;
}

.config-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 14px;
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.config-field span {
  font-weight: 500;
}

.config-field input[type='text'],
.config-field input[type='number'] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1218;
  color: var(--text);
  font-size: 0.9rem;
}

.config-field--wide {
  grid-column: 1 / -1;
}

.config-field--check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
}

.config-field--check input {
  width: auto;
}

.config-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.points-config-layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .points-config-layout {
    grid-template-columns: 1fr;
  }
}

.points-config-group {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.points-config-group-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.points-config-group-hint {
  margin: 0 0 12px;
  font-size: 0.8rem;
}

.points-config-aside {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  position: sticky;
  top: 16px;
}

.points-examples {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.points-examples li {
  margin-bottom: 8px;
}

.data-table-packages {
  width: 100%;
  table-layout: fixed;
}

.data-table-packages th,
.data-table-packages td {
  vertical-align: middle;
}

.data-table-packages .col-num,
.data-table-packages .col-status,
.data-table-packages .col-actions {
  text-align: center;
}

.data-table-packages .col-num {
  font-variant-numeric: tabular-nums;
}

.data-table-packages .col-name {
  width: 30%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table-packages .col-num {
  width: 11%;
}

.data-table-packages .col-status {
  width: 10%;
}

.data-table-packages th.col-actions,
.data-table-packages td.col-actions {
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

.data-table-packages .col-actions {
  width: 16%;
  min-width: 132px;
}

.data-table-packages tbody td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.panel-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.config-field-hint {
  display: block;
  font-size: 0.72rem;
  margin-top: 4px;
}

.data-table-packages .col-sort {
  width: 72px;
  text-align: center;
}

.data-table-packages th.col-num-sortable {
  padding-top: 8px;
  padding-bottom: 8px;
}

.pkg-th-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.pkg-th-sort-label {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  white-space: nowrap;
}

.pkg-th-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.pkg-th-sort-btn:hover {
  color: var(--text);
  background: rgba(127, 127, 127, 0.1);
}

.pkg-th-sort-btn.is-active {
  background: rgba(91, 124, 250, 0.12);
}

.pkg-th-sort-ico {
  width: 14px;
  height: 14px;
  pointer-events: none;
  fill: currentColor;
}

.pkg-th-sort-up,
.pkg-th-sort-down {
  opacity: 0.32;
  transition: opacity 0.15s ease;
}

.pkg-th-sort-btn.is-sort-asc .pkg-th-sort-up {
  opacity: 1;
  color: var(--accent, #5b7cfa);
}

.pkg-th-sort-btn.is-sort-desc .pkg-th-sort-down {
  opacity: 1;
  color: var(--accent, #5b7cfa);
}

.pkg-sort-cell {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pkg-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  border: 1px solid transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pkg-drag-handle .btn-ico-svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.pkg-drag-handle:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(127, 127, 127, 0.08);
}

.pkg-drag-handle:active {
  cursor: grabbing;
}

body.is-pkg-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-pkg-dragging .pkg-drag-handle {
  cursor: grabbing;
}

.pkg-sort-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-strong);
  background: rgba(127, 127, 127, 0.08);
  border: 1px solid var(--border);
}

.table-wrap--pkg-drag-host {
  position: relative;
}

.table-wrap.is-pkg-drag-active {
  box-shadow: inset 0 0 0 1px rgba(91, 124, 250, 0.12);
}

.pkg-drop-indicator {
  position: absolute;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.16s ease, top 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.pkg-drop-indicator:not([hidden]) {
  opacity: 1;
}

.pkg-drop-indicator-line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 124, 250, 0.15), var(--accent) 50%, rgba(91, 124, 250, 0.15));
  box-shadow: 0 0 14px rgba(91, 124, 250, 0.45);
}

.pkg-drop-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.18), 0 0 10px rgba(91, 124, 250, 0.55);
  flex-shrink: 0;
}

.pkg-drag-ghost-wrap {
  position: fixed;
  z-index: 1200;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.16s ease, box-shadow 0.16s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 14px 36px rgba(0, 0, 0, 0.24),
    0 6px 16px rgba(91, 124, 250, 0.14);
  border: 1px solid rgba(91, 124, 250, 0.32);
  backdrop-filter: blur(2px);
}

.pkg-drag-ghost-wrap.is-visible {
  opacity: 1;
}

.pkg-drag-ghost-table {
  margin: 0;
  background: var(--panel);
}

.pkg-drag-ghost-row td {
  background: var(--panel) !important;
  border-bottom-color: var(--border);
}

body.is-pkg-dragging #packages-table tbody tr:not(.is-drag-source) {
  transition: background 0.14s ease, opacity 0.14s ease;
}

body.is-pkg-dragging #packages-table tbody tr.is-drop-target td {
  background: rgba(91, 124, 250, 0.05);
}

tr.pkg-row-draggable.is-drag-source {
  pointer-events: none;
}

tr.pkg-row-draggable.is-drag-source td {
  background: rgba(127, 127, 127, 0.03) !important;
  border-bottom-color: transparent;
  box-shadow: inset 0 0 0 1.5px dashed rgba(91, 124, 250, 0.28);
}

tr.pkg-row-draggable.is-drag-source td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

tr.pkg-row-draggable.is-drag-source td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

tr.pkg-row-draggable.is-drag-over td {
  background: rgba(91, 124, 250, 0.1);
  box-shadow: inset 0 2px 0 rgba(91, 124, 250, 0.35);
}

.pkg-cell-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.pkg-cell-actions .btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pkg-cell-actions .btn-pkg-edit:hover:not(:disabled) {
  color: var(--accent);
  border-color: rgba(91, 124, 250, 0.45);
  background: rgba(91, 124, 250, 0.1);
}

.pkg-cell-actions .btn-pkg-on:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border);
  background: rgba(127, 127, 127, 0.1);
}

.pkg-cell-actions .btn-pkg-off:hover:not(:disabled) {
  color: var(--muted-strong);
  border-color: var(--border);
  background: rgba(127, 127, 127, 0.08);
}

.pkg-cell-actions .btn-pkg-del:hover:not(:disabled) {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.btn-icon:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.works-thumb-preview {
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.works-thumb-preview:hover .works-cell-media {
  opacity: 0.92;
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.45);
}

.works-thumb-preview--video {
  cursor: pointer;
}

.works-thumb-video-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.works-thumb-video-badge::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.works-cell-media {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #141820;
  pointer-events: none;
}

.works-cell-pub {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  padding: 0;
  background: transparent;
  border: none;
  color: #facc15;
  pointer-events: none;
}

.works-cell-pub-ico {
  display: block;
  width: 7px;
  height: 7px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.works-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-lightbox.is-hidden {
  display: none !important;
  pointer-events: none;
}

.works-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.works-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  margin: 24px;
}

.works-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.works-lightbox-close:hover {
  border-color: var(--accent);
  background: rgba(91, 124, 250, 0.1);
}

.works-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.works-lightbox-media {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.works-lightbox-video-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  cursor: pointer;
}

.works-lightbox-video {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  width: auto;
  height: auto;
  background: #000;
}

.works-lightbox-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
}

.works-lightbox-play-toggle:hover {
  background: rgba(91, 124, 250, 0.45);
  transform: scale(1.04);
}

.works-lightbox-play-ico {
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

.works-lightbox-play-ico--play::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 20px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.works-lightbox-play-ico--pause::before,
.works-lightbox-play-ico--pause::after {
  content: '';
  position: absolute;
  top: 20px;
  width: 6px;
  height: 24px;
  border-radius: 1px;
  background: currentColor;
}

.works-lightbox-play-ico--pause::before {
  left: 24px;
}

.works-lightbox-play-ico--pause::after {
  left: 34px;
}

.works-lightbox-video-wrap.is-playing .works-lightbox-play-ico--play {
  opacity: 0;
}

.works-lightbox-video-wrap:not(.is-playing) .works-lightbox-play-ico--pause {
  opacity: 0;
}

.works-lightbox-video-wrap.is-playing .works-lightbox-play-toggle {
  opacity: 0;
  pointer-events: none;
}

.works-lightbox-video-wrap.is-playing:hover .works-lightbox-play-toggle,
.works-lightbox-video-wrap.is-playing:focus-within .works-lightbox-play-toggle {
  opacity: 1;
  pointer-events: auto;
}


.drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  justify-content: flex-end;
}

.drawer.is-hidden {
  display: none !important;
  pointer-events: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.drawer-panel {
  position: relative;
  width: min(480px, 100vw);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 28px;
}

.detail-more {
  margin-bottom: 14px;
}

.detail-more summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-ico-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* 全局/工具栏：图标 + 文字 */
.btn-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.btn-txt .btn-ico-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

.btn.btn-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary.btn-txt .btn-ico-svg {
  opacity: 1;
  color: #fff;
  stroke: #fff;
}

.btn-pkg-new .btn-ico-plus {
  width: 18px;
  height: 18px;
}

/* 表格行内等：仅图标 */
.btn-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.btn-icon.btn-primary .btn-ico-svg {
  opacity: 1;
}

.btn-icon:hover .btn-ico-svg {
  opacity: 1;
}

.btn-login {
  width: 100%;
  height: 44px;
  min-width: 0;
  font-size: 0.95rem;
  gap: 8px;
}

.check--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  position: relative;
}

.check--icon input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check--icon .check-ico {
  width: 16px;
  height: 16px;
  opacity: 0.55;
  pointer-events: none;
}

.check--icon:has(input:checked) {
  border-color: var(--accent);
  background: rgba(91, 124, 250, 0.12);
}

.check--icon:has(input:checked) .check-ico {
  opacity: 1;
  color: var(--accent);
}

.check--icon:hover .check-ico {
  opacity: 0.85;
}

.sidebar-logout.btn-icon {
  width: 100%;
  margin-top: 0;
}

.bulk-bar .works-act-btn,
.bulk-bar .btn-txt {
  flex-shrink: 0;
}

.filters .btn-icon {
  flex-shrink: 0;
}

.main-header .btn-icon {
  flex-shrink: 0;
}

.actions-icons:not(td) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.detail-section {
  margin-bottom: 22px;
}

.detail-section h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-item.full {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.detail-value {
  font-size: 0.88rem;
  word-break: break-all;
}

.detail-value.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list .sub {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.mobile-nav-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 768px) {
  body.admin-nav-open {
    overflow: hidden;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
  }

  .sidebar-backdrop[hidden] {
    display: none !important;
  }

  .sidebar-backdrop:not([hidden]) {
    display: block;
  }

  .app-shell {
    flex-direction: row;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 12px 10px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    box-shadow: none;
  }

  .sidebar.is-mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .sidebar-brand {
    border: none;
    margin: 0 0 6px;
    padding: 2px 2px 10px;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 6px;
    padding: 4px 0 8px;
  }

  .nav-tab {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.9rem;
    justify-content: flex-start;
    gap: 10px;
  }

  .sidebar-deco {
    display: none;
  }

  .sidebar.is-collapsed .nav-label,
  .nav-label {
    max-width: none;
    opacity: 1;
  }

  .sidebar.is-collapsed .nav-tab {
    justify-content: flex-start;
    gap: 10px;
    padding: 11px 12px;
  }

  .sidebar-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .sidebar-logout {
    width: 100%;
    justify-content: flex-start;
  }

  .main-wrap {
    width: 100%;
    min-width: 0;
  }

  .main-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 8px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(127, 127, 127, 0.08);
    color: var(--text);
    cursor: pointer;
  }

  .mobile-nav-toggle[hidden] {
    display: none !important;
  }

  .mobile-nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-toggle:hover {
    border-color: rgba(91, 124, 250, 0.45);
    background: rgba(91, 124, 250, 0.1);
  }

  .main-title {
    font-size: 1.2rem;
  }

  .main-sub {
    font-size: 0.82rem;
  }

  .main {
    padding: 14px 14px 40px;
  }

  .overview-kpi-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kpi-card {
    padding: 14px 16px;
  }

  .overview-charts-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .panel-head .filters,
  .filters {
    flex-wrap: wrap;
    width: 100%;
  }

  .mini-table,
  .table-wrap,
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .works-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .works-toolbar .filters--works {
    flex: 1 1 100%;
  }

  .works-toolbar .works-subtabs {
    margin-left: 0;
  }
}
