:root {
  color-scheme: dark;
  --ink: #f7f4ff;
  --muted: #a9a0c5;
  --soft: #d9cdfd;
  --line: rgba(175, 126, 255, 0.28);
  --line-strong: rgba(210, 183, 255, 0.54);
  --paper: rgba(20, 17, 38, 0.78);
  --paper-solid: #151225;
  --panel: rgba(10, 9, 21, 0.72);
  --deep: #05040b;
  --purple: #8a4dff;
  --violet: #b98cff;
  --silver: #f5f1ff;
  --cyan: #54d6ff;
  --danger: #ff5d8f;
  --amber: #ffc76a;
  --good: #46e6aa;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 30px rgba(147, 85, 255, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(133, 77, 255, 0.24), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(84, 214, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #040309 0%, #0b0820 44%, #05040b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(154, 96, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 96, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 84%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.46;
  background:
    linear-gradient(115deg, transparent 0%, rgba(84, 214, 255, 0.08) 42%, transparent 62%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px);
  background-size: 240% 240%, auto;
  animation: superScan 11s linear infinite;
}

@keyframes superScan {
  0% { background-position: 160% 0, 0 0; }
  100% { background-position: -80% 0, 0 40px; }
}

button,
textarea,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(5, 4, 11, 0.74), rgba(5, 4, 11, 0.92)),
    radial-gradient(circle at 50% 18%, rgba(151, 86, 255, 0.28), transparent 36%);
  backdrop-filter: blur(14px);
}

.access-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(215, 192, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(29, 24, 51, 0.96), rgba(10, 8, 21, 0.96)),
    radial-gradient(circle at 82% 0%, rgba(174, 117, 255, 0.18), transparent 34%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.54), 0 0 44px rgba(143, 80, 255, 0.32);
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 2px;
}

.access-brand img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(219, 199, 255, 0.62);
  box-shadow: 0 0 28px rgba(151, 86, 255, 0.48);
}

.access-brand strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.access-brand span,
.access-card label,
.access-message {
  color: var(--soft);
  font-size: 13px;
}

.access-card label {
  font-weight: 700;
}

.access-message {
  min-height: 20px;
  margin: 0;
  line-height: 1.5;
}

.protected-watermark {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 45;
  max-width: min(520px, calc(100vw - 28px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 7, 13, 0.42);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(8px);
}

body.access-locked .app-shell {
  filter: blur(8px) brightness(0.72);
  pointer-events: none;
  user-select: none;
}

.member-page {
  min-height: 100vh;
  color: var(--ink);
}

.member-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0 46px;
}

.member-hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
}

.member-copy,
.member-card,
.member-section {
  border: 1px solid rgba(215, 192, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(21, 17, 38, 0.86), rgba(8, 7, 18, 0.92)),
    radial-gradient(circle at 80% 0%, rgba(151, 86, 255, 0.18), transparent 36%);
  box-shadow: var(--shadow);
}

.member-copy {
  padding: clamp(24px, 5vw, 48px);
}

.member-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.member-brand img {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(219, 199, 255, 0.62);
  box-shadow: 0 0 28px rgba(151, 86, 255, 0.42);
}

.member-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.member-brand span {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 14px;
}

.member-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 34px rgba(166, 103, 255, 0.42);
}

.member-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.live-usage-pulse {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 13px;
  border: 1px solid rgba(84, 214, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 214, 255, 0.08), rgba(70, 230, 170, 0.08)),
    rgba(255, 255, 255, 0.045);
  color: #eaffff;
  box-shadow: 0 0 26px rgba(84, 214, 255, 0.12);
}

.live-usage-pulse span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(70, 230, 170, 0.55), 0 0 18px rgba(70, 230, 170, 0.82);
  animation: usagePulse 1.8s ease-in-out infinite;
}

.live-usage-pulse strong {
  color: #f7fffb;
  font-size: 14px;
}

@keyframes usagePulse {
  0%, 100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(70, 230, 170, 0.52), 0 0 16px rgba(70, 230, 170, 0.76);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 8px rgba(70, 230, 170, 0), 0 0 28px rgba(70, 230, 170, 0.96);
  }
}

.member-price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 26px;
  color: #fff;
}

.member-price span {
  align-self: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 199, 106, 0.48);
  border-radius: 8px;
  color: #ffe8b7;
  background: rgba(255, 199, 106, 0.09);
  font-size: 14px;
  font-weight: 800;
}

.member-price strong {
  font-size: 72px;
  line-height: 0.86;
  color: #fff;
}

.member-price em {
  color: var(--soft);
  font-style: normal;
  font-weight: 800;
}

.member-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.member-plan-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(215, 192, 255, 0.22);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  box-shadow: none;
}

.member-plan-card.is-active {
  border-color: rgba(255, 199, 106, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 199, 106, 0.12), rgba(151, 86, 255, 0.12)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 28px rgba(255, 199, 106, 0.14);
}

.member-plan-card.premium {
  border-color: rgba(84, 214, 255, 0.36);
}

.member-plan-card span {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.member-plan-card strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.member-plan-card em {
  margin-left: 4px;
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
}

.member-plan-card small {
  color: var(--soft);
  line-height: 1.55;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.member-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.member-card {
  padding: 22px;
}

.member-payment-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(255, 199, 106, 0.26);
  border-radius: 8px;
  background: rgba(255, 199, 106, 0.08);
}

.member-payment-head span {
  color: #ffe8b7;
  font-size: 12px;
  font-weight: 900;
}

.member-payment-head strong {
  color: #fff;
  font-size: 20px;
}

.member-payment-box {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.member-qr-wrap {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.member-qr-wrap.payment-qr {
  height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-qr-wrap img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.member-qr-wrap.payment-qr img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.member-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.member-card p,
.member-card li {
  color: var(--soft);
  line-height: 1.65;
}

.member-card p {
  margin: 0;
}

.member-card p strong {
  color: #fff;
}

.member-card ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.member-reveal-button {
  width: 100%;
  margin-top: 18px;
}

.member-contact-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 192, 255, 0.22);
}

.member-qr-wrap.compact {
  max-width: 240px;
  margin: 0 auto 14px;
}

.member-safe-note {
  margin-top: 16px !important;
  padding: 12px;
  border: 1px solid rgba(70, 230, 170, 0.26);
  border-radius: 8px;
  background: rgba(70, 230, 170, 0.07);
}

.member-section {
  margin-top: 22px;
  padding: 24px;
}

.member-section h2 {
  margin: 0;
  font-size: 32px;
}

.member-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.member-feature-grid article,
.member-step-list div {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(215, 192, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.member-feature-grid strong,
.member-step-list strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.member-feature-grid span,
.member-step-list p {
  display: block;
  margin-top: 9px;
  color: var(--soft);
  line-height: 1.6;
}

.member-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.member-step-list span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.preview-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.preview-console {
  min-height: 600px;
  border: 1px solid rgba(215, 192, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 7, 18, 0.92);
  box-shadow: var(--shadow);
}

.preview-console-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(215, 192, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.preview-console-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 14px rgba(151, 86, 255, 0.72);
}

.preview-console-head strong {
  margin-left: auto;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0;
}

.preview-console-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 500px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid rgba(215, 192, 255, 0.16);
}

.preview-sidebar b {
  display: block;
  padding: 12px;
  border: 1px solid rgba(215, 192, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
}

.preview-report {
  padding: 24px;
}

.preview-report h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 34px;
}

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

.preview-metrics span,
.preview-report article {
  border: 1px solid rgba(215, 192, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-metrics span {
  padding: 12px;
  color: #fff;
  font-weight: 900;
}

.preview-report article {
  margin-top: 12px;
  padding: 16px;
}

.preview-report article strong {
  color: #fff;
  font-size: 18px;
}

.preview-report article p {
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.7;
}

.preview-lock {
  padding: 14px 16px;
  border-top: 1px solid rgba(215, 192, 255, 0.18);
  color: #ffe8b7;
  background: rgba(255, 199, 106, 0.08);
  font-weight: 900;
  text-align: center;
}

.promo-marquee {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 42px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  border-bottom: 1px solid rgba(211, 185, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(7, 5, 17, 0.96), rgba(32, 22, 62, 0.96), rgba(7, 5, 17, 0.96)),
    radial-gradient(circle at 12% 50%, rgba(151, 86, 255, 0.26), transparent 32%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24), 0 0 24px rgba(145, 86, 255, 0.18);
}

.promo-track {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 42px;
  padding-left: 22px;
  animation: promoMarquee 24s linear infinite;
}

.promo-track span {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(185, 140, 255, 0.44);
}

@keyframes promoMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

.wechat-lead-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: min(368px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(218, 194, 255, 0.4);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 14, 35, 0.95), rgba(8, 7, 18, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(178, 122, 255, 0.22), transparent 38%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 30px rgba(151, 86, 255, 0.2);
  backdrop-filter: blur(18px);
}

.wechat-lead-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wechat-lead-copy p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.wechat-lead-copy strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.wechat-lead-copy span {
  color: #f6f0ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.wechat-lead-card img {
  width: 132px;
  height: 168px;
  object-fit: cover;
  border: 1px solid rgba(221, 200, 255, 0.48);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 22px rgba(167, 101, 255, 0.25);
}

.super-agent-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
}

.super-agent-widget.is-open .super-agent-fab {
  display: none;
}

.super-agent-fab {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(152, 231, 255, 0.46);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(19, 22, 34, 0.98), rgba(5, 8, 16, 0.97)),
    linear-gradient(90deg, rgba(84, 214, 255, 0.14), transparent 52%, rgba(185, 140, 255, 0.12));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44), 0 0 34px rgba(84, 214, 255, 0.22);
  backdrop-filter: blur(18px);
}

.super-agent-helmet {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(203, 244, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(238, 247, 255, 0.24), transparent 31%),
    linear-gradient(145deg, #262c3e 0%, #111827 46%, #05070d 100%);
  box-shadow:
    0 0 0 3px rgba(84, 214, 255, 0.08),
    0 0 22px rgba(84, 214, 255, 0.44),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  clip-path: polygon(16% 7%, 84% 7%, 96% 30%, 88% 80%, 67% 96%, 33% 96%, 12% 80%, 4% 30%);
  animation: helmetWake 2.8s ease-in-out infinite;
}

.super-agent-helmet::before,
.super-agent-helmet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.super-agent-helmet::before {
  inset: 7px 9px 6px;
  background:
    linear-gradient(135deg, rgba(232, 244, 255, 0.3), transparent 28%),
    linear-gradient(180deg, #ccd5df 0%, #5c6978 22%, #1c2432 62%, #090c13 100%);
  clip-path: polygon(19% 0, 81% 0, 100% 25%, 88% 79%, 61% 100%, 39% 100%, 12% 79%, 0 25%);
}

.super-agent-helmet::after {
  left: 17px;
  right: 17px;
  bottom: 8px;
  height: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(84, 214, 255, 0.72));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 14px rgba(84, 214, 255, 0.54);
}

.helmet-brow,
.helmet-face,
.helmet-eye,
.helmet-core {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.helmet-brow {
  left: 10px;
  right: 10px;
  top: 12px;
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(160, 174, 190, 0.72), rgba(255, 255, 255, 0.12));
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}

.helmet-face {
  left: 15px;
  right: 15px;
  top: 19px;
  bottom: 9px;
  background: linear-gradient(180deg, #111a27, #05080f);
  clip-path: polygon(50% 0, 100% 23%, 72% 100%, 28% 100%, 0 23%);
  box-shadow: inset 0 0 12px rgba(84, 214, 255, 0.2);
}

.helmet-eye {
  top: 21px;
  width: 13px;
  height: 4px;
  background: #c9fbff;
  box-shadow: 0 0 10px #54d6ff, 0 0 20px rgba(84, 214, 255, 0.8);
  animation: helmetEyePulse 2.2s ease-in-out infinite;
}

.helmet-eye.left {
  left: 11px;
  transform: skewY(13deg);
  clip-path: polygon(0 0, 100% 22%, 78% 100%, 12% 82%);
}

.helmet-eye.right {
  right: 11px;
  transform: skewY(-13deg);
  clip-path: polygon(0 22%, 100% 0, 88% 82%, 22% 100%);
}

.helmet-core {
  width: 8px;
  height: 8px;
  left: 50%;
  bottom: 6px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 9px #fff, 0 0 18px rgba(185, 140, 255, 0.8);
}

@keyframes helmetWake {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.035);
    filter: saturate(1.22) contrast(1.08);
  }
}

@keyframes helmetEyePulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.super-agent-fab span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.super-agent-fab strong {
  font-size: 14px;
}

.super-agent-fab small {
  color: var(--soft);
  font-size: 11px;
}

.super-agent-panel {
  position: relative;
  width: min(420px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(215, 192, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 18, 43, 0.98), rgba(8, 7, 18, 0.98)),
    radial-gradient(circle at 88% 0%, rgba(84, 214, 255, 0.16), transparent 34%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55), 0 0 34px rgba(151, 86, 255, 0.24);
  backdrop-filter: blur(22px);
}

.super-agent-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(215, 192, 255, 0.18);
}

.super-agent-drag-handle {
  cursor: grab;
  touch-action: none;
}

.super-agent-drag-handle:active {
  cursor: grabbing;
}

.super-agent-panel header > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.super-agent-panel header strong {
  display: block;
  color: #fff;
}

.super-agent-panel header small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
}

#superAgentClose {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(215, 192, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
}

.super-agent-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#superAgentHistoryButton {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(84, 214, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(84, 214, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.super-agent-memory-bar {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(215, 192, 255, 0.16);
  color: #bdf7ff;
  background: rgba(84, 214, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

.super-agent-memory-bar a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.super-agent-message {
  max-width: 88%;
  padding: 11px 12px;
  border: 1px solid rgba(215, 192, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.super-agent-message.user {
  justify-self: end;
  border-color: rgba(84, 214, 255, 0.28);
  background: rgba(84, 214, 255, 0.08);
}

.super-agent-message strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 12px;
}

.super-agent-message p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
  white-space: pre-wrap;
}

.super-agent-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}

.super-agent-files button {
  max-width: 180px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(215, 192, 255, 0.2);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.super-agent-files span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.super-agent-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid rgba(215, 192, 255, 0.18);
}

.super-agent-upload {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(215, 192, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  cursor: pointer;
}

.super-agent-upload input {
  display: none;
}

.super-agent-input textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
}

.super-agent-generated-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin-top: 10px;
  border: 1px solid rgba(84, 214, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.super-agent-download {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid rgba(84, 214, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(84, 214, 255, 0.18), rgba(185, 140, 255, 0.18));
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.super-agent-resize {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  opacity: 0.72;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(84, 214, 255, 0.7) 50% 56%, transparent 58%),
    linear-gradient(135deg, transparent 0 66%, rgba(185, 140, 255, 0.7) 68% 74%, transparent 76%);
}

.super-agent-widget.is-locked .super-agent-fab {
  border-color: rgba(255, 199, 106, 0.38);
}

.super-agent-widget.is-readonly .super-agent-input {
  opacity: 0.62;
}

.super-agent-widget.is-readonly .super-agent-upload {
  cursor: not-allowed;
}

.app-shell {
  min-height: calc(100vh - 42px);
  display: grid;
  grid-template-columns: 304px 1fr;
  width: 100%;
  position: relative;
  isolation: isolate;
}

.app-shell > * {
  min-width: 0;
}

.app-embed .app-shell {
  grid-template-columns: 1fr;
}

.demo-clean .app-shell {
  min-height: 100vh;
}

.sidebar {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(16, 18, 39, 0.94), rgba(7, 9, 22, 0.94)),
    linear-gradient(90deg, rgba(84, 214, 255, 0.08), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 13px);
  border-right: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.32);
}

.app-embed .sidebar {
  gap: 14px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: #070610;
  border: 1px solid rgba(204, 178, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(139, 80, 255, 0.08), 0 0 28px rgba(151, 86, 255, 0.58);
}

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

.brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 18px rgba(180, 130, 255, 0.45);
}

.brand p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.workflow-list {
  display: grid;
  gap: 9px;
}

.app-embed .workflow-list {
  display: flex;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.workflow {
  min-height: 42px;
  text-align: left;
  color: #d6ccf5;
  border: 1px solid rgba(197, 161, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  padding: 0 13px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  position: relative;
  overflow: hidden;
}

.workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(84, 214, 255, 0.16), transparent);
  transform: translateX(-100%);
  transition: opacity 160ms ease;
}

.app-embed .workflow {
  flex: 0 0 auto;
  min-width: 116px;
  text-align: center;
}

.workflow:hover {
  border-color: rgba(198, 162, 255, 0.45);
  background: rgba(137, 78, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.workflow:hover::before,
.workflow.active::before {
  opacity: 1;
  animation: buttonSweep 2.8s ease-in-out infinite;
}

.workflow.active {
  color: #fff;
  border-color: rgba(221, 202, 255, 0.76);
  background: linear-gradient(135deg, rgba(114, 61, 255, 0.86), rgba(189, 145, 255, 0.52));
  box-shadow: 0 0 28px rgba(152, 87, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@keyframes buttonSweep {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(110%); }
}

.status-panel {
  margin-top: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(193, 154, 255, 0.18);
  border-radius: 8px;
  color: var(--soft);
  font-size: 13px;
}

.app-embed .status-panel {
  margin-top: 0;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 199, 106, 0.72);
}

.status-dot.ready {
  background: var(--good);
  box-shadow: 0 0 16px rgba(70, 230, 170, 0.72);
}

.workspace {
  padding: 28px;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.workspace::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(84, 214, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(84, 214, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(84, 214, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

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

.eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--violet);
  letter-spacing: 0;
}

.topbar h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--silver);
  text-shadow: 0 0 26px rgba(166, 103, 255, 0.42);
}

.command-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.command-metrics span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(84, 214, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 214, 255, 0.07), rgba(185, 140, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 12px;
}

.command-metrics b {
  color: #fff;
}

.top-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.secondary-button,
.primary-button {
  border: 1px solid rgba(207, 177, 255, 0.34);
  min-height: 40px;
  border-radius: 8px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-button:hover,
.secondary-button:hover {
  border-color: rgba(222, 204, 255, 0.72);
  background: rgba(154, 96, 255, 0.14);
}

.icon-button[disabled],
.secondary-button[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

.demo-record-button {
  border-color: rgba(255, 214, 139, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(154, 96, 255, 0.16)),
    rgba(255, 255, 255, 0.06);
  color: #fff4dc;
}

.demo-record-button.recording {
  border-color: rgba(255, 117, 150, 0.78);
  background: linear-gradient(135deg, #d83f7f, #7b4cff);
  color: #fff;
  box-shadow: 0 0 26px rgba(216, 63, 127, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.demo-record-notice {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  max-width: min(560px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 1px solid rgba(221, 200, 255, 0.46);
  border-radius: 8px;
  background: rgba(10, 8, 22, 0.92);
  color: #f8f3ff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), 0 0 24px rgba(151, 86, 255, 0.2);
  backdrop-filter: blur(16px);
}

.demo-record-notice.warning {
  border-color: rgba(255, 211, 122, 0.58);
  color: #fff1cc;
}

.demo-record-notice.error {
  border-color: rgba(255, 117, 150, 0.68);
  color: #ffe4ec;
}

.primary-button {
  border-color: rgba(221, 200, 255, 0.78);
  background: linear-gradient(135deg, #6f3cff, #b783ff);
  color: #fff;
  min-width: 112px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(139, 80, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.primary-button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.input-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 16px;
}

.input-grid.no-upload {
  grid-template-columns: 1fr;
}

.upload-panel,
.upload-zone,
.context-panel,
.panel,
.report-panel {
  background:
    linear-gradient(180deg, rgba(28, 31, 59, 0.78), rgba(9, 11, 25, 0.9)),
    linear-gradient(115deg, rgba(84, 214, 255, 0.07), transparent 34%, rgba(185, 140, 255, 0.08));
  border: 1px solid rgba(168, 225, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.upload-panel {
  padding: 16px;
}

.upload-panel[hidden],
.slot-card[hidden],
.category-grid[hidden],
#assetNotesBlock[hidden] {
  display: none !important;
}

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

.upload-panel-head strong {
  color: #fff;
  font-size: 17px;
}

.upload-panel-head small {
  color: var(--muted);
  text-align: right;
}

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

.slot-card {
  position: relative;
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(191, 152, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 16, 32, 0.82), rgba(5, 7, 17, 0.86)),
    linear-gradient(135deg, rgba(84, 214, 255, 0.045), rgba(185, 140, 255, 0.04));
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.slot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(84, 214, 255, 0.2);
  opacity: 0.7;
  pointer-events: none;
}

.slot-card:hover {
  border-color: rgba(84, 214, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(20, 28, 52, 0.9), rgba(8, 10, 24, 0.94)),
    linear-gradient(135deg, rgba(84, 214, 255, 0.08), rgba(185, 140, 255, 0.1));
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(84, 214, 255, 0.11);
}

.slot-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.slot-card strong {
  color: #fff;
  font-size: 15px;
}

.slot-card small {
  color: var(--muted);
  line-height: 1.45;
}

.slot-card::after {
  content: "选择文件";
  justify-self: start;
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(84, 214, 255, 0.46);
  border-radius: 8px;
  color: #fff;
  background: rgba(84, 214, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(84, 214, 255, 0.2);
}

.slot-card.is-filled::after {
  content: "继续上传";
}

.slot-status {
  justify-self: start;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(190, 153, 255, 0.22);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.slot-status.is-filled {
  color: #dfffee;
  border-color: rgba(70, 230, 170, 0.38);
  background: rgba(70, 230, 170, 0.1);
}

.slot-preview {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #7c719e;
  font-size: 12px;
}

.slot-preview img {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(193, 154, 255, 0.22);
}

.slot-preview span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone {
  min-height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}

.upload-zone::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(191, 152, 255, 0.32);
  border-radius: 8px;
  pointer-events: none;
}

.upload-zone.dragging {
  outline: 2px solid var(--violet);
  outline-offset: -6px;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.upload-visual {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #fff, #b98cff 36%, #5b2bd4 72%);
  color: #fff;
  font-size: 38px;
  font-weight: 500;
  box-shadow: 0 0 34px rgba(164, 99, 255, 0.58);
}

.upload-zone strong {
  font-size: 18px;
  color: #fff;
}

.upload-zone small {
  color: var(--muted);
  max-width: 440px;
}

.context-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

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

.context-panel label {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

textarea,
input[type="url"],
input[type="password"],
input[type="text"],
input[type="file"],
select {
  width: 100%;
  border: 1px solid rgba(190, 153, 255, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 4, 12, 0.58);
  outline: none;
}

textarea {
  min-height: 144px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

input[type="url"],
input[type="password"],
input[type="text"],
input[type="file"],
select {
  min-height: 40px;
  padding: 0 12px;
}

input[type="file"] {
  padding: 8px 10px;
  color: var(--muted);
}

textarea:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="file"]:focus,
select:focus {
  border-color: rgba(221, 200, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(138, 77, 255, 0.18);
}

textarea::placeholder,
input::placeholder {
  color: #7c719e;
}

.field-block {
  display: grid;
  gap: 8px;
}

.short-textarea {
  min-height: 78px;
}

#linkBlock {
  display: none;
}

#linkBlock.is-visible,
#tableTemplateBlock.is-visible {
  display: grid;
}

#tableTemplateBlock {
  display: none;
}

#tableTemplateStatus {
  color: var(--muted);
  line-height: 1.45;
}

.interview-panel {
  display: grid;
  gap: 14px;
}

.interview-stage {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(193, 154, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(126, 72, 255, 0.16), rgba(84, 214, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.interview-stage span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(222, 203, 255, 0.34);
  color: #fff;
  background: rgba(126, 72, 255, 0.28);
  font-weight: 900;
}

.interview-stage strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.interview-stage p {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.interview-form-grid,
.interview-qa-grid {
  display: grid;
  gap: 12px;
}

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

.interview-qa-grid {
  grid-template-columns: 1fr;
}

.interview-qa-grid .field-block {
  padding: 12px;
  border: 1px solid rgba(193, 154, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.interview-video-upload {
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 16px;
  border: 1px dashed rgba(193, 154, 255, 0.48);
  border-radius: 8px;
  background: rgba(9, 8, 22, 0.78);
  text-align: center;
  cursor: pointer;
}

.interview-video-upload input {
  display: none;
}

.interview-video-upload span {
  color: #fff;
  font-weight: 900;
}

.interview-video-upload small {
  color: var(--soft);
  line-height: 1.45;
}

.interview-step-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.interview-step-controls button {
  flex: 1 1 150px;
}

.course-module {
  display: grid;
  gap: 18px;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 18px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(218, 194, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(23, 18, 43, 0.94), rgba(7, 6, 16, 0.96)),
    radial-gradient(circle at 82% 0%, rgba(184, 126, 255, 0.24), transparent 36%);
  box-shadow: var(--shadow), 0 0 30px rgba(151, 86, 255, 0.18);
}

.course-hero h3,
.course-section h3 {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}

.course-hero h3 {
  font-size: 36px;
  line-height: 1.1;
}

.course-hero p,
.course-section-head p,
.source-panel p {
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.65;
}

.course-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.course-stats span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(197, 161, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  font-size: 13px;
  text-align: center;
}

.course-stats strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.course-section {
  display: grid;
  gap: 14px;
}

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

.course-section-head h3 {
  font-size: 24px;
}

.course-section-head > p {
  max-width: 520px;
  text-align: right;
}

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

.course-card,
.resource-card {
  border: 1px solid rgba(193, 154, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 23, 49, 0.86), rgba(11, 9, 22, 0.9)),
    radial-gradient(circle at 92% 0%, rgba(138, 77, 255, 0.12), transparent 34%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.course-card {
  min-height: 362px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 15px;
}

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

.course-card-top span,
.course-card-top strong,
.resource-card span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(211, 185, 255, 0.28);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(126, 72, 255, 0.14);
  font-size: 12px;
}

.course-card h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.course-card p,
.course-card li,
.resource-card p {
  color: var(--soft);
  line-height: 1.55;
  font-size: 13px;
}

.course-card p,
.resource-card p {
  margin: 0;
}

.course-card ul {
  margin: 0;
  padding-left: 18px;
}

.course-card li {
  margin: 6px 0;
}

.course-card-details {
  margin-top: 2px;
  border: 1px solid rgba(84, 214, 255, 0.18);
  border-radius: 8px;
  background: rgba(84, 214, 255, 0.055);
}

.course-card-details summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.course-card-chapters {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.course-card-chapters a {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(193, 154, 255, 0.16);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.course-card-chapters strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.course-card-chapters span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.course-detail-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(84, 214, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(84, 214, 255, 0.14), rgba(137, 82, 255, 0.16));
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.course-practice {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(193, 154, 255, 0.16);
}

.course-practice span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
}

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

.resource-card {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.resource-card:hover {
  border-color: rgba(222, 204, 255, 0.72);
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(42, 32, 74, 0.9), rgba(14, 11, 28, 0.92)),
    radial-gradient(circle at 92% 0%, rgba(176, 115, 255, 0.2), transparent 38%);
}

.resource-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.resource-card em {
  align-self: end;
  justify-self: start;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(221, 200, 255, 0.5);
  border-radius: 8px;
  color: #fff;
  background: rgba(137, 82, 255, 0.24);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.source-panel {
  grid-template-columns: minmax(0, 0.8fr) minmax(240px, 1fr);
  align-items: center;
  padding: 16px;
  border-top: 1px solid rgba(193, 154, 255, 0.16);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.source-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(193, 154, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  text-decoration: none;
  font-size: 13px;
}

.source-links a:hover {
  color: #fff;
  border-color: rgba(222, 204, 255, 0.62);
}

.courseware-page {
  user-select: text;
}

.resource-page {
  user-select: text;
}

.courseware-page.access-locked .courseware-shell,
.resource-page.access-locked .resource-shell {
  filter: blur(8px) brightness(0.72);
  pointer-events: none;
  user-select: none;
}

.courseware-shell,
.resource-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.courseware-header,
.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.courseware-back,
.resource-back {
  order: 2;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(207, 177, 255, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.courseware-back:hover,
.resource-back:hover {
  border-color: rgba(222, 204, 255, 0.72);
  background: rgba(154, 96, 255, 0.14);
}

.courseware-cover,
.resource-cover {
  margin-bottom: 16px;
}

.courseware-lock-note {
  display: inline-block;
  margin-top: 12px !important;
  padding: 9px 11px;
  border: 1px solid rgba(70, 230, 170, 0.28);
  border-radius: 8px;
  background: rgba(70, 230, 170, 0.08);
  color: #dfffee !important;
  font-size: 13px;
}

.courseware-nav {
  position: sticky;
  top: 48px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(193, 154, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 7, 18, 0.88);
  backdrop-filter: blur(16px);
}

.courseware-nav a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(193, 154, 255, 0.16);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.courseware-nav a:hover {
  color: #fff;
  border-color: rgba(222, 204, 255, 0.56);
}

.courseware-article {
  display: grid;
  gap: 14px;
}

.courseware-overview,
.courseware-lesson,
.courseware-sources {
  padding: 20px;
  border: 1px solid rgba(193, 154, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 23, 49, 0.86), rgba(11, 9, 22, 0.9)),
    radial-gradient(circle at 92% 0%, rgba(138, 77, 255, 0.12), transparent 34%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.courseware-overview h2,
.courseware-lesson h2,
.courseware-sources h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.courseware-lesson > span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-bottom: 10px;
  padding: 0 9px;
  border: 1px solid rgba(211, 185, 255, 0.28);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(126, 72, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.courseware-article h3 {
  margin: 16px 0 8px;
  color: var(--violet);
  font-size: 16px;
  letter-spacing: 0;
}

.courseware-article p,
.courseware-article li {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.75;
}

.courseware-article p,
.courseware-article ol,
.courseware-article ul {
  margin-top: 0;
}

.courseware-flow,
.courseware-visual,
.courseware-grid,
.term-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

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

.courseware-flow div,
.courseware-visual div,
.courseware-grid div,
.term-grid div {
  border: 1px solid rgba(193, 154, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.courseware-flow strong,
.courseware-visual b,
.courseware-grid strong,
.term-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
}

.courseware-flow span,
.courseware-visual span,
.term-grid span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.courseware-chapters {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid rgba(84, 214, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(84, 214, 255, 0.06), rgba(137, 82, 255, 0.12));
}

.courseware-chapters h3 {
  margin-top: 0;
}

.courseware-chapters ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.courseware-chapters li {
  min-height: 92px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(193, 154, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.courseware-chapters li.is-open {
  grid-column: 1 / -1;
}

.courseware-chapter-detail {
  height: 100%;
}

.courseware-chapter-detail summary {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.courseware-chapter-detail summary::-webkit-details-marker {
  display: none;
}

.courseware-chapters strong,
.courseware-chapter-detail summary strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
}

.courseware-chapters span,
.courseware-chapter-detail summary span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.courseware-chapter-detail summary em {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(84, 214, 255, 0.26);
  border-radius: 8px;
  color: #bdf7ff;
  background: rgba(84, 214, 255, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.courseware-chapter-detail[open] {
  grid-column: 1 / -1;
  border-color: rgba(84, 214, 255, 0.34);
  background: linear-gradient(135deg, rgba(84, 214, 255, 0.08), rgba(137, 82, 255, 0.14));
}

.chapter-deep-content {
  display: grid;
  gap: 14px;
  padding: 4px 12px 14px;
  border-top: 1px solid rgba(193, 154, 255, 0.16);
}

.chapter-deep-content h4 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.chapter-deep-content p,
.chapter-deep-content li {
  color: var(--soft);
  line-height: 1.7;
  font-size: 13px;
}

.chapter-deep-content p,
.chapter-deep-content ol,
.chapter-deep-content ul {
  margin: 0;
}

.chapter-detail-grid,
.chapter-concept-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chapter-detail-grid section,
.chapter-concept-list li {
  padding: 12px;
  border: 1px solid rgba(193, 154, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.chapter-concept-list {
  padding: 0;
  list-style: none;
}

.chapter-concept-list strong {
  margin: 0 0 4px;
}

.chapter-deep-content pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(84, 214, 255, 0.2);
  border-radius: 8px;
  color: #dffcff;
  background: rgba(5, 8, 18, 0.72);
  white-space: pre-wrap;
  line-height: 1.65;
}

.courseware-visual {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.courseware-grid p {
  margin: 0;
  font-size: 13px;
}

.courseware-formula {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(84, 214, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(84, 214, 255, 0.09), rgba(137, 82, 255, 0.16));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.courseware-table {
  overflow: auto;
  margin: 12px 0 16px;
  border: 1px solid rgba(193, 154, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 4, 12, 0.32);
}

.courseware-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.courseware-table th,
.courseware-table td {
  border-bottom: 1px solid rgba(193, 154, 255, 0.14);
  border-right: 1px solid rgba(193, 154, 255, 0.1);
  padding: 10px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.courseware-table th {
  color: #fff;
  background: rgba(101, 56, 210, 0.52);
}

.courseware-prompt {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(84, 214, 255, 0.2);
  border-radius: 8px;
  background: rgba(84, 214, 255, 0.06);
  color: #e8fbff;
  line-height: 1.65;
}

.courseware-prompt strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.courseware-prompt pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e8fbff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.72;
}

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

.courseware-sources .source-links {
  justify-content: flex-start;
}

.resource-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 240px) auto auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(193, 154, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 7, 18, 0.7);
}

.resource-download {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(221, 200, 255, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, #6f3cff, #b783ff);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.resource-download:disabled {
  opacity: 0.62;
  cursor: wait;
}

.resource-count {
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

.resource-table-card {
  overflow: hidden;
  border: 1px solid rgba(193, 154, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 23, 49, 0.86), rgba(11, 9, 22, 0.9)),
    radial-gradient(circle at 92% 0%, rgba(138, 77, 255, 0.12), transparent 34%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.resource-table-scroll {
  overflow: auto;
  max-height: 68vh;
}

.resource-table-scroll table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--soft);
  font-size: 13px;
}

.resource-table-scroll th,
.resource-table-scroll td {
  border: 1px solid rgba(193, 154, 255, 0.16);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.resource-table-scroll th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #fff;
  background: rgba(101, 56, 210, 0.92);
}

.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.resource-tab {
  min-height: 34px;
  border: 1px solid rgba(193, 154, 255, 0.2);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
}

.resource-tab.active {
  color: #fff;
  border-color: rgba(221, 202, 255, 0.76);
  background: linear-gradient(135deg, rgba(114, 61, 255, 0.86), rgba(189, 145, 255, 0.52));
}

.resource-pager {
  display: flex;
  gap: 8px;
}

.resource-pager button {
  min-height: 36px;
  border: 1px solid rgba(207, 177, 255, 0.34);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.resource-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media print {
  .courseware-page {
    display: none;
  }
}

.preview-strip {
  min-height: 86px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
}

.thumb {
  width: 108px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-solid);
}

.video-thumb {
  width: 144px;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 15, 36, 0.9);
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
}

.document-thumb {
  border-color: rgba(148, 214, 255, 0.36);
  background: linear-gradient(145deg, rgba(24, 38, 58, 0.72), rgba(14, 10, 28, 0.9));
}

.video-thumb strong {
  font-size: 13px;
}

.result-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.panel,
.report-panel {
  min-height: 236px;
  padding: 16px;
}

.report-panel {
  grid-column: 1 / -1;
}

.panel-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.panel-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(126, 72, 255, 0.18);
  border: 1px solid rgba(190, 153, 255, 0.24);
  color: var(--soft);
  font-size: 12px;
}

.metric-table {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid rgba(193, 154, 255, 0.13);
}

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

.metric-value {
  font-weight: 800;
  text-align: right;
  color: #fff;
}

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

.mini-card {
  border: 1px solid rgba(193, 154, 255, 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #fff;
}

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

.priority-high {
  border-left: 4px solid var(--danger);
}

.priority-mid {
  border-left: 4px solid var(--amber);
}

.priority-low {
  border-left: 4px solid var(--cyan);
}

.report-output {
  margin: 0;
  word-break: break-word;
  color: #efe9ff;
  line-height: 1.65;
  background: rgba(5, 4, 12, 0.58);
  border: 1px solid rgba(193, 154, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  min-height: 220px;
  max-height: 540px;
  overflow: auto;
}

.report-output h1,
.report-output h2,
.report-output h3,
.report-output p,
.report-output ul,
.report-output ol {
  margin: 0;
}

.report-output h1 {
  font-size: 24px;
  line-height: 1.24;
  margin-bottom: 16px;
  color: #fff;
}

.report-output h2 {
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(193, 154, 255, 0.15);
  color: var(--soft);
  font-size: 18px;
}

.report-output h3 {
  margin: 14px 0 6px;
  color: #fff;
  font-size: 15px;
}

.report-output p {
  margin-bottom: 8px;
  color: #efe9ff;
}

.report-output ul,
.report-output ol {
  padding-left: 22px;
  margin-bottom: 10px;
}

.report-output li {
  margin: 5px 0;
}

.report-output table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.report-output th,
.report-output td {
  border: 1px solid rgba(193, 154, 255, 0.2);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.report-output th {
  color: #fff;
  background: rgba(126, 72, 255, 0.18);
}

.welcome-portal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(3, 5, 12, 0.82), rgba(3, 5, 12, 0.96)),
    linear-gradient(90deg, rgba(84, 214, 255, 0.08), transparent 45%, rgba(185, 140, 255, 0.1));
  backdrop-filter: blur(20px);
  animation: portalEnter 360ms ease-out both;
}

.welcome-portal.is-leaving {
  animation: portalExit 800ms ease-in both;
}

.welcome-core {
  width: min(760px, 100%);
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  padding: 42px;
  border: 1px solid rgba(84, 214, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 25, 48, 0.72), rgba(5, 8, 18, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68), 0 0 70px rgba(84, 214, 255, 0.16);
  overflow: hidden;
  text-align: center;
}

.welcome-core::before,
.welcome-core::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(185, 140, 255, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.welcome-core::after {
  inset: auto 0 0;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--good), transparent);
  animation: portalLine 1.4s ease-in-out infinite;
}

.welcome-ring {
  width: 134px;
  height: 134px;
  position: absolute;
  top: 58px;
  border-radius: 999px;
  border: 1px solid rgba(84, 214, 255, 0.36);
  box-shadow: inset 0 0 28px rgba(84, 214, 255, 0.2), 0 0 34px rgba(185, 140, 255, 0.22);
  animation: portalRing 3.2s linear infinite;
}

.welcome-ring::before,
.welcome-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  border: 1px dashed rgba(185, 140, 255, 0.5);
}

.welcome-ring::after {
  inset: 42px;
  border-color: rgba(70, 230, 170, 0.42);
}

.welcome-orbit {
  position: absolute;
  top: 58px;
  width: 134px;
  height: 134px;
  animation: portalRing 5s linear infinite reverse;
}

.welcome-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(84, 214, 255, 0.9);
}

.welcome-orbit i:nth-child(1) { left: 63px; top: -4px; }
.welcome-orbit i:nth-child(2) { right: -4px; top: 63px; background: var(--good); }
.welcome-orbit i:nth-child(3) { left: 63px; bottom: -4px; background: var(--violet); }
.welcome-orbit i:nth-child(4) { left: -4px; top: 63px; background: var(--amber); }

.welcome-core p {
  margin: 150px 0 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.welcome-core h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(84, 214, 255, 0.34);
}

.welcome-core strong {
  color: #e8fbff;
  font-size: 14px;
  letter-spacing: 0;
}

.welcome-core small {
  max-width: 520px;
  color: var(--soft);
  line-height: 1.7;
}

@keyframes portalEnter {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes portalExit {
  to { opacity: 0; transform: scale(1.04); filter: blur(10px); }
}

@keyframes portalRing {
  to { transform: rotate(360deg); }
}

@keyframes portalLine {
  0%, 100% { opacity: 0.35; transform: translateX(-34%); }
  50% { opacity: 1; transform: translateX(34%); }
}

.preview-readonly .app-shell {
  min-height: 100vh;
}

.preview-readonly button:not(.workflow):not([data-preview-locked]),
.preview-readonly input,
.preview-readonly textarea,
.preview-readonly select {
  cursor: not-allowed;
}

.preview-readonly .workflow,
.preview-readonly [data-preview-locked] {
  cursor: pointer;
}

.preview-readonly .slot-card {
  cursor: not-allowed;
}

.preview-readonly .slot-card::after {
  content: "开通后可用";
}

.preview-access-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(84, 214, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 214, 255, 0.08), rgba(185, 140, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.preview-access-ribbon span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(255, 199, 106, 0.8);
}

.preview-access-ribbon strong {
  flex: 1;
  color: #fff;
  line-height: 1.5;
}

.preview-access-ribbon a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(221, 200, 255, 0.62);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(111, 60, 255, 0.9), rgba(84, 214, 255, 0.28));
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

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

.preview-module-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(193, 154, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 12px;
}

.preview-empty-module {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(84, 214, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 214, 255, 0.07), rgba(185, 140, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  text-align: center;
}

.preview-empty-module strong {
  color: #fff;
  font-size: 18px;
}

.preview-empty-module p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.preview-agent-demo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(84, 214, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 214, 255, 0.07), rgba(185, 140, 255, 0.09)),
    rgba(255, 255, 255, 0.04);
}

.preview-agent-demo strong {
  color: #fff;
}

.preview-agent-demo p {
  margin: 4px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.preview-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 10px 14px;
  border: 1px solid rgba(84, 214, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 10, 20, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 24px rgba(84, 214, 255, 0.22);
  text-align: center;
}

@media (max-width: 980px) {
  .promo-marquee {
    height: 38px;
  }

  .promo-track {
    gap: 28px;
    padding-left: 16px;
    animation-duration: 18s;
  }

  .promo-track span {
    font-size: 13px;
  }

  .wechat-lead-card {
    right: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 10px;
    padding: 10px;
  }

  .wechat-lead-copy p {
    font-size: 11px;
  }

  .wechat-lead-copy strong {
    font-size: 15px;
  }

  .wechat-lead-copy span {
    font-size: 10px;
  }

  .wechat-lead-card img {
    width: 94px;
    height: 120px;
  }

  .super-agent-widget {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .super-agent-panel {
    width: calc(100vw - 24px);
    height: min(620px, calc(100dvh - 92px));
  }

  .app-shell {
    min-height: calc(100vh - 38px);
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    max-width: 100%;
    min-width: 0;
  }

  .workflow {
    flex: 0 0 auto;
    min-width: 108px;
    text-align: center;
  }

  .status-panel {
    margin-top: 0;
  }

  .input-grid,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .course-hero,
  .source-panel {
    grid-template-columns: 1fr;
  }

  .course-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-section-head > p {
    text-align: left;
  }

  .course-grid,
  .resource-grid,
  .courseware-chapters ol,
  .courseware-flow,
  .courseware-visual,
  .courseware-grid,
  .courseware-grid.two,
  .term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courseware-header,
  .resource-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .courseware-back,
  .resource-back {
    order: 0;
  }

  .resource-toolbar {
    grid-template-columns: 1fr;
  }

  .source-links {
    justify-content: flex-start;
  }

  .upload-slots,
  .category-grid,
  .interview-form-grid {
    grid-template-columns: 1fr;
  }

  .member-hero,
  .preview-hero,
  .member-feature-grid,
  .member-plan-grid,
  .member-step-list,
  .member-payment-box,
  .preview-console-body,
  .preview-metrics,
  .preview-agent-demo {
    grid-template-columns: 1fr;
  }

  .preview-access-ribbon {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-hero {
    min-height: auto;
  }

  .member-card {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  body.app-embed::before,
  body.member-page::before {
    background-size: 36px 36px;
    opacity: 0.36;
  }

  .wechat-lead-card {
    display: none;
  }

  .access-gate {
    padding: 14px;
  }

  .access-card {
    width: min(100%, 390px);
    padding: 18px;
  }

  .app-shell {
    min-height: 100dvh;
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    gap: 10px;
    padding: 12px;
  }

  .brand {
    min-height: 44px;
  }

  .mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand h1 {
    font-size: 21px;
  }

  .brand p {
    font-size: 12px;
  }

  .workflow-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }

  .workflow {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 40px;
    padding: 0 11px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  .status-panel {
    min-height: 34px;
    margin-top: 0;
    padding: 8px 10px;
  }

  .workspace {
    gap: 14px;
    padding: 14px 12px 92px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .eyebrow {
    font-size: 10px;
  }

  .command-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
  }

  .command-metrics span {
    min-height: 30px;
    justify-content: center;
    padding: 0 8px;
    font-size: 11px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-actions .icon-button,
  .form-actions .primary-button,
  .form-actions .secondary-button {
    width: 100%;
  }

  .input-grid,
  .result-layout,
  .upload-slots,
  .category-grid,
  .interview-form-grid,
  .interview-qa-grid,
  .member-hero,
  .member-payment-box,
  .member-feature-grid,
  .member-step-list,
  .preview-console-body,
  .preview-metrics,
  .preview-agent-demo {
    grid-template-columns: 1fr;
  }

  .upload-panel,
  .context-panel,
  .panel,
  .report-panel {
    padding: 13px;
  }

  .slot-card {
    min-height: 112px;
  }

  .slot-card strong,
  .panel-head h3 {
    font-size: 15px;
  }

  .report-output {
    max-height: 52dvh;
  }

  .member-shell {
    width: min(100% - 20px, 1180px);
    padding: 12px 0 24px;
  }

  .member-copy,
  .member-card,
  .member-section {
    padding: 16px;
  }

  .member-copy h1 {
    max-width: 10em;
    font-size: 34px;
    line-height: 1;
  }

  .member-lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .member-plan-grid {
    gap: 10px;
  }

  .member-plan-card {
    min-height: 104px;
  }

  .member-payment-box {
    gap: 12px;
  }

  .member-qr-wrap.payment-qr {
    width: 158px;
    justify-self: center;
  }

  .live-usage-pulse {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
  }

  .super-agent-widget,
  .super-agent-widget.is-floating {
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    max-width: none;
  }

  .super-agent-widget.is-open,
  .super-agent-widget.is-open.is-floating {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .super-agent-panel {
    width: 100vw !important;
    height: min(92dvh, 720px) !important;
    max-height: calc(100dvh - 8px);
    margin: 0;
    border-radius: 8px 8px 0 0;
  }

  .super-agent-panel header {
    padding: 11px 12px;
  }

  .super-agent-drag-handle {
    cursor: default;
  }

  .super-agent-messages {
    gap: 8px;
    padding: 11px;
  }

  .super-agent-message {
    max-width: 94%;
  }

  .super-agent-input {
    grid-template-columns: 1fr auto;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .super-agent-input textarea {
    grid-column: 1 / -1;
    min-height: 64px;
    max-height: 110px;
  }

  .super-agent-resize {
    display: none;
  }
}

@media (max-width: 560px) {
  .workspace,
  .sidebar {
    padding: 12px;
  }

  .promo-marquee {
    height: 34px;
  }

  .promo-track {
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 0;
    padding: 0 12px;
    overflow: hidden;
    animation: none;
  }

  .promo-track span:not(:first-child) {
    display: none;
  }

  .promo-track span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .brand {
    min-height: 48px;
  }

  .mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand h1 {
    font-size: 20px;
  }

  .brand p {
    font-size: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .command-metrics {
    gap: 6px;
    margin-top: 10px;
  }

  .command-metrics span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .form-actions,
  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .primary-button,
  .secondary-button,
  .icon-button {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
  }

  .input-grid {
    gap: 12px;
  }

  .upload-panel,
  .context-panel,
  .panel,
  .report-panel {
    padding: 12px;
  }

  .upload-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .upload-panel-head small {
    text-align: left;
  }

  .slot-card {
    min-height: 118px;
    padding: 10px;
  }

  .upload-zone {
    min-height: 188px;
    padding: 16px;
  }

  .upload-visual {
    width: 58px;
    height: 58px;
    font-size: 30px;
  }

  textarea {
    min-height: 116px;
  }

  .super-agent-widget {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .super-agent-fab {
    max-width: 100%;
    min-height: 52px;
    padding: 8px 12px 8px 8px;
  }

  .super-agent-helmet {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .super-agent-panel {
    width: calc(100vw - 16px);
    height: min(560px, calc(100dvh - 72px));
    margin-bottom: 8px;
  }

  .super-agent-panel header {
    padding: 10px;
  }

  .super-agent-panel header small {
    font-size: 11px;
  }

  .super-agent-messages {
    padding: 10px;
  }

  .super-agent-message {
    max-width: 96%;
    padding: 10px;
  }

  .super-agent-input {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  .super-agent-input textarea {
    grid-column: 1 / -1;
    min-height: 68px;
  }

  .super-agent-upload {
    min-height: 40px;
  }

  .super-agent-resize {
    display: none;
  }

  .course-hero {
    padding: 18px;
  }

  .course-hero h3 {
    font-size: 30px;
  }

  .course-stats {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .resource-grid,
  .courseware-chapters ol,
  .courseware-flow,
  .courseware-visual,
  .courseware-grid,
  .courseware-grid.two,
  .chapter-detail-grid,
  .chapter-concept-list,
  .term-grid,
  .preview-module-strip {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: auto;
  }

  .member-shell {
    width: min(100% - 22px, 1180px);
    padding: 16px 0 28px;
  }

  .member-copy,
  .member-card,
  .member-section {
    padding: 18px;
  }

  .member-copy h1 {
    font-size: 40px;
  }

  .member-lead {
    font-size: 15px;
  }

  .member-price {
    align-items: center;
    flex-wrap: wrap;
  }

  .member-price strong {
    font-size: 58px;
  }

  .member-actions .primary-button,
  .member-actions .secondary-button {
    width: 100%;
  }
}
