:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-2: #0b0e14;
  --panel: #161920;
  --panel-2: #1b1f28;
  --panel-3: #111720;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eff6ff;
  --muted: #8e96a3;
  --cyan: #10d4e8;
  --cyan-2: #05f4ff;
  --green: #11d48c;
  --gold: #ffc400;
  --purple: #8b5cf6;
  --pink: #ed4f9a;
  --orange: #ff8a1f;
  --danger: #ff4d5e;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fbfd;
  --bg-2: #f3f7fa;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --panel-3: #eef5f8;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.15);
  --text: #101828;
  --muted: #667085;
  --cyan: #4f46e5;
  --cyan-2: #4f46e5;
  --green: #4f46e5;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 213, 236, 0.62) rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.85), rgba(255, 196, 0, 0.78));
  border: 2px solid rgba(12, 14, 18, 0.78);
}

:root[data-theme="light"] * {
  scrollbar-color: rgba(0, 160, 190, 0.58) rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] *::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] *::-webkit-scrollbar-thumb {
  border-color: #f6fbfd;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

.btn-square {
  width: 38px;
  padding: 0;
}

.page-bg {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 0 94%, rgba(0, 214, 190, 0.2), transparent 42%),
    radial-gradient(ellipse at 100% 0, rgba(0, 214, 255, 0.13), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(7, 16, 26, 0.2), transparent 30%),
    #06090f;
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .page-bg {
  background:
    linear-gradient(rgba(8, 126, 148, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(8, 126, 148, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 0 90%, rgba(0, 188, 190, 0.13), transparent 44%),
    radial-gradient(ellipse at 100% 0, rgba(0, 178, 214, 0.14), transparent 36%),
    #f7fbfd;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: fixed;
  inset: auto auto -240px -120px;
  width: 880px;
  height: 520px;
  border-top: 8px solid rgba(0, 221, 232, 0.17);
  border-radius: 70% 100% 0 0;
  transform: rotate(-12deg);
  pointer-events: none;
}

.page-bg::after {
  inset: 120px -220px auto auto;
  width: 760px;
  height: 340px;
  border-color: rgba(31, 202, 168, 0.15);
  transform: rotate(14deg);
}

.page-bg::before,
.page-bg::after {
  z-index: 0;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(11, 232, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(145, 87, 255, 0.92) 0 1px, transparent 2px);
  background-size: 290px 230px, 380px 310px, 420px 360px;
  background-position: 18px 28px, 100px 80px, 190px 40px;
  opacity: 0.75;
  animation: drift 18s linear infinite;
}

:root[data-theme="light"] .stars {
  opacity: 0.58;
  background-image:
    radial-gradient(circle, rgba(0, 184, 214, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(30, 41, 59, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(0, 160, 190, 0.45) 0 1px, transparent 2px);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-40px, 30px, 0);
  }
}

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

@keyframes showcaseFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(12px, -18px, 0) scale(1.55);
  }
}

@keyframes iconPulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(0, 229, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.55));
  }
}

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

.brand-mark,
.avatar-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 14px 28px rgba(0, 213, 236, 0.18), 0 0 24px rgba(124, 58, 237, 0.22);
  color: var(--cyan-2);
  font-weight: 900;
  overflow: visible;
}

.brand-mark span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.brand-icon-img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.28)) drop-shadow(0 8px 16px rgba(124, 58, 237, 0.22));
}

.brand-name {
  color: var(--cyan-2);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-sub {
  color: #7d8796;
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

:root[data-theme="light"] .topbar {
  background: rgba(248, 252, 254, 0.78);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.top-actions,
.icon-row,
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}

:root[data-theme="light"] .btn {
  background: #fff;
  border-color: #cbd5e1;
  color: #344054;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn:hover {
  border-color: rgba(0, 229, 255, 0.48);
  color: #fff;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #17d8ef, #15b9d8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(7, 210, 235, 0.32);
  font-weight: 800;
}

.btn-gold {
  border-color: rgba(255, 196, 0, 0.45);
  background: rgba(255, 196, 0, 0.12);
  color: var(--gold);
}

.btn-purple {
  border-color: rgba(139, 92, 246, 0.48);
  background: rgba(139, 92, 246, 0.15);
  color: #c7b6ff;
}

.btn-danger {
  border-color: rgba(255, 77, 94, 0.45);
  color: #ff9ca5;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #151922;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: 0.16s ease;
}

.icon-btn:hover,
.icon-btn.active {
  color: var(--cyan-2);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.16);
}

.icon-btn.sun {
  color: #ffb000;
}

.icon-btn.green {
  color: #39d77e;
}

.icon-btn.blue {
  color: #08c9ff;
}

.icon-btn.gold {
  color: var(--gold);
}

.icon-btn.purple {
  color: #ce69ff;
}

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

.hero {
  min-height: calc(100vh - 52px);
  display: grid;
  place-items: center;
  padding: 56px 24px 116px;
  position: relative;
  overflow: hidden;
}

.hero-center {
  width: min(760px, 94vw);
  text-align: center;
  transform: translateY(4px);
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.hero-center .btn {
  pointer-events: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.09);
  font-weight: 800;
  font-size: 13px;
}

:root[data-theme="light"] .pill {
  color: #075985;
  background: #e6fbff;
  border-color: #67d7e8;
}

.hero h1,
.section-title {
  margin: 24px 0 0;
  color: #f8fbff;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(48px, 5.6vw, 68px);
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.18);
}

:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .section-title {
  color: #090e18;
  text-shadow: none;
}

.hero h1 span,
.section-title span,
.accent {
  color: #00dfc5;
}

.typing-caret {
  border-right: 3px solid var(--cyan-2);
  padding-right: 6px;
}

.hero-copy {
  margin: 24px auto 0;
  color: #b5bfcd;
  font-size: 15px;
  line-height: 1.8;
  width: min(680px, 90vw);
}

:root[data-theme="light"] .hero-copy,
:root[data-theme="light"] .section-copy {
  color: #667085;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
}

.hero-stats span {
  color: #75808f;
  font-size: 12px;
}

.orbit {
  position: absolute;
  width: min(1050px, 82vw);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  pointer-events: auto;
  z-index: 3;
  perspective: 1200px;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before {
  border-left: 7px solid rgba(9, 215, 229, 0.18);
  border-top: 7px solid rgba(9, 215, 229, 0.18);
  border-bottom: 7px solid rgba(9, 215, 229, 0.06);
  transform: rotate(-28deg) scaleX(1.44);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2));
}

:root[data-theme="light"] .orbit::before {
  border-left-color: rgba(0, 190, 200, 0.12);
  border-top-color: rgba(0, 190, 200, 0.12);
  border-bottom-color: rgba(0, 190, 200, 0.035);
}

.orbit::after {
  inset: 14% 20%;
  border-right: 9px solid rgba(67, 45, 177, 0.32);
  border-bottom: 9px solid rgba(67, 45, 177, 0.22);
  transform: rotate(31deg) scaleX(1.52);
  filter: drop-shadow(0 0 10px rgba(86, 75, 255, 0.18));
}

:root[data-theme="light"] .orbit::after {
  border-right-color: rgba(95, 88, 210, 0.11);
  border-bottom-color: rgba(95, 88, 210, 0.09);
}

.orbit:hover .orbit-track {
  animation-play-state: paused;
}

.orbit-arc {
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.75;
}

.orbit-arc-a {
  border-left: 2px solid rgba(0, 229, 255, 0.12);
  border-top: 2px solid rgba(0, 229, 255, 0.06);
  transform: rotate(-24deg) scaleX(1.54);
}

.orbit-arc-b {
  inset: 11% 22%;
  border-right: 2px solid rgba(114, 88, 255, 0.14);
  border-bottom: 2px solid rgba(114, 88, 255, 0.1);
  transform: rotate(35deg) scaleX(1.52);
}

.orbit-track {
  --node-radius: 430px;
  --track-scale: 1;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: orbitSpin 64s linear infinite;
  transform-origin: center;
  will-change: transform;
}

.orbit-track-b {
  animation-duration: 78s;
  animation-direction: reverse;
  opacity: 0.62;
  --track-scale: 0.82;
}

@keyframes orbitSpin {
  from {
    transform: scale(var(--track-scale)) rotate(0deg);
  }

  to {
    transform: scale(var(--track-scale)) rotate(360deg);
  }
}

.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  text-align: center;
  transform: rotate(var(--angle)) translateX(var(--node-radius)) rotate(var(--angle-neg)) translate(-50%, -50%);
  pointer-events: auto;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease,
    z-index 0.18s ease;
  z-index: 1;
}

:root[data-theme="light"] .orbit-node {
  color: rgba(71, 84, 103, 0.42);
}

.orbit-node:hover {
  color: #eefdff;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.4));
  z-index: 8;
}

:root[data-theme="light"] .orbit-node:hover {
  color: #172033;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

.node-face {
  display: inline-grid;
  justify-items: center;
  gap: 5px;
  min-width: 96px;
  padding: 3px 6px 6px;
  border-radius: 10px;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.orbit-node:hover .node-face {
  background: rgba(7, 12, 18, 0.74);
  transform: translateY(-4px) scale(1.08);
}

:root[data-theme="light"] .orbit-node:hover .node-face {
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 26px rgba(15, 23, 42, 0.1);
}

.node-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 112px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] .node-label {
  text-shadow: none;
}

.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(18, 22, 31, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.32);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

:root[data-theme="light"] .node-icon {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.74)),
    #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.orbit-node:hover .node-icon {
  transform: scale(1.08);
  border-color: rgba(0, 229, 255, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(0, 229, 255, 0.32);
}

:root[data-theme="light"] .orbit-node:hover .node-icon {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(15, 23, 42, 0.11);
}

.node-icon.cyan {
  color: var(--cyan-2);
}

.node-icon.purple {
  color: var(--purple);
}

.node-icon.gold {
  color: var(--gold);
}

.node-icon.pink {
  color: var(--pink);
}

.node-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  backdrop-filter: blur(12px);
}

.node-popover strong,
.node-popover span {
  display: block;
  text-align: left;
}

.node-popover strong {
  color: var(--cyan-2);
  font-size: 13px;
  margin-bottom: 5px;
}

.node-popover span {
  color: #aeb8c6;
  font-size: 12px;
  line-height: 1.55;
}

:root[data-theme="light"] .node-popover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .node-popover strong {
  color: #1d4ed8;
}

:root[data-theme="light"] .node-popover span {
  color: #475467;
}

.orbit-node:hover .node-popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.orbit-showcase {
  position: absolute;
  top: 50%;
  width: 260px;
  height: 160px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 4;
}

.orbit-showcase-left {
  left: -108px;
}

.orbit-showcase-right {
  right: -108px;
}

.showcase-card {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  opacity: 0;
  transform: translateX(var(--showcase-shift, 0)) scale(0.96);
  animation: showcaseCycle var(--cycle) ease-in-out infinite;
  animation-delay: calc(var(--slot) * 3s);
}

.orbit-showcase-left .showcase-card {
  --showcase-shift: -26px;
}

.orbit-showcase-right .showcase-card {
  --showcase-shift: 26px;
}

.showcase-card .node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(12, 18, 27, 0.58);
}

.showcase-card h3 {
  margin: 0 0 7px;
  color: var(--cyan-2);
  font-size: 16px;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.28);
}

.showcase-card p {
  margin: 0;
  color: #c1ccd9;
  font-size: 12px;
  line-height: 1.55;
  max-width: 230px;
}

:root[data-theme="light"] .showcase-card p {
  color: #667085;
}

@keyframes showcaseCycle {
  0%,
  8% {
    opacity: 0;
    transform: translateX(var(--showcase-shift)) scale(0.96);
  }

  13%,
  27% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  33%,
  100% {
    opacity: 0;
    transform: translateX(calc(var(--showcase-shift) * -0.5)) scale(0.98);
  }
}

.section {
  position: relative;
  z-index: 2;
  padding: 80px 24px 110px;
}

.section-inner {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
}

.section-copy {
  color: #9aa5b4;
  line-height: 1.8;
  margin: 14px auto 0;
  width: min(640px, 92vw);
}

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

.feature-card,
.platform-card,
.mini-card,
.work-card,
.doc-card {
  border: 1px solid var(--line);
  background: rgba(18, 23, 32, 0.72);
  border-radius: 8px;
}

.feature-card {
  min-height: 210px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.feature-num {
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 44px;
  font-weight: 950;
  color: rgba(0, 229, 255, 0.08);
}

.feature-icon,
.tile-icon,
.modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan-2);
  margin-bottom: 18px;
}

.feature-card h3,
.platform-card h3,
.mini-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.feature-card p,
.platform-card p,
.mini-card p {
  color: #9aa5b4;
  margin: 0;
  line-height: 1.7;
}

.linkish {
  margin-top: 20px;
  color: var(--cyan-2);
  font-weight: 800;
}

.platform-grid {
  margin-top: 42px;
}

.platform-card {
  min-height: 180px;
  padding: 24px;
}

.gallery-strip {
  columns: 6 150px;
  column-gap: 12px;
  width: min(1140px, calc(100vw - 40px));
  margin: 0 auto;
}

.gallery-strip.empty {
  display: grid;
  columns: auto;
  place-items: center;
  min-height: 220px;
}

.landing-gallery-empty {
  width: min(620px, 100%);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.5);
  color: #c6d4e5;
  font-size: 14px;
  font-weight: 760;
}

.gallery-strip .work-card {
  break-inside: avoid;
  margin-bottom: 12px;
}

.cta {
  text-align: center;
  padding: 80px 24px 110px;
  position: relative;
  z-index: 2;
}

.footer {
  height: 52px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #76808d;
  font-size: 13px;
}

.support-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 24;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #12d3e8, #0797c6);
  box-shadow: 0 12px 28px rgba(0, 158, 196, 0.34);
  text-decoration: none;
}

.hero-word {
  display: inline-block;
  background: linear-gradient(90deg, #08f1c2, #10b7f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

:root[data-theme="light"] .hero-word {
  background: linear-gradient(90deg, #06b6d4, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
}

.neo-page {
  background:
    linear-gradient(118deg, rgba(0, 229, 255, 0.12) 0 1px, transparent 1px 38%),
    linear-gradient(242deg, rgba(255, 196, 0, 0.08) 0 1px, transparent 1px 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, #05070d 0%, #070c13 45%, #09100f 100%);
}

:root[data-theme="light"] .neo-page {
  background:
    linear-gradient(118deg, rgba(6, 182, 212, 0.16) 0 1px, transparent 1px 38%),
    linear-gradient(242deg, rgba(21, 128, 61, 0.09) 0 1px, transparent 1px 42%),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 56px),
    linear-gradient(135deg, #f7fbfd 0%, #eefaff 50%, #f4fff8 100%);
}

.neo-page::before {
  inset: 52px 0 auto;
  width: auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(5, 244, 255, 0.68), rgba(255, 196, 0, 0.45), transparent);
  transform: none;
  opacity: 0.75;
  animation: neoHeaderPulse 3.4s ease-in-out infinite;
}

.neo-page::after {
  inset: auto 0 0;
  width: auto;
  height: 42vh;
  border: 0;
  border-radius: 0;
  background:
    repeating-linear-gradient(92deg, transparent 0 20px, rgba(5, 244, 255, 0.055) 20px 21px, transparent 21px 54px),
    linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.06));
  transform: none;
  opacity: 0.78;
  mask-image: linear-gradient(transparent, #000 42%);
}

:root[data-theme="light"] .neo-page::before {
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.48), rgba(21, 128, 61, 0.28), transparent);
}

:root[data-theme="light"] .neo-page::after {
  background:
    repeating-linear-gradient(92deg, transparent 0 20px, rgba(8, 145, 178, 0.065) 20px 21px, transparent 21px 54px),
    linear-gradient(180deg, transparent, rgba(8, 145, 178, 0.07));
}

.neo-page .stars {
  opacity: 0.48;
  animation-duration: 24s;
}

.neo-hero {
  min-height: calc(100vh - 52px);
  width: min(1220px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 86px 0 104px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
  align-items: center;
  gap: 48px;
  isolation: isolate;
}

.neo-motion-field,
.neo-flight-lane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.neo-motion-field {
  z-index: 0;
}

.neo-grid-plane {
  position: absolute;
  inset: -18% -12%;
  background:
    linear-gradient(rgba(0, 229, 255, 0.11) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px) 0 0 / 54px 54px;
  transform: perspective(800px) rotateX(58deg) translateY(9%);
  transform-origin: 50% 72%;
  opacity: 0.34;
  animation: neoGridDrift 10s linear infinite;
}

.neo-scan-plane {
  position: absolute;
  inset: 8% -20%;
  background:
    linear-gradient(100deg, transparent 0 42%, rgba(5, 244, 255, 0.24) 48%, rgba(255, 196, 0, 0.16) 51%, transparent 58%),
    linear-gradient(180deg, transparent, rgba(5, 244, 255, 0.05), transparent);
  transform: skewY(-8deg) translateX(-28%);
  filter: blur(0.2px);
  opacity: 0.72;
  animation: neoScanSweep 5.8s ease-in-out infinite;
}

.neo-vector-lines {
  position: absolute;
  inset: 0;
}

.neo-stream {
  position: absolute;
  left: -38%;
  top: calc(5% + var(--i) * 7.4%);
  width: calc(22vw + var(--i) * 15px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 244, 255, 0.68), rgba(255, 196, 0, 0.42), transparent);
  box-shadow: 0 0 18px rgba(5, 244, 255, 0.25);
  transform: rotate(calc(-16deg + var(--i) * 1.4deg));
  opacity: 0;
  animation: neoStreamFly 6.8s linear infinite;
  animation-delay: var(--delay);
}

.neo-flight-lane {
  z-index: 2;
}

.neo-flight-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "icon name"
    "icon label";
  column-gap: 9px;
  align-items: center;
  min-width: 126px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(8, 12, 18, 0.62);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  color: #f5fbff;
  animation: neoChipFloat var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.neo-flight-chip:nth-child(2n) {
  min-width: 142px;
}

.neo-flight-chip:nth-child(3n) {
  min-width: 112px;
}

.neo-flight-chip.cyan {
  border-color: rgba(5, 244, 255, 0.34);
}

.neo-flight-chip.green {
  border-color: rgba(17, 212, 140, 0.34);
}

.neo-flight-chip.gold {
  border-color: rgba(255, 196, 0, 0.36);
}

.neo-flight-chip.violet {
  border-color: rgba(139, 92, 246, 0.38);
}

.neo-flight-chip.pink {
  border-color: rgba(237, 79, 154, 0.38);
}

.neo-chip-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.neo-flight-chip strong {
  grid-area: name;
  font-size: 12px;
  line-height: 1.2;
}

.neo-flight-chip small {
  grid-area: label;
  color: #aeb8c6;
  font-size: 10px;
}

:root[data-theme="light"] .neo-flight-chip {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.78)),
    #fff;
  color: #172033;
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 30px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .neo-chip-icon {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .neo-flight-chip small {
  color: #667085;
}

:root[data-theme="light"] .neo-flight-chip.cyan {
  border-color: rgba(37, 99, 235, 0.18);
}

:root[data-theme="light"] .neo-flight-chip.green {
  border-color: rgba(124, 58, 237, 0.16);
}

:root[data-theme="light"] .neo-flight-chip.gold {
  border-color: rgba(217, 119, 6, 0.18);
}

:root[data-theme="light"] .neo-flight-chip.violet {
  border-color: rgba(124, 58, 237, 0.18);
}

:root[data-theme="light"] .neo-flight-chip.pink {
  border-color: rgba(219, 39, 119, 0.18);
}

.neo-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 640px;
}

.neo-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(17, 212, 140, 0.8);
  animation: neoBlink 1.4s ease-in-out infinite;
}

.neo-hero h1 {
  margin: 24px 0 0;
  color: #f8fbff;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(5, 244, 255, 0.12);
}

:root[data-theme="light"] .neo-hero h1 {
  color: #090e18;
  text-shadow: none;
}

.neo-copy {
  margin: 24px 0 0;
  width: min(620px, 92vw);
  color: #b9c4d2;
  font-size: 16px;
  line-height: 1.85;
}

:root[data-theme="light"] .neo-copy {
  color: #475467;
}

.neo-actions {
  justify-content: flex-start;
}

.neo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 126px));
  gap: 12px;
  margin-top: 34px;
}

.neo-stats div {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.neo-stats strong {
  display: block;
  color: #f7fbff;
  font-size: 28px;
  line-height: 1.1;
}

.neo-stats span {
  display: block;
  margin-top: 6px;
  color: #8d98a7;
  font-size: 12px;
}

:root[data-theme="light"] .neo-stats div {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(8, 145, 178, 0.16);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] .neo-stats strong {
  color: #101828;
}

:root[data-theme="light"] .neo-stats span {
  color: #667085;
}

.neo-command-panel {
  position: relative;
  z-index: 3;
  min-height: 500px;
  padding: 16px;
  border: 1px solid rgba(5, 244, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(5, 244, 255, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(255, 196, 0, 0.08), transparent 42%),
    rgba(9, 13, 20, 0.78);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
  backdrop-filter: blur(18px);
  animation: neoPanelFloat 7.5s ease-in-out infinite;
}

.neo-command-panel::before {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(5, 244, 255, 0.18), transparent 58%);
  transform: translateX(-45%);
  animation: neoPanelSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.neo-command-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

:root[data-theme="light"] .neo-command-panel {
  background:
    linear-gradient(145deg, rgba(8, 145, 178, 0.13), transparent 36%),
    linear-gradient(315deg, rgba(21, 128, 61, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.78);
  border-color: rgba(8, 145, 178, 0.22);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.16);
}

.neo-panel-top {
  position: relative;
  z-index: 2;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0;
}

.neo-panel-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.neo-panel-top span:nth-child(1) {
  background: #ff5f57;
}

.neo-panel-top span:nth-child(2) {
  background: #ffc400;
}

.neo-panel-top span:nth-child(3) {
  background: #11d48c;
}

.neo-panel-top strong {
  margin-left: auto;
  color: var(--cyan-2);
  font-size: 11px;
}

:root[data-theme="light"] .neo-panel-top {
  color: #667085;
}

:root[data-theme="light"] .neo-panel-top strong {
  color: #087b8d;
}

.neo-panel-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 14px;
  min-height: 322px;
  align-items: stretch;
}

.neo-route-ring {
  position: relative;
  min-height: 322px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px) 0 0 / 26px 26px,
    rgba(3, 7, 14, 0.42);
  overflow: hidden;
}

.neo-ring-path {
  position: relative;
  width: min(238px, 76%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(5, 244, 255, 0.28);
  box-shadow:
    inset 0 0 28px rgba(5, 244, 255, 0.08),
    0 0 34px rgba(5, 244, 255, 0.1);
  animation: neoRingSpin 16s linear infinite;
}

.neo-ring-path::before,
.neo-ring-path::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 196, 0, 0.34);
  animation: neoRingSpin 10s linear infinite reverse;
}

.neo-ring-path::after {
  inset: 36%;
  border-color: rgba(17, 212, 140, 0.32);
  animation-duration: 7.5s;
}

.neo-core {
  position: absolute;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(5, 244, 255, 0.24), rgba(17, 212, 140, 0.16)),
    #071018;
  color: var(--cyan-2);
  box-shadow:
    0 0 36px rgba(5, 244, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: neoCorePulse 2.6s ease-in-out infinite;
}

.neo-ring-mark {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(12, 18, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: neoMarkPulse 3.2s ease-in-out infinite;
}

.neo-ring-mark.cyan {
  color: var(--cyan-2);
}

.neo-ring-mark.green {
  color: var(--green);
}

.neo-ring-mark.gold {
  color: var(--gold);
}

.neo-ring-mark.violet {
  color: var(--purple);
}

.neo-ring-mark.pink {
  color: var(--pink);
}

.neo-ring-mark.mark-1 { left: 16%; top: 20%; animation-delay: -0.4s; }
.neo-ring-mark.mark-2 { right: 13%; top: 26%; animation-delay: -1s; }
.neo-ring-mark.mark-3 { right: 21%; bottom: 15%; animation-delay: -1.5s; }
.neo-ring-mark.mark-4 { left: 23%; bottom: 12%; animation-delay: -2s; }
.neo-ring-mark.mark-5 { left: 47%; top: 8%; animation-delay: -2.5s; }
.neo-ring-mark.mark-6 { right: 43%; bottom: 4%; animation-delay: -3s; }

:root[data-theme="light"] .neo-route-ring {
  background:
    linear-gradient(rgba(8, 145, 178, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(8, 145, 178, 0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    rgba(255, 255, 255, 0.56);
  border-color: rgba(8, 145, 178, 0.14);
}

:root[data-theme="light"] .neo-core {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(21, 128, 61, 0.12)),
    #fff;
  color: #087b8d;
}

:root[data-theme="light"] .neo-ring-mark {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11);
}

.neo-terminal {
  display: grid;
  align-content: start;
  gap: 10px;
}

.neo-terminal-row {
  height: 54px;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.neo-terminal-row span {
  color: #8ea0b7;
  font-size: 11px;
}

.neo-terminal-row em {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-2), rgba(17, 212, 140, 0.72), transparent);
  transform-origin: left;
  animation: neoLineLoad 2.8s ease-in-out infinite;
}

.neo-terminal-row strong {
  color: #e9f8ff;
  font-size: 12px;
}

.neo-terminal-row.active {
  border-color: rgba(5, 244, 255, 0.28);
  background: rgba(5, 244, 255, 0.08);
}

.neo-output-lines {
  margin-top: 4px;
  padding: 18px 14px;
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.neo-output-lines span {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(5, 244, 255, 0.64), rgba(255, 255, 255, 0.18), transparent);
  animation: neoOutputWrite 3.8s ease-in-out infinite;
}

.neo-output-lines span:nth-child(2) {
  width: 74%;
  animation-delay: -0.7s;
}

.neo-output-lines span:nth-child(3) {
  width: 88%;
  animation-delay: -1.2s;
}

.neo-output-lines span:nth-child(4) {
  width: 48%;
  animation-delay: -1.8s;
}

:root[data-theme="light"] .neo-terminal-row,
:root[data-theme="light"] .neo-output-lines {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .neo-terminal-row span {
  color: #667085;
}

:root[data-theme="light"] .neo-terminal-row strong {
  color: #101828;
}

.neo-wave-stack {
  position: relative;
  z-index: 2;
  height: 94px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.neo-wave-stack span {
  min-height: 18%;
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--cyan-2), rgba(17, 212, 140, 0.72), rgba(255, 196, 0, 0.48));
  box-shadow: 0 0 16px rgba(5, 244, 255, 0.2);
  animation: neoWave 1.45s ease-in-out infinite;
  animation-delay: var(--delay);
}

:root[data-theme="light"] .neo-wave-stack {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(15, 23, 42, 0.08);
}

.neo-model-ribbon {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  width: min(100vw, 1280px);
  height: 58px;
  transform: translateX(-50%);
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 12, 0.42);
  backdrop-filter: blur(14px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.neo-ribbon-track {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: neoRibbon 30s linear infinite;
}

.neo-ribbon-item {
  min-width: 168px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #eaf7ff;
}

.neo-ribbon-item em {
  color: #8d98a7;
  font-size: 11px;
  font-style: normal;
}

.neo-ribbon-item.cyan { border-color: rgba(5, 244, 255, 0.24); }
.neo-ribbon-item.green { border-color: rgba(17, 212, 140, 0.22); }
.neo-ribbon-item.gold { border-color: rgba(255, 196, 0, 0.24); }
.neo-ribbon-item.violet { border-color: rgba(139, 92, 246, 0.24); }
.neo-ribbon-item.pink { border-color: rgba(237, 79, 154, 0.24); }

:root[data-theme="light"] .neo-model-ribbon {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .neo-ribbon-item {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72));
  color: #172033;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .neo-ribbon-item em {
  color: #667085;
}

:root[data-theme="light"] .neo-ribbon-item.cyan {
  border-color: rgba(37, 99, 235, 0.16);
}

:root[data-theme="light"] .neo-ribbon-item.green {
  border-color: rgba(124, 58, 237, 0.14);
}

:root[data-theme="light"] .neo-ribbon-item.gold {
  border-color: rgba(217, 119, 6, 0.16);
}

:root[data-theme="light"] .neo-ribbon-item.violet {
  border-color: rgba(124, 58, 237, 0.16);
}

:root[data-theme="light"] .neo-ribbon-item.pink {
  border-color: rgba(219, 39, 119, 0.16);
}

.neo-section {
  overflow: hidden;
}

.neo-section::before,
.neo-cta::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 244, 255, 0.28), rgba(255, 196, 0, 0.18), transparent);
  animation: neoSectionLine 5s ease-in-out infinite;
}

.neo-section .feature-card,
.neo-section .platform-card,
.neo-cta {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.neo-section .feature-card::after,
.neo-section .platform-card::after {
  content: "";
  position: absolute;
  inset: auto -40% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 244, 255, 0.58), transparent);
  transform: translateX(-40%);
  animation: neoCardSweep 4s ease-in-out infinite;
}

.neo-section .platform-card {
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .neo-section .feature-card,
:root[data-theme="light"] .neo-section .platform-card,
:root[data-theme="light"] .neo-cta {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(8, 145, 178, 0.14);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .neo-section .feature-card h3,
:root[data-theme="light"] .neo-section .platform-card h3 {
  color: #101828;
}

:root[data-theme="light"] .neo-section .feature-card p,
:root[data-theme="light"] .neo-section .platform-card p {
  color: #475467;
}

@keyframes neoHeaderPulse {
  0%, 100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.92;
  }
}

@keyframes neoGridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 54px 54px, 54px 54px;
  }
}

@keyframes neoScanSweep {
  0% {
    transform: skewY(-8deg) translateX(-42%);
    opacity: 0;
  }
  18%, 68% {
    opacity: 0.72;
  }
  100% {
    transform: skewY(-8deg) translateX(42%);
    opacity: 0;
  }
}

@keyframes neoStreamFly {
  0% {
    transform: translate3d(0, 0, 0) rotate(calc(-16deg + var(--i) * 1.4deg));
    opacity: 0;
  }
  12%, 74% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(150vw, -34px, 0) rotate(calc(-16deg + var(--i) * 1.4deg));
    opacity: 0;
  }
}

@keyframes neoChipFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--r)) scale(0.96);
    opacity: 0.48;
  }
  45% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(calc(var(--r) * -1)) scale(1.05);
    opacity: 0.96;
  }
  70% {
    opacity: 0.72;
  }
}

@keyframes neoBlink {
  0%, 100% {
    transform: scale(0.72);
    opacity: 0.46;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes neoPanelFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes neoPanelSweep {
  0%, 100% {
    transform: translateX(-48%);
    opacity: 0;
  }
  45%, 55% {
    opacity: 1;
  }
  100% {
    transform: translateX(48%);
  }
}

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

@keyframes neoCorePulse {
  0%, 100% {
    box-shadow: 0 0 24px rgba(5, 244, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 54px rgba(5, 244, 255, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}

@keyframes neoMarkPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.08);
  }
}

@keyframes neoLineLoad {
  0%, 100% {
    transform: scaleX(0.3);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes neoOutputWrite {
  0%, 100% {
    transform: scaleX(0.38);
    opacity: 0.36;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@keyframes neoWave {
  0%, 100% {
    transform: scaleY(0.58);
    filter: saturate(0.82);
  }
  50% {
    transform: scaleY(1.08);
    filter: saturate(1.25);
  }
}

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

@keyframes neoSectionLine {
  0%, 100% {
    transform: translateX(-16%);
    opacity: 0.28;
  }
  50% {
    transform: translateX(16%);
    opacity: 0.76;
  }
}

@keyframes neoCardSweep {
  0%, 100% {
    transform: translateX(-40%);
    opacity: 0;
  }
  50% {
    transform: translateX(40%);
    opacity: 1;
  }
}

@keyframes frontChromaDrift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
    filter: saturate(1.08) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1%, 1.4%, 0) scale(1.04);
    filter: saturate(1.2) hue-rotate(14deg);
  }
  100% {
    transform: translate3d(1.8%, -0.8%, 0) scale(1.02);
    filter: saturate(1.14) hue-rotate(-10deg);
  }
}

@keyframes frontGridFlow {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 46px 46px, 46px 46px, 86px 0;
  }
}

@keyframes frontRibbonDrift {
  0%, 100% {
    transform: translate3d(-3%, 0, 0) rotate(var(--r, -10deg)) scaleX(0.98);
  }
  50% {
    transform: translate3d(3%, -10px, 0) rotate(var(--r, -10deg)) scaleX(1.03);
  }
}

@keyframes frontOrbitBreathe {
  0%, 100% {
    opacity: 0.18;
    filter: drop-shadow(0 0 6px rgba(5, 244, 255, 0.06));
  }
  50% {
    opacity: 0.42;
    filter: drop-shadow(0 0 14px rgba(5, 244, 255, 0.16));
  }
}

@keyframes frontGlint {
  0%, 100% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  35% {
    transform: translateY(-7px) scale(1);
    opacity: 0.78;
  }
  70% {
    transform: translateY(4px) scale(0.86);
    opacity: 0.22;
  }
}

@keyframes frontSidebarSweep {
  0%, 100% {
    transform: translateY(-5%);
    opacity: 0.42;
  }
  50% {
    transform: translateY(5%);
    opacity: 0.78;
  }
}

@keyframes frontSideLine {
  0%, 100% {
    transform: translateY(-16%);
    opacity: 0.35;
  }
  50% {
    transform: translateY(16%);
    opacity: 1;
  }
}

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

@keyframes frontIconHop {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    filter: saturate(1.25);
  }
}

@keyframes frontMainGlow {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1);
    opacity: 0.52;
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
    opacity: 0.86;
  }
}

@keyframes frontOrbDance {
  0%, 100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-1px);
  }
  70% {
    transform: translateY(0);
  }
}

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

@keyframes frontPanelFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes frontBottomGlow {
  0%, 100% {
    transform: translateX(-22%) scaleX(0.72);
    opacity: 0.26;
  }
  50% {
    transform: translateX(22%) scaleX(1.08);
    opacity: 0.9;
  }
}

@keyframes frontBorderFlow {
  0% {
    filter: hue-rotate(0deg);
    opacity: 0.4;
  }
  50% {
    opacity: 0.82;
  }
  100% {
    filter: hue-rotate(360deg);
    opacity: 0.4;
  }
}

@keyframes frontPillPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(5, 244, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(5, 244, 255, 0.38), 0 0 18px rgba(255, 216, 74, 0.22);
  }
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px 1fr;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 42px 42px,
    #0b0d12;
  overflow: hidden;
}

.front-shell.app-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.gen-shell {
  grid-template-columns: 224px 1fr;
  background: #101114;
}

.front-shell,
.front-standalone,
.neo-page {
  --front-cyan: #05f4ff;
  --front-green: #13f3a2;
  --front-gold: #ffd84a;
  --front-pink: #ff4fb3;
  --front-violet: #9b6bff;
  --front-blue: #32a9ff;
}

:root[data-theme="light"] .front-shell,
:root[data-theme="light"] .front-standalone,
:root[data-theme="light"] .neo-page {
  --front-cyan: #2563eb;
  --front-green: #7c3aed;
  --front-gold: #d97706;
  --front-pink: #db2777;
  --front-violet: #7c3aed;
  --front-blue: #2563eb;
}

.front-motion-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.78;
}

.front-chroma-field,
.front-rainbow-grid,
.front-ribbon-field,
.front-orbit-field,
.front-glint-field {
  position: absolute;
  inset: 0;
}

.front-chroma-field {
  background:
    radial-gradient(ellipse at 14% 12%, rgba(5, 244, 255, 0.16), transparent 36%),
    radial-gradient(ellipse at 88% 18%, rgba(155, 107, 255, 0.14), transparent 34%),
    radial-gradient(ellipse at 64% 88%, rgba(19, 243, 162, 0.11), transparent 38%),
    linear-gradient(120deg, transparent 0 30%, rgba(255, 216, 74, 0.05) 45%, transparent 62%);
  filter: saturate(1.18);
  opacity: 0.62;
  animation: frontChromaDrift 22s ease-in-out infinite alternate;
}

.front-rainbow-grid {
  background:
    linear-gradient(rgba(5, 244, 255, 0.055) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(155, 107, 255, 0.048) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse at 54% 48%, #000 0 52%, transparent 84%);
  opacity: 0.38;
  animation: frontGridFlow 22s linear infinite;
}

.front-ribbon {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 120px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(5, 244, 255, 0.16), rgba(155, 107, 255, 0.13), rgba(255, 216, 74, 0.09), transparent);
  filter: blur(10px);
  opacity: 0.38;
  --r: -10deg;
  transform: rotate(var(--r));
  animation: frontRibbonDrift 18s ease-in-out infinite;
  animation-delay: var(--delay);
}

.front-ribbon.ribbon-1 { top: 10%; }
.front-ribbon.ribbon-2 { top: 34%; --r: 8deg; background: linear-gradient(90deg, transparent, rgba(255, 79, 179, 0.11), rgba(5, 244, 255, 0.13), transparent); }
.front-ribbon.ribbon-3 { top: 60%; --r: -6deg; background: linear-gradient(90deg, transparent, rgba(19, 243, 162, 0.11), rgba(255, 216, 74, 0.1), transparent); }
.front-ribbon.ribbon-4 { top: 78%; --r: 12deg; opacity: 0.25; }

.front-orbit-line {
  position: absolute;
  width: 760px;
  height: 240px;
  border-radius: 50%;
  border-top: 1px solid rgba(5, 244, 255, 0.2);
  border-left: 1px solid rgba(155, 107, 255, 0.12);
  filter: drop-shadow(0 0 9px rgba(5, 244, 255, 0.08));
  opacity: 0.35;
  animation: frontOrbitBreathe 16s ease-in-out infinite;
  animation-delay: var(--delay);
}

.orbit-line-1 { left: -140px; top: 12%; transform: rotate(-16deg); }
.orbit-line-2 { right: -180px; top: 18%; transform: rotate(17deg); }
.orbit-line-3 { left: 22%; bottom: 9%; transform: rotate(4deg); width: 880px; }
.orbit-line-4 { right: 8%; bottom: 28%; transform: rotate(-24deg); width: 560px; opacity: 0.24; }
.orbit-line-5 { left: 8%; top: 54%; transform: rotate(22deg); width: 620px; opacity: 0.22; }

.front-glint {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(5, 244, 255, 0.72);
  box-shadow: 0 0 14px rgba(5, 244, 255, 0.5);
  opacity: 0;
  animation: frontGlint 6.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.front-glint.glint-1 { background: rgba(255, 216, 74, 0.7); box-shadow: 0 0 14px rgba(255, 216, 74, 0.38); }
.front-glint.glint-2 { background: rgba(155, 107, 255, 0.7); box-shadow: 0 0 14px rgba(155, 107, 255, 0.38); }
.front-glint.glint-3 { background: rgba(19, 243, 162, 0.62); box-shadow: 0 0 14px rgba(19, 243, 162, 0.32); }
}

:root[data-theme="light"] .front-motion-layer {
  opacity: 0.48;
}

:root[data-theme="light"] .front-chroma-field {
  opacity: 0.38;
  background:
    radial-gradient(ellipse at 14% 12%, rgba(8, 145, 178, 0.14), transparent 36%),
    radial-gradient(ellipse at 88% 18%, rgba(124, 58, 237, 0.11), transparent 34%),
    radial-gradient(ellipse at 64% 88%, rgba(5, 150, 105, 0.1), transparent 38%);
}

:root[data-theme="light"] .front-rainbow-grid {
  opacity: 0.24;
}

:root[data-theme="light"] .front-ribbon {
  opacity: 0.22;
}

:root[data-theme="light"] .front-orbit-line {
  border-top-color: rgba(8, 145, 178, 0.16);
  border-left-color: rgba(124, 58, 237, 0.1);
  opacity: 0.22;
}

.front-shell > .sidebar,
.front-shell > .main,
.front-standalone > main,
.front-standalone > aside,
.front-standalone > .doc-sidebar,
.front-standalone > .doc-main,
.neo-page > .topbar,
.neo-page > .landing-main,
.neo-page > .footer {
  position: relative;
  z-index: 2;
}

.neo-page > .support-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 24;
}

.front-standalone {
  position: relative;
  overflow: hidden;
}

.gallery-shell {
  grid-template-columns: 222px 1fr;
}

:root[data-theme="light"] .app-shell,
:root[data-theme="light"] .gen-shell {
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    #f6fbfd;
}

:root[data-theme="light"] .front-works {
  background:
    radial-gradient(circle at 12% 10%, rgba(8, 145, 178, 0.12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(219, 39, 119, 0.08), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(217, 119, 6, 0.08), transparent 28%),
    #f6fbfd;
}

:root[data-theme="light"] .front-workbench {
  background:
    radial-gradient(circle at 18% 0%, rgba(8, 145, 178, 0.13), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(219, 39, 119, 0.08), transparent 30%),
    radial-gradient(circle at 64% 90%, rgba(217, 119, 6, 0.08), transparent 26%),
    #f6fbfd;
}

:root[data-theme="light"] .front-docs {
  background:
    radial-gradient(circle at 22% 8%, rgba(8, 145, 178, 0.13), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(124, 58, 237, 0.09), transparent 30%),
    #f6fbfd;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #141820, #101218);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.front-shell .sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 244, 255, 0.08), transparent 28%, rgba(255, 79, 179, 0.06) 62%, rgba(255, 216, 74, 0.06)),
    repeating-linear-gradient(112deg, transparent 0 34px, rgba(255, 255, 255, 0.035) 34px 35px, transparent 35px 68px);
  opacity: 0.72;
  animation: frontSidebarSweep 10s ease-in-out infinite;
}

.front-shell .sidebar::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  right: -1px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--front-cyan), var(--front-pink), var(--front-gold), transparent);
  box-shadow: 0 0 18px rgba(5, 244, 255, 0.55);
  animation: frontSideLine 4.6s ease-in-out infinite;
  pointer-events: none;
}

:root[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #ffffff, #f3f7fa);
  color: #101828;
  border-right-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .front-shell .sidebar::before {
  background:
    linear-gradient(180deg, rgba(8, 145, 178, 0.08), transparent 28%, rgba(219, 39, 119, 0.05) 62%, rgba(217, 119, 6, 0.05)),
    repeating-linear-gradient(112deg, transparent 0 34px, rgba(15, 23, 42, 0.035) 34px 35px, transparent 35px 68px);
}

.sidebar .brand {
  flex: 0 0 auto;
  height: 86px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
}

.mode-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 9px 8px;
}

.mode-tab {
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.mode-tab::after,
.tool-item::after,
.workbench-quick::after,
.func-btn::after,
.showcase-feature::after,
.chat-answer-card::after,
.chat-summary-card::after,
.work-card::after,
.thumb-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, 0.16) 48%, transparent 62% 100%);
  transform: translateX(-125%);
  opacity: 0;
}

.mode-tab:hover,
.mode-tab.active {
  transform: translateY(-2px);
}

.mode-tab:hover::after,
.mode-tab.active::after {
  opacity: 1;
  animation: frontCardShine 2.4s ease-in-out infinite;
}

.mode-tab.active {
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.13);
}

.mode-tab.gold {
  color: var(--gold);
  background: rgba(255, 196, 0, 0.13);
}

.mode-tab.gold.active {
  color: var(--gold);
  background: rgba(255, 196, 0, 0.18);
}

.model-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 8px 10px 7px;
  border-top: 1px solid var(--line);
}

.model-tabs button,
.model-tabs a {
  height: 27px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  font-size: 11px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.model-tabs .active {
  color: #fff;
  background: var(--cyan);
}

.search {
  flex: 0 0 auto;
  padding: 7px 10px;
}

.clearable-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.clearable-search > i,
.clearable-search > svg,
.clearable-search > .custom-icon-img {
  position: absolute;
  left: 8px;
  color: #7dd3fc;
  opacity: 0.82;
  pointer-events: none;
  z-index: 1;
}

.search input,
.modal input,
.modal select,
.composer textarea,
.doc-search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #e8edf4;
  border-radius: 6px;
  outline: none;
}

.search input {
  height: 28px;
  padding: 0 30px 0 27px;
  border-color: rgba(255, 196, 0, 0.45);
  font-size: 11px;
}

.clear-search-btn {
  position: absolute;
  right: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  z-index: 2;
}

.clear-search-btn:hover {
  background: rgba(0, 213, 236, 0.18);
  color: #ffffff;
}

.clear-search-btn[hidden] {
  display: none;
}

.tool-list {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  padding: 5px 7px 5px 10px;
  overflow: auto;
  flex: 1;
  min-height: 0;
  scrollbar-gutter: stable;
}

.tool-list::-webkit-scrollbar {
  width: 5px;
}

.tool-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.tool-list::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.78), rgba(255, 196, 0, 0.74));
  border-width: 1px;
}

.tool-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 58px;
  padding: 6px 6px 6px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 2px;
  border-left: 3px solid transparent;
  position: relative;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  overflow: hidden;
}

.front-shell .tool-item {
  animation: none;
}

.tool-item.active {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.06) 38%, transparent 100%),
    radial-gradient(circle at 25px 50%, rgba(0, 229, 255, 0.42), transparent 52px),
    rgba(0, 229, 255, 0.075);
  border-left-color: var(--cyan-2);
  box-shadow: inset 0 0 28px rgba(0, 229, 255, 0.12), 0 0 22px rgba(0, 229, 255, 0.08);
  transform: translateX(2px);
}

.tool-item:hover::after,
.tool-item.active::after {
  opacity: 1;
  animation: frontCardShine 2.6s ease-in-out infinite;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="light"] .tool-item.active {
  background: rgba(0, 188, 212, 0.12);
  box-shadow: inset 0 0 20px rgba(0, 188, 212, 0.08);
}

:root[data-theme="light"] .front-shell .tool-item:hover {
  background: rgba(8, 145, 178, 0.08);
}

:root[data-theme="light"] .tool-icon {
  background: #eef2f6;
  color: #101828;
}

:root[data-theme="light"] .brand-mark {
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.16), 0 0 18px rgba(6, 182, 212, 0.14);
}

:root[data-theme="light"] .brand-icon-img {
  filter: drop-shadow(0 8px 14px rgba(79, 70, 229, 0.16));
}

.tool-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #171c25;
  color: #f5fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.front-shell .tool-icon,
.front-shell .brand-mark,
.front-standalone .brand-mark,
.neo-page .brand-mark {
  animation: frontIconHop 8s ease-in-out infinite;
}

.tool-item.active .tool-icon {
  color: #c8fbff;
  background: rgba(0, 229, 255, 0.13);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35), inset 0 0 0 1px rgba(0, 229, 255, 0.28);
  animation: iconPulse 2.4s ease-in-out infinite;
}

.tool-title {
  display: block;
  min-width: 0;
  font-weight: 720;
  font-size: 10.8px;
  line-height: 1.2;
  color: #f6f9ff;
  letter-spacing: 0;
}

.tool-desc {
  display: block;
  color: #aab1bd;
  font-size: 9.2px;
  line-height: 1.42;
  font-weight: 430;
  letter-spacing: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 132px;
}

.tool-item .badge {
  min-width: 38px;
  justify-content: center;
  padding: 2px 6px;
  font-size: 8.8px;
  font-weight: 650;
  line-height: 1.25;
}

.agent-list {
  padding-top: 10px;
}

.gallery-sidebar .mode-tabs {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.gallery-sidebar .user-strip {
  margin-top: 0;
}

.agent-tool {
  min-height: 62px;
  opacity: 0.92;
}

.agent-sidebar .tool-item.active {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.14), rgba(0, 229, 255, 0.04) 44%, transparent 100%),
    rgba(0, 229, 255, 0.055);
  border-left-color: rgba(0, 229, 255, 0.86);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.075), 0 0 15px rgba(0, 229, 255, 0.055);
  transform: translateX(1px);
}

.agent-tool.active {
  border-left-width: 3px;
  opacity: 1;
}

.agent-sidebar .tool-item.active .tool-icon {
  color: #d9ffff;
  background: rgba(0, 229, 255, 0.11);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(0, 229, 255, 0.2);
}

:root[data-theme="light"] .agent-sidebar .agent-icon {
  background: #101828;
}

:root[data-theme="light"] .agent-sidebar .tool-item.active .agent-icon,
:root[data-theme="light"] .agent-sidebar .tool-item:hover .agent-icon {
  background: #0f172a;
}

.agent-sidebar .tool-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

.agent-icon.cyan,
.agent-icon.blue {
  color: var(--cyan-2);
}

.agent-icon.gold {
  color: var(--gold);
}

.agent-icon.purple {
  color: #b88cff;
}

.agent-icon.orange {
  color: #ff7342;
}

.agent-icon .custom-icon-img,
.agent-hero-icon .custom-icon-img,
.agent-detail-icon .custom-icon-img,
.agent-project-item .custom-icon-img {
  filter: drop-shadow(0 0 8px color-mix(in srgb, currentColor, transparent 52%));
}

.agent-actions {
  justify-content: space-between;
}

.list-more {
  min-height: 34px;
  color: #666f7c;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.list-more svg {
  animation: spin 1s linear infinite;
}

.list-more.as-button {
  width: 100%;
  border: 0;
  background: transparent;
}

.page-load-more {
  min-height: 42px;
  margin: 18px auto 0;
  color: #768292;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
}

.page-load-more svg {
  animation: spin 1s linear infinite;
}

.page-load-more.as-button {
  min-width: 150px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.07);
  box-shadow: 0 8px 22px rgba(0, 229, 255, 0.08);
}

.page-load-more span {
  color: #7f8b99;
}

.badge {
  height: 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 0 5px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.13);
  font-size: 10px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  white-space: nowrap;
}

.badge.gold,
.badge.warning,
.badge.orange {
  color: var(--gold);
  background: rgba(255, 196, 0, 0.12);
  border-color: rgba(255, 196, 0, 0.34);
}

.badge.purple {
  color: #c6b4ff;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

:root[data-theme="light"] .badge {
  color: #075985;
  background: #dff8fd;
  border-color: #67d7e8;
  font-weight: 760;
}

:root[data-theme="light"] .badge.gold,
:root[data-theme="light"] .badge.warning,
:root[data-theme="light"] .badge.orange {
  color: #92400e;
  background: #fff3c4;
  border-color: #f2c94c;
}

:root[data-theme="light"] .badge.purple {
  color: #5b36b2;
  background: #eee7ff;
  border-color: #b9a7ff;
}

:root[data-theme="light"] .badge.id-badge {
  color: #344054;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.user-strip {
  flex: 0 0 auto;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.user-profile-link {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 0;
  text-decoration: none;
}

.user-profile-link:hover .tool-title {
  color: var(--cyan-2);
}

.user-profile-link .brand-sub {
  display: block;
}

.sidebar-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 7px 12px 0;
}

.pill-btn {
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #08090c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 11px;
}

.pill-btn.cyan {
  color: var(--cyan-2);
  border-color: rgba(0, 229, 255, 0.4);
}

:root[data-theme="light"] .pill-btn {
  background: #fff;
  color: #344054;
  border-color: rgba(15, 23, 42, 0.14);
}

.user-strip img,
.profile-card img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #18d688;
  margin-right: 5px;
}

.main {
  min-width: 0;
  position: relative;
}

.app-top {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 9;
  pointer-events: none;
}

.generator-main {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 196, 0, 0.08), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 52px 52px,
    #111214;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.front-shell .generator-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(5, 244, 255, 0.14), transparent 20%),
    radial-gradient(circle at 74% 22%, rgba(255, 79, 179, 0.1), transparent 22%),
    radial-gradient(circle at 58% 88%, rgba(255, 216, 74, 0.1), transparent 24%);
  opacity: 0.72;
  animation: frontMainGlow 12s ease-in-out infinite alternate;
}

.vidu-music-main {
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 229, 255, 0.08), transparent 22%),
    radial-gradient(circle at 58% 94%, rgba(255, 196, 0, 0.05), transparent 22%),
    #0b0c10;
}

.agent-main {
  overflow: hidden;
  scroll-behavior: smooth;
}

.agent-main .app-top {
  position: fixed;
  left: 224px;
  right: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
}

.agent-main .app-top .top-orbs {
  margin-left: auto;
}

:root[data-theme="light"] .generator-main {
  background:
    radial-gradient(circle at 48% 2%, rgba(255, 213, 122, 0.24), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(192, 183, 255, 0.18), transparent 22%),
    linear-gradient(rgba(15, 23, 42, 0.034) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.034) 1px, transparent 1px) 0 0 / 52px 52px,
    #f3f6fb;
}

:root[data-theme="light"] .front-shell .generator-main::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(8, 145, 178, 0.11), transparent 20%),
    radial-gradient(circle at 74% 22%, rgba(219, 39, 119, 0.06), transparent 22%),
    radial-gradient(circle at 58% 88%, rgba(217, 119, 6, 0.08), transparent 24%);
}

:root[data-theme="light"] .vidu-music-main {
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 183, 207, 0.13), transparent 24%),
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px) 0 0 / 52px 52px,
    #f7fafc;
}

.top-orbs {
  gap: 10px;
  justify-content: flex-end;
}

.orb-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #1b1d22;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-decoration: none;
  overflow: hidden;
  animation: none;
  isolation: isolate;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.orb-btn:hover {
  animation: frontOrbDance 1.8s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(5, 244, 255, 0.18),
    0 0 12px rgba(5, 244, 255, 0.16),
    inset 0 0 12px rgba(5, 244, 255, 0.16);
}

.orb-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--front-cyan), var(--front-pink), var(--front-gold), var(--front-green), var(--front-cyan));
  opacity: 0;
  z-index: -1;
  animation: frontSpin 3.2s linear infinite;
}

.orb-btn:hover::before {
  opacity: 0.52;
}

.orb-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #1b1d22;
  z-index: -1;
}

.orb-btn span {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  display: none;
  align-items: center;
  white-space: nowrap;
  border-radius: 6px;
  padding: 0 10px;
  background: #1e2026;
  color: #fff;
  font-size: 12px;
}

.orb-btn:hover span {
  display: inline-flex;
}

.orb-btn.sun { color: #ffb000; box-shadow: 0 0 18px rgba(255, 176, 0, 0.22); }
.orb-btn.green { color: #34d76f; box-shadow: 0 0 18px rgba(52, 215, 111, 0.22); }
.orb-btn.blue { color: #00d9ff; box-shadow: 0 0 18px rgba(0, 217, 255, 0.22); }
.orb-btn.api { color: #1399ff; box-shadow: 0 0 18px rgba(19, 153, 255, 0.25); }
.orb-btn.agent { color: #16d69a; box-shadow: 0 0 18px rgba(22, 214, 154, 0.22); }
.orb-btn.gold { color: #ffad20; box-shadow: 0 0 18px rgba(255, 173, 32, 0.26); }
.orb-btn.purple { color: #d33cff; box-shadow: 0 0 18px rgba(211, 60, 255, 0.32); }

:root[data-theme="light"] .orb-btn {
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.app-top > * {
  pointer-events: auto;
}

.new-chat {
  border-radius: 999px;
  min-width: 96px;
  font-weight: 900;
}

.session-actions {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: 0;
  margin-top: 0;
  min-width: 0;
}

.new-chat-btn,
.history-btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.new-chat-btn {
  width: auto;
  min-width: 88px;
  height: 30px;
  border-radius: 999px;
  background: #ffc400;
  color: #101828;
  padding: 0 13px;
  box-shadow: 0 10px 22px rgba(255, 180, 0, 0.24);
}

.history-btn {
  width: auto;
  min-width: 78px;
  height: 30px;
  border-radius: 999px;
  background: #22262e;
  color: #d8dee9;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .history-btn {
  background: rgba(255, 255, 255, 0.84);
  color: #667085;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.history-quick-panel {
  position: absolute;
  left: 0;
  top: 38px;
  width: 352px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #171a22;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  padding: 8px;
  z-index: 24;
}

.history-quick-panel button,
.history-quick-panel a {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dce6f2;
  text-align: left;
  text-decoration: none;
  padding: 7px 9px;
}

.history-quick-panel button:hover,
.history-quick-panel a:hover {
  background: rgba(255, 255, 255, 0.055);
}

.history-quick-panel strong,
.history-quick-panel em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.history-quick-panel strong {
  font-size: 12px;
}

.history-quick-panel em,
.history-quick-empty {
  color: #8e98a8;
  font-size: 11px;
  font-style: normal;
}

.history-quick-panel a {
  min-height: 30px;
  grid-template-columns: 1fr;
  justify-items: center;
  color: var(--cyan-2);
}

:root[data-theme="light"] .history-quick-panel {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .history-quick-panel button,
:root[data-theme="light"] .history-quick-panel a {
  color: #344054;
}

:root[data-theme="light"] .history-quick-panel button:hover,
:root[data-theme="light"] .history-quick-panel a:hover {
  background: #f6fafc;
}

:root[data-theme="light"] .history-quick-panel strong {
  color: #111827;
}

:root[data-theme="light"] .history-quick-panel em,
:root[data-theme="light"] .history-quick-empty {
  color: #667085;
}

:root[data-theme="light"] .history-quick-panel a {
  color: #0891b2;
}

.workspace {
  min-height: calc(100vh - 54px);
  padding: 38px 26px 120px;
}

.generator-workspace {
  min-height: calc(100vh - 50px);
  padding: 28px 26px 250px;
}

.generator-stage {
  min-height: calc(100vh - 224px);
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 28px;
}

.showcase-backdrop {
  position: absolute;
  inset: 52px 0 146px;
  overflow: hidden;
  pointer-events: none;
}

.showcase-backdrop span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.5);
  opacity: 0.45;
  animation: showcaseFloat 9s ease-in-out infinite;
  animation-delay: calc(var(--d) * -1s);
}

:root[data-theme="light"] .showcase-backdrop span {
  background: rgba(6, 182, 212, 0.36);
  opacity: 0.36;
}

.model-showcase-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 232px);
  width: min(850px, calc(100vw - 560px));
  margin: 78px auto 0;
  padding: 0 0 28px;
  align-content: start;
}

.showcase-hero-card {
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 18px;
  padding: 21px 25px;
  border-radius: 10px;
  background: rgba(24, 27, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  animation: frontPanelFloat 6.2s ease-in-out infinite;
}

.showcase-hero-card::after,
.workbench-hero::after,
.doc-content::after {
  content: "";
  position: absolute;
  inset: auto -30% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--front-cyan), var(--front-pink), var(--front-gold), transparent);
  animation: frontBottomGlow 3.8s ease-in-out infinite;
}

.showcase-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 214, 91, 0.12), transparent 52%),
    #151922;
  border: 1px solid rgba(255, 214, 91, 0.26);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.showcase-icon .custom-icon-img {
  width: 38px !important;
  height: 38px !important;
}

.showcase-hero-card h1 {
  margin: 0 0 9px;
  color: #f7fbff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.showcase-hero-card h1 span {
  color: #ffc400;
}

.showcase-hero-card p {
  margin: 0;
  color: #aeb7c5;
  font-size: 13px;
  line-height: 1.55;
}

.showcase-feature-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 38px;
}

.showcase-feature {
  min-height: 88px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 27, 34, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase-feature:hover {
  transform: translateY(-6px) scale(1.018);
  border-color: rgba(5, 244, 255, 0.36);
  box-shadow: 0 18px 42px rgba(5, 244, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.22);
}

.showcase-feature:hover::after {
  opacity: 1;
  animation: frontCardShine 2.2s ease-in-out infinite;
}

.showcase-feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: #fff5ce;
}

.showcase-feature.violet .showcase-feature-icon { background: #eadbff; color: #8b4fff; }
.showcase-feature.blue .showcase-feature-icon { background: #d7f2ff; color: #00a7d7; }
.showcase-feature.pink .showcase-feature-icon { background: #ffdceb; color: #ff5f97; }

.showcase-feature h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.15;
  color: #f8fbff;
}

.showcase-feature p {
  margin: 0;
  color: #aab3c2;
  font-size: 12px;
  line-height: 1.5;
}

.showcase-quick-title {
  width: 100%;
  margin-top: 36px;
  color: #dce5f2;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}

.showcase-quick-title span {
  color: #ffc400;
}

.showcase-quick-row {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.showcase-quick {
  height: 44px;
  min-width: 112px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(25, 28, 35, 0.9);
  color: #e9eef7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.showcase-quick:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 14px 28px rgba(0, 213, 236, 0.12);
}

.chat-live-workspace {
  padding-top: 82px;
}

.chat-live-backdrop {
  position: absolute;
  inset: 54px 0 146px;
  overflow: hidden;
  pointer-events: none;
}

.chat-live-backdrop span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.62);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.42);
  animation: showcaseFloat 8s ease-in-out infinite;
  animation-delay: calc(var(--d) * -1s);
}

.chat-live-stage {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 500px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.chat-live-head,
.chat-summary-card,
.chat-answer-card {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.1), transparent 34%),
    rgba(14, 18, 27, 0.9);
  border: 1px solid rgba(0, 213, 236, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 213, 236, 0.08), 0 24px 62px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.chat-live-head {
  animation: frontPanelFloat 6.4s ease-in-out infinite;
}

.chat-summary-card:hover::after,
.chat-answer-card:hover::after {
  opacity: 1;
  animation: frontCardShine 2.4s ease-in-out infinite;
}

.chat-live-head {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.chat-live-orb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 213, 236, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.chat-live-head strong {
  display: block;
  color: #f7fbff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-live-head span {
  display: block;
  margin-top: 5px;
  color: #8fb6c6;
  font-size: 12px;
}

.chat-live-head button {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  background: rgba(0, 213, 236, 0.13);
  color: #dffaff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 800;
}

.chat-summary-card,
.chat-answer-card {
  padding: 15px 16px 17px;
}

.chat-answer-card.failed {
  border-color: rgba(255, 122, 138, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 122, 138, 0.1), transparent 36%),
    rgba(23, 18, 24, 0.9);
}

.chat-answer-card.failed .chat-card-title em {
  color: #ff8796;
}

.chat-answer-card.failed .chat-markdown {
  color: #ffb4bd;
}

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

.chat-answer-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.chat-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #eafcff;
  font-size: 12px;
  font-weight: 850;
}

.chat-card-title span,
.chat-card-title button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chat-card-title i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.16);
  border: 1px solid rgba(0, 229, 255, 0.38);
  color: #00e5ff;
  font-style: normal;
  font-size: 11px;
}

.chat-card-title em {
  color: #ffcf4a;
  font-style: normal;
}

.chat-card-title button {
  width: 28px;
  height: 28px;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #d9f9ff;
}

.chat-markdown {
  color: #d9e5f2;
  font-size: 13px;
  line-height: 1.72;
  word-break: break-word;
}

:root[data-theme="light"] .chat-live-head,
:root[data-theme="light"] .chat-summary-card,
:root[data-theme="light"] .chat-answer-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 160, 190, 0.24);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .chat-live-head strong,
:root[data-theme="light"] .chat-card-title {
  color: #101828;
}

:root[data-theme="light"] .chat-live-head span,
:root[data-theme="light"] .chat-markdown {
  color: #475467;
}

:root[data-theme="light"] .showcase-hero-card {
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .showcase-icon {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 214, 91, 0.16), transparent 52%),
    #151922;
  border-color: rgba(255, 214, 91, 0.3);
  box-shadow: 0 13px 22px rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .showcase-hero-card h1 {
  color: #111827;
}

:root[data-theme="light"] .showcase-hero-card h1 span {
  color: #ffb300;
}

:root[data-theme="light"] .showcase-hero-card p {
  color: #667085;
}

:root[data-theme="light"] .showcase-feature {
  border-color: rgba(255, 196, 0, 0.22);
  background: rgba(255, 250, 231, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .showcase-feature.violet {
  border-color: rgba(151, 92, 255, 0.18);
  background: rgba(248, 240, 255, 0.85);
}

:root[data-theme="light"] .showcase-feature.blue {
  border-color: rgba(0, 183, 223, 0.18);
  background: rgba(230, 248, 255, 0.86);
}

:root[data-theme="light"] .showcase-feature.pink {
  border-color: rgba(255, 96, 149, 0.18);
  background: rgba(255, 239, 246, 0.86);
}

:root[data-theme="light"] .showcase-feature h3 {
  color: #111827;
}

:root[data-theme="light"] .showcase-feature p,
:root[data-theme="light"] .showcase-quick-title {
  color: #475467;
}

:root[data-theme="light"] .showcase-quick {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  color: #344054;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .workbench-card,
:root[data-theme="light"] .workbench-stat,
:root[data-theme="light"] .workbench-quick,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .function-card,
:root[data-theme="light"] .func-btn,
:root[data-theme="light"] .works-head {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] .workbench-stat:hover,
:root[data-theme="light"] .workbench-quick:hover,
:root[data-theme="light"] .func-btn:hover,
:root[data-theme="light"] .thumb-card:hover {
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.1), 0 12px 30px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .inspiration-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(8, 145, 178, 0.12);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .inspiration-card:hover {
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow: 0 18px 42px rgba(8, 145, 178, 0.1), 0 14px 30px rgba(15, 23, 42, 0.1);
}

.vidu-music-workspace {
  min-height: calc(100vh - 50px);
  display: grid;
  place-items: start center;
  padding: 78px 24px 300px;
  position: relative;
  overflow: hidden;
}

.vidu-backdrop span {
  width: 3px;
  height: 3px;
  background: rgba(0, 229, 255, 0.58);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.34);
}

.vidu-hero-mark {
  width: 150px;
  height: 122px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.42));
  animation: viduLogoFloat 4.2s ease-in-out infinite;
}

.vidu-hero-mark .custom-icon-img {
  width: 112px !important;
  height: 112px !important;
  object-fit: contain;
}

.vidu-intro-card {
  width: min(474px, calc(100vw - 340px));
  margin-top: 42px;
  border: 1px solid rgba(0, 213, 236, 0.42);
  border-radius: 8px;
  background: rgba(25, 28, 35, 0.88);
  color: #f0f5fb;
  padding: 15px 17px;
  font-size: 12px;
  line-height: 1.75;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25), inset 0 0 26px rgba(0, 213, 236, 0.05);
}

.vidu-intro-card strong {
  font-weight: 900;
}

@keyframes viduLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

:root[data-theme="light"] .vidu-intro-card {
  background: rgba(255, 255, 255, 0.92);
  color: #26323f;
  border-color: rgba(0, 160, 190, 0.36);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.13);
}

.cloud-mascot {
  width: 98px;
  height: 78px;
  position: relative;
  margin: 0 auto 58px;
  filter: drop-shadow(0 0 16px rgba(170, 210, 255, 0.45));
}

.cloud-mascot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42% 46% 44% 50%;
  background: #add3ff;
  box-shadow:
    20px 0 0 #add3ff,
    10px -22px 0 #add3ff,
    35px -10px 0 #add3ff;
}

.cloud-mascot span {
  position: absolute;
  top: 28px;
  width: 19px;
  height: 30px;
  border-radius: 50%;
  background: #0a56a9;
  z-index: 1;
}

.cloud-mascot span:first-child { left: 28px; transform: rotate(-16deg); }
.cloud-mascot span:last-child { left: 57px; transform: rotate(-12deg); }

.banana-mascot,
.chat-mascot,
.audio-wave {
  width: 110px;
  height: 110px;
  margin: 0 auto 48px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(0, 157, 255, 0.34));
}

.banana-mascot {
  font-size: 74px;
}

.chat-mascot {
  color: #fff;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
}

.audio-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  filter: drop-shadow(0 0 20px rgba(255, 80, 118, 0.38));
}

.audio-wave span {
  width: 9px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4d76, #ff7a35);
}

.audio-wave span:nth-child(1),
.audio-wave span:nth-child(5) {
  height: 34px;
}

.audio-wave span:nth-child(2),
.audio-wave span:nth-child(4) {
  height: 72px;
}

.model-tip {
  width: min(480px, 62vw);
  min-height: 58px;
  border: 1px solid rgba(0, 213, 236, 0.45);
  border-radius: 8px;
  background: #1c2027;
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  line-height: 1.75;
  font-size: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

:root[data-theme="light"] .model-tip {
  background: #fff;
  color: #344054;
  border-color: rgba(0, 188, 212, 0.28);
}

.center-stage {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
}

.stage-inner {
  width: min(880px, 92vw);
}

.large-symbol {
  width: 106px;
  height: 106px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: #fff;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.7));
}

.stage-title {
  font-size: 34px;
  margin: 0 0 8px;
  letter-spacing: 0;
}

.stage-title span {
  color: var(--gold);
}

.stage-copy {
  color: #8e97a4;
  margin: 0;
}

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

.mini-card {
  text-align: left;
  min-height: 88px;
  padding: 18px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-card .tile-icon {
  margin: 0;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.composer {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-38%);
  width: min(800px, calc(100vw - 300px));
  background: #1b1f27;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 16;
  overflow: visible;
}

.generator-composer::before,
.composer::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--front-cyan), var(--front-pink), var(--front-gold), var(--front-green), var(--front-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: frontBorderFlow 4s linear infinite;
  pointer-events: none;
}

.generator-composer::after,
.composer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--front-cyan), var(--front-pink), transparent);
  animation: frontBottomGlow 2.6s ease-in-out infinite;
  pointer-events: none;
}

.generator-composer {
  left: calc(218px + (100vw - 218px) / 2);
  bottom: 16px;
  transform: translateX(-50%);
  width: min(792px, calc(100vw - 450px));
  min-height: 132px;
  max-height: min(46vh, 360px);
  border-radius: 12px;
  background: #1d2026;
  border-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .generator-composer {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .composer textarea {
  color: #344054;
}

:root[data-theme="light"] .composer textarea::placeholder {
  color: #98a2b3;
}

.model-dock {
  position: absolute;
  left: 18px;
  top: -38px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gen-model-dock {
  left: 18px;
  top: -42px;
}

.model-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: #242a36;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gen-avatar {
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.18);
}

.role-avatar-btn {
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.48);
  background: #10151d;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.34), 0 0 14px rgba(0, 229, 255, 0.18);
}

.role-avatar-btn.active {
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.18), 0 0 18px rgba(0, 229, 255, 0.42);
}

.role-avatar-btn img,
.role-item-avatar img,
.role-template-avatar img,
.role-avatar-uploader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.role-avatar-btn span,
.role-item-avatar span,
.role-template-avatar span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.85), rgba(139, 92, 246, 0.9));
  color: #fff;
  font-weight: 900;
}

.tone-0 { background: #77b7ff; }
.tone-1 { background: #29251c; color: #f6d36a; }
.tone-2 { background: #1f2530; color: #d9ad74; }
.tone-3 { background: #1e2438; color: #fb67f6; }
.tone-4 { background: #f2e6db; color: #111; }
.tone-5 { background: #2d2140; color: #c77dff; }
.tone-6 { background: #8a531d; color: #ffd6a3; }
.tone-7 { background: #29353d; color: #97f0ff; }

.add-avatar {
  background: transparent;
  border-style: dashed;
}

.voice-role-btn {
  position: absolute;
  left: -106px;
  bottom: 4px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7dee8;
  background: #1d2026;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  font-size: 11px;
  text-decoration: none;
}

.dock-tip {
  position: absolute;
  left: 20px;
  bottom: 42px;
  width: 220px;
  border-radius: 6px;
  background: #07080a;
  color: #fff;
  padding: 10px 12px;
  text-align: center;
  display: none;
}

.gen-model-dock:hover .dock-tip {
  display: block;
}

.dock-tip span {
  display: block;
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
}

.reference-tile {
  position: absolute;
  left: 18px;
  top: 26px;
  width: 62px;
  height: 64px;
  z-index: 6;
  transform: rotate(-8deg);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.reference-tile:hover {
  transform: rotate(-8deg) translateY(-3px) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.asset-tile {
  position: absolute;
  inset: 4px 4px 2px 0;
  width: 54px;
  height: 58px;
  border: 0;
  border-radius: 4px;
  background: #30343c;
  color: #747b88;
  display: grid;
  place-items: center;
  font-size: 11px;
  text-decoration: none;
  z-index: 5;
  cursor: pointer;
  pointer-events: auto;
}

.asset-tile input {
  display: none;
}

.ref-library-btn {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 8;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #262b34;
  color: #c6d0dc;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  opacity: 0.9;
}

.ref-library-btn svg,
.config-ref-tools button svg,
.config-ref-tools label svg {
  display: block;
  margin: auto;
  flex: 0 0 auto;
}

.ref-library-btn:hover {
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--cyan-2);
  background: #202a34;
}

.asset-tile.ref-filled {
  left: 18px;
  top: 26px;
  width: 54px;
  height: 58px;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  transform: rotate(-8deg);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.asset-tile.ref-filled:hover {
  transform: rotate(-8deg) translateY(-3px) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.asset-tile.ref-filled > img {
  width: 54px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.asset-tile.ref-filled em,
.ref-more-btn {
  position: absolute;
  right: -7px;
  bottom: -5px;
  border-radius: 999px;
  background: var(--cyan);
  color: #001318;
  padding: 1px 5px;
  font-style: normal;
  font-weight: 900;
  font-size: 10px;
}

.ref-more-btn {
  width: auto;
  min-width: 26px;
  height: 18px;
  left: -8px;
  top: -7px;
  right: auto;
  bottom: auto;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 5px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 213, 236, 0.26);
  z-index: 9;
}

.ref-more-btn b {
  font-size: 10px;
  line-height: 1;
}

.ref-more-btn svg {
  width: 11px;
  height: 11px;
}

.ref-remove,
.ref-replace {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #2b3038;
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  cursor: pointer;
}

.ref-remove {
  right: -9px;
  top: -9px;
}

.ref-replace {
  right: -8px;
  top: 13px;
  color: var(--cyan-2);
}

.asset-tile.ref-filled:hover .ref-remove,
.asset-tile.ref-filled:hover .ref-replace {
  opacity: 1;
}

.ref-preview {
  position: absolute;
  left: -28px;
  bottom: 72px;
  width: 184px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 8px;
  background: #12161e;
  padding: 8px;
  color: #dfe7f1;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.48);
  transform: rotate(8deg) translateY(6px);
  opacity: 0;
  pointer-events: none;
}

.ref-preview img {
  width: 100%;
  height: 116px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  margin-bottom: 7px;
}

.ref-preview strong,
.ref-preview span {
  display: block;
  transform: rotate(0deg);
}

.ref-preview strong {
  font-size: 12px;
}

.ref-preview span {
  margin-top: 3px;
  color: #8c97a6;
  font-size: 11px;
  line-height: 1.45;
}

.asset-tile.ref-filled:hover .ref-preview {
  opacity: 1;
  transform: rotate(8deg) translateY(0);
}

.composer-chat .composer-input,
.composer-audio .composer-input {
  padding-left: 18px;
}

.composer-chat .composer-side-icons,
.composer-audio .composer-side-icons {
  top: 8px;
}

.composer-audio::before,
.composer-audio::after {
  content: "";
  position: absolute;
  left: -52px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #272b33;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.composer-audio::before {
  bottom: 52px;
}

.composer-audio::after {
  bottom: 8px;
}

.composer-input {
  position: relative;
  padding-left: 92px;
  z-index: 1;
}

.generator-composer .composer-input {
  min-height: 88px;
}

.composer textarea {
  min-height: 88px;
  resize: none;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  padding: 18px 56px 12px 20px;
}

.generator-composer textarea {
  min-height: 84px;
  max-height: 200px;
  padding: 28px 82px 14px 4px;
  font-size: 11.5px;
  line-height: 1.55;
}

.estimate {
  position: absolute;
  right: 74px;
  top: 8px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #252932;
  color: #ffb21b;
  padding: 0 10px;
  font-size: 10.5px;
}

.composer-side-icons {
  position: absolute;
  right: 12px;
  top: 8px;
  display: grid;
  gap: 4px;
  z-index: 8;
}

.composer-side-icons a,
.composer-side-icons button {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  color: #9aa4b2;
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.composer-side-icons a:hover,
.composer-side-icons button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(0, 213, 236, 0.1);
  color: #d9fbff;
}

.composer-tools {
  min-height: 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.generator-composer .composer-tools {
  border-top: 0;
  min-height: 34px;
  padding: 2px 12px 9px;
  gap: 6px;
  flex-wrap: wrap;
}

.composer-menu-btn {
  height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 10.5px;
  background: #252932;
}

.composer-menu-btn.active {
  color: #ffd15a;
  background: rgba(173, 133, 21, 0.25);
  border-color: rgba(255, 204, 64, 0.25);
}

.composer-menu-btn[data-menu="policy"],
.composer-menu-btn[data-menu="quantity"] {
  color: #ffd15a;
  background: rgba(173, 133, 21, 0.22);
  border-color: rgba(255, 204, 64, 0.22);
}

.send-btn {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
}

.composer-clear-btn {
  position: absolute;
  right: 16px;
  bottom: 52px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #2a2e36;
  color: #dce4ee;
  display: grid;
  place-items: center;
  z-index: 4;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.composer-clear-btn:hover {
  color: var(--cyan-2);
  background: #242a34;
}

.generator-composer .send-btn {
  right: 15px;
  bottom: 15px;
  background: #08d3e8;
}

.generator-composer .composer-clear-btn {
  right: 15px;
  bottom: 53px;
}

.chatSending .send-btn,
.send-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.config-composer {
  min-height: 130px;
  padding: 10px 12px 8px;
  background: rgba(29, 32, 38, 0.98);
}

.config-composer.composer-height-compact {
  min-height: 118px;
}

.config-composer.composer-height-tall,
.config-composer.has-secondary {
  width: min(860px, calc(100vw - 420px));
  min-height: 190px;
}

.config-composer-main {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding-right: 44px;
}

.config-composer.has-reference .config-composer-main {
  grid-template-columns: 76px minmax(0, 1fr);
}

.config-composer.has-secondary .config-composer-main {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.82fr);
}

.config-composer.has-reference.has-secondary .config-composer-main {
  grid-template-columns: 76px minmax(0, 1fr) minmax(230px, 0.82fr);
}

.config-reference-panel {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  padding: 8px 0 0 20px;
}

.config-ref-list {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  overflow: visible;
}

.config-ref-tile {
  position: relative;
  width: 48px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 5px;
  transform: rotate(-8deg);
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}

.config-ref-tile:hover {
  transform: rotate(-8deg) translateY(-3px) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.config-ref-tile.empty {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: #30343c;
  color: #707888;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 10px;
}

.config-ref-tile.empty input,
.config-ref-tools input {
  display: none;
}

.config-ref-tile.filled img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.config-ref-tile.filled button {
  position: absolute;
  right: -7px;
  top: -7px;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #30343c;
  color: #fff;
  opacity: 0;
}

.config-ref-tile.filled button.ref-more-btn {
  display: inline-flex;
}

.config-ref-tile.filled:hover button {
  opacity: 1;
}

.config-ref-tile.filled .ref-more-btn {
  opacity: 1;
}

.config-ref-tile.filled em {
  position: absolute;
  right: -8px;
  bottom: -6px;
  border-radius: 999px;
  background: var(--cyan);
  color: #001318;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 1px 5px;
}

.config-ref-tile .ref-more-btn,
.config-ref-more {
  left: -8px;
  top: -7px;
  right: auto;
  bottom: auto;
  width: auto;
  min-width: 26px;
  height: 18px;
  border: 0;
  opacity: 1;
  padding: 1px 5px;
}

.config-ref-tools {
  position: absolute;
  left: -6px;
  top: 4px;
  display: grid;
  grid-template-columns: 16px;
  gap: 4px;
}

.config-ref-tools button,
.config-ref-tools label {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: #262b34;
  color: #c5ceda;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.config-ref-tools button svg,
.config-ref-tools label svg {
  width: 10px;
  height: 10px;
}

.config-reference-panel p {
  max-width: 68px;
  margin: 0;
  color: #717b8a;
  font-size: 9.5px;
  line-height: 1.25;
  text-align: center;
}

.config-prompt-panel,
.config-secondary-panel {
  position: relative;
  min-width: 0;
  border-radius: 8px;
}

.config-prompt-panel header,
.config-secondary-panel header {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #dce4ef;
  font-size: 10.5px;
}

.config-prompt-panel header span,
.config-secondary-panel header span {
  color: #8b95a4;
  font-size: 10px;
  font-weight: 600;
}

.config-composer textarea {
  width: 100%;
  min-height: 70px;
  height: 100%;
  border-radius: 7px;
  padding: 12px 74px 9px 0;
  color: #e3eaf4;
  font-size: 11px;
  line-height: 1.55;
}

.config-prompt-panel header + textarea,
.config-secondary-panel header + textarea {
  min-height: 94px;
  padding-top: 6px;
}

.config-secondary-panel textarea {
  padding-right: 10px;
}

.config-composer .estimate {
  right: 12px;
  top: -18px;
  height: 21px;
  font-weight: 800;
}

.config-count {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #7b8492;
  font-size: 10px;
}

.config-attachment-chip {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.config-attachment-chip button {
  height: 22px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 213, 236, 0.08);
  color: #a7edf6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 10px;
}

.config-attachment-chip button:last-child {
  width: 22px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.config-side-icons {
  right: 12px;
  top: 8px;
}

.config-tools {
  padding: 7px 34px 0 0;
}

.layout-split_prompt .config-prompt-panel,
.layout-split_prompt .config-secondary-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  padding: 7px 9px;
}

.layout-split_prompt textarea {
  padding-right: 10px;
}

:root[data-theme="light"] .config-composer {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .config-ref-tile.empty,
:root[data-theme="light"] .config-ref-tools button,
:root[data-theme="light"] .config-ref-tools label {
  background: #f2f4f7;
  color: #667085;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .config-prompt-panel header,
:root[data-theme="light"] .config-secondary-panel header,
:root[data-theme="light"] .config-composer textarea {
  color: #1f2937;
}

:root[data-theme="light"] .composer-side-icons a,
:root[data-theme="light"] .composer-side-icons button,
:root[data-theme="light"] .admin-preview-side button {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.12);
  color: #667085;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .composer-side-icons a:hover,
:root[data-theme="light"] .composer-side-icons button:hover {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.26);
  color: #0891b2;
}

:root[data-theme="light"] .config-attachment-chip button {
  color: #087b8d;
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.16);
}

:root[data-theme="light"] .layout-split_prompt .config-prompt-panel,
:root[data-theme="light"] .layout-split_prompt .config-secondary-panel {
  background: #fbfcfe;
  border-color: rgba(15, 23, 42, 0.08);
}

.vidu-composer {
  width: min(780px, calc(100vw - 330px));
  min-height: 264px;
  padding: 10px 12px 9px;
  background: rgba(30, 33, 40, 0.98);
  border-color: rgba(255, 255, 255, 0.09);
}

.vidu-estimate {
  right: 28px;
  top: -22px;
  height: 22px;
  font-weight: 800;
}

.vidu-input-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.05fr;
  gap: 10px;
  min-height: 172px;
  padding-right: 2px;
}

.vidu-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: #20242c;
  overflow: hidden;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
}

.vidu-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: #f1f5fb;
  font-size: 11px;
  font-weight: 900;
}

.vidu-panel header > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #9ba5b4;
  font-size: 10px;
  font-weight: 650;
}

.vidu-panel header button {
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #333842;
  color: #e7edf5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
}

.vidu-panel header button:hover {
  color: var(--cyan-2);
  border-color: rgba(0, 229, 255, 0.5);
}

.vidu-reference-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  overflow: auto;
  padding: 7px 10px 10px;
}

.vidu-upload-tile,
.vidu-ref-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 6px;
  position: relative;
}

.vidu-upload-tile {
  border: 1px dashed rgba(255, 255, 255, 0.23);
  background: #2c313a;
  color: #aeb8c6;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.vidu-upload-tile:hover {
  transform: scale(1.06);
  color: var(--cyan-2);
  border-color: var(--cyan);
}

.vidu-upload-tile input,
.vidu-audio-drop input {
  display: none;
}

.vidu-ref-thumb img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.vidu-ref-thumb button,
.vidu-card-close {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #343944;
  color: #fff;
  display: grid;
  place-items: center;
}

.vidu-audio-drop {
  margin: 7px 10px 10px;
  min-height: 126px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: #2c313a;
  color: #a8b2c1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.vidu-audio-drop:hover {
  transform: scale(1.012);
  color: var(--cyan-2);
  border-color: var(--cyan);
}

.vidu-audio-card {
  margin: 7px 10px 10px;
  min-height: 126px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  background: #2c313a;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-content: start;
  padding: 12px 24px 10px 10px;
  position: relative;
}

.vidu-audio-play {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #151920;
  color: #fff;
  display: grid;
  place-items: center;
}

.vidu-audio-card strong {
  display: block;
  max-width: 100%;
  color: #edf4ff;
  font-size: 10.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vidu-audio-card p {
  margin: 5px 0 8px;
  color: #ff7a7f;
  font-size: 10px;
}

.vidu-audio-card p:not(.danger) {
  color: #9ee7c5;
}

.vidu-asset-check {
  height: 22px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 5px;
  background: rgba(0, 213, 236, 0.08);
  color: var(--cyan-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  font-size: 10px;
}

.vidu-asset-check.active {
  opacity: 0.75;
}

.vidu-prompt-panel textarea {
  min-height: 132px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #eaf1fb;
  padding: 5px 10px 10px;
  resize: none;
  font-size: 11px;
  line-height: 1.6;
}

.vidu-prompt-panel textarea::placeholder {
  color: #7e8898;
}

.vidu-tools {
  padding: 9px 0 0;
  gap: 6px;
  min-height: 36px;
  border: 0;
}

.vidu-tools .composer-menu-btn {
  height: 26px;
}

.vidu-toggle-btn b {
  margin-left: 2px;
  color: #fff;
}

.vidu-toggle-btn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 3px;
  background: #6c7480;
}

.vidu-toggle-btn.active i {
  background: #18d688;
  box-shadow: 0 0 8px rgba(24, 214, 136, 0.62);
}

.vidu-composer .send-btn {
  right: 12px;
  bottom: 12px;
  z-index: 3;
}

.vidu-composer .composer-clear-btn {
  right: 12px;
  bottom: 50px;
}

.vidu-composer .composer-popup {
  bottom: 42px;
}

:root[data-theme="light"] .vidu-composer,
:root[data-theme="light"] .vidu-panel,
:root[data-theme="light"] .vidu-audio-card,
:root[data-theme="light"] .vidu-audio-drop,
:root[data-theme="light"] .vidu-upload-tile {
  background: #fff;
  color: #344054;
  border-color: rgba(15, 23, 42, 0.13);
}

:root[data-theme="light"] .vidu-panel header,
:root[data-theme="light"] .vidu-audio-card strong,
:root[data-theme="light"] .vidu-prompt-panel textarea {
  color: #111827;
}

:root[data-theme="light"] .vidu-panel header button {
  background: #f2f4f7;
  color: #344054;
}

.composer-popup {
  position: absolute;
  left: 12px;
  bottom: 40px;
  width: 388px;
  border-radius: 10px;
  background: #1c1f26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  padding: 13px;
  z-index: 40;
}

.composer-popup h3 {
  margin: 0 0 6px;
  font-size: 12px;
}

.composer-popup p {
  margin: 0 0 12px;
  color: #8f98a7;
  font-size: 11px;
}

.policy-popup {
  bottom: 42px;
}

.smart-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  background: rgba(0, 213, 236, 0.08);
  color: var(--cyan-2);
  padding: 0 10px;
  margin-bottom: 10px;
}

.smart-row span {
  font-size: 11px;
}

.policy-option,
.menu-option,
.learn-row {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: #252932;
  color: #fff;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 7px 9px;
  margin-bottom: 7px;
}

.policy-option.active {
  border-color: rgba(0, 213, 236, 0.58);
  background: rgba(0, 213, 236, 0.12);
}

.policy-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #3fb950;
}

.policy-option em {
  display: block;
  color: #9aa4b2;
  font-style: normal;
  font-size: 11px;
}

.learn-row {
  grid-template-columns: 20px 1fr auto;
  color: var(--cyan-2);
  background: rgba(0, 213, 236, 0.06);
}

.channel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  color: #d7dee8;
  padding: 10px 2px 0;
  font-size: 11px;
}

.channel-row em {
  grid-column: 1 / -1;
  color: #ffb21b;
  font-style: normal;
}

.option-popup {
  width: 196px;
}

.quantity-popup { left: 96px; }
.duration-popup,
.speed-popup { left: 188px; }
.ratio-popup,
.tone-popup,
.image-mode-popup { left: 278px; }
.mood-popup,
.image-quality-popup { left: 370px; }
.effect-popup { left: 462px; }
.quality-popup { left: 552px; }

.menu-option {
  grid-template-columns: 1fr auto;
  min-height: 28px;
  margin-bottom: 4px;
}

.menu-option.active {
  background: #30343d;
}

.custom-qty {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 8px;
  margin-top: 8px;
}

.custom-qty label {
  grid-column: 1 / -1;
  color: #8f98a7;
  font-size: 11px;
}

.custom-qty input {
  height: 30px;
}

.custom-qty button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #252932;
  color: #fff;
}

.badge.green {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}

.badge.danger,
.badge.red {
  color: #ff7a8a;
  background: rgba(255, 77, 94, 0.12);
  border-color: rgba(255, 77, 94, 0.28);
}

:root[data-theme="light"] .badge.green {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}

:root[data-theme="light"] .badge.danger,
:root[data-theme="light"] .badge.red {
  color: #b42318;
  background: #fff1f3;
  border-color: #fda4af;
}

:root[data-theme="light"] .composer-popup,
:root[data-theme="light"] .dock-tip {
  background: #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] .policy-option,
:root[data-theme="light"] .menu-option,
:root[data-theme="light"] .custom-qty button {
  background: #f8fafc;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .estimate {
  background: #f2f4f7;
}

.model-panel {
  position: fixed;
  right: 106px;
  bottom: 18px;
  width: 318px;
  border: 1px solid rgba(0, 213, 236, 0.52);
  background: rgba(15, 18, 25, 0.92);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 0 0 1px rgba(0, 213, 236, 0.14), 0 18px 42px rgba(0, 0, 0, 0.42);
  z-index: 24;
  backdrop-filter: blur(14px);
}

.model-panel.single-mode {
  width: 318px;
}

.model-panel-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.model-panel.single-mode .model-panel-row {
  grid-template-columns: 48px 1fr;
}

.summary-row {
  grid-template-columns: 48px 1fr;
  margin-top: 10px;
}

.model-panel-row.active .panel-label,
.model-panel-row:hover .panel-label {
  color: #fff;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d8e0ed;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.panel-model-stack {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.panel-model-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #121721;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-right: -5px;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.panel-model-icon.active {
  border-color: rgba(0, 229, 255, 0.78);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.panel-model-icon .custom-icon-img {
  width: 23px !important;
  height: 23px !important;
}

.panel-count {
  min-width: 32px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07d6ea;
  background: rgba(0, 213, 236, 0.13);
  border: 1px solid rgba(0, 213, 236, 0.32);
  font-size: 11px;
  font-weight: 800;
}

.model-panel .selected {
  background: rgba(255, 196, 0, 0.18);
  color: var(--gold);
  border: 1px solid rgba(255, 196, 0, 0.35);
  border-radius: 7px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.model-panel .selected i,
.model-panel .selected .custom-icon-img {
  flex: 0 0 auto;
}

.chat-model-panel .selected {
  min-width: 0;
}

.chat-model-panel .selected span,
.chat-model-panel .selected b,
.chat-model-panel .selected strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-theme="light"] .model-panel {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 160, 190, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .panel-label {
  color: #475467;
}

:root[data-theme="light"] .panel-model-icon {
  background: #151922;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] .model-panel .selected {
  background: #fff6d5;
  color: #7a5600;
  border-color: rgba(255, 196, 0, 0.42);
}

.model-config-layer {
  z-index: 72;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(9px);
}

.model-config-modal {
  width: min(404px, calc(100vw - 34px));
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.1), transparent 34%),
    #171b24;
  border-color: rgba(0, 213, 236, 0.34);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 213, 236, 0.12), 0 28px 80px rgba(0, 0, 0, 0.56);
}

.model-config-head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.model-config-head h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.model-config-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 22px;
}

.model-config-section {
  display: grid;
  gap: 9px;
}

.model-config-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2f6ff;
}

.model-config-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
}

.model-config-section-title b,
.model-config-section-title em {
  min-width: 34px;
  height: 18px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #18df97;
  background: rgba(24, 223, 151, 0.12);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.model-config-section-title em {
  color: #b7bec9;
  background: rgba(255, 255, 255, 0.08);
}

.model-config-section p {
  margin: -2px 0 4px;
  color: #7e8795;
  font-size: 11px;
}

.model-config-list {
  display: grid;
  gap: 7px;
}

.model-config-row,
.model-config-add {
  width: 100%;
  min-height: 40px;
  border: 1px solid #363b46;
  border-radius: 8px;
  background: #24262d;
  color: #eef3fb;
}

.model-config-row {
  display: grid;
  grid-template-columns: 20px 28px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 10px;
}

.model-config-row.summary {
  grid-template-columns: 20px 28px minmax(0, 1fr) auto;
}

.model-config-index {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0fc8df;
  font-size: 11px;
  font-weight: 900;
}

.model-config-index.gold {
  color: #1d2027;
  background: var(--gold);
}

.model-config-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
}

.model-config-icon .custom-icon-img {
  width: 24px !important;
  height: 24px !important;
}

.model-config-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f6f8fc;
  font-size: 12px;
}

.model-config-switch {
  height: 28px;
  border: 1px solid rgba(255, 196, 0, 0.5);
  border-radius: 7px;
  background: rgba(255, 196, 0, 0.14);
  color: var(--gold);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.model-config-remove,
.model-config-section-title button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 77, 94, 0.12);
  color: #ff5c68;
}

.model-config-remove:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.model-config-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #10d4e8;
  border-style: dashed;
  background: rgba(16, 212, 232, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.model-config-foot {
  min-height: 58px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.model-config-foot span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #18df97;
  font-size: 12px;
  font-weight: 800;
}

.model-config-foot .btn {
  min-width: 82px;
  border-color: transparent;
  background: #13c6dc;
  color: #fff;
}

.model-picker-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
}

.model-picker-modal {
  width: min(352px, calc(100vw - 48px));
  max-height: min(664px, calc(100vh - 56px));
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 229, 255, 0.09), transparent 36%),
    #171b24;
  border-color: rgba(0, 213, 236, 0.34);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 213, 236, 0.12), 0 30px 90px rgba(0, 0, 0, 0.62);
}

.model-picker-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}

.model-picker-head h2 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.model-picker-head p {
  margin: 4px 0 0;
  color: #838d9b;
  font-size: 11px;
}

.model-picker-tabs {
  display: flex;
  gap: 7px;
  padding: 0 12px 8px;
}

.model-picker-tabs span {
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #9ba5b3;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 760;
}

.model-picker-tabs .active {
  color: #10131a;
  border-color: #13d7ea;
  background: #13d7ea;
  box-shadow: 0 0 18px rgba(19, 215, 234, 0.18);
}

.model-picker-list {
  max-height: calc(min(664px, 100vh - 56px) - 92px);
  overflow: auto;
  padding: 4px 9px 12px;
  display: grid;
}

.model-picker-list button {
  min-height: 72px;
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #eef3fb;
  border-radius: 7px;
  padding: 11px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.model-picker-list button.active,
.model-picker-list button:hover {
  border-color: rgba(0, 213, 236, 0.65);
  background: rgba(0, 213, 236, 0.08);
}

.model-picker-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.model-picker-icon .custom-icon-img {
  width: 30px !important;
  height: 30px !important;
}

.model-picker-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.model-picker-copy b,
.model-picker-copy em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.model-picker-copy b {
  -webkit-line-clamp: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.model-picker-copy em {
  -webkit-line-clamp: 2;
  color: #8c95a3;
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
}

.model-picker-price {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  border: 1px solid rgba(255, 196, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.1);
  color: #ffd76a;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-picker-list button > i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #13d7ea;
  background: rgba(19, 215, 234, 0.1);
  font-style: normal;
}

.model-picker-list button.active > i {
  color: #10131a;
  background: #13d7ea;
}

:root[data-theme="light"] .model-config-modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .model-config-head,
:root[data-theme="light"] .model-config-foot {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .model-config-head h2,
:root[data-theme="light"] .model-config-section-title,
:root[data-theme="light"] .model-config-row strong,
:root[data-theme="light"] .model-picker-head h2,
:root[data-theme="light"] .model-picker-copy b {
  color: #101828;
}

:root[data-theme="light"] .model-config-row,
:root[data-theme="light"] .model-config-add {
  background: #f8fafc;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .model-picker-modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .model-picker-list button {
  color: #101828;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .model-picker-list button.active,
:root[data-theme="light"] .model-picker-list button:hover {
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 160, 190, 0.3);
}

:root[data-theme="light"] .model-picker-price {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(180, 83, 9, 0.22);
  color: #9a5b00;
}

.purple-space {
  background:
    radial-gradient(ellipse at 50% 5%, rgba(139, 92, 246, 0.16), transparent 38%),
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px) 0 0 / 42px 42px;
}

.workflow {
  width: min(900px, 92vw);
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

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

.workflow-item,
.workflow-detail {
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(20, 23, 34, 0.82);
  border-radius: 8px;
  padding: 18px;
}

.workflow-item.active {
  background: rgba(139, 92, 246, 0.16);
}

.workflow-detail {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.agent-stage {
  --agent: #00d9ff;
  --agent-soft: rgba(0, 217, 255, 0.14);
  height: 100vh;
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 38px 34px 46px;
  background:
    radial-gradient(circle at 22% 38%, color-mix(in srgb, var(--agent), transparent 95%), transparent 31%),
    radial-gradient(circle at 72% 16%, color-mix(in srgb, var(--agent), transparent 93%), transparent 36%),
    radial-gradient(circle at 52% 94%, rgba(255, 196, 0, 0.045), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 44px 44px,
    #05070d;
}

.agent-stage::before {
  content: "";
  position: absolute;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 38%, color-mix(in srgb, var(--agent), transparent 91%) 39%, transparent 40%),
    radial-gradient(ellipse at 48% 60%, transparent 0 51%, rgba(255, 196, 0, 0.055) 52%, transparent 53%),
    linear-gradient(108deg, transparent 40%, color-mix(in srgb, var(--agent), transparent 97%) 50%, transparent 62%);
  opacity: 0.5;
  animation: agentAmbientSweep 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.agent-stage.tone-purple {
  --agent: #8b5cf6;
  --agent-soft: rgba(139, 92, 246, 0.16);
}

.agent-stage.tone-gold {
  --agent: #f6a400;
  --agent-soft: rgba(246, 164, 0, 0.16);
}

.agent-stage.tone-orange {
  --agent: #ff5f35;
  --agent-soft: rgba(255, 95, 53, 0.15);
}

.agent-stage.tone-blue {
  --agent: #5aa8ff;
  --agent-soft: rgba(90, 168, 255, 0.14);
}

:root[data-theme="light"] .agent-stage {
  background:
    radial-gradient(circle at 72% 12%, rgba(0, 170, 205, 0.12), transparent 32%),
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    #f6fbfd;
}

:root[data-theme="light"] .agent-main .app-top {
  background: transparent;
}

.agent-content {
  position: relative;
  z-index: 2;
  width: min(930px, calc(100vw - 332px));
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  row-gap: 13px;
  align-content: start;
  overflow: hidden;
}

.with-project-panel .agent-content {
  margin-left: 304px;
  width: min(1020px, calc(100vw - 640px));
  grid-template-rows: auto auto auto auto auto auto;
}

.with-project-panel {
  height: 100vh;
  padding-top: clamp(24px, 3.1vh, 38px);
  padding-bottom: clamp(24px, 3.1vh, 46px);
}

.with-project-panel .agent-content {
  justify-content: center;
  row-gap: clamp(8px, 1.15vh, 13px);
}

.with-project-panel .agent-hero {
  min-height: clamp(128px, 19vh, 204px);
  padding-top: 0;
  margin-bottom: 0;
}

.with-project-panel .agent-hero-icon {
  width: clamp(54px, 7vh, 68px);
  height: clamp(54px, 7vh, 68px);
}

.with-project-panel .agent-hero h1 {
  margin: 6px 0 5px;
  font-size: clamp(26px, 3.5vh, 34px);
}

.with-project-panel .agent-hero p {
  margin-bottom: 8px;
}

.with-project-panel .agent-chip-row span {
  min-height: 22px;
}

.with-project-panel .agent-flow {
  width: min(850px, 94%);
  gap: clamp(22px, 3vw, 36px);
}

.with-project-panel .agent-step-list {
  gap: clamp(6px, 0.85vh, 9px);
}

.with-project-panel .agent-step {
  min-height: clamp(50px, 6.6vh, 62px);
  grid-template-rows: 17px 15px;
  padding: 8px 10px;
}

.with-project-panel .agent-step-list::after {
  top: calc((var(--active-step, 0) * clamp(56px, 7.45vh, 71px)) + 25px);
}

.with-project-panel .agent-detail {
  min-height: clamp(150px, 22vh, 194px);
  padding: clamp(38px, 5.2vh, 48px) 32px clamp(20px, 3vh, 28px);
}

.with-project-panel .agent-detail-icon {
  width: clamp(44px, 5.6vh, 56px);
  height: clamp(44px, 5.6vh, 56px);
  margin-bottom: 8px;
}

.with-project-panel .agent-detail h2 {
  margin-bottom: 7px;
  font-size: clamp(18px, 2.35vh, 21px);
}

.with-project-panel .agent-detail p {
  margin-bottom: 12px;
}

.with-project-panel .agent-progress {
  height: 16px;
  margin-top: 4px;
}

.with-project-panel .agent-timeline {
  margin-top: clamp(16px, 2.5vh, 34px);
}

.with-project-panel .agent-action-bar {
  margin-top: clamp(12px, 2.4vh, 24px);
  min-height: 48px;
}

.with-project-panel .agent-mini-composer {
  min-height: 76px;
  margin-top: clamp(8px, 1.4vh, 14px);
}

.with-project-panel .agent-mini-composer textarea {
  min-height: 74px;
  padding-top: 14px;
  padding-bottom: 12px;
}

.with-project-panel .agent-mini-composer .reference-tile {
  top: 10px;
}

.with-project-panel .agent-mini-composer .send-btn {
  bottom: 10px;
}

.agent-dust,
.agent-arc,
.agent-corner,
.agent-grid-glow,
.agent-pixel-field {
  position: absolute;
  pointer-events: none;
}

.agent-dust {
  inset: 0;
  z-index: 1;
}

.agent-dust span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(2.4px * var(--s, 1));
  height: calc(2.4px * var(--s, 1));
  border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 8px var(--agent), 0 0 16px color-mix(in srgb, var(--agent), transparent 56%);
  animation: dustFloat 9s ease-in-out infinite, agentTwinkle 4.2s ease-in-out infinite;
  animation-delay: var(--d);
  will-change: transform, opacity;
}

.agent-pixel-field {
  inset: 0;
  z-index: 1;
  opacity: 0.21;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--agent), transparent 68%) 0 1px, transparent 1.6px) 0 0 / 6px 6px;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0 58%, transparent 76%);
  animation: agentPixelDrift 13s linear infinite;
}

.agent-grid-glow {
  left: 16%;
  right: 10%;
  top: 18%;
  height: 1px;
  z-index: 1;
  opacity: 0.16;
  background: linear-gradient(90deg, transparent, var(--agent), transparent);
  filter: blur(2px);
  animation: agentGridScan 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.agent-arc {
  width: 1500px;
  height: 650px;
  border-radius: 50%;
  border-top: 5px solid color-mix(in srgb, var(--agent), transparent 86%);
  z-index: 1;
  animation: arcDrift 28s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--agent), transparent 89%));
  will-change: transform;
}

.arc-one {
  left: 2%;
  bottom: 92px;
  --arc-rot: -13deg;
  transform: rotate(-13deg);
}

.arc-two {
  right: -30%;
  top: 134px;
  opacity: 0.24;
  --arc-rot: 7deg;
  transform: rotate(7deg);
  animation-delay: -6s;
}

.arc-three {
  left: 17%;
  top: 312px;
  width: 1120px;
  height: 470px;
  opacity: 0.13;
  --arc-rot: -4deg;
  transform: rotate(-4deg);
  animation-duration: 31s;
  animation-delay: -7s;
}

.agent-corner {
  width: 28px;
  height: 28px;
  border-color: color-mix(in srgb, var(--agent), transparent 35%);
  z-index: 1;
}

.corner-a {
  left: 18px;
  bottom: 24px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}

.corner-b {
  right: 18px;
  top: 24px;
  border-right: 1px solid;
  border-top: 1px solid;
}

.agent-hero {
  min-height: 204px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  width: max-content;
  max-width: 730px;
  margin: 0 auto 4px;
}

.agent-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid color-mix(in srgb, var(--agent), transparent 45%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--agent), transparent 80%);
  animation: heroPulse 5.4s ease-in-out infinite;
}

.agent-hero h1 {
  margin: 8px 0 7px;
  color: color-mix(in srgb, var(--agent), #fff 34%);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.agent-hero p {
  margin: 0 0 12px;
  color: #8791a0;
  font-size: 12.5px;
}

.agent-pill {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 55%);
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 90%);
  font-size: 11.5px;
}

.agent-pill span,
.agent-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 12px var(--agent);
}

.agent-chip-row,
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-chip-row span,
.agent-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #a4afbd;
  padding: 0 11px;
  font-size: 11px;
}

.agent-flow {
  display: grid;
  grid-template-columns: 250px minmax(470px, 1fr);
  gap: 36px;
  align-items: center;
  width: min(840px, 88%);
  margin: 0 auto;
  transform: translateX(-4px);
}

.agent-step-list {
  display: grid;
  gap: 9px;
  position: relative;
}

.agent-step-list::after {
  content: "";
  position: absolute;
  left: -12px;
  top: calc((var(--active-step, 0) * 71px) + 31px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 16px var(--agent);
  transition: top 0.56s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agent-step {
  position: relative;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(16, 20, 29, 0.55);
  color: #eef6ff;
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  grid-template-rows: 19px 17px;
  column-gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease, opacity 0.32s ease, filter 0.32s ease;
  will-change: transform;
  animation: agentStepIn 0.52s ease both;
  animation-delay: calc(var(--step, 0) * 0.045s);
}

.agent-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, color-mix(in srgb, var(--agent), transparent 82%) 48%, transparent 62% 100%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.agent-step:hover {
  transform: translateX(7px) scale(1.026);
  border-color: color-mix(in srgb, var(--agent), transparent 62%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 16px color-mix(in srgb, var(--agent), transparent 90%);
}

.agent-step.active {
  border-color: color-mix(in srgb, var(--agent), transparent 46%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--agent), transparent 88%), rgba(18, 22, 31, 0.66) 58%, rgba(18, 22, 31, 0.42)),
    rgba(18, 22, 31, 0.66);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--agent), transparent 88%), 0 12px 28px color-mix(in srgb, var(--agent), transparent 93%);
  transform: translateX(-10px) scale(1.015);
  animation: agentStepGlow 4.6s ease-in-out infinite;
}

.agent-step.active::before {
  opacity: 1;
  animation: agentCardSweep 2.6s ease-in-out infinite;
}

.agent-step > span {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 86%);
}

.agent-step b {
  font-size: 12.2px;
  line-height: 1.2;
}

.agent-step em {
  color: #727d8c;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.agent-step i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 12px var(--agent);
}

.agent-step small {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  color: var(--agent);
}

.agent-detail {
  min-height: 194px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 58%);
  border-radius: 10px;
  background:
    radial-gradient(circle at 11% 28%, color-mix(in srgb, var(--agent), transparent 88%), transparent 25%),
    linear-gradient(90deg, color-mix(in srgb, var(--agent), transparent 93%), transparent 34%),
    rgba(8, 11, 18, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), 0 0 20px color-mix(in srgb, var(--agent), transparent 93%);
  padding: 48px 36px 28px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: agentDetailBreath 5.6s ease-in-out infinite;
  will-change: transform, opacity;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.agent-detail:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: color-mix(in srgb, var(--agent), transparent 42%);
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.3), 0 0 30px color-mix(in srgb, var(--agent), transparent 89%);
}

.agent-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 32%, color-mix(in srgb, var(--agent), transparent 90%), transparent 28%),
    linear-gradient(120deg, transparent 0 40%, color-mix(in srgb, var(--agent), transparent 94%) 50%, transparent 62% 100%);
  opacity: 0.36;
  transform: translateX(-26%);
  animation: agentCardSweep 5.8s ease-in-out infinite;
}

.agent-detail::after {
  content: "";
  position: absolute;
  left: 34%;
  right: 34%;
  bottom: -18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--agent), transparent);
  animation: scanBar 3.8s ease-in-out infinite;
}

.agent-detail.switching .agent-detail-icon,
.agent-detail.switching h2,
.agent-detail.switching p,
.agent-detail.switching .agent-tags {
  animation: agentContentIn 0.36s ease both;
}

.agent-number,
.agent-status {
  position: absolute;
  top: 24px;
  height: 23px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 86%);
}

.agent-number {
  left: 34px;
}

.agent-status {
  right: 34px;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 58%);
}

.agent-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 84%);
  transform: rotate(-7deg);
  margin-bottom: 10px;
  animation: agentIconFloat 4.2s ease-in-out infinite;
}

.agent-detail h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.agent-detail p {
  margin: 0 0 20px;
  color: #8a96a6;
  line-height: 1.68;
  font-size: 12.2px;
}

.agent-tags span {
  min-height: 24px;
  border-radius: 5px;
  color: var(--agent);
  border-color: color-mix(in srgb, var(--agent), transparent 55%);
  background: color-mix(in srgb, var(--agent), transparent 88%);
}

.agent-progress {
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}

.agent-progress button {
  width: 32px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.agent-progress .active {
  background: var(--agent);
  box-shadow: 0 0 14px var(--agent);
  animation: progressBreath 2.2s ease-in-out infinite;
}

.agent-action-bar {
  width: min(650px, 72%);
  min-height: 62px;
  margin: 42px auto 0;
  display: flex;
  justify-content: center;
  gap: 13px;
  align-items: center;
}

.agent-action-bar.compact {
  margin-top: 32px;
}

.agent-footer-row {
  position: relative;
  z-index: 17;
  width: min(650px, 72%);
  min-height: 34px;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.agent-footer-row.guide-only {
  justify-content: center;
}

.agent-guide-pill {
  min-height: 32px;
  margin: 0;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 72%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--agent), transparent 91%);
  color: color-mix(in srgb, var(--agent), #fff 16%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px color-mix(in srgb, var(--agent), transparent 90%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent-guide-pill:hover {
  transform: translateY(2px);
  border-color: color-mix(in srgb, var(--agent), transparent 48%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--agent), transparent 84%);
}

.agent-guide-window {
  --agent: #00d9ff;
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 52;
  width: min(360px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 44px));
  border: 1px solid color-mix(in srgb, var(--agent), transparent 58%);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0, color-mix(in srgb, var(--agent), transparent 86%), transparent 38%),
    rgba(8, 12, 20, 0.88);
  color: #dbe8f6;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34), 0 0 24px color-mix(in srgb, var(--agent), transparent 88%);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.agent-guide-window.tone-purple {
  --agent: #8b5cf6;
}

.agent-guide-window.tone-gold {
  --agent: #f6a400;
}

.agent-guide-window.tone-orange {
  --agent: #ff5f35;
}

.agent-guide-window.tone-blue {
  --agent: #5aa8ff;
}

.agent-guide-window-head {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  cursor: grab;
  user-select: none;
}

.dragging-agent-guide .agent-guide-window-head {
  cursor: grabbing;
}

.agent-guide-window-head > span {
  color: var(--agent);
  display: grid;
  place-items: center;
}

.agent-guide-window-head strong,
.agent-guide-window-head em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-guide-window-head strong {
  color: #eff7ff;
  font-size: 12.8px;
}

.agent-guide-window-head em {
  margin-top: 2px;
  color: #78879b;
  font-size: 10.5px;
  font-style: normal;
}

.agent-guide-window-head button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #a8b5c5;
}

.agent-guide-window-body {
  max-height: calc(min(560px, calc(100vh - 44px)) - 110px);
  overflow: auto;
  padding: 12px;
}

.agent-guide-window-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.agent-guide-window-summary > i,
.agent-guide-window-summary > .custom-icon-img {
  color: var(--agent);
}

.agent-guide-window-summary p {
  margin: 0;
  color: #94a2b4;
  font-size: 11px;
  line-height: 1.55;
}

.agent-guide-window-steps {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.agent-guide-window-steps button {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce8f5;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.agent-guide-window-steps button:hover {
  transform: translateX(-2px);
  border-color: color-mix(in srgb, var(--agent), transparent 58%);
  background: color-mix(in srgb, var(--agent), transparent 91%);
}

.agent-guide-window-steps i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 85%);
  font-style: normal;
}

.agent-guide-window-steps b,
.agent-guide-window-steps em {
  display: block;
  min-width: 0;
}

.agent-guide-window-steps b {
  color: #edf6ff;
  font-size: 11.5px;
}

.agent-guide-window-steps em {
  margin-top: 3px;
  color: #78879b;
  font-size: 10.2px;
  line-height: 1.45;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-guide-window-foot {
  min-height: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  flex-wrap: wrap;
}

.agent-guide-window-foot button {
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 70%);
  border-radius: 9px;
  background: color-mix(in srgb, var(--agent), transparent 91%);
  color: color-mix(in srgb, var(--agent), #fff 12%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 10.8px;
}

.agent-guide-window-foot button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.agent-mini-composer {
  position: relative;
  width: min(760px, 70%);
  min-height: 98px;
  margin: 14px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(29, 32, 38, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.agent-mini-composer textarea {
  width: 100%;
  min-height: 96px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8edf4;
  padding: 18px 58px 15px 88px;
  font-size: 12px;
}

.agent-mini-composer .reference-tile {
  top: 15px;
}

.agent-mini-composer .send-btn {
  right: 16px;
  bottom: 14px;
}

.agent-action-bar button,
.agent-action-bar a,
.agent-bottom-actions button,
.agent-new-project,
.agent-engine-pill {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(16, 20, 29, 0.72);
  color: #d9e5f2;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.agent-primary {
  min-width: 142px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: color-mix(in srgb, var(--agent), #fff 18%) !important;
  border-color: color-mix(in srgb, var(--agent), transparent 28%) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--agent), transparent 86%);
  position: relative;
  overflow: hidden;
}

.agent-primary::after,
.agent-download::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 38%, color-mix(in srgb, var(--agent), transparent 78%) 50%, transparent 62% 100%);
  transform: translateX(-120%);
  opacity: 0.38;
  animation: agentButtonSweep 6.2s ease-in-out infinite;
}

.agent-secondary {
  height: 44px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.agent-download {
  min-width: 350px;
  height: 60px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: 24px 20px;
  gap: 0 12px;
  align-items: center;
  padding: 0 18px;
  text-align: left;
}

.agent-action-bar button:hover,
.agent-action-bar a:hover,
.agent-bottom-actions button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--agent), transparent 46%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 0 14px color-mix(in srgb, var(--agent), transparent 86%);
}

.agent-download svg {
  grid-row: 1 / 3;
  color: var(--agent);
}

.agent-download b {
  font-size: 14.5px;
}

.agent-download span {
  color: #718094;
  font-size: 11px;
}

.agent-download em {
  grid-row: 1 / 3;
  color: #35e68c;
  font-size: 11px;
  font-style: normal;
}

.multi-frame-stage {
  min-height: 920px;
  padding: 42px 34px 68px;
}

.multi-frame-shell {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100vw - 360px));
  min-height: 780px;
  margin: 0 auto;
  display: grid;
  align-content: start;
}

.multi-frame-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.multi-frame-logo {
  position: relative;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
}

.multi-frame-logo > span {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 55%);
  border-radius: 50%;
  animation: orbitSpin 10s linear infinite;
}

.multi-frame-logo > span:nth-child(2) {
  inset: 14px;
  border-style: dashed;
  animation-duration: 7.5s;
  animation-direction: reverse;
  opacity: 0.72;
}

.multi-frame-logo > div {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--agent), transparent 86%);
  color: var(--agent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--agent), transparent 72%);
  animation: heroPulse 5s ease-in-out infinite;
}

.multi-frame-title h1 {
  margin: 13px 0 9px;
  color: color-mix(in srgb, var(--agent), #fff 30%);
  font-size: 34px;
  line-height: 1.12;
}

.multi-frame-title p {
  margin: 0;
  color: #8b97a8;
  font-size: 13px;
}

.multi-frame-showcase {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 360px;
  gap: 26px;
  align-items: center;
  margin-top: 34px;
}

.multi-frame-spotlight {
  min-height: 232px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 55%);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--agent), transparent 82%), transparent 33%),
    rgba(9, 13, 22, 0.78);
  padding: 34px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.multi-frame-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, color-mix(in srgb, var(--agent), transparent 88%) 54%, transparent 68%);
  animation: agentCardSweep 5.4s ease-in-out infinite;
}

.multi-frame-spotlight i {
  position: absolute;
  right: 24px;
  top: 22px;
  color: color-mix(in srgb, var(--agent), transparent 12%);
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
}

.multi-frame-spotlight h2,
.multi-frame-spotlight p,
.multi-frame-spotlight .agent-detail-icon {
  position: relative;
  z-index: 1;
}

.multi-frame-spotlight h2 {
  margin: 12px 0 9px;
  color: #f0f8ff;
  font-size: 22px;
}

.multi-frame-spotlight p {
  max-width: 520px;
  margin: 0;
  color: #95a3b6;
  font-size: 12px;
  line-height: 1.75;
}

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

.multi-frame-feature-grid button {
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #d9e6f3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  font-size: 11.5px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.multi-frame-feature-grid button:hover,
.multi-frame-feature-grid .active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--agent), transparent 54%);
  background: color-mix(in srgb, var(--agent), transparent 90%);
}

.multi-frame-feature-grid span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 84%);
}

.multi-frame-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px auto 0;
  width: min(760px, 100%);
}

.multi-frame-workflow span {
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #8593a7;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  font-size: 11px;
  position: relative;
}

.multi-frame-workflow span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: color-mix(in srgb, var(--agent), transparent 70%);
}

.multi-frame-workflow i {
  color: var(--agent);
  font-style: normal;
}

.multi-frame-workflow .highlight {
  border-color: color-mix(in srgb, var(--agent), transparent 54%);
  color: color-mix(in srgb, var(--agent), #fff 15%);
  background: color-mix(in srgb, var(--agent), transparent 90%);
}

.agent-bottom-actions {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 9px;
  justify-content: flex-end;
  margin: 0;
  min-width: 0;
}

.agent-bottom-actions button {
  height: 32px;
  padding: 0 11px;
  color: #8e97a6;
  white-space: nowrap;
}

.agent-bottom-actions .active {
  color: var(--agent);
  border-color: color-mix(in srgb, var(--agent), transparent 45%);
  background: color-mix(in srgb, var(--agent), transparent 88%);
}

.agent-project-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 278px;
  z-index: 3;
  border-right: 1px solid var(--line);
  background: rgba(17, 18, 22, 0.96);
  padding: 18px 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.agent-new-project {
  height: 36px;
}

.agent-project-list {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px 0;
}

.agent-project-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #d9e5f2;
  font-size: 12px;
}

.agent-project-list header span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--agent), transparent 90%);
  color: var(--agent);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
}

.agent-project-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 9px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #d9e5f2;
  padding: 9px;
  text-align: left;
  cursor: pointer;
}

.agent-project-item:hover {
  border-color: color-mix(in srgb, var(--agent), transparent 45%);
  background: color-mix(in srgb, var(--agent), transparent 91%);
}

.agent-project-item.active {
  border-color: color-mix(in srgb, var(--agent), transparent 50%);
  background: color-mix(in srgb, var(--agent), transparent 88%);
}

.agent-project-item span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 86%);
  overflow: hidden;
}

.agent-project-item span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-project-item b,
.agent-project-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-project-item b {
  font-size: 12px;
}

.agent-project-item em {
  color: #718094;
  font-size: 11px;
  font-style: normal;
}

.agent-empty-folder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #647184;
}

.agent-engine-pill {
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px 1fr 34px;
  align-items: center;
  gap: 10px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 90%);
}

.agent-engine-pill button {
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--agent);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .agent-project-panel {
  background: rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .agent-project-list header,
:root[data-theme="light"] .agent-project-item {
  color: #111827;
}

:root[data-theme="light"] .agent-project-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-project-item em {
  color: #667085;
}

.agent-timeline {
  --timeline-duration: 12s;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(56px, 1fr));
  gap: 4px;
  width: min(1120px, 96%);
}

.agent-timeline span {
  position: relative;
  display: grid;
  justify-items: center;
  color: #5d6673;
  font-size: 11px;
  animation: agentTimelineLabel var(--timeline-duration) ease-in-out infinite alternate;
  animation-delay: calc(var(--step) * 0.52s);
}

.agent-timeline span::before {
  content: "";
  position: absolute;
  left: 50%;
  right: -50%;
  top: 8px;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--agent), #fff 18%), transparent);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, -160% 0;
  animation: agentTimelineBeam var(--timeline-duration) ease-in-out infinite alternate;
  animation-delay: calc(var(--step) * 0.52s);
}

.agent-timeline span:last-child::before {
  display: none;
}

.agent-timeline i {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: #11151d;
  margin-bottom: 7px;
  animation: agentTimelineNode var(--timeline-duration) ease-in-out infinite alternate;
  animation-delay: calc(var(--step) * 0.52s);
}

.agent-timeline i::before,
.agent-timeline i::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 44%);
  opacity: 0;
  transform: scale(0.45);
  animation: agentTimelinePulse var(--timeline-duration) ease-in-out infinite alternate;
  animation-delay: calc(var(--step) * 0.52s);
}

.agent-timeline i::after {
  inset: -11px;
  animation-delay: calc(var(--step) * 0.52s + 0.12s);
}

.agent-timeline .active {
  color: #fff;
}

.agent-timeline .active i {
  border-color: var(--agent);
  box-shadow: 0 0 18px var(--agent);
}

:root[data-theme="light"] .agent-timeline span {
  color: #94a3b8;
}

:root[data-theme="light"] .agent-timeline span::before {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.12)),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--agent), #0f172a 12%), transparent);
}

:root[data-theme="light"] .agent-timeline i {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
}

:root[data-theme="light"] .agent-hero-icon,
:root[data-theme="light"] .agent-detail-icon,
:root[data-theme="light"] .agent-workmain-orbit,
:root[data-theme="light"] .agent-guide-window-summary > i,
:root[data-theme="light"] .agent-guide-window-summary > svg {
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 88%);
  border-color: color-mix(in srgb, var(--agent), transparent 42%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--agent), transparent 78%), 0 10px 26px color-mix(in srgb, var(--agent), transparent 82%);
}

:root[data-theme="light"] .agent-hero-icon .custom-icon-img,
:root[data-theme="light"] .agent-detail-icon .custom-icon-img,
:root[data-theme="light"] .agent-workmain-orbit .custom-icon-img,
:root[data-theme="light"] .agent-guide-window-summary > .custom-icon-img {
  opacity: 0.96;
  filter: brightness(0) saturate(100%) invert(43%) sepia(98%) saturate(1320%) hue-rotate(151deg) brightness(94%) contrast(101%) drop-shadow(0 0 8px color-mix(in srgb, var(--agent), transparent 62%));
}

:root[data-theme="light"] .tone-blue .agent-hero-icon .custom-icon-img,
:root[data-theme="light"] .tone-blue .agent-detail-icon .custom-icon-img,
:root[data-theme="light"] .tone-blue .agent-workmain-orbit .custom-icon-img,
:root[data-theme="light"] .tone-blue .agent-guide-window-summary > .custom-icon-img {
  filter: brightness(0) saturate(100%) invert(47%) sepia(78%) saturate(1512%) hue-rotate(184deg) brightness(98%) contrast(103%) drop-shadow(0 0 8px rgba(37, 99, 235, 0.28));
}

:root[data-theme="light"] .tone-purple .agent-hero-icon .custom-icon-img,
:root[data-theme="light"] .tone-purple .agent-detail-icon .custom-icon-img,
:root[data-theme="light"] .tone-purple .agent-workmain-orbit .custom-icon-img,
:root[data-theme="light"] .tone-purple .agent-guide-window-summary > .custom-icon-img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(77%) saturate(2381%) hue-rotate(245deg) brightness(95%) contrast(100%) drop-shadow(0 0 8px rgba(124, 58, 237, 0.28));
}

:root[data-theme="light"] .tone-gold .agent-hero-icon .custom-icon-img,
:root[data-theme="light"] .tone-gold .agent-detail-icon .custom-icon-img,
:root[data-theme="light"] .tone-gold .agent-workmain-orbit .custom-icon-img,
:root[data-theme="light"] .tone-gold .agent-guide-window-summary > .custom-icon-img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(92%) saturate(1168%) hue-rotate(4deg) brightness(96%) contrast(96%) drop-shadow(0 0 8px rgba(217, 119, 6, 0.28));
}

:root[data-theme="light"] .tone-orange .agent-hero-icon .custom-icon-img,
:root[data-theme="light"] .tone-orange .agent-detail-icon .custom-icon-img,
:root[data-theme="light"] .tone-orange .agent-workmain-orbit .custom-icon-img,
:root[data-theme="light"] .tone-orange .agent-guide-window-summary > .custom-icon-img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(99%) saturate(1553%) hue-rotate(348deg) brightness(103%) contrast(101%) drop-shadow(0 0 8px rgba(234, 88, 12, 0.28));
}

:root[data-theme="light"] .agent-step,
:root[data-theme="light"] .agent-detail,
:root[data-theme="light"] .agent-action-bar button,
:root[data-theme="light"] .agent-bottom-actions button,
:root[data-theme="light"] .agent-project-panel {
  background: rgba(255, 255, 255, 0.9);
  color: #101828;
}

:root[data-theme="light"] .agent-mini-composer {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 250, 253, 0.9));
  border-color: color-mix(in srgb, var(--agent), transparent 68%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 42px rgba(15, 23, 42, 0.12),
    0 0 28px color-mix(in srgb, var(--agent), transparent 88%);
}

:root[data-theme="light"] .agent-mini-composer textarea {
  color: #101828;
}

:root[data-theme="light"] .agent-mini-composer textarea::placeholder {
  color: #98a2b3;
}

:root[data-theme="light"] .agent-mini-composer .asset-tile,
:root[data-theme="light"] .agent-mini-composer .asset-tile.ref-filled {
  background: #f8fafc;
  border: 1px solid #d4deea;
  color: #64748b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-mini-composer .asset-tile.ref-filled {
  background: transparent;
  border: 0;
}

:root[data-theme="light"] .agent-mini-composer .asset-tile.ref-filled > img {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] .agent-mini-composer .ref-library-btn,
:root[data-theme="light"] .agent-mini-composer .ref-remove,
:root[data-theme="light"] .agent-mini-composer .ref-replace {
  background: #ffffff;
  border-color: #dbe3ef;
  color: #64748b;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-mini-composer .ref-library-btn:hover,
:root[data-theme="light"] .agent-mini-composer .ref-replace:hover {
  color: #087b8d;
  border-color: rgba(8, 145, 178, 0.28);
  background: #ecfeff;
}

.agent-page {
  min-height: 100vh;
  background: #05070d;
}

:root[data-theme="light"] .agent-page {
  background: #f6fbfd;
}

.agent-guide-section {
  --agent: #00d9ff;
  --agent-soft: rgba(0, 217, 255, 0.14);
  position: relative;
  z-index: 2;
  padding: 34px 34px 92px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--agent), transparent 93%), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 196, 0, 0.045), transparent 26%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px) 0 0 / 44px 44px,
    #05070d;
}

.agent-guide-section.tone-purple {
  --agent: #8b5cf6;
}

.agent-guide-section.tone-gold {
  --agent: #f6a400;
}

.agent-guide-section.tone-orange {
  --agent: #ff5f35;
}

.agent-guide-section.tone-blue {
  --agent: #5aa8ff;
}

.agent-guide-inner {
  width: min(980px, calc(100vw - 332px));
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 24px;
}

.section-divider.subtle {
  margin-top: 34px;
}

.section-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--agent), transparent 74%), transparent);
}

.section-divider b {
  color: color-mix(in srgb, var(--agent), #fff 18%);
  font-size: 12px;
  letter-spacing: 0;
}

.agent-guide-grid {
  display: grid;
  gap: 18px;
}

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

.agent-guide-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--agent), transparent 91%), transparent 38%),
    rgba(18, 22, 31, 0.72);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.agent-guide-card:hover {
  transform: translateY(-3px) scale(1.006);
  border-color: color-mix(in srgb, var(--agent), transparent 70%);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24), 0 0 18px color-mix(in srgb, var(--agent), transparent 92%);
}

.agent-guide-num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 86%);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--agent), transparent 70%);
}

.agent-guide-body,
.agent-guide-card > div:last-child {
  min-width: 0;
}

.agent-guide-card h3 {
  margin: 0 0 8px;
  color: #edf6ff;
  font-size: 15px;
  line-height: 1.35;
}

.agent-guide-card p {
  margin: 0;
  color: #8e9aa9;
  font-size: 12.2px;
  line-height: 1.75;
}

.agent-guide-action {
  width: max-content;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 62%);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 90%);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.agent-guide-highlight,
.agent-guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.62;
}

.agent-guide-highlight {
  color: #ffd86a;
  border: 1px solid rgba(255, 216, 106, 0.22);
  background: linear-gradient(135deg, rgba(255, 216, 106, 0.12), rgba(255, 138, 31, 0.08));
}

.agent-guide-tip {
  color: color-mix(in srgb, var(--agent), #c8d5e1 34%);
  border: 1px solid color-mix(in srgb, var(--agent), transparent 86%);
  background: color-mix(in srgb, var(--agent), transparent 94%);
}

.agent-guide-code {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.78);
}

.agent-guide-code > div {
  min-height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: color-mix(in srgb, var(--agent), #dce8f5 10%);
  font-size: 11px;
  font-weight: 800;
}

.agent-guide-code button {
  border: 0;
  background: transparent;
  color: #9fb0c2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.agent-guide-code button:hover {
  color: var(--agent);
}

.agent-guide-code pre {
  margin: 0;
  max-height: 240px;
  overflow: auto;
  padding: 14px 16px;
  color: #bed0e3;
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-guide-code code {
  font-family: Consolas, "Cascadia Mono", "Microsoft YaHei UI", monospace;
}

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

.agent-dialog-card {
  min-height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(18, 22, 31, 0.82), rgba(10, 13, 20, 0.68));
  padding: 16px;
  text-align: left;
  color: #dfe9f4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.agent-dialog-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--agent), transparent 72%);
  background:
    radial-gradient(circle at 20% 0, color-mix(in srgb, var(--agent), transparent 90%), transparent 42%),
    rgba(18, 22, 31, 0.86);
}

.agent-dialog-card span {
  width: max-content;
  max-width: 100%;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 88%);
  font-size: 11px;
  font-weight: 800;
}

.agent-dialog-card p {
  margin: 0;
  color: #a7b3c2;
  font-size: 11.8px;
  line-height: 1.68;
}

.agent-dialog-card em {
  color: #708093;
  font-size: 11px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agent-workbench {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
}

.agent-project-board,
.agent-asset-board,
.agent-engine-board {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--agent), transparent 93%), transparent 40%),
    rgba(13, 17, 26, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.agent-project-board {
  padding: 17px;
}

.agent-project-board > header,
.agent-engine-board > header,
.agent-asset-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-project-board > header strong,
.agent-engine-board > header strong,
.agent-asset-block strong {
  display: block;
  color: #edf6ff;
  font-size: 13px;
}

.agent-project-board > header span {
  display: block;
  margin-top: 3px;
  color: #728092;
  font-size: 11px;
}

.agent-project-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 13px;
}

.agent-project-toolbar label {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #7f90a5;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}

.agent-project-toolbar input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e9f3ff;
  font-size: 11.2px;
  outline: none;
}

.agent-project-toolbar button,
.agent-project-toolbar span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #a6b5c8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  font-size: 11px;
}

.agent-project-toolbar button:hover {
  color: color-mix(in srgb, var(--agent), #fff 18%);
  border-color: color-mix(in srgb, var(--agent), transparent 66%);
}

.agent-progress-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.agent-progress-rail button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #8f9baa;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 11.5px;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.agent-progress-rail button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 42%, color-mix(in srgb, var(--agent), transparent 88%) 52%, transparent 64%);
  opacity: 0;
  transform: translateX(-100%);
}

.agent-progress-rail button:hover::after,
.agent-progress-rail .active::after {
  opacity: 1;
  animation: agentCardSweep 3s ease-in-out infinite;
}

.agent-progress-rail i {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 88%);
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
}

.agent-progress-rail .done,
.agent-progress-rail .active {
  color: color-mix(in srgb, var(--agent), #fff 18%);
  border-color: color-mix(in srgb, var(--agent), transparent 68%);
  background: color-mix(in srgb, var(--agent), transparent 92%);
}

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

.agent-project-card {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce8f4;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  text-align: left;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.agent-project-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--agent), transparent 68%);
  background: color-mix(in srgb, var(--agent), transparent 94%);
}

.agent-project-card.active {
  border-color: color-mix(in srgb, var(--agent), transparent 48%);
  background: color-mix(in srgb, var(--agent), transparent 89%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--agent), transparent 72%) inset;
}

.agent-project-card img {
  width: 80px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  background: #111827;
}

.agent-project-cover {
  width: 80px;
  height: 58px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--agent), transparent 72%), transparent 46%),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

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

.agent-project-card b,
.agent-project-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-project-card b {
  font-size: 12px;
  margin-top: 4px;
}

.agent-project-card em {
  margin-top: 6px;
  color: #718094;
  font-size: 10.5px;
  font-style: normal;
}

.agent-project-empty {
  grid-column: 1 / -1;
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #718094;
  border: 1px dashed color-mix(in srgb, var(--agent), transparent 78%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--agent), transparent 96%);
  text-align: center;
}

.agent-project-empty strong {
  color: #dfeaf6;
  font-size: 12px;
}

.agent-project-empty span {
  font-size: 11px;
}

.agent-project-page {
  min-height: 100vh;
  padding: 62px 18px 18px;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--agent, #00d9ff), transparent 91%), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 36px 36px,
    #05070d;
}

.agent-main:has(.agent-project-page) {
  overflow: auto;
}

.agent-project-workspace {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 286px minmax(520px, 1fr) 330px;
  gap: 14px;
}

.agent-project-worknav,
.agent-project-workmain,
.agent-project-result-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(11, 14, 22, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.agent-project-worknav {
  display: grid;
  grid-template-rows: auto minmax(120px, 0.78fr) auto auto minmax(150px, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.agent-worknav-projects,
.agent-worknav-chapters {
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
  scrollbar-width: thin;
}

.agent-worknav-tools {
  display: grid;
  gap: 8px;
}

.agent-worknav-tools button,
.agent-worknav-mini-grid button,
.agent-worknav-chapters header button,
.agent-workmain-head button,
.agent-work-prompt-hints button,
.agent-project-result-panel header button,
.agent-work-tool {
  border: 1px solid color-mix(in srgb, var(--agent, #00d9ff), transparent 76%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 93%);
  color: color-mix(in srgb, var(--agent, #00d9ff), #fff 16%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  font-size: 11.5px;
}

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

.agent-worknav-mini-grid button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  text-align: left;
}

.agent-worknav-mini-grid svg {
  grid-row: 1 / 3;
}

.agent-worknav-mini-grid b,
.agent-worknav-mini-grid em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-worknav-mini-grid b {
  color: #e8f2ff;
  font-size: 11.5px;
}

.agent-worknav-mini-grid em {
  color: #7d8ca0;
  font-size: 10.5px;
  font-style: normal;
}

.agent-worknav-chapters header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e8f2ff;
  font-size: 12px;
}

.agent-worknav-chapters header button {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.agent-worknav-chapters > button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce8f4;
  padding: 9px 10px;
  text-align: left;
}

.agent-worknav-chapters > button.active {
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 50%);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 89%);
}

.agent-worknav-chapters b,
.agent-worknav-chapters span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-worknav-chapters b {
  font-size: 11.5px;
}

.agent-worknav-chapters span,
.agent-worknav-empty {
  margin-top: 4px;
  color: #7d8ca0;
  font-size: 10.5px;
}

.agent-project-workmain {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(250px, 0.9fr) auto auto auto;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

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

.agent-workmain-head span,
.agent-workmain-head p {
  display: block;
  color: #7f90a6;
  font-size: 11px;
}

.agent-workmain-head h1 {
  margin: 4px 0;
  color: #edf6ff;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
}

.agent-workmain-center {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 250px;
  border: 1px dashed color-mix(in srgb, var(--agent, #00d9ff), transparent 72%);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--agent, #00d9ff), transparent 86%), transparent 36%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.agent-workmain-orbit {
  width: 76px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--agent, #00d9ff), transparent 58%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--agent, #00d9ff);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 90%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--agent, #00d9ff), transparent 72%);
}

.agent-workmain-center h2 {
  margin: 0;
  color: #edf6ff;
  font-size: 22px;
  letter-spacing: 0;
}

.agent-workmain-center p {
  width: min(560px, 88%);
  margin: 0;
  color: #7f90a6;
  font-size: 12px;
  line-height: 1.7;
}

.agent-work-prompt-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.agent-work-composer {
  min-height: 78px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto 42px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.agent-work-composer .reference-tile {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  transform: none;
  width: 74px;
  height: 58px;
}

.agent-work-composer .reference-tile:hover {
  transform: translateY(-1px);
}

.agent-work-composer .asset-tile,
.agent-work-composer .asset-tile.ref-filled {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  transform: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px dashed color-mix(in srgb, var(--agent, #00d9ff), transparent 68%);
}

.agent-work-composer .asset-tile.ref-filled:hover {
  transform: translateY(-1px);
}

.agent-work-composer .asset-tile.ref-filled > img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.agent-work-composer .ref-library-btn {
  right: 4px;
  top: 3px;
}

.agent-work-composer textarea {
  width: 100%;
  min-height: 58px;
  height: 58px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: #edf6ff;
  font-size: 13px;
  line-height: 1.65;
}

.agent-work-tool,
.agent-work-composer .send-btn {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.agent-project-result-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.agent-project-result-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
}

.agent-project-result-panel header button {
  margin-top: 18px;
}

.agent-project-result-panel strong,
.agent-result-card b {
  color: #edf6ff;
  font-size: 13px;
}

.agent-result-empty,
.agent-result-card {
  min-height: 260px;
  border: 1px dashed color-mix(in srgb, var(--agent, #00d9ff), transparent 74%);
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #7f90a6;
  text-align: center;
  padding: 18px;
}

.agent-result-card {
  place-items: start;
  align-content: start;
  text-align: left;
  border-style: solid;
  background: rgba(255, 255, 255, 0.035);
}

.agent-result-card span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--agent, #00d9ff);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 88%);
}

.agent-result-card p {
  margin: 0;
  color: #8b9aaf;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.agent-result-empty span {
  width: min(230px, 90%);
  font-size: 11.5px;
  line-height: 1.6;
}

.agent-result-refs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.agent-result-refs span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.agent-result-refs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-project-flow {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

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

.agent-flow-head strong,
.agent-flow-head span {
  display: block;
}

.agent-flow-head strong {
  color: #edf6ff;
  font-size: 13px;
}

.agent-flow-head span {
  margin-top: 4px;
  color: #738297;
  font-size: 10.8px;
}

.agent-flow-head > div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.agent-flow-head button,
.agent-task-card button {
  border: 1px solid color-mix(in srgb, var(--agent), transparent 74%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--agent), transparent 92%);
  color: color-mix(in srgb, var(--agent), #fff 14%);
  min-height: 29px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.8px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.agent-flow-head button[data-action="agent-delete-project"],
.agent-danger-tip {
  border-color: rgba(255, 98, 98, 0.22);
  background: rgba(255, 98, 98, 0.08);
  color: #ffb3b3;
}

.agent-flow-head button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.agent-flow-head button:hover,
.agent-task-card button:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: color-mix(in srgb, var(--agent), transparent 56%);
  background: color-mix(in srgb, var(--agent), transparent 87%);
}

.agent-chapter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 10px;
  scrollbar-width: thin;
}

.agent-chapter-tabs button {
  min-width: 104px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #dfeaf6;
  padding: 8px 10px;
  text-align: left;
}

.agent-chapter-tabs button.active {
  border-color: color-mix(in srgb, var(--agent), transparent 52%);
  background: color-mix(in srgb, var(--agent), transparent 90%);
}

.agent-chapter-tabs b,
.agent-chapter-tabs span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-chapter-tabs b {
  font-size: 11.4px;
}

.agent-chapter-tabs span {
  margin-top: 4px;
  color: #7a8ba0;
  font-size: 10px;
}

.agent-task-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.agent-task-card {
  min-height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.agent-task-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, color-mix(in srgb, var(--agent), transparent 90%) 54%, transparent 66%);
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}

.agent-task-card.running::before {
  opacity: 1;
  animation: agentCardSweep 2.6s ease-in-out infinite;
}

.agent-task-card header {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.agent-task-card header span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 87%);
}

.agent-task-card b,
.agent-task-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-task-card b {
  color: #edf6ff;
  font-size: 11.5px;
}

.agent-task-card em {
  grid-column: 2;
  color: #7b8a9d;
  font-size: 10px;
  font-style: normal;
}

.agent-task-card p {
  margin: 0;
  min-height: 45px;
  color: #8493a7;
  font-size: 10.6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.agent-task-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.agent-task-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--agent), color-mix(in srgb, var(--agent), #fff 32%));
  box-shadow: 0 0 14px color-mix(in srgb, var(--agent), transparent 45%);
  transition: width 0.28s ease;
}

.agent-task-card button {
  width: 100%;
  position: relative;
  z-index: 1;
}

.agent-flow-empty {
  grid-column: 1 / -1;
  min-height: 84px;
  border: 1px dashed color-mix(in srgb, var(--agent), transparent 74%);
  border-radius: 10px;
  color: #7c8ba0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  font-size: 11px;
}

.agent-asset-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.agent-asset-block {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.agent-asset-block:last-child {
  border-right: 0;
}

.agent-asset-block header button {
  border: 0;
  background: color-mix(in srgb, var(--agent), transparent 90%);
  color: var(--agent);
  border-radius: 999px;
  min-height: 25px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
}

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

.agent-asset-thumb,
.agent-asset-empty {
  min-height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #aab6c5;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.agent-asset-thumb:hover,
.agent-asset-empty:hover {
  border-color: color-mix(in srgb, var(--agent), transparent 68%);
  transform: translateY(-2px);
}

.agent-asset-thumb img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  display: block;
}

.agent-asset-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 7px 6px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  color: #fff;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-asset-empty {
  grid-column: 1 / -1;
  min-height: 98px;
  padding: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

.agent-engine-board {
  padding: 16px;
}

.agent-engine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.agent-engine-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  padding: 14px;
}

.agent-engine-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent), transparent 86%);
}

.agent-engine-card h3 {
  margin: 0 0 8px;
  color: #edf6ff;
  font-size: 13px;
}

.agent-engine-card p {
  min-height: 42px;
  margin: 0 0 12px;
  color: #7f8b9a;
  font-size: 11px;
  line-height: 1.65;
}

.agent-engine-card > div:last-child > button {
  max-width: 100%;
  min-height: 29px;
  border: 1px solid color-mix(in srgb, var(--agent), transparent 74%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--agent), transparent 92%);
  color: color-mix(in srgb, var(--agent), #fff 12%);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-model-strip {
  display: grid;
  gap: 7px;
}

.agent-model-strip button {
  min-height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8e4ef;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 10.5px;
  text-align: left;
}

.agent-model-strip button:hover {
  border-color: color-mix(in srgb, var(--agent), transparent 72%);
}

.agent-model-strip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-model-strip em {
  border-radius: 999px;
  padding: 1px 5px;
  background: rgba(255, 196, 0, 0.18);
  color: #ffd86a;
  font-size: 9px;
  font-style: normal;
}

.agent-project-modal,
.agent-engine-modal,
.agent-create-modal {
  max-width: 880px;
}

.agent-create-modal {
  max-width: 540px;
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 62%);
  background:
    radial-gradient(circle at 18% 0, color-mix(in srgb, var(--agent, #00d9ff), transparent 88%), transparent 34%),
    rgba(8, 12, 20, 0.96);
}

.agent-create-layer {
  z-index: 59;
}

.agent-create-modal .modal-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}

.agent-create-modal .modal-head h2 {
  grid-column: 1 / 3;
}

.agent-create-modal .modal-head p {
  grid-column: 2;
  margin: -4px 0 0;
  color: #758499;
  font-size: 11px;
}

.agent-create-cover {
  width: 198px;
  height: 118px;
  margin: 0 auto 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #7f8da1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.agent-create-cover:hover {
  transform: scale(1.025);
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 50%);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 93%);
}

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

.agent-create-cover strong {
  color: #dfeaf6;
  font-size: 12px;
}

.agent-create-cover span {
  font-size: 10.5px;
}

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

.agent-create-grid .full {
  grid-column: 1 / -1;
}

.agent-create-grid .form-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.agent-create-grid .form-field span,
.agent-create-orientation > span {
  color: #aab6c5;
  font-size: 11px;
}

.agent-create-grid .form-field em {
  color: #ff6b6b;
  font-style: normal;
}

.agent-create-grid .form-field i {
  position: absolute;
  right: 10px;
  top: 25px;
  color: #657388;
  font-size: 10px;
  font-style: normal;
}

.agent-create-grid .form-field input,
.agent-create-grid .form-field select,
.agent-create-grid .form-field textarea,
.agent-create-stepper input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf6ff;
  padding: 10px 11px;
  font-size: 12px;
  outline: none;
}

.agent-create-grid .form-field textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.55;
}

.agent-create-choice {
  min-height: 58px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.agent-create-choice > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: 18px 16px;
  gap: 0 9px;
  align-items: center;
  padding: 9px 12px;
  pointer-events: none;
}

.agent-create-choice svg,
.agent-create-choice i {
  grid-row: 1 / 3;
  color: var(--agent, #00d9ff);
}

.agent-create-choice b {
  color: #e8f1fb;
  font-size: 11.5px;
}

.agent-create-choice em {
  color: #718094;
  font-size: 10.2px;
  font-style: normal;
}

.agent-create-choice select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

.agent-create-orientation > span {
  grid-column: 1 / -1;
}

.agent-create-orientation label {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #7d8b9e;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  cursor: pointer;
}

.agent-create-orientation input {
  display: none;
}

.agent-create-orientation label:has(input:checked) {
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 40%);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 88%);
  color: var(--agent, #00d9ff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--agent, #00d9ff), transparent 76%) inset;
}

.agent-create-stepper {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 72px 34px;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.agent-create-stepper span {
  color: #cbd8e6;
  font-size: 11px;
}

.agent-create-stepper em {
  display: block;
  margin-top: 3px;
  color: #68778c;
  font-size: 10px;
  font-style: normal;
}

.agent-create-stepper button {
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e3ef;
}

.agent-create-stepper input {
  text-align: center;
}

.agent-policy-select {
  min-height: 32px;
  border: 1px solid rgba(255, 196, 0, 0.26);
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.08);
  color: #ffd866;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
}

.agent-policy-select select {
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
  font-size: 11px;
}

.agent-project-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.agent-project-form-grid .full {
  grid-column: 1 / -1;
}

.agent-project-form-grid .form-field {
  display: grid;
  gap: 7px;
}

.agent-project-form-grid .form-field span {
  color: #95a3b5;
  font-size: 11px;
}

.agent-project-form-grid input,
.agent-project-form-grid select,
.agent-project-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf6ff;
  padding: 10px 11px;
  font-size: 12px;
  outline: none;
}

.agent-project-form-grid textarea {
  resize: vertical;
  min-height: 94px;
  line-height: 1.55;
}

.agent-project-ref-panel {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  padding: 13px;
}

.agent-project-ref-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-project-ref-panel strong {
  color: #edf6ff;
  font-size: 12px;
}

.agent-project-ref-panel p {
  margin: 10px 0 0;
  color: #8493a7;
  font-size: 11px;
}

.agent-project-ref-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
}

.agent-project-ref-list span {
  max-width: 180px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dce8f4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 4px;
  font-size: 10.8px;
}

.agent-project-ref-list img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

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

.agent-engine-eval-grid article {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--agent, #00d9ff), transparent 88%), transparent 42%),
    rgba(255, 255, 255, 0.04);
  padding: 13px;
}

.agent-engine-eval-grid span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--agent, #00d9ff);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 86%);
}

.agent-engine-eval-grid strong {
  display: block;
  margin-top: 9px;
  color: #edf6ff;
  font-size: 12px;
}

.agent-engine-eval-grid p {
  margin: 5px 0 0;
  color: #8291a5;
  font-size: 10.8px;
  line-height: 1.55;
}

.agent-engine-policy-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.agent-engine-policy-row label {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #a7b4c5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 11px;
  cursor: pointer;
}

.agent-engine-policy-row label.active,
.agent-engine-policy-row label:has(input:checked) {
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 50%);
  color: color-mix(in srgb, var(--agent, #00d9ff), #fff 16%);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 89%);
}

.agent-engine-dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.agent-engine-dialog-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 13px;
}

.agent-engine-dialog-card header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.agent-engine-dialog-card header > span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--agent, #00d9ff);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 87%);
}

.agent-engine-dialog-card strong {
  display: block;
  color: #edf6ff;
  font-size: 12.2px;
}

.agent-engine-dialog-card p {
  margin: 5px 0 0;
  color: #8493a7;
  font-size: 10.8px;
  line-height: 1.55;
}

.agent-engine-model-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.agent-engine-model-list button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce8f4;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.agent-engine-model-list button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 58%);
}

.agent-engine-model-list b,
.agent-engine-model-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-engine-model-list b {
  font-size: 11.2px;
}

.agent-engine-model-list em {
  margin-top: 2px;
  color: #7c8ba0;
  font-size: 9.8px;
  font-style: normal;
}

.agent-engine-model-list i {
  border-radius: 999px;
  padding: 1px 5px;
  background: rgba(255, 196, 0, 0.18);
  color: #ffd86a;
  font-size: 9px;
  font-style: normal;
}

.agent-engine-empty {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 14px;
  text-align: center;
}

.agent-engine-overview-modal {
  width: min(820px, calc(100vw - 36px));
}

.agent-engine-overview-modal .modal-head {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 6px 14px;
  align-items: start;
  padding: 20px 22px 16px;
}

.agent-engine-overview-modal .modal-head h2 {
  grid-column: 1;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.agent-engine-overview-modal .modal-head p {
  grid-column: 1;
  max-width: 660px;
  margin: 0;
  color: #a7b4c5;
  text-align: left;
  line-height: 1.6;
}

.agent-engine-overview-modal .modal-head .modal-close {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: start;
}

.agent-engine-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.agent-engine-showcase-card {
  min-height: 306px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--agent, #00d9ff), transparent 91%), transparent 36%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.agent-engine-showcase-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-engine-showcase-card header > span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.agent-engine-showcase-card header > span img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.agent-engine-showcase-card header em {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: color-mix(in srgb, var(--agent, #00d9ff), #fff 18%);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 91%);
  padding: 4px 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.agent-engine-showcase-card h3 {
  margin: 0;
  color: #edf6ff;
  font-size: 16px;
  letter-spacing: 0;
}

.agent-engine-showcase-card p {
  margin: 0;
  color: #8796aa;
  font-size: 11.5px;
  line-height: 1.68;
}

.agent-engine-showcase-card strong {
  color: color-mix(in srgb, var(--agent, #00d9ff), #fff 18%);
  font-size: 11px;
  line-height: 1.6;
}

.agent-engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.agent-engine-tags span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #9caabd;
  background: rgba(255, 255, 255, 0.045);
  padding: 4px 8px;
  font-size: 10px;
}

.agent-engine-note {
  margin: 18px auto 0;
  max-width: 680px;
  color: #77869b;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}

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

.agent-engine-foot.single {
  display: block;
}

.agent-price-link {
  width: 100%;
  min-height: 36px;
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 50%) !important;
  color: color-mix(in srgb, var(--agent, #00d9ff), #fff 12%) !important;
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 90%) !important;
}

.agent-price-modal {
  width: min(880px, calc(100vw - 36px));
  max-height: min(88vh, 820px);
}

.agent-price-modal.with-detail {
  width: min(1000px, calc(100vw - 36px));
}

.agent-price-modal .modal-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-price-shell {
  min-height: min(72vh, 704px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.agent-price-modal.with-detail .agent-price-shell {
  grid-template-columns: minmax(0, 1fr) 354px;
}

.agent-price-list-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding: 0 20px 16px;
  overflow: hidden;
}

.agent-price-list-panel .modal-head.compact {
  padding: 18px 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-price-search {
  min-height: 30px;
  margin: 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #8a98aa;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}

.agent-price-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #edf6ff;
  font-size: 12px;
}

.agent-price-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-price-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #8897aa;
  padding: 0 0 10px;
  font-size: 11.5px;
}

.agent-price-tabs button.active {
  color: var(--agent, #00d9ff);
}

.agent-price-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--agent, #00d9ff);
}

.agent-price-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 14px 4px 0 0;
}

.agent-price-row {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce8f4;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
  text-align: left;
}

.agent-price-row:hover,
.agent-price-row.active {
  background: rgba(255, 255, 255, 0.055);
}

.agent-price-row > span:first-child {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.agent-price-row img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.agent-price-row b,
.agent-price-row p {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-price-row b {
  color: #edf6ff;
  font-size: 12.5px;
  white-space: nowrap;
}

.agent-price-row p {
  margin: 4px 0 0;
  color: #8090a4;
  font-size: 10.8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-price-row em {
  align-self: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  min-width: 34px;
  padding: 3px 6px;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.agent-price-row em.video { color: #ff9b43; }
.agent-price-row em.image { color: #c77dff; }
.agent-price-row em.chat { color: #5ce1ef; }
.agent-price-row em.audio { color: #42df89; }

.agent-price-detail-panel {
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.agent-price-detail-panel > header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.agent-price-detail-panel > header button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce8f4;
}

.agent-price-detail-panel > header strong,
.agent-price-detail-title b,
.agent-price-table strong,
.agent-official-route strong {
  color: #edf6ff;
}

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

.agent-price-detail-title > span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.agent-price-detail-title p {
  margin: 5px 0 0;
  color: #8090a4;
  font-size: 10.8px;
  line-height: 1.55;
}

.agent-schedule-tip {
  border: 1px solid color-mix(in srgb, var(--agent, #00d9ff), transparent 48%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 91%);
  color: color-mix(in srgb, var(--agent, #00d9ff), #fff 12%);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
}

.agent-schedule-tip b,
.agent-schedule-tip em {
  display: block;
}

.agent-schedule-tip em {
  color: #7f90a6;
  font-size: 10px;
  font-style: normal;
}

.agent-official-route,
.agent-price-table {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

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

.agent-official-route header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-official-route em {
  border: 1px solid color-mix(in srgb, var(--agent, #00d9ff), transparent 54%);
  border-radius: 5px;
  color: var(--agent, #00d9ff);
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
}

.agent-official-route span {
  display: block;
  color: #8796aa;
  font-size: 10px;
}

.agent-official-route b {
  display: block;
  margin-top: 4px;
  color: #ff9b43;
  font-size: 13px;
}

.agent-price-table table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 7px;
}

.agent-price-table th,
.agent-price-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 9px;
  color: #c8d3e1;
  font-size: 10.5px;
}

.agent-price-table th {
  color: #8fa0b5;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.agent-price-table td:not(:first-child) {
  color: #ff9b43;
  font-weight: 800;
}

.agent-danger-tip {
  margin-top: 13px;
  border-radius: 10px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  font-size: 11px;
  line-height: 1.5;
}

:root[data-theme="light"] .agent-guide-section {
  background:
    radial-gradient(circle at 80% 18%, rgba(90, 168, 255, 0.13), transparent 30%),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    #f6fbfd;
}

:root[data-theme="light"] .agent-guide-card,
:root[data-theme="light"] .agent-dialog-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-guide-card h3,
:root[data-theme="light"] .agent-dialog-card {
  color: #101828;
}

:root[data-theme="light"] .agent-guide-card p,
:root[data-theme="light"] .agent-dialog-card p {
  color: #667085;
}

:root[data-theme="light"] .agent-guide-code {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-guide-code > div {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-guide-code pre {
  color: #334155;
}

:root[data-theme="light"] .agent-project-board,
:root[data-theme="light"] .agent-asset-board,
:root[data-theme="light"] .agent-engine-board,
:root[data-theme="light"] .agent-guide-window,
:root[data-theme="light"] .agent-guide-window-summary,
:root[data-theme="light"] .agent-guide-window-steps button,
:root[data-theme="light"] .multi-frame-spotlight,
:root[data-theme="light"] .multi-frame-feature-grid button,
:root[data-theme="light"] .multi-frame-workflow span,
:root[data-theme="light"] .agent-project-card,
:root[data-theme="light"] .agent-chapter-tabs button,
:root[data-theme="light"] .agent-task-card,
:root[data-theme="light"] .agent-engine-card,
:root[data-theme="light"] .agent-asset-thumb,
:root[data-theme="light"] .agent-asset-empty {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-project-board > header strong,
:root[data-theme="light"] .agent-engine-board > header strong,
:root[data-theme="light"] .agent-asset-block strong,
:root[data-theme="light"] .agent-engine-card h3,
:root[data-theme="light"] .multi-frame-title h1,
:root[data-theme="light"] .multi-frame-spotlight h2,
:root[data-theme="light"] .multi-frame-feature-grid button,
:root[data-theme="light"] .agent-project-empty strong,
:root[data-theme="light"] .agent-flow-head strong,
:root[data-theme="light"] .agent-guide-window-head strong,
:root[data-theme="light"] .agent-guide-window-steps b,
:root[data-theme="light"] .agent-chapter-tabs b,
:root[data-theme="light"] .agent-task-card b,
:root[data-theme="light"] .agent-project-card b {
  color: #101828;
}

:root[data-theme="light"] .agent-project-board > header span,
:root[data-theme="light"] .agent-engine-card p,
:root[data-theme="light"] .agent-project-card em,
:root[data-theme="light"] .agent-flow-head span,
:root[data-theme="light"] .agent-guide-window-head em,
:root[data-theme="light"] .agent-guide-window-summary p,
:root[data-theme="light"] .agent-guide-window-steps em,
:root[data-theme="light"] .multi-frame-title p,
:root[data-theme="light"] .multi-frame-spotlight p,
:root[data-theme="light"] .multi-frame-workflow span,
:root[data-theme="light"] .agent-chapter-tabs span,
:root[data-theme="light"] .agent-task-card p,
:root[data-theme="light"] .agent-task-card em,
:root[data-theme="light"] .agent-project-empty,
:root[data-theme="light"] .agent-asset-empty {
  color: #667085;
}

:root[data-theme="light"] .agent-asset-block,
:root[data-theme="light"] .agent-project-flow {
  border-right-color: rgba(15, 23, 42, 0.08);
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-project-toolbar label,
:root[data-theme="light"] .agent-project-toolbar button,
:root[data-theme="light"] .agent-project-toolbar span,
:root[data-theme="light"] .agent-project-worknav,
:root[data-theme="light"] .agent-project-workmain,
:root[data-theme="light"] .agent-project-result-panel,
:root[data-theme="light"] .agent-worknav-tools button,
:root[data-theme="light"] .agent-worknav-mini-grid button,
:root[data-theme="light"] .agent-worknav-chapters > button,
:root[data-theme="light"] .agent-worknav-chapters header button,
:root[data-theme="light"] .agent-workmain-head button,
:root[data-theme="light"] .agent-work-prompt-hints button,
:root[data-theme="light"] .agent-work-composer,
:root[data-theme="light"] .agent-work-tool,
:root[data-theme="light"] .agent-project-result-panel header button,
:root[data-theme="light"] .agent-result-card,
:root[data-theme="light"] .agent-create-modal,
:root[data-theme="light"] .agent-create-cover,
:root[data-theme="light"] .agent-create-choice,
:root[data-theme="light"] .agent-create-orientation label,
:root[data-theme="light"] .agent-create-stepper,
:root[data-theme="light"] .agent-create-grid .form-field input,
:root[data-theme="light"] .agent-create-grid .form-field select,
:root[data-theme="light"] .agent-create-grid .form-field textarea,
:root[data-theme="light"] .agent-create-stepper input,
:root[data-theme="light"] .agent-project-form-grid input,
:root[data-theme="light"] .agent-project-form-grid select,
:root[data-theme="light"] .agent-project-form-grid textarea,
:root[data-theme="light"] .agent-project-ref-panel,
:root[data-theme="light"] .agent-project-ref-list span,
:root[data-theme="light"] .agent-engine-eval-grid article,
:root[data-theme="light"] .agent-engine-policy-row label,
:root[data-theme="light"] .agent-engine-dialog-card,
:root[data-theme="light"] .agent-engine-model-list button,
:root[data-theme="light"] .agent-engine-empty,
:root[data-theme="light"] .agent-engine-showcase-card,
:root[data-theme="light"] .agent-engine-tags span,
:root[data-theme="light"] .agent-price-search,
:root[data-theme="light"] .agent-price-row:hover,
:root[data-theme="light"] .agent-price-row.active,
:root[data-theme="light"] .agent-price-detail-panel,
:root[data-theme="light"] .agent-official-route,
:root[data-theme="light"] .agent-price-table,
:root[data-theme="light"] .agent-price-detail-panel > header button,
:root[data-theme="light"] .agent-engine-showcase-card header > span,
:root[data-theme="light"] .agent-price-row > span,
:root[data-theme="light"] .agent-price-row > span:first-child,
:root[data-theme="light"] .agent-price-detail-title > span {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-project-page {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--agent, #00d9ff), transparent 90%), transparent 28%),
    linear-gradient(rgba(15, 23, 42, 0.038) 1px, transparent 1px) 0 0 / 36px 36px,
    #f6fbfd;
}

:root[data-theme="light"] .agent-workmain-center {
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--agent, #00d9ff), transparent 88%), transparent 36%),
    rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .agent-project-toolbar input,
:root[data-theme="light"] .agent-workmain-head h1,
:root[data-theme="light"] .agent-workmain-center h2,
:root[data-theme="light"] .agent-worknav-mini-grid b,
:root[data-theme="light"] .agent-worknav-chapters header,
:root[data-theme="light"] .agent-worknav-chapters b,
:root[data-theme="light"] .agent-project-result-panel strong,
:root[data-theme="light"] .agent-result-card b,
:root[data-theme="light"] .agent-work-composer textarea,
:root[data-theme="light"] .agent-create-cover strong,
:root[data-theme="light"] .agent-create-choice b,
:root[data-theme="light"] .agent-create-stepper span,
:root[data-theme="light"] .agent-create-grid .form-field input,
:root[data-theme="light"] .agent-create-grid .form-field select,
:root[data-theme="light"] .agent-create-grid .form-field textarea,
:root[data-theme="light"] .agent-create-stepper input,
:root[data-theme="light"] .agent-project-form-grid input,
:root[data-theme="light"] .agent-project-form-grid select,
:root[data-theme="light"] .agent-project-form-grid textarea,
:root[data-theme="light"] .agent-project-ref-panel strong,
:root[data-theme="light"] .agent-project-ref-list span,
:root[data-theme="light"] .agent-engine-eval-grid strong,
:root[data-theme="light"] .agent-engine-dialog-card strong,
:root[data-theme="light"] .agent-engine-showcase-card h3,
:root[data-theme="light"] .agent-price-row b,
:root[data-theme="light"] .agent-price-row-copy b,
:root[data-theme="light"] .agent-price-search input,
:root[data-theme="light"] .agent-price-detail-panel > header strong,
:root[data-theme="light"] .agent-price-detail-title b,
:root[data-theme="light"] .agent-price-table strong,
:root[data-theme="light"] .agent-official-route strong,
:root[data-theme="light"] .agent-engine-model-list button,
:root[data-theme="light"] .agent-engine-model-list b {
  color: #101828;
}

:root[data-theme="light"] .agent-project-toolbar label,
:root[data-theme="light"] .agent-workmain-head span,
:root[data-theme="light"] .agent-workmain-head p,
:root[data-theme="light"] .agent-workmain-center p,
:root[data-theme="light"] .agent-worknav-mini-grid em,
:root[data-theme="light"] .agent-worknav-chapters span,
:root[data-theme="light"] .agent-worknav-empty,
:root[data-theme="light"] .agent-result-card p,
:root[data-theme="light"] .agent-result-empty,
:root[data-theme="light"] .agent-project-toolbar button,
:root[data-theme="light"] .agent-project-toolbar span,
:root[data-theme="light"] .agent-create-modal .modal-head p,
:root[data-theme="light"] .agent-create-cover,
:root[data-theme="light"] .agent-create-cover span,
:root[data-theme="light"] .agent-create-choice em,
:root[data-theme="light"] .agent-create-stepper em,
:root[data-theme="light"] .agent-create-grid .form-field span,
:root[data-theme="light"] .agent-project-form-grid .form-field span,
:root[data-theme="light"] .agent-project-ref-panel p,
:root[data-theme="light"] .agent-engine-eval-grid p,
:root[data-theme="light"] .agent-engine-dialog-card p,
:root[data-theme="light"] .agent-engine-showcase-card p,
:root[data-theme="light"] .agent-engine-tags span,
:root[data-theme="light"] .agent-engine-note,
:root[data-theme="light"] .agent-price-tabs button,
:root[data-theme="light"] .agent-price-row p,
:root[data-theme="light"] .agent-price-row-copy p,
:root[data-theme="light"] .agent-price-detail-title p,
:root[data-theme="light"] .agent-schedule-tip em,
:root[data-theme="light"] .agent-official-route span,
:root[data-theme="light"] .agent-engine-model-list em,
:root[data-theme="light"] .agent-engine-empty {
  color: #667085;
}

:root[data-theme="light"] .agent-price-list-panel .modal-head.compact,
:root[data-theme="light"] .agent-price-tabs,
:root[data-theme="light"] .agent-price-detail-panel,
:root[data-theme="light"] .agent-price-modal .modal-foot,
:root[data-theme="light"] .agent-price-table th,
:root[data-theme="light"] .agent-price-table td {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agent-engine-policy-row label.active,
:root[data-theme="light"] .agent-engine-policy-row label:has(input:checked),
:root[data-theme="light"] .agent-create-orientation label:has(input:checked) {
  border-color: color-mix(in srgb, var(--agent, #00d9ff), transparent 50%);
  color: color-mix(in srgb, var(--agent, #00d9ff), #0f172a 18%);
  background: color-mix(in srgb, var(--agent, #00d9ff), transparent 90%);
}

:root[data-theme="light"] .agent-danger-tip,
:root[data-theme="light"] .agent-flow-head button[data-action="agent-delete-project"] {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(254, 226, 226, 0.78);
  color: #b42318;
}

@keyframes agentAmbientSweep {
  0% { transform: translate3d(-2%, 1%, 0) rotate(0deg); opacity: 0.42; }
  100% { transform: translate3d(3%, -1%, 0) rotate(1deg); opacity: 0.62; }
}

@keyframes agentGridScan {
  0%, 100% { transform: translateY(-130px) scaleX(0.7); opacity: 0.04; }
  45% { opacity: 0.25; }
  76% { transform: translateY(430px) scaleX(1.08); opacity: 0.12; }
}

@keyframes agentPixelDrift {
  0% { transform: translate3d(0, 0, 0); opacity: 0.12; }
  45% { opacity: 0.24; }
  100% { transform: translate3d(18px, 12px, 0); opacity: 0.14; }
}

@keyframes agentTwinkle {
  0%, 100% { opacity: 0.28; filter: brightness(0.8); }
  48% { opacity: 1; filter: brightness(1.6); }
}

@keyframes dustFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.78); opacity: 0.35; }
  50% { transform: translate3d(16px, -20px, 0) scale(1.12); opacity: 1; }
}

@keyframes arcDrift {
  from { transform: translate3d(-34px, 16px, 0) rotate(var(--arc-rot, -12deg)); }
  to { transform: translate3d(46px, -20px, 0) rotate(var(--arc-rot, -12deg)); }
}

@keyframes heroPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.04); }
}

@keyframes agentStepGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes agentTimelineLabel {
  0%, 11%, 100% { color: #5d6673; transform: translateY(0); }
  4%, 7% { color: color-mix(in srgb, var(--agent), #fff 28%); transform: translateY(-2px); }
}

@keyframes agentTimelineNode {
  0%, 11%, 100% {
    border-color: rgba(255, 255, 255, 0.13);
    background: #11151d;
    box-shadow: none;
    transform: scale(1);
  }
  4%, 7% {
    border-color: var(--agent);
    background: color-mix(in srgb, var(--agent), #11151d 68%);
    box-shadow: 0 0 18px var(--agent), 0 0 34px color-mix(in srgb, var(--agent), transparent 45%);
    transform: scale(1.18);
  }
}

@keyframes agentTimelinePulse {
  0%, 3%, 11%, 100% { opacity: 0; transform: scale(0.45); }
  5% { opacity: 0.62; transform: scale(1); }
  8% { opacity: 0; transform: scale(1.38); }
}

@keyframes agentTimelineBeam {
  0%, 9%, 100% {
    background-position: 0 0, -160% 0;
    filter: brightness(1);
  }
  4%, 7% {
    background-position: 0 0, 30% 0;
    filter: brightness(1.7);
  }
}

@keyframes agentStepIn {
  from { opacity: 0; transform: translate3d(-14px, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes agentCardSweep {
  0% { transform: translateX(-120%); }
  52%, 100% { transform: translateX(120%); }
}

@keyframes agentDetailBreath {
  0%, 100% { transform: translateY(0); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), 0 0 14px color-mix(in srgb, var(--agent), transparent 95%); }
  50% { transform: translateY(-3px); box-shadow: 0 20px 66px rgba(0, 0, 0, 0.28), 0 0 24px color-mix(in srgb, var(--agent), transparent 90%); }
}

@keyframes agentIconFloat {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-5px); }
}

@keyframes agentButtonSweep {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes agentContentIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scanBar {
  0%, 100% { opacity: 0.45; transform: scaleX(0.66); }
  50% { opacity: 1; transform: scaleX(1.18); }
}

@keyframes progressBreath {
  0%, 100% { width: 34px; }
  50% { width: 52px; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gallery-page {
  padding: 14px 14px 60px;
  position: relative;
  z-index: 2;
}

.gallery-sidebar {
  box-shadow: 12px 0 34px rgba(0, 0, 0, 0.28);
}

.gallery-sidebar .brand {
  height: 64px;
}

.filter-panel {
  min-height: 0;
  padding: 13px 14px 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  flex: 1;
  scrollbar-gutter: stable;
}

.filter-panel::-webkit-scrollbar {
  width: 5px;
}

.filter-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.filter-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 196, 0, 0.58);
}

.filter-title {
  color: #dfe7f3;
  font-weight: 800;
  margin: 0 0 12px;
  font-size: 13px;
}

.gallery-filter-head {
  display: grid;
  gap: 9px;
  margin-bottom: 9px;
}

.gallery-category-search {
  display: block;
}

.gallery-category-search input,
.gallery-item-search input {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid rgba(255, 196, 0, 0.44);
  border-radius: 4px;
  padding: 0 30px 0 27px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbe4f0;
  font-size: 11px;
  outline: none;
}

.gallery-category-search input::placeholder,
.gallery-item-search input::placeholder {
  color: #6f7785;
}

.gallery-category-search input:focus,
.gallery-item-search input:focus {
  border-color: rgba(255, 196, 0, 0.78);
  background: rgba(255, 196, 0, 0.06);
}

.gallery-selected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
  color: #ffd86b;
  font-size: 11px;
  font-weight: 800;
}

.gallery-selected-row button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #ff6873;
  font-size: 11px;
}

.gallery-selected-row button:disabled {
  color: #626b78;
}

.gallery-side-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
}

.gallery-side-cats a {
  height: 30px;
  border: 1px solid rgba(255, 196, 0, 0.26);
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.045);
  color: #cbbf9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
}

.gallery-side-cats a.active,
.gallery-side-cats a:hover {
  color: #10131a;
  background: #ffd86b;
  border-color: #ffd86b;
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.18);
}

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

.gallery-category-wrap {
  min-height: 0;
  overflow: auto;
  padding: 0 2px 8px 0;
  scrollbar-color: rgba(0, 213, 236, 0.72) rgba(255, 255, 255, 0.04);
}

.gallery-category-wrap::-webkit-scrollbar {
  width: 5px;
}

.gallery-category-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 213, 236, 0.82);
}

.gallery-category-cloud {
  align-content: start;
  gap: 7px 6px;
}

.tag-btn,
.work-tag {
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 196, 0, 0.35);
  background: rgba(255, 196, 0, 0.05);
  color: #d5c49b;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
}

.tag-btn {
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.tag-btn.active,
.tag-btn:hover {
  color: #111827;
  background: #ffd86b;
  border-color: #ffd86b;
}

.gallery-category-more {
  display: flex;
  width: 100%;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  margin: 12px 0 0;
  background: transparent;
  color: #717987;
  font-size: 11px;
}

.gallery-category-more:not(:disabled) {
  width: auto;
  min-width: 72px;
  border-radius: 3px;
  padding: 0 8px;
  color: #fff;
  background: #8c929d;
  justify-self: start;
}

.gallery-item-search {
  padding-top: 8px;
}

.gallery-item-search input {
  height: 28px;
  background: rgba(10, 14, 22, 0.72);
}

.gallery-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gallery-nav {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gallery-top-tabs {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-top-tabs::-webkit-scrollbar {
  display: none;
}

.gallery-top-tabs a {
  height: 34px;
  min-width: 58px;
  padding: 0 17px;
  border-radius: 999px;
  color: #aeb6c2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-top-tabs a.active {
  color: #041015;
  background: linear-gradient(135deg, #09efff, #08d1bc);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
  animation: frontPillPulse 2.8s ease-in-out infinite;
}

.gallery-top-tabs a:hover {
  transform: translateY(-2px);
}

.gallery-nav strong {
  color: #f5f7fb;
  font-size: 15px;
  letter-spacing: 0;
}

.gallery-nav-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.gallery-size-control {
  width: 162px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9fb3c6;
  background: rgba(9, 15, 24, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.gallery-size-control input {
  width: 100%;
  min-width: 0;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.gallery-size-control input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.72), rgba(255, 216, 107, 0.72));
}

.gallery-size-control input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid #06131a;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #eefbff;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.28);
}

.gallery-size-control input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.72), rgba(255, 216, 107, 0.72));
}

.gallery-size-control input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #06131a;
  border-radius: 50%;
  background: #eefbff;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.28);
}

.segmented {
  display: inline-flex;
  gap: 8px;
}

.segmented.small button,
.segmented.small a {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.segmented button,
.segmented a {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #aeb6c2;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.segmented .active {
  color: #fff;
  background: var(--cyan);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 5), minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  justify-content: stretch;
  max-width: calc(var(--gallery-columns, 5) * var(--gallery-column-width, 260px) + (var(--gallery-columns, 5) - 1) * 16px);
}

.masonry-column {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}

.gallery-empty {
  display: flex;
  width: 100%;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #171b23;
  vertical-align: top;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.inspiration-card {
  background: rgba(12, 18, 26, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  animation: none;
}

.inspiration-card:hover {
  transform: translateY(-7px) scale(1.018);
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 18px 42px rgba(0, 229, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.work-card:hover::after {
  opacity: 1;
  animation: frontCardShine 2.4s ease-in-out infinite;
}

.work-preview-btn img,
.thumb-preview img {
  transition: transform 0.28s ease, filter 0.28s ease;
}

.work-card:hover .work-preview-btn img,
.thumb-card:hover .thumb-preview img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.inspiration-price,
.inspiration-type {
  position: absolute;
  z-index: 2;
  top: 9px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.inspiration-price {
  left: 9px;
  color: #10131a;
  background: rgba(255, 216, 107, 0.92);
}

.inspiration-type {
  right: 9px;
  color: #e7fbff;
  background: rgba(6, 18, 28, 0.76);
  border: 1px solid rgba(0, 229, 255, 0.22);
}

.work-preview-btn {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  display: block;
  background: transparent;
}

.inspiration-card .work-preview-btn {
  overflow: hidden;
  min-height: 96px;
  background: #0f141c;
}

.work-card img,
.work-preview-btn img {
  width: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  background: #252a33;
}

.inspiration-card .work-preview-btn img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #0f141c;
}

.work-cover-placeholder {
  position: relative;
  width: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #c6b4ff;
  background:
    radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(18, 22, 32, 0.98), rgba(7, 10, 16, 0.98));
  overflow: hidden;
}

.work-cover-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 72%);
}

.work-cover-placeholder > i,
.work-cover-placeholder > .custom-icon-img,
.work-cover-placeholder b {
  position: relative;
  z-index: 1;
}

.work-cover-placeholder b {
  font-size: 12px;
  color: #eef2ff;
}

.work-cover-placeholder.thumb {
  width: 132px;
  height: 178px;
  min-height: 178px;
  border-radius: 6px;
}

.work-cover-placeholder.gold {
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 196, 0, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(31, 24, 12, 0.98), rgba(7, 10, 16, 0.98));
}

.work-cover-placeholder.danger {
  color: #ff8e9a;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 77, 94, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(34, 12, 18, 0.98), rgba(7, 10, 16, 0.98));
}

.work-body {
  padding: 12px;
}

.work-title {
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 10px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tag {
  height: 22px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.24);
}

.work-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #c4cad4;
  font-size: 12px;
  margin-top: 10px;
}

.work-card-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.work-card-actions .btn {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.work-card-pending .work-preview-btn img,
.thumb-card.is-pending .thumb-preview img {
  filter: saturate(0.75) brightness(0.62);
}

.work-status-pill,
.thumb-status {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 14, 0.82);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.work-status-pill {
  left: 8px;
  top: 8px;
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.work-status-pill.gold,
.thumb-status.gold {
  color: var(--gold);
  border-color: rgba(255, 196, 0, 0.36);
  background: rgba(43, 32, 10, 0.82);
}

.work-status-pill.purple,
.thumb-status.purple {
  color: #c6b4ff;
  border-color: rgba(139, 92, 246, 0.36);
  background: rgba(26, 18, 48, 0.82);
}

.work-status-pill.danger,
.thumb-status.danger {
  color: #ff9aa5;
  border-color: rgba(255, 77, 94, 0.38);
  background: rgba(48, 14, 20, 0.82);
}

.work-status-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #c6b4ff;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.work-status-note.gold {
  color: #ffd890;
  border-color: rgba(255, 196, 0, 0.32);
  background: rgba(255, 196, 0, 0.08);
}

.work-status-note.danger {
  color: #ff9aa5;
  border-color: rgba(255, 77, 94, 0.28);
  background: rgba(255, 77, 94, 0.09);
}

.works-page {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 40px;
  min-height: 100vh;
  padding: 22px 24px 0 40px;
  background: #0e1014;
}

.front-works {
  background:
    radial-gradient(circle at 12% 10%, rgba(5, 244, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(255, 79, 179, 0.1), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 216, 74, 0.08), transparent 28%),
    #0e1014;
}

.works-only-page {
  grid-template-columns: 1fr;
  padding-right: 40px;
}

.works-full-main {
  min-width: 0;
}

.workbench-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  min-height: 100vh;
  padding: 24px 26px 0 36px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 213, 236, 0.1), transparent 28%),
    #0e1014;
}

.front-workbench {
  background:
    radial-gradient(circle at 18% 0%, rgba(5, 244, 255, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 79, 179, 0.1), transparent 30%),
    radial-gradient(circle at 64% 90%, rgba(255, 216, 74, 0.08), transparent 26%),
    #0e1014;
}

.workbench-main {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.workbench-hero,
.workbench-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a20;
  position: relative;
  overflow: hidden;
}

.workbench-hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  animation: frontPanelFloat 6.6s ease-in-out infinite;
}

.workbench-card::before,
.profile-card::before,
.function-card::before,
.works-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(5, 244, 255, 0.08), rgba(255, 79, 179, 0.06), transparent 62% 100%);
  transform: translateX(-120%);
  opacity: 0;
}

.workbench-card:hover::before,
.profile-card:hover::before,
.function-card:hover::before {
  opacity: 1;
  animation: frontCardShine 3s ease-in-out infinite;
}

.workbench-hero > div:first-child {
  display: grid;
  gap: 8px;
}

.workbench-hero .back-btn {
  margin-bottom: 6px;
}

.workbench-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.workbench-hero p {
  margin: 0;
  color: #9aa5b4;
  font-size: 13px;
}

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

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

.workbench-stat {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a20;
  padding: 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.workbench-stat:hover,
.workbench-quick:hover,
.func-btn:hover,
.thumb-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 244, 255, 0.34);
  box-shadow: 0 16px 34px rgba(5, 244, 255, 0.11), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.workbench-stat > span,
.workbench-quick > span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--cyan-2);
  background: rgba(0, 213, 236, 0.12);
}

.workbench-stat.purple > span,
.workbench-quick.purple > span { color: #a855f7; background: rgba(139, 92, 246, 0.16); }
.workbench-stat.gold > span,
.workbench-quick.gold > span { color: #ffc400; background: rgba(255, 196, 0, 0.14); }
.workbench-stat.red > span { color: #fb7185; background: rgba(244, 63, 94, 0.16); }
.workbench-quick.blue > span { color: #60a5fa; background: rgba(59, 130, 246, 0.16); }

.workbench-stat b,
.workbench-stat em {
  display: block;
  font-style: normal;
}

.workbench-stat b {
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.workbench-stat em {
  margin-top: 5px;
  color: #8e98a7;
  font-size: 12px;
}

.workbench-card {
  padding: 18px;
}

.workbench-card-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.workbench-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.workbench-card-head > span {
  color: #8f99a8;
  font-size: 12px;
}

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

.workbench-quick {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a1d24;
  color: #fff;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.workbench-quick:hover::after,
.func-btn:hover::after,
.thumb-card:hover::after {
  opacity: 1;
  animation: frontCardShine 2.4s ease-in-out infinite;
}

.workbench-quick strong,
.workbench-quick em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.workbench-quick em {
  margin-top: 5px;
  color: #8d96a4;
  font-size: 12px;
  font-weight: 600;
}

.workbench-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 132px));
  gap: 18px;
}

.workbench-side {
  padding-top: 0;
}

.works-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.works-search {
  width: 238px;
  flex: 0 0 238px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.works-search input {
  min-width: 0;
}

.works-toolbar {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  gap: 14px;
}

.works-toolbar .segmented {
  flex: 0 0 auto;
}

.works-toolbar .btn-danger {
  flex: 0 0 auto;
}

.works-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 126px;
  font-size: 22px;
}

.back-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.notice {
  border: 1px solid rgba(255, 196, 0, 0.45);
  background: rgba(255, 196, 0, 0.08);
  color: #ffd890;
  border-radius: 8px;
  padding: 9px 18px;
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.12);
  font-weight: 800;
  font-size: 12px;
}

.works-retention-notice {
  width: max-content;
  max-width: min(100%, 640px);
  margin: 0;
  border: 1px solid rgba(255, 196, 0, 0.45);
  background: rgba(255, 196, 0, 0.08);
  color: #ffd890;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.12);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.45;
}

.date-title {
  margin: 20px 0 18px;
  font-weight: 900;
  font-size: 18px;
}

.works-list-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.works-list-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 132px));
  gap: 18px;
}

.thumb-card {
  position: relative;
  width: 132px;
  min-height: 236px;
  border: 1px solid transparent;
  padding: 0;
  background: transparent;
  border-radius: 7px;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.thumb-preview {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
}

.thumb-card img,
.thumb-preview img {
  width: 132px;
  height: 178px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #eaf2ff;
}

.thumb-select {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 2;
}

.check-corner {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #3f444e;
  border: 1px solid #a3abb9;
}

.thumb-card.selected .check-corner {
  background: var(--cyan);
  border-color: var(--cyan);
}

.thumb-card.selected .check-corner::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.thumb-meta {
  padding-top: 7px;
  min-width: 0;
}

.thumb-meta strong,
.thumb-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-meta strong {
  font-size: 12px;
  line-height: 1.35;
}

.thumb-meta span {
  margin-top: 3px;
  color: #8d98a8;
  font-size: 10px;
}

.thumb-actions {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 62px;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.thumb-card:hover .thumb-actions,
.thumb-card:focus-within .thumb-actions {
  opacity: 1;
  transform: translateY(0);
}

.thumb-actions button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
}

.thumb-actions button:hover {
  color: var(--cyan-2);
  border-color: rgba(0, 229, 255, 0.45);
}

.thumb-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.thumb-status {
  left: 6px;
  right: 6px;
  bottom: 7px;
  justify-content: center;
  min-height: 24px;
  font-size: 10px;
  font-weight: 900;
}

.empty-mini {
  color: #778292;
  font-size: 12px;
  padding: 18px 10px;
  text-align: center;
}

.right-stack {
  display: grid;
  gap: 18px;
  align-content: start;
  max-height: 100vh;
  overflow: auto;
  padding: 12px 2px 24px;
}

.profile-card,
.function-card {
  border: 1px solid var(--line);
  background: #171a20;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.panel-title {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
}

.id-badge {
  color: var(--cyan-2);
  background: rgba(0, 213, 236, 0.12);
  border-color: rgba(0, 213, 236, 0.32);
}

.profile-main {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-main > div {
  min-width: 0;
}

.profile-logout-btn {
  margin-left: auto;
  min-height: 30px;
  border: 1px solid rgba(0, 213, 236, 0.34);
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.08);
  color: var(--cyan-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.profile-logout-btn:hover {
  border-color: rgba(0, 213, 236, 0.58);
  background: rgba(0, 213, 236, 0.16);
}

.profile-main img {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  object-fit: cover;
  background: #101824;
}

.profile-avatar-uploader {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 22px;
  display: block;
  cursor: pointer;
}

.profile-avatar-uploader img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.profile-avatar-uploader > span {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 213, 236, 0.5);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cyan-2);
  background: rgba(13, 18, 28, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.profile-avatar-uploader:hover > span {
  background: rgba(0, 213, 236, 0.18);
}

.profile-main .badge {
  margin-top: 8px;
  color: #fff;
  border-color: #777;
  background: #2a2e36;
}

.profile-role-badge {
  width: fit-content;
  min-height: 20px;
  margin-top: 8px;
  padding: 0 7px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #e5edf7;
  background: rgba(42, 46, 54, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.profile-role-badge.is-admin {
  color: var(--cyan-2);
  border-color: rgba(0, 213, 236, 0.38);
  background: rgba(0, 213, 236, 0.10);
  cursor: pointer;
}

.profile-role-badge.is-admin:hover {
  color: #ffffff;
  border-color: rgba(0, 213, 236, 0.72);
  background: rgba(0, 213, 236, 0.20);
}

.profile-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #a9b1bf;
  padding: 0 20px;
  gap: 10px;
  font-size: 12px;
}

.profile-row strong {
  color: #fff;
  margin-left: auto;
}

.account-bind-block.editing {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.account-bind-block.editing .account-bind-row {
  border-bottom: 0;
}

.account-metric-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.metric-row strong {
  font-weight: 900;
}

.metric-cyan {
  color: var(--cyan-2) !important;
}

.metric-gold {
  color: #ffb21b !important;
}

.mini-action {
  min-width: 48px;
  height: 28px;
  border: 1px solid rgba(0, 213, 236, 0.38);
  border-radius: 5px;
  background: rgba(0, 213, 236, 0.08);
  color: var(--cyan-2);
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  padding: 0 8px;
}

button.mini-action {
  cursor: pointer;
}

.profile-inline-form {
  padding: 0 20px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 8px 10px;
  align-items: center;
}

.profile-inline-form .human-verify-field {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.profile-inline-form .human-track {
  height: 32px;
}

.profile-inline-form .human-handle {
  width: 30px;
  height: 26px;
  min-height: 26px;
  left: calc(3px + (100% - 36px) * var(--human-progress, 0));
}

.profile-inline-form .human-track-text {
  font-size: 11px;
}

.profile-inline-form .human-captcha-field,
.profile-inline-form .strict-verify-field {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.profile-inline-form .strict-start {
  height: 32px;
}

.profile-inline-form .strict-canvas {
  min-height: 96px;
}

.profile-inline-form .strict-status {
  font-size: 11px;
}

.profile-inline-form input {
  width: 100%;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #17181f;
  color: #eef6ff;
  padding: 0 10px;
  outline: none;
  font-size: 11px;
}

.bind-captcha-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
}

.bind-captcha-img {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #11151d;
  color: var(--cyan-2);
  padding: 0;
  overflow: hidden;
}

.bind-captcha-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.profile-action-row {
  display: grid;
  grid-template-columns: 1fr 64px 56px;
  gap: 8px;
  grid-column: 1 / -1;
}

.profile-action-row .btn {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.profile-code-notice,
.profile-bind-note {
  grid-column: 1 / -1;
  color: #8d98a8;
  font-size: 11px;
  line-height: 1.5;
}

.profile-wechat-tip {
  grid-template-columns: 1fr;
}

.password-inline-form {
  grid-template-columns: 1fr;
}

.password-inline-form .profile-action-row {
  grid-template-columns: 1fr 1fr;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 34px;
}

.password-field button {
  position: absolute;
  right: 4px;
  top: 3px;
  width: 24px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #737d8b;
  display: grid;
  place-items: center;
}

.cancel-account {
  float: right;
  margin: 12px 20px 18px;
  border: 0;
  background: transparent;
  color: #8c96a4;
  font-size: 12px;
  text-decoration: underline;
}

.function-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}

.func-btn {
  min-height: 50px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #1a1d24;
  color: #fff;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 8px 9px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.func-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid !important;
  place-items: center !important;
  line-height: 1;
  flex: 0 0 auto;
  background: rgba(255, 196, 0, 0.12);
  color: var(--gold);
  overflow: hidden;
}

.func-icon i,
.func-icon svg,
.func-icon .custom-icon-img {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  flex: 0 0 auto;
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) translate(0.5px, 0.5px);
  transform-origin: center;
  stroke-width: 2.35;
}

.func-icon .lucide-key-round,
.func-icon .lucide-share-2,
.func-icon .lucide-layers,
.func-icon .lucide-file-text,
.func-icon .lucide-message-square {
  transform: translate(-50%, -50%) translate(0.75px, 0.75px);
}

.func-icon .lucide-headphones {
  transform: translate(-50%, -50%) translate(0, 0.75px);
}

.func-icon .lucide-book-open-check,
.func-icon .lucide-badge-check {
  transform: translate(-50%, -50%) translate(0.5px, 0.75px);
}

.api-func-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.2px;
  transform: translate(-50%, -50%);
}

.api-func-mark::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 5px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform: translateY(-50%);
}

.func-btn.purple { border-left-color: #8b5cf6; }
.func-btn.purple .func-icon { color: #a855f7; background: rgba(139, 92, 246, 0.16); }
.func-btn.red { border-left-color: #ef4444; }
.func-btn.red .func-icon { color: #f87171; background: rgba(239, 68, 68, 0.16); }
.func-btn.green { border-left-color: #10b981; }
.func-btn.green .func-icon { color: #34d399; background: rgba(16, 185, 129, 0.16); }
.func-btn.blue { border-left-color: #3b82f6; }
.func-btn.blue .func-icon { color: #60a5fa; background: rgba(59, 130, 246, 0.16); }
.func-btn.cyan { border-left-color: #06b6d4; }
.func-btn.cyan .func-icon { color: #22d3ee; background: rgba(6, 182, 212, 0.16); }
.func-btn.pink { border-left-color: #ec4899; }
.func-btn.pink .func-icon { color: #f472b6; background: rgba(236, 72, 153, 0.16); }

.func-btn strong > span {
  display: block;
  color: #8d96a4;
  font-size: 11px;
  margin-top: 2px;
}

.func-btn strong {
  min-width: 0;
  line-height: 1.2;
}

.func-btn strong > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  width: calc(100% - 28px);
  height: 38px;
  margin: 12px 14px 14px;
  border: 1px solid rgba(255, 77, 94, 0.36);
  border-radius: 7px;
  color: #ff4d5e;
  background: rgba(255, 77, 94, 0.08);
  font-weight: 800;
}

.account-center-layer {
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0;
  overflow: hidden;
}

.account-center-modal {
  width: min(330px, calc(100vw - 24px));
  height: min(94vh, 1060px);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.account-center-scroll {
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 20px;
  padding: 0 10px 28px;
  scrollbar-gutter: stable;
}

.account-center-scroll::-webkit-scrollbar,
.right-stack::-webkit-scrollbar {
  width: 6px;
}

.account-center-scroll::-webkit-scrollbar-thumb,
.right-stack::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.account-profile-card .panel-title {
  min-height: 54px;
}

.account-center-main {
  padding: 22px 20px 18px;
}

.account-center-main img {
  width: 64px;
  height: 64px;
}

.doc-shell {
  height: 100vh;
  min-height: 100vh;
  background: #090d13;
  display: grid;
  grid-template-columns: 340px 1fr;
  position: relative;
  overflow: hidden;
}

.front-docs {
  background:
    radial-gradient(circle at 22% 8%, rgba(5, 244, 255, 0.13), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(155, 107, 255, 0.12), transparent 30%),
    #090d13;
}

.admin-shell {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(ellipse at 70% 0, rgba(0, 229, 255, 0.12), transparent 36%),
    #0b0d12;
}

.admin-side {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: #111720;
  border-right: 1px solid var(--line);
  padding: 18px 10px 12px;
  overflow: hidden;
}

.admin-side .brand {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding: 0 10px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-nav-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 8px;
  scrollbar-gutter: stable;
}

.admin-nav-list::-webkit-scrollbar {
  width: 5px;
}

.admin-nav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 213, 236, 0.48);
}

.admin-nav-group {
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.admin-nav-group:first-child {
  padding-top: 0;
}

.admin-nav-group:last-child {
  border-bottom: 0;
}

.admin-nav-title {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #6f7b8d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-nav {
  width: 100%;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #aab2bf;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  margin-bottom: 4px;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.admin-nav.active,
.admin-nav:hover {
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.2);
}

.admin-nav svg,
.admin-nav i {
  flex: 0 0 auto;
}

.admin-nav span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-side-foot {
  flex: 0 0 auto;
  padding: 10px 2px 0;
  border-top: 1px solid var(--line);
}

.admin-nav.back {
  margin-bottom: 0;
  color: #8fa1b6;
}

.admin-main {
  min-width: 0;
  padding: 26px;
  height: 100vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-bottom: 18px;
}

.admin-head h1 {
  margin: 4px 0 0;
}

.admin-inline-search {
  display: inline-grid;
  grid-template-columns: 190px auto;
  gap: 8px;
  align-items: center;
}

.admin-inline-search input {
  height: 32px;
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #e8edf4;
  border-radius: 6px;
  outline: none;
  padding: 0 10px;
}

.admin-toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.model-admin-search {
  width: min(310px, 36vw);
  height: 34px;
  display: flex;
  grid-template-columns: none;
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #8fa0b3;
  border-radius: 6px;
  padding: 0 10px;
}

.model-admin-search input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  background: transparent;
  color: #e8edf4;
  padding: 0;
}

.model-admin-search input:focus {
  box-shadow: none;
}

.admin-filter-select {
  width: 104px;
  height: 34px;
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #e8edf4;
  border-radius: 6px;
  outline: none;
  padding: 0 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.model-admin-grid {
  grid-template-columns: minmax(480px, 560px) 1fr;
}

.admin-card {
  border: 1px solid var(--line);
  background: rgba(20, 24, 32, 0.86);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.admin-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.admin-stat-card {
  position: relative;
  min-height: 128px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 14%, rgba(0, 229, 255, 0.16), transparent 32%),
    rgba(20, 24, 32, 0.86);
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.75), transparent);
  animation: statLine 2.8s ease-in-out infinite;
}

.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 8px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.1);
  margin-bottom: 12px;
}

.admin-stat-card small,
.admin-stat-card em {
  display: block;
  color: #8793a4;
  font-size: 12px;
  font-style: normal;
}

.admin-stat-card strong {
  display: block;
  margin: 5px 0;
  color: #eef8ff;
  font-size: 26px;
  line-height: 1.1;
}

@keyframes statLine {
  0%, 100% { transform: translateX(-24%); opacity: 0.3; }
  50% { transform: translateX(20%); opacity: 0.9; }
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.admin-card input,
.admin-card select,
.admin-card textarea {
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #e8edf4;
  border-radius: 6px;
  outline: none;
}

.admin-card input:not([type="checkbox"]),
.admin-card select,
.admin-card textarea {
  width: 100%;
}

.admin-card input,
.admin-card select {
  height: 36px;
  padding: 0 10px;
}

.admin-edit-modal input,
.admin-edit-modal select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #e8edf4;
  border-radius: 6px;
  outline: none;
  padding: 0 10px;
}

.admin-card input[type="checkbox"] {
  width: 14px;
  height: 14px;
  padding: 0;
  margin: 0;
  accent-color: var(--cyan);
}

.admin-edit-modal input[type="checkbox"] {
  width: 14px;
  height: 14px;
  padding: 0;
  margin: 0;
  accent-color: var(--cyan);
  appearance: auto;
}

.model-call-stats-modal {
  width: min(1180px, calc(100vw - 48px));
}

.model-call-stats-modal .modal-body {
  display: grid;
  gap: 14px;
}

.model-call-stats-toolbar {
  display: grid;
  grid-template-columns: auto 138px 148px minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.model-call-stats-toolbar .badge,
.model-call-stats-toolbar .btn {
  min-width: max-content;
}

.model-call-stats-toolbar .admin-filter-select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.model-call-stats-toolbar .model-admin-search {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.model-call-stats-toolbar .model-admin-search input {
  width: auto;
  min-width: 0;
  flex: 1;
  height: 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.admin-card textarea {
  min-height: 74px;
  padding: 9px 10px;
  resize: vertical;
}

.model-form-card textarea[name="composer_config_json"],
.model-edit-modal textarea[name="composer_config_json"] {
  min-height: 230px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.admin-edit-modal {
  width: min(1120px, calc(100vw - 52px));
}

.admin-edit-modal .modal-body {
  padding: 16px 18px;
}

.admin-edit-modal .admin-form-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  align-items: start;
}

.admin-edit-modal .form-field {
  margin-bottom: 10px;
  min-width: 0;
}

.modal.agent-profile-edit-modal,
.admin-edit-layer .agent-profile-edit-modal {
  width: min(1280px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  overflow-x: hidden;
}

.agent-profile-edit-modal .admin-form-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.upstream-filter-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(120px, 0.35fr) minmax(145px, 0.4fr) minmax(120px, 0.35fr) auto;
  gap: 10px;
  align-items: center;
}

.upstream-filter-toolbar .form-field {
  margin: 0;
}

.upstream-filter-card {
  padding: 12px 14px;
}

.upstream-filter-toolbar .form-field input,
.upstream-filter-toolbar .form-field select {
  width: 100%;
  height: 36px;
}

.upstream-search-field {
  min-width: 260px;
}

.upstream-preset-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0, rgba(88, 166, 255, 0.12), transparent 30%),
    rgba(15, 20, 29, 0.74);
}

.upstream-preset-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.upstream-preset-head > div:first-child {
  min-width: 0;
}

.upstream-preset-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e8edf4;
  font-size: 13px;
  font-weight: 800;
}

.upstream-preset-head small {
  display: block;
  margin-top: 5px;
  color: #8fa1b6;
  font-size: 12px;
  line-height: 1.45;
}

.upstream-preset-search {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #11151d;
  color: #8fa1b6;
}

.upstream-preset-search input {
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}

.upstream-preset-search input:focus {
  box-shadow: none;
}

.upstream-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upstream-preset-chip {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.upstream-preset-chip:hover {
  border-color: rgba(0, 229, 255, 0.34);
  color: #f8fbff;
  background: rgba(0, 229, 255, 0.1);
}

.upstream-preset-chip.active {
  border-color: rgba(0, 213, 236, 0.75);
  background: linear-gradient(135deg, #0f8df5, #00cfe8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 213, 236, 0.18);
}

.upstream-preset-chip em {
  position: absolute;
  top: -7px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2a900;
  color: #fff;
  font-style: normal;
}

.upstream-preset-summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #8fa1b6;
  font-size: 12px;
}

.upstream-preset-summary p {
  margin: 0;
  min-width: 0;
  flex: 1;
}

.upstream-preset-summary code {
  max-width: min(390px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7f8ff;
}

.upstream-preset-empty {
  flex-basis: 100%;
}

.upstream-bulk-modal textarea[name="items"] {
  min-height: 260px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.admin-edit-modal .form-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #58a6ff;
  cursor: help;
  outline: none;
  vertical-align: middle;
}

:root[data-theme="light"] .admin-help-tip {
  color: #0c7da3;
}

:root[data-theme="light"] .admin-help-tip:hover,
:root[data-theme="light"] .admin-help-tip:focus,
:root[data-theme="light"] .admin-help-tip:focus-within {
  color: #075985;
}

.admin-help-tip .admin-help-pop {
  position: absolute;
  left: -10px;
  top: 22px;
  z-index: 60;
  width: min(315px, calc(100vw - 44px));
  padding: 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fff;
  color: #253044;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  transform: translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

:root[data-theme="light"] .admin-help-tip .admin-help-pop {
  border-color: #cbd5e1;
  color: #1f2937;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.admin-help-tip .admin-help-pop::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #dce6f3;
  border-top: 1px solid #dce6f3;
  background: #fff;
  transform: rotate(45deg);
}

:root[data-theme="light"] .admin-help-tip .admin-help-pop::before {
  border-color: #cbd5e1;
}

.admin-help-tip:hover .admin-help-pop,
.admin-help-tip:focus .admin-help-pop,
.admin-help-tip:focus-within .admin-help-pop {
  opacity: 1;
  transform: translateY(0);
}

.admin-help-pop strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.admin-help-pop p {
  margin: 0;
  color: #536275;
  font-size: 12px;
  line-height: 1.55;
}

.admin-help-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-help-options > span {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f3f7fb;
  color: #5b6878;
  font-size: 12px;
  line-height: 1.5;
}

.admin-help-options b {
  display: block;
  color: #1f6feb;
  font-weight: 700;
}

.model-edit-modal textarea[name="composer_config_json"] {
  min-height: min(32vh, 280px);
}

.work-edit-modal textarea[name="cover_url"] {
  min-height: 72px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
}

.work-edit-modal textarea[name="prompt"] {
  min-height: min(28vh, 240px);
}

.upstream-test-modal {
  width: min(980px, calc(100vw - 56px));
}

.upstream-test-grid {
  grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1fr) minmax(280px, 1.15fr);
}

.upstream-test-summary {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(120px, 0.6fr) minmax(180px, 1.4fr);
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.upstream-test-summary strong {
  color: var(--text);
}

.upstream-test-summary span,
.upstream-test-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upstream-test-result {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101620;
  overflow: hidden;
}

.upstream-test-result.ok {
  border-color: rgba(74, 222, 128, 0.35);
}

.upstream-test-result.failed {
  border-color: rgba(251, 191, 36, 0.42);
}

.upstream-test-result.empty {
  padding: 16px;
  color: var(--muted);
}

.upstream-test-result-head,
.upstream-test-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.upstream-test-meta {
  padding-top: 8px;
}

.upstream-test-result pre {
  margin: 10px 12px 12px;
  padding: 10px;
  max-height: 190px;
  overflow: auto;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #e8edf4;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.5 Consolas, "SFMono-Regular", monospace;
}

.admin-edit-modal textarea {
  width: 100%;
  display: block;
  min-height: 62px;
  border: 1px solid var(--line-strong);
  background: #11151d;
  color: #e8edf4;
  border-radius: 6px;
  outline: none;
  padding: 9px 10px;
  resize: vertical;
}

.model-edit-modal .form-field.full {
  grid-column: 1 / -1;
}

.model-edit-modal .form-field.full textarea {
  min-height: 76px;
}

.agent-template-edit-modal textarea[name="steps_text"] {
  min-height: 132px;
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
}

.agent-template-edit-modal textarea[name="workspace_json"],
.agent-template-edit-modal textarea[name="guide_config_json"] {
  min-height: 150px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.agent-template-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
  gap: 10px;
  margin: 8px 0 12px;
}

.agent-template-preview-card,
.agent-template-preview > div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 8px;
  padding: 12px;
}

.agent-template-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-template-preview-card > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(16,212,232,.14);
  color: var(--cyan);
}

.agent-template-preview-card.tone-gold > span,
.agent-template-preview-card.tone-orange > span {
  background: rgba(250,177,63,.16);
  color: #f6b13d;
}

.agent-template-preview-card.tone-purple > span {
  background: rgba(151,108,255,.16);
  color: #a78bfa;
}

.agent-template-preview-card b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.agent-template-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.agent-template-preview > div {
  display: grid;
  gap: 6px;
}

.agent-template-preview em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.admin-model-cell,
.admin-work-cell,
.model-icon-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-model-cell > span:last-child {
  min-width: 0;
}

.admin-work-cell > span:last-child {
  min-width: 0;
}

.admin-model-cell strong {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-work-cell img,
.admin-work-cover-placeholder {
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #11151d;
}

.admin-work-cell img {
  object-fit: cover;
}

.admin-work-cover-placeholder {
  display: grid;
  place-items: center;
  color: #c6b4ff;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.22), rgba(7, 10, 16, 0.98) 70%);
}

.admin-work-cover-placeholder.gold {
  color: var(--gold);
}

.admin-work-cover-placeholder.danger {
  color: #ff8e9a;
}

.admin-work-cell strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.works-admin-table td {
  font-size: 12px;
}

.status-filter-select {
  width: 118px;
}

.inspiration-admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.inspiration-category-admin {
  min-width: 0;
}

.inspiration-category-search,
.category-picker-search {
  width: 100%;
  margin: 0 0 10px;
}

.category-picker-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.category-picker-search input {
  width: 100%;
  min-width: 0;
}

.category-picker-search .btn {
  height: 32px;
  min-width: 82px;
  padding: 0 12px;
}

.inspiration-category-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 248px);
  overflow: auto;
  padding-right: 4px;
}

.inspiration-category-more,
.category-picker-more {
  width: 100%;
  margin-top: 10px;
}

.inspiration-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.inspiration-category-row.active {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.inspiration-category-row > button {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  text-align: left;
}

.inspiration-category-row > button span {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.09);
}

.inspiration-category-row b,
.inspiration-category-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspiration-category-row b {
  color: #eff6ff;
  font-size: 12px;
}

.inspiration-category-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.inspiration-items-admin {
  min-width: 0;
}

.inspiration-admin-table .brand-sub {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-work-cover,
.admin-work-cover.empty {
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #11151d;
}

.admin-work-cover {
  object-fit: cover;
}

.admin-work-cover.empty {
  display: grid;
  place-items: center;
  color: var(--cyan-2);
}

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

.inspiration-cover-uploader {
  position: sticky;
  top: 0;
  min-height: 340px;
  border: 1px dashed rgba(0, 229, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(0, 229, 255, 0.035);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.inspiration-cover-uploader input {
  display: none;
}

.inspiration-cover-uploader img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.inspiration-cover-uploader span {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--cyan-2);
}

.inspiration-cover-uploader b {
  color: #eff6ff;
}

.inspiration-cover-uploader em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.inspiration-edit-modal textarea[name="prompt"] {
  min-height: 112px;
}

.inspiration-edit-modal textarea[name="params_json"] {
  min-height: 128px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.inspiration-category-picker {
  margin: 10px 0 12px;
}

.category-picker-current {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 229, 255, 0.06);
}

.category-picker-current span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.12);
}

.category-picker-current b {
  min-width: 0;
  overflow: hidden;
  color: #eff6ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-picker-common {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.category-picker-common button,
.category-picker-results button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.category-picker-common button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
}

.category-picker-common button.active,
.category-picker-results button.active {
  border-color: rgba(0, 229, 255, 0.42);
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.1);
}

.category-picker-common em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.category-picker-results {
  display: grid;
  gap: 7px;
  max-height: 176px;
  overflow: auto;
  padding-right: 3px;
}

.category-picker-results button {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}

.category-picker-results span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.1);
}

.category-picker-results b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-picker-results em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.admin-model-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.custom-icon-img {
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.model-icon-editor input[data-input="model-icon-text"] {
  flex: 1;
  min-width: 0;
}

.icon-field {
  grid-column: 1 / -1;
}

.icon-field .model-icon-editor {
  max-width: 560px;
}

.model-template-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 9px 10px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 7px;
  background: rgba(0, 213, 236, 0.045);
  color: #b7c2d1;
  font-size: 12px;
}

.model-template-tools span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 900;
}

.model-template-tools em {
  font-style: normal;
  color: #8f9bac;
}

.model-template-tools .template-btn {
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.model-template-tools .template-btn.active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.22), 0 8px 18px rgba(0, 213, 236, 0.12);
}

.model-template-tools .template-btn.active i,
.model-template-tools .template-btn.active svg {
  color: #fff;
}

.composer-config-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.48);
  padding: 11px;
  margin: 2px 0 10px;
}

.composer-config-card > header,
.tool-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.composer-config-card > header span,
.tool-config-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e6f7ff;
  font-size: 12px;
  font-weight: 900;
}

.composer-config-card > header > div {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-config-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.composer-config-preview span,
.composer-config-preview b {
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #bac5d4;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 10.5px;
}

.composer-config-preview span {
  color: var(--cyan-2);
  border-color: rgba(0, 229, 255, 0.22);
  background: rgba(0, 213, 236, 0.08);
}

.composer-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.composer-config-grid.sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.composer-config-card .form-field {
  margin-bottom: 0;
}

.composer-checks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 36px;
}

.composer-checks > label:first-child {
  width: 100%;
  margin-bottom: -2px;
}

.composer-checks label:not(:first-child) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b8c2cf;
  font-size: 12px;
  font-weight: 700;
}

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

.binding-field-picker > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.binding-field-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.binding-field-input input {
  width: 100%;
}

.binding-field-input span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--cyan-2);
  background: rgba(0, 213, 236, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.binding-field-search {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 0 9px;
  background: rgba(10, 14, 22, 0.54);
  color: #8f9bac;
}

.binding-field-search input {
  width: 100%;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.binding-field-groups {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.binding-field-groups section {
  display: grid;
  gap: 6px;
}

.binding-field-groups header {
  color: #e7f8ff;
  font-size: 11px;
  font-weight: 950;
}

.binding-field-groups section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.binding-field-groups button {
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  justify-items: start;
  padding: 7px 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
}

.binding-field-groups button:hover,
.binding-field-groups button.active {
  border-color: rgba(0, 229, 255, 0.34);
  background: rgba(0, 213, 236, 0.1);
}

.binding-field-groups b {
  color: var(--text);
  font-size: 12px;
}

.binding-field-groups code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cyan-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
}

.binding-field-groups small {
  color: #8f9bac;
  font-size: 10.5px;
  line-height: 1.35;
}

.binding-field-picker.compact {
  gap: 6px;
}

.binding-field-picker.compact .binding-field-groups {
  max-height: 210px;
}

.binding-field-picker.compact .binding-field-groups section > div {
  grid-template-columns: 1fr;
}

.binding-field-picker.compact .binding-field-groups button {
  min-height: 52px;
}

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

.tool-config-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-config-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.45fr) 42px;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.34);
}

.tool-config-field {
  min-width: 0;
}

.tool-config-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 110px 94px;
  gap: 8px;
}

.tool-config-main textarea {
  grid-column: 1 / -1;
}

.tool-config-row textarea {
  min-height: 36px;
  height: 36px;
  padding: 7px 9px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.35;
}

.tool-config-row .btn-danger {
  width: 38px;
  min-width: 38px;
  padding: 0;
  justify-content: center;
}

.admin-composer-preview {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-composer-preview > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-composer-preview > header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e7f8ff;
  font-size: 12px;
  font-weight: 900;
}

.admin-composer-preview > header em {
  color: #8f9bac;
  font-size: 11px;
  font-style: normal;
}

.admin-preview-stage {
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 12%, rgba(0, 229, 255, 0.11), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: 36px 16px 14px;
  overflow: hidden;
}

.admin-preview-shell {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
}

.admin-preview-dock {
  position: absolute;
  left: 14px;
  top: -28px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.admin-preview-dock i,
.admin-preview-dock button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}

.admin-preview-dock button {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.06);
  color: #c9d4e1;
  padding: 0;
}

.admin-preview-composer,
.admin-preview-vidu {
  position: relative;
  min-height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1d2026;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  padding: 10px 42px 10px 12px;
}

.admin-preview-composer.height-compact {
  min-height: 108px;
}

.admin-preview-composer.height-tall {
  min-height: 172px;
}

.admin-preview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-height: 78px;
}

.admin-preview-composer.has-reference .admin-preview-main {
  grid-template-columns: 82px minmax(0, 1fr);
}

.admin-preview-composer.has-secondary .admin-preview-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.admin-preview-composer.has-reference.has-secondary .admin-preview-main {
  grid-template-columns: 82px minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.admin-preview-ref,
.admin-preview-input,
.admin-preview-secondary,
.admin-preview-vidu-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-preview-ref {
  position: relative;
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 7px;
  color: #95a0af;
  text-align: center;
}

.admin-preview-ref div {
  width: 48px;
  height: 50px;
  border-radius: 6px;
  background: #30343c;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 9.5px;
}

.admin-preview-ref p {
  margin: 0;
  max-width: 68px;
  color: #707b89;
  font-size: 9px;
  line-height: 1.25;
}

.admin-preview-ref b {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #262b34;
  display: grid;
  place-items: center;
  color: #c5ceda;
}

.admin-preview-input,
.admin-preview-secondary {
  position: relative;
  padding: 8px 9px;
}

.admin-preview-input header,
.admin-preview-secondary header,
.admin-preview-vidu-grid header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  color: #dce4ef;
  font-size: 10px;
  font-weight: 900;
}

.admin-preview-input header span,
.admin-preview-secondary header span,
.admin-preview-vidu-grid header span {
  color: #8b95a4;
  font-size: 9.5px;
  font-weight: 650;
}

.admin-preview-input p,
.admin-preview-secondary p,
.admin-preview-vidu-grid article > p {
  min-height: calc(var(--preview-lines, 3) * 15px);
  margin: 3px 64px 0 0;
  color: #8e99a8;
  font-size: 10.5px;
  line-height: 1.45;
}

.admin-preview-secondary p {
  margin-right: 0;
}

.admin-preview-input strong,
.admin-preview-vidu > strong {
  position: absolute;
  right: 9px;
  top: -15px;
  height: 19px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  background: #252a34;
  color: #e1faff;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 9.5px;
  font-weight: 900;
}

.admin-preview-side {
  position: absolute;
  right: 11px;
  top: 9px;
  display: grid;
  gap: 4px;
  z-index: 6;
}

.admin-preview-side button {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(38, 43, 52, 0.92);
  color: #c5ceda;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.14);
}

.admin-preview-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  padding-right: 4px;
}

.admin-preview-tools button,
.admin-preview-tools em {
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #cfd8e3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.admin-preview-tools button b {
  color: #f2f7fb;
  font-size: 10px;
}

.admin-preview-tools button.toggle::after {
  content: "";
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.28);
  box-shadow: inset 8px 0 0 rgba(0, 229, 255, 0.92);
}

.admin-preview-send {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  color: #041318;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.32);
}

.admin-preview-vidu {
  min-height: 204px;
}

.admin-preview-vidu-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.05fr;
  gap: 8px;
  min-height: 132px;
}

.admin-preview-vidu-grid article {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  overflow: hidden;
}

.admin-preview-vidu-grid header {
  padding: 0 8px;
}

.admin-preview-vidu-drop {
  margin: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #8c96a5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  font-size: 10px;
}

.admin-preview-vidu-grid article > p {
  margin: 8px;
  min-height: 86px;
}

.model-icon-preview {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.upload-icon-btn {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  height: 36px;
  min-width: 68px;
  padding: 0 13px;
  border-color: rgba(0, 229, 255, 0.32);
  background: rgba(0, 229, 255, 0.08);
  color: #d9fbff;
  font-weight: 700;
  line-height: 36px;
}

.upload-icon-btn i,
.upload-icon-btn svg {
  flex: 0 0 auto;
}

.upload-icon-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  padding: 0;
}

.form-field.full {
  grid-column: 1 / -1;
}

.check-line {
  display: flex;
  gap: 18px;
  margin: 8px 0 14px;
  color: #b6bfcb;
}

.check-line label,
.route-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-table-wrap {
  overflow: auto;
  max-height: 420px;
}

.model-table-wrap {
  max-height: calc(100vh - 170px);
}

.overview-log-wrap {
  max-height: 360px;
}

.log-channel-select {
  width: 132px;
}

.log-admin-search {
  width: min(280px, 30vw);
}

.log-table th,
.log-table td {
  font-size: 12px;
}

.records-modal {
  width: min(980px, calc(100vw - 46px));
}

.account-feature-layer {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.account-source-modal {
  width: min(940px, calc(100vw - 70px));
  min-height: 520px;
  max-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #17191f;
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.56);
}

.api-key-modal {
  width: min(930px, calc(100vw - 56px));
  min-height: 648px;
}

.api-endpoint-panel {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 213, 236, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.api-endpoint-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.api-endpoint-panel__head strong {
  display: block;
  color: #f7fafc;
  font-size: 13px;
}

.api-endpoint-panel__head span {
  display: block;
  margin-top: 4px;
  color: #9aa6b6;
  font-size: 12px;
  line-height: 1.45;
}

.api-endpoint-panel__head code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: #7ee7f6;
  font-family: Consolas, monospace;
}

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

.api-endpoint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.api-endpoint-item__main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-endpoint-item__main code {
  min-width: 0;
  flex: 1;
  color: #c7d0dc;
  font-family: Consolas, monospace;
  font-size: 12px;
  white-space: normal;
  word-break: break-all;
}

.api-endpoint-note {
  color: #8e98a8;
  font-size: 12px;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.api-endpoint-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.api-endpoint-test-modal {
  width: min(760px, calc(100vw - 56px));
}

.account-source-head {
  min-height: 62px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-source-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.account-source-head h2 {
  margin: 0;
  color: #f7fafc;
  font-size: 16px;
}

.account-source-head p {
  margin: 3px 0 0;
  color: #8e98a8;
  font-size: 12px;
  line-height: 1.4;
}

.account-modal-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  flex: 0 0 auto;
}

.account-modal-icon.gold {
  color: #ffb21b;
  background: rgba(255, 178, 27, 0.14);
}

.account-modal-icon.green {
  color: #13d99a;
  background: rgba(19, 217, 154, 0.14);
}

.account-modal-icon.blue {
  color: #4b93ff;
  background: rgba(59, 130, 246, 0.16);
}

.account-primary-mini {
  height: 32px;
  border: 1px solid rgba(0, 213, 236, 0.46);
  border-radius: 6px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #02e7ff;
  background: rgba(0, 213, 236, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.account-primary-mini:disabled {
  opacity: 0.45;
}

.api-key-create-row {
  display: grid;
  grid-template-columns: 130px 150px 88px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px 10px;
  background: linear-gradient(90deg, rgba(0, 213, 236, 0.06), rgba(255, 196, 0, 0.04));
  border-bottom: 1px solid rgba(0, 213, 236, 0.18);
}

.api-key-create-row label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #8e98a8;
  font-size: 11px;
  font-weight: 800;
}

.api-key-create-row input,
.api-key-create-row select {
  height: 30px;
  border: 1px solid #24303b;
  border-radius: 5px;
  background: #10151b;
  color: #eef6ff;
  padding: 0 8px;
}

.api-key-create-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.api-key-create-actions .btn {
  min-height: 30px;
  height: 30px;
}

.api-key-help {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 196, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 196, 0, 0.1), rgba(255, 77, 94, 0.04));
  color: #ffcf66;
  font-size: 12px;
}

.api-key-help b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
}

.api-key-help p {
  margin: 8px 0 0;
  color: #a9b4c4;
}

.api-key-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 0;
}

.api-key-table {
  width: 100%;
}

.api-key-table th,
.api-key-table td {
  height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.api-key-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.012);
}

.api-key-table code {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  color: #b7c1d0;
}

.api-key-admin-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
}

.api-key-admin-value {
  flex: 1;
  min-width: 0;
  display: block;
  white-space: normal;
  word-break: break-all;
  line-height: 1.45;
}

.api-key-admin-line .copy-mini {
  flex: 0 0 auto;
  margin-left: 0;
  margin-top: 1px;
}

.api-key-editing-row input,
.api-key-editing-row select {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #11151c;
  color: #eef6ff;
  padding: 0 9px;
  outline: none;
  font-size: 12px;
}

.api-key-editing-row select {
  min-width: 112px;
}

.copy-mini,
.icon-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a8b2c2;
  background: rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.copy-mini {
  margin-left: 6px;
}

.copy-mini.copied,
.icon-btn.success {
  color: #02f0ba;
  background: rgba(0, 217, 166, 0.16);
}

.icon-btn.danger:hover {
  color: #ff7180;
}

.icon-btn:disabled {
  opacity: 0.4;
}

.policy-pill {
  min-height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.policy-pill.gold {
  color: #ffc400;
  background: rgba(255, 196, 0, 0.12);
}

.policy-pill.blue {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
}

.policy-pill.green {
  color: #18e3a7;
  background: rgba(16, 185, 129, 0.12);
}

.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
}

.status-dot.green {
  background: #19e3a2;
  box-shadow: 0 0 10px rgba(25, 227, 162, 0.55);
}

.status-dot.red {
  background: #ef4444;
}

.bolt-text {
  color: #f5f7fb;
  font-weight: 900;
}

.api-key-secret {
  margin: 12px 16px;
}

.account-source-foot {
  min-height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #8a94a3;
  font-size: 12px;
}

.account-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #737b88;
  text-align: center;
}

.account-empty span {
  color: #3a3f49;
}

.account-empty strong {
  color: #8e98a8;
  font-size: 14px;
}

.account-empty p {
  margin: 0;
  color: #5f6773;
  font-size: 12px;
}

.account-confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(5px);
}

.account-confirm-dialog {
  width: min(412px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid rgba(0, 213, 236, 0.16);
  border-radius: 12px;
  background: #20242c;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
}

.account-confirm-head,
.account-confirm-foot {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid rgba(0, 213, 236, 0.12);
}

.account-confirm-head strong {
  color: #64edff;
  font-size: 16px;
}

.account-confirm-head button {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  color: #0fe9ff;
  background: rgba(0, 213, 236, 0.16);
}

.account-confirm-body {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: #b4bdcc;
  text-align: center;
  font-size: 13px;
}

.account-confirm-foot {
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 0;
}

.account-confirm-foot .btn {
  width: 178px;
}

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

.consumption-modal {
  width: min(946px, calc(100vw - 94px));
  min-height: min(804px, calc(100vh - 74px));
}

.payment-record-modal {
  width: min(456px, calc(100vw - 70px));
  min-height: 326px;
}

.invoice-source-modal {
  width: min(1136px, calc(100vw - 96px));
  min-height: 382px;
}

.feedback-source-modal {
  width: min(474px, calc(100vw - 56px));
  min-height: 682px;
  border-top-color: rgba(255, 196, 0, 0.72);
}

.consumption-alert {
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(255, 196, 0, 0.18);
  background: rgba(255, 152, 0, 0.13);
  color: #ffca45;
  font-size: 11px;
  font-weight: 900;
}

.consumption-stats,
.invoice-stats {
  display: grid;
  gap: 10px;
  padding: 12px 26px;
}

.consumption-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-stat {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.028);
  padding: 12px;
}

.account-stat span {
  color: #77818f;
  font-size: 11px;
  font-weight: 900;
}

.account-stat strong {
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 950;
}

.account-stat.green strong {
  color: #12df9e;
}

.account-stat.blue {
  border-color: rgba(59, 130, 246, 0.46);
  background: rgba(59, 130, 246, 0.12);
}

.account-stat.blue strong {
  color: #3b82f6;
}

.consumption-toolbar,
.payment-toolbar {
  padding: 10px 26px 0;
  margin: 0;
}

.payment-toolbar {
  padding-bottom: 10px;
}

.ledger-filter-stack {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.consumption-periods,
.consumption-selects {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.consumption-periods button {
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #a5adba;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.consumption-periods button.active {
  border-color: rgba(0, 213, 172, 0.42);
  background: rgba(0, 213, 172, 0.14);
  color: #18e3a7;
}

.consumption-selects select {
  width: 124px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: #171b23;
  color: #bfc8d6;
  padding: 0 8px;
  font-size: 11px;
}

.consumption-toolbar .btn {
  align-self: end;
  height: 26px;
  min-height: 26px;
  border-color: rgba(59, 130, 246, 0.46);
  background: rgba(59, 130, 246, 0.12);
  color: #55a5ff;
  font-size: 11px;
}

.account-source-modal .ledger-table-wrap {
  margin-top: 10px;
  max-height: min(380px, calc(100vh - 372px));
}

.consumption-modal .ledger-table-wrap,
.payment-record-modal .ledger-table-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.payment-record-modal .account-empty {
  min-height: 208px;
}

.invoice-create-panel {
  margin: 12px 24px 0;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.055);
  padding: 12px;
}

.invoice-create-panel .form-field label,
.feedback-source-modal .form-field label {
  color: #d7dde8;
}

.invoice-create-panel input,
.invoice-create-panel select,
.invoice-create-panel textarea,
.feedback-source-modal input,
.feedback-source-modal select,
.feedback-source-modal textarea {
  width: 100%;
  border: 1px solid rgba(255, 196, 0, 0.22);
  border-radius: 7px;
  background: #13151b;
  color: #eef3fb;
  outline: none;
}

.invoice-create-panel textarea,
.feedback-source-modal textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}

.invoice-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.invoice-list-panel {
  min-height: 248px;
  display: grid;
  padding: 14px 24px 22px;
}

.invoice-list-panel .account-list,
.feedback-body .account-list {
  max-height: none;
  padding: 0;
}

.invoice-list {
  gap: 12px;
}

.invoice-row {
  min-height: 118px;
  grid-template-columns: minmax(260px, 1.35fr) minmax(138px, 0.55fr) minmax(180px, 0.7fr) minmax(170px, auto);
  gap: 14px;
  padding: 16px;
  border-color: rgba(59, 130, 246, 0.18);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.035);
}

.invoice-row-main,
.invoice-row-amount,
.invoice-row-status,
.invoice-row-actions {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: center;
}

.invoice-row-main strong {
  color: #f4f8ff;
  font-size: 14px;
}

.invoice-row-main p {
  margin: 0;
  color: #8d98aa;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.invoice-type-chip {
  width: max-content;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: #67b7ff;
  background: rgba(59, 130, 246, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.invoice-row-amount span,
.invoice-row-actions time {
  color: #7b8798;
  font-size: 11px;
  font-weight: 800;
}

.invoice-row-amount strong {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 950;
}

.invoice-row-status code {
  color: #7dd3fc;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-row-status em {
  color: #7d8795;
  font-size: 12px;
  font-style: normal;
}

.invoice-row-actions {
  justify-items: end;
}

.invoice-download {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(52, 211, 153, 0.32);
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  font-size: 11px;
}

.invoice-source-modal .account-empty {
  min-height: 208px;
}

.feedback-hero {
  position: relative;
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 196, 0, 0.16);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 196, 0, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(255, 196, 0, 0.03), transparent);
}

.feedback-hero .account-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255, 196, 0, 0.36);
  box-shadow: 0 0 34px rgba(255, 196, 0, 0.16);
}

.feedback-hero h2 {
  margin: 0;
  color: #ffc400;
  font-size: 24px;
}

.feedback-hero .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #cbd5e1;
  background: rgba(255, 196, 0, 0.14);
}

.feedback-tabs {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 30px;
}

.feedback-tabs button {
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9aa4b2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 900;
}

.feedback-tabs button.active {
  color: #ffc400;
  background: rgba(255, 196, 0, 0.16);
  box-shadow: 0 8px 24px rgba(255, 196, 0, 0.1);
}

.feedback-body {
  min-height: 454px;
  flex: 1;
  overflow: auto;
  padding: 6px 30px 16px;
}

.feedback-warning {
  border: 1px solid rgba(255, 196, 0, 0.26);
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.065);
  color: #b7bfcd;
  padding: 10px 12px;
  line-height: 1.55;
  font-size: 12px;
}

.feedback-warning b,
.feedback-warning button {
  color: #ffc400;
}

.feedback-warning button {
  border: 0;
  background: transparent;
  font-weight: 900;
  padding: 0;
}

.feedback-source-modal .form-field {
  position: relative;
  margin-top: 14px;
}

.feedback-source-modal .form-field small {
  position: absolute;
  right: 0;
  bottom: -18px;
  color: #697382;
  font-size: 10px;
}

.feedback-source-modal input {
  height: 36px;
}

.feedback-source-modal textarea {
  min-height: 116px;
}

.feedback-compact-grid {
  grid-template-columns: 1fr 1fr;
}

.feedback-upload-box {
  width: 130px;
  height: 130px;
  margin-top: 26px;
  border: 1px dashed rgba(255, 196, 0, 0.42);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #8e97a6;
  background: rgba(255, 196, 0, 0.045);
  font-size: 12px;
}

.feedback-foot {
  min-height: 88px;
  border-top: 1px solid rgba(255, 196, 0, 0.16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 30px 26px;
}

.feedback-foot .btn {
  height: 42px;
}

.feedback-foot .btn-primary {
  color: #171100;
  background: linear-gradient(135deg, #ffc400, #9f7400);
  border-color: rgba(255, 196, 0, 0.42);
  box-shadow: 0 12px 28px rgba(255, 196, 0, 0.18);
}

.support-layer {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.support-modal {
  width: 302px;
  overflow: hidden;
  background: #1b1f27;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f6f8fb;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
}

.support-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.support-head h2,
.agreement-head h2 {
  color: #f8fafc;
}

.support-head p,
.agreement-head p {
  color: #9aa4b2;
}

.support-modal .modal-close {
  color: #c1cad7;
  background: transparent;
}

.support-modal .service-card,
.support-modal .contact-row {
  border-color: rgba(255, 255, 255, 0.09);
  background: #222733;
}

.support-modal .service-avatar {
  background: #2a303d;
  color: #aeb8c7;
}

.support-modal .service-card strong,
.support-modal .contact-row strong {
  color: #f8fafc;
}

.support-modal .contact-row em {
  color: #8b95a5;
}

.support-modal .contact-row {
  color: #39bfff;
}

.support-modal .copy-btn {
  color: #b2bbc8;
}

.support-modal .support-foot {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.support-modal .btn {
  background: #1f2430;
  color: #eef4ff;
  border-color: rgba(255, 255, 255, 0.12);
}

.support-modal .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #09c4d8, #0aa9c4);
  border-color: rgba(0, 213, 236, 0.42);
}

.support-modal .qr-card p {
  color: #808a9a;
}

.partner-layer {
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 213, 236, 0.18), transparent 22%),
    radial-gradient(circle at 84% 6%, rgba(124, 58, 237, 0.18), transparent 22%),
    rgba(0, 0, 0, 0.86);
}

.partner-source-modal {
  position: relative;
  width: min(1398px, calc(100vw - 72px));
  min-height: min(802px, calc(100vh - 60px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 14px;
  border-color: rgba(0, 213, 236, 0.26);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 196, 0, 0.11), transparent 24%),
    linear-gradient(rgba(0, 213, 236, 0.032) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(0, 213, 236, 0.032) 1px, transparent 1px) 0 0 / 18px 18px,
    #05070b;
  box-shadow:
    inset 0 0 0 1px rgba(0, 213, 236, 0.16),
    0 34px 120px rgba(0, 0, 0, 0.7);
}

.partner-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d5edff;
  background: rgba(255, 255, 255, 0.05);
}

.partner-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.partner-stars span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #12e7ff;
  box-shadow: 0 0 18px #12e7ff;
  animation: partnerTwinkle 2.6s ease-in-out infinite;
}

.partner-stars span:nth-child(1) { left: 12%; top: 8%; }
.partner-stars span:nth-child(2) { left: 43%; top: 16%; animation-delay: 0.4s; background: #ffc400; box-shadow: 0 0 18px #ffc400; }
.partner-stars span:nth-child(3) { right: 11%; top: 20%; animation-delay: 0.9s; }
.partner-stars span:nth-child(4) { right: 24%; bottom: 22%; animation-delay: 1.3s; background: #9d6bff; box-shadow: 0 0 18px #9d6bff; }

@keyframes partnerTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.35); }
}

.partner-title {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--gold);
  text-align: center;
}

.partner-title strong {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(255, 196, 0, 0.28);
}

.partner-title p {
  flex-basis: 100%;
  margin: 28px 0 0;
  color: #9fb7c8;
  font-size: 14px;
  letter-spacing: 0;
}

.partner-body {
  position: relative;
  z-index: 1;
  padding: 0 68px 28px;
  max-height: none;
  overflow: visible;
}

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

.partner-card {
  position: relative;
  min-height: 176px;
  border: 1px solid rgba(0, 213, 236, 0.13);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 213, 236, 0.08) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(0, 213, 236, 0.06) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(1, 10, 19, 0.72);
  padding: 24px 22px;
  overflow: hidden;
}

.partner-card:hover {
  border-color: rgba(255, 196, 0, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.22), 0 20px 60px rgba(0, 213, 236, 0.1);
  transform: translateY(-2px);
}

.partner-card .modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.partner-card h3 {
  margin: 22px 0 8px;
  color: #f8fbff;
  font-size: 15px;
}

.partner-card .stage-copy {
  margin: 0;
  color: #93a5b8;
  font-size: 12px;
  line-height: 1.7;
}

.partner-card .badge {
  min-height: 28px;
  border-color: rgba(0, 213, 236, 0.2);
  background: rgba(0, 213, 236, 0.12);
  color: #27e6ff;
}

.partner-foot {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 104px;
  border-top: 1px solid rgba(0, 213, 236, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(10px);
}

.partner-foot .btn {
  min-width: 124px;
  height: 48px;
}

.partner-foot .btn-primary {
  min-width: 280px;
  background: linear-gradient(135deg, #16d5f2, #a855f7);
  border-color: rgba(0, 213, 236, 0.35);
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 12px;
}

.ledger-table-wrap {
  max-height: min(520px, calc(100vh - 260px));
}

.ledger-table th,
.ledger-table td {
  font-size: 12px;
  white-space: nowrap;
}

.ledger-amount {
  font-weight: 900;
  color: #36d399;
}

.ledger-amount.out {
  color: #ffb020;
}

.ledger-remark {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: #aab5c5;
}

.log-table td {
  white-space: nowrap;
}

.log-endpoint {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-transport-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.log-error {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: #aab5c5;
}

.setting-value-preview {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: #c5cfdd;
  white-space: nowrap;
}

.setting-format-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 213, 236, 0.12);
  background: rgba(0, 213, 236, 0.06);
  color: #d7e2ef;
}

.setting-format-hint strong {
  display: block;
  margin-bottom: 6px;
  color: #f3f8ff;
}

.setting-format-hint p {
  margin: 0;
  color: #b7c2d1;
  line-height: 1.55;
}

.setting-format-hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: #7ee7f6;
}

.permission-preview,
.permission-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.permission-grid {
  align-items: stretch;
  margin-top: 14px;
}

.permission-item {
  width: calc(33.333% - 4px);
  min-width: 220px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  color: #dce6f3;
}

.permission-item input {
  width: 14px;
  height: 14px;
  accent-color: var(--cyan);
}

.permission-item strong,
.permission-item em {
  display: block;
  font-style: normal;
}

.permission-item em {
  margin-top: 2px;
  color: #7d8796;
  font-size: 11px;
}

.compact-admin-form {
  margin-bottom: 16px;
}

.compact-admin-form .admin-card-head {
  margin-bottom: 12px;
}

.user-form-grid {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 12px;
}

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

.admin-table .active-row {
  background: rgba(0, 229, 255, 0.06);
}

.admin-pager {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  color: #9da8b8;
  font-size: 12px;
}

.pager-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pager-summary b {
  color: var(--cyan-2);
}

.pager-summary span {
  color: #737f90;
}

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

.pager-btn {
  min-width: 34px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #11151d;
  color: #d5deeb;
  padding: 0 10px;
  font-size: 12px;
}

.pager-btn.page-num {
  padding: 0;
}

.pager-btn.active {
  color: #fff;
  background: var(--cyan);
  border-color: var(--cyan);
}

.pager-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pager-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pager-size select {
  width: 70px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #11151d;
  color: #e8edf4;
  padding: 0 8px;
}

.route-form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr) minmax(118px, 0.72fr) 82px auto 124px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.route-form label {
  justify-content: center;
  min-width: 62px;
  white-space: nowrap;
}

.route-form .btn {
  width: 100%;
  padding-inline: 10px;
}

.doc-sidebar {
  border-right: 1px solid var(--line);
  background: #111821;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-brand {
  height: 72px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.doc-search {
  padding: 10px;
}

.doc-search input {
  height: 34px;
  padding: 0 12px;
}

.doc-cats {
  display: flex;
  gap: 8px;
  padding: 0 10px 10px;
  flex-wrap: wrap;
}

.doc-list {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 10px 16px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.doc-provider {
  margin: 14px 6px 8px;
  color: #9aa5b4;
  font-size: 12px;
  font-weight: 900;
}

.doc-model {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
  color: inherit;
  text-decoration: none;
}

.doc-model.active {
  background: #1a2a3c;
  outline: 1px solid rgba(58, 145, 255, 0.45);
}

.doc-main {
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.doc-top {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(9, 13, 19, 0.85);
  backdrop-filter: blur(12px);
  z-index: 7;
}

.base-url {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: #9db8ff;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.doc-content {
  position: relative;
  z-index: 1;
  width: min(1020px, calc(100vw - 430px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.crumb {
  color: #87909f;
  margin-bottom: 18px;
}

.doc-title {
  font-size: 32px;
  margin: 0 0 10px;
}

.doc-copy-btn {
  height: 28px;
  min-height: 0;
  padding: 0 11px;
  border-radius: 8px;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  gap: 5px;
}

.doc-copy-btn svg {
  width: 13px;
  height: 13px;
}

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

.doc-steps article {
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(21, 214, 140, 0.2);
  border-radius: 10px;
  background: rgba(14, 112, 85, 0.08);
  padding: 14px;
  color: #c5f5e4;
}

.doc-steps b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(21, 214, 140, 0.18);
  color: #35efac;
}

.doc-steps span {
  font-size: 13px;
  line-height: 1.55;
}

.doc-platform-tabs,
.doc-os-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.doc-platform-tabs button,
.doc-os-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #9aa5b4;
  cursor: pointer;
  font-weight: 760;
  font-size: 13px;
  white-space: nowrap;
  padding: 0 2px;
}

.doc-platform-tabs .active,
.doc-os-tabs .active {
  color: var(--cyan-2);
  border-bottom-color: currentColor;
}

.doc-platform-tabs button:hover,
.doc-os-tabs button:hover {
  color: #dbeafe;
}

.doc-tool-intro {
  margin-top: 14px;
}

.doc-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 8px;
  color: #ffb020;
  font-size: 12px;
}

.doc-code-card {
  position: relative;
  z-index: 2;
  margin: 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #0d1118;
  color: #dce7f7;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.doc-code-card header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: #202938;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #aab5c4;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.doc-code-card header button {
  height: 28px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e8edf6;
  cursor: pointer;
}

.doc-code-card pre {
  margin: 0;
  padding: 18px 16px;
  overflow: auto;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

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

.doc-endpoint-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.doc-endpoint-list div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(180px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: #9aa5b4;
}

.doc-endpoint-list code {
  color: #dce7f7;
  font-family: Consolas, monospace;
}

.doc-endpoint-list em {
  color: #7d8796;
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.hint-box,
.auth-box,
.code-box {
  border: 1px solid rgba(21, 214, 140, 0.32);
  background: rgba(14, 112, 85, 0.12);
  border-radius: 8px;
  padding: 16px;
  margin: 18px 0;
  color: #c5f5e4;
}

.endpoint {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #7d8796;
  font-family: Consolas, monospace;
}

.method {
  background: #4085ff;
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: inherit;
}

.code-box {
  background: #0d1118;
  border-color: var(--line);
  color: #dce7f7;
  overflow: auto;
}

.code-box pre {
  margin: 0;
  font-family: Consolas, monospace;
  line-height: 1.7;
  font-size: 13px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.light-layer {
  background: rgba(32, 42, 56, 0.46);
  backdrop-filter: blur(8px);
}

.agreement-layer {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #1a1d24;
  border: 1px solid #323743;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.light-layer .modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #101828;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.modal.wide {
  width: min(1400px, calc(100vw - 64px));
}

.modal.upstream-test-modal {
  width: min(1120px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  overflow-x: hidden;
}

.modal.upstream-test-modal .upstream-test-grid {
  grid-template-columns: minmax(200px, 0.7fr) minmax(280px, 0.95fr) minmax(360px, 1.35fr);
}

.modal-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #b7bec9;
}

.light-layer .modal-close {
  background: transparent;
  color: #475467;
}

.modal-body {
  padding: 20px;
}

.login-modal {
  width: 390px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.login-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.login-body {
  padding: 30px 28px 20px;
}

.login-modal .brand-mark {
  margin: 0 auto 14px;
}

.login-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

.login-title {
  font-size: 22px;
  margin: 0 0 8px;
  color: #101828;
  font-weight: 950;
}

.login-sub {
  margin: 0 0 16px;
  color: #667085;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #d0d5dd;
  margin-bottom: 14px;
}

.login-tabs button {
  height: 40px;
  border: 0;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

.login-tabs .active {
  color: var(--cyan-2);
  border-bottom: 2px solid var(--cyan-2);
}

.form-field {
  text-align: left;
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal input,
.modal select {
  height: 36px;
  padding: 0 10px;
}

.light-layer .modal input,
.light-layer .modal select {
  background: #fff;
  border: 1px solid #d0d5dd;
  color: #101828;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 8px;
}

.code-btn {
  height: 36px;
  padding: 0 10px;
  color: #0895b2;
  font-weight: 800;
}

.captcha-img {
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #211b33;
  object-fit: cover;
}

:root[data-theme="light"] .captcha-img {
  background: #fff;
  border-color: #cbd5e1;
}

.human-verify-field {
  margin-bottom: 12px;
}

.human-verify {
  --human-progress: 0%;
  position: relative;
  user-select: none;
  touch-action: none;
}

.human-track {
  position: relative;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(0, 213, 236, 0.3);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(0, 213, 236, 0.08), rgba(139, 92, 246, 0.08)),
    rgba(14, 19, 28, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  cursor: grab;
}

.human-verify.dragging .human-track {
  cursor: grabbing;
}

.human-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 213, 236, 0.55), rgba(139, 92, 246, 0.52), rgba(255, 196, 0, 0.42));
  transition: width 0.12s ease;
}

.human-track-text {
  position: absolute;
  inset: 0 46px;
  display: grid;
  place-items: center;
  color: #c9d6e7;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.human-handle {
  position: absolute;
  top: 3px;
  left: calc(3px + (100% - 38px) * var(--human-progress, 0));
  z-index: 2;
  width: 32px;
  height: 30px;
  min-height: 30px;
  transform: none;
  border: 1px solid rgba(0, 213, 236, 0.48);
  border-radius: 6px;
  background: linear-gradient(135deg, #0fd5ec, #8b5cf6);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 8px 18px rgba(0, 213, 236, 0.25);
  cursor: grab;
  transition: left 0.12s ease, transform 0.12s ease;
}

.human-verify.dragging .human-track-fill,
.human-verify.dragging .human-handle {
  transition: none;
}

.human-verify.verified .human-track {
  border-color: rgba(0, 213, 166, 0.46);
}

.human-verify.verified .human-track-text {
  color: #66f4c7;
}

.human-verify.verified .human-handle {
  background: linear-gradient(135deg, #00d9a6, #0fd5ec);
  border-color: rgba(0, 217, 166, 0.58);
}

.strict-verify-field,
.human-captcha-field {
  margin-bottom: 12px;
}

.strict-verify {
  display: grid;
  gap: 8px;
}

.strict-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 336 / 176;
  min-height: 116px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 213, 236, 0.28);
  border-radius: 8px;
  background: rgba(14, 19, 28, 0.78);
  cursor: crosshair;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.strict-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strict-click-dot {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, #0fd5ec, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.strict-start {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(0, 213, 236, 0.32);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(0, 213, 236, 0.15), rgba(139, 92, 246, 0.18)),
    rgba(14, 19, 28, 0.74);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.strict-status {
  min-height: 18px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.strict-verify.verified .strict-status {
  color: #66f4c7;
}

:root[data-theme="light"] .human-track {
  border-color: rgba(79, 70, 229, 0.24);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.08)),
    #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.025);
}

:root[data-theme="light"] .human-track-fill {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.28), rgba(14, 165, 233, 0.32), rgba(245, 158, 11, 0.22));
}

:root[data-theme="light"] .human-track-text {
  color: #475569;
}

:root[data-theme="light"] .human-handle {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  border-color: rgba(79, 70, 229, 0.36);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

:root[data-theme="light"] .human-verify.verified .human-track-text {
  color: #047857;
}

:root[data-theme="light"] .strict-canvas {
  border-color: rgba(79, 70, 229, 0.24);
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.025);
}

:root[data-theme="light"] .strict-click-dot {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

:root[data-theme="light"] .strict-start {
  border-color: rgba(79, 70, 229, 0.24);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.08)),
    #f8fafc;
  color: #334155;
}

:root[data-theme="light"] .strict-status {
  color: #64748b;
}

:root[data-theme="light"] .strict-verify.verified .strict-status {
  color: #047857;
}

.login-submit {
  width: 100%;
  height: 40px;
  margin-top: 4px;
}

.login-body .key-empty.compact {
  margin-top: 12px;
}

.login-code-notice {
  margin: 8px 0 0;
  border: 1px solid rgba(0, 188, 212, 0.22);
  border-radius: 7px;
  background: rgba(0, 188, 212, 0.08);
  color: #0895b2;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #667085;
  font-size: 12px;
  margin: 10px 0 16px;
}

.login-agree {
  flex-wrap: wrap;
  gap: 4px;
}

.login-agree input {
  width: 14px;
  height: 14px;
}

.login-agree button,
.login-agree a {
  border: 0;
  background: transparent;
  color: #0895b2;
  padding: 0;
  font-weight: 800;
  text-decoration: none;
}

.third-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: #98a2b3;
  font-size: 12px;
  margin: 14px 0;
}

.third-line span {
  height: 1px;
  background: #d0d5dd;
}

.third-party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.third-btn {
  color: #344054;
  background: #f8fafc;
  border-color: #d0d5dd;
  font-weight: 700;
}

.setting-switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0 14px;
  background: rgba(15, 23, 42, 0.24);
  color: #e5edf7;
}

:root[data-theme="light"] .setting-switch-row {
  background: #f8fafc;
  border-color: #d7dee8;
  color: #172033;
}

.setting-switch-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.setting-switch-row span {
  display: grid;
  gap: 3px;
}

.setting-switch-row b {
  font-size: 13px;
}

.setting-switch-row em {
  font-size: 12px;
  color: #8d9aaa;
  font-style: normal;
}

:root[data-theme="light"] .setting-switch-row em {
  color: #64748b;
}

.support-modal {
  width: 302px;
  overflow: hidden;
}

.support-head,
.agreement-head {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px 1fr 30px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eaecf0;
}

.support-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--cyan-2);
  background: rgba(0, 178, 214, 0.12);
}

.support-head h2,
.agreement-head h2 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #101828;
}

.support-head p,
.agreement-head p {
  margin: 0;
  color: #667085;
  font-size: 11px;
}

.support-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.service-card,
.contact-row {
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  border-radius: 6px;
}

.service-card {
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.service-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef2f6;
  color: #475467;
}

.service-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.service-card strong,
.contact-row strong {
  display: block;
  color: #101828;
  font-size: 13px;
}

.service-status {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-top: 5px;
  border-radius: 4px;
  padding: 0 8px;
  color: #027a48;
  background: #d1fadf;
  font-size: 10px;
  font-weight: 800;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.qr-card p {
  margin: 0;
  color: #98a2b3;
  font-size: 11px;
}

.qr-code {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
}

.qr-code span {
  border-radius: 2px;
  background: #eaf5ff;
}

.qr-code span.on {
  background: #2e90fa;
}

.support-qr-image {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #12b5cb;
  color: #fff;
  transform: translate(-50%, -50%);
}

.contact-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr 26px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  color: #2e90fa;
}

.contact-row em {
  display: block;
  color: #667085;
  font-style: normal;
  font-size: 11px;
}

.copy-btn {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #667085;
  display: grid;
  place-items: center;
}

.support-foot {
  border-top: 1px solid #eaecf0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 16px 14px;
}

.support-foot .btn {
  height: 32px;
}

.agreement-modal {
  width: min(554px, calc(100vw - 38px));
  height: min(854px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #171a21;
  color: #d0d5dd;
  border-color: #303642;
  overflow: hidden;
}

.agreement-modal .agreement-head {
  border-bottom-color: #2b303b;
}

.agreement-modal .agreement-head h2 {
  color: #f8fafc;
}

.agreement-modal .agreement-head p {
  color: #98a2b3;
}

.agreement-body {
  padding: 20px 22px 10px;
  overflow: auto;
  line-height: 1.85;
}

.agreement-body h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 30px;
}

.agreement-body h1::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.agreement-body h2 {
  border-left: 4px solid var(--cyan);
  padding-left: 14px;
  margin: 26px 0 12px;
  color: #f2f4f7;
  font-size: 22px;
}

.agreement-body p {
  margin: 0 0 12px;
  color: #c7d0dd;
  font-size: 15px;
}

.agreement-foot {
  border-top: 1px solid #2b303b;
  padding: 10px 18px 16px;
}

.read-tip {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--cyan-2);
  background: rgba(0, 213, 236, 0.1);
  border: 1px solid rgba(0, 213, 236, 0.25);
  font-size: 12px;
  margin-bottom: 8px;
}

.agreement-foot .btn {
  width: 100%;
}

.agreement-foot .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.recharge-layer,
.payment-layer {
  background: rgba(20, 29, 42, 0.48);
  backdrop-filter: blur(8px);
}

.recharge-modal {
  width: min(630px, calc(100vw - 40px));
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f172a;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.recharge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 10px;
}

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

.recharge-head h2 {
  font-size: 15px;
  font-weight: 900;
}

.recharge-head p {
  color: #667085;
  font-size: 11px;
  margin-top: 4px;
}

.pay-mode-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pay-mode-badge.mock {
  color: #a16207;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.pay-mode-badge.in-modal {
  position: absolute;
  left: 16px;
  top: 16px;
}

.recharge-modal .modal-body {
  padding: 0 20px;
}

.recharge-tabs {
  display: flex;
  gap: 20px;
  height: 42px;
  border-bottom: 1px solid #d0d5dd;
  margin-bottom: 16px;
}

.recharge-tabs button {
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  padding: 0 4px;
}

.recharge-tabs button.active {
  color: #059669;
  border-bottom-color: #10b981;
}

.recharge-label {
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  margin: 10px 0 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.amount-card {
  min-height: 94px;
  border: 1px solid var(--line);
  background: #20242d;
  color: #fff;
  border-radius: 6px;
  text-align: left;
  padding: 12px;
}

.amount-card.active {
  border-color: rgba(0, 229, 255, 0.55);
}

.amount-card strong {
  display: block;
  font-size: 24px;
  margin-top: 14px;
}

.recharge-amount-grid {
  gap: 16px 10px;
}

.recharge-amount-card {
  position: relative;
  min-height: 94px;
  background: #fff;
  color: #0f172a;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 12px 8px 8px;
}

.recharge-amount-card.active {
  background: #e8f8f4;
  border-color: #10b981;
  box-shadow: inset 0 0 0 1px #10b981;
}

.amount-bolt {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #64748b;
  background: #e2e8f0;
}

.recharge-amount-card.active .amount-bolt {
  background: #059669;
  color: #fff;
}

.recharge-amount-card strong {
  margin-top: 22px;
  text-align: center;
  font-size: 22px;
  line-height: 1;
}

.recharge-amount-card strong small {
  font-size: 12px;
  color: #64748b;
  margin-right: 2px;
}

.recharge-amount-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 7px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 10px;
}

.recharge-amount-card b {
  color: #0f172a;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.pay-option {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #20242d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.recharge-pay-row {
  margin-top: 0;
}

.recharge-pay-option {
  background: #fff;
  color: #0f172a;
  border-color: #d0d5dd;
  justify-content: flex-start;
  gap: 10px;
  height: 48px;
}

.recharge-pay-option.active {
  background: #e8f8f4;
  border-color: #10b981;
}

.recharge-pay-option:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  background: #f1f5f9;
}

.recharge-pay-option b {
  font-size: 12px;
  font-weight: 800;
}

.recharge-pay-option small {
  margin-left: auto;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.recharge-pay-option i {
  width: 11px;
  height: 11px;
  border: 1px solid #98a2b3;
  border-radius: 50%;
}

.recharge-pay-option.active i {
  border-color: #059669;
  box-shadow: inset 0 0 0 3px #fff;
  background: #059669;
}

.wechat-pay-icon,
.alipay-pay-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.wechat-pay-icon {
  background: #10b981;
}

.alipay-pay-icon {
  background: #1677ff;
}

.card-redeem-box {
  display: grid;
  gap: 12px;
}

.card-redeem-box input {
  height: 42px;
  font-family: Consolas, "Microsoft YaHei UI", monospace;
  letter-spacing: 0;
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

.card-tips {
  display: grid;
  gap: 6px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #475467;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.45;
}

.card-tips strong {
  color: #344054;
}

.card-tips span::before {
  content: "• ";
}

.recharge-inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.recharge-inline-alert.success {
  border: 1px solid rgba(0, 213, 236, 0.34);
  background: rgba(0, 213, 236, 0.1);
  color: #d8fbff;
}

.recharge-inline-alert.success span,
.recharge-inline-alert.success svg {
  color: inherit;
}

.recharge-inline-alert.error {
  border: 1px solid rgba(255, 107, 107, 0.34);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb8b8;
}

.recharge-foot {
  border-top: 0;
  padding: 26px 20px 16px;
}

.recharge-foot .btn {
  height: 34px;
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
  font-weight: 800;
}

.recharge-foot .btn-primary {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.payment-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-modal {
  position: relative;
  width: min(378px, calc(100vw - 42px));
  min-height: 545px;
  border-radius: 16px;
  background: #f8fafc;
  color: #101828;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: 36px 24px 24px;
}

.payment-modal.paid {
  min-height: 460px;
}

.payment-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #d1d5db;
  color: #667085;
  display: grid;
  place-items: center;
}

.pay-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #039ec9;
  margin-bottom: 18px;
}

.pay-icon.outline {
  border: 2px solid #05a6ce;
  border-radius: 6px;
  width: 34px;
  height: 34px;
}

.pay-icon.alipay {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.payment-modal h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.payment-modal h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.payment-modal p {
  margin: 10px 0 0;
  color: #667085;
  font-size: 12px;
}

.pay-qr-code {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
  padding: 24px;
  margin-top: 36px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.pay-qr-code span {
  background: transparent;
}

.pay-qr-code span.on {
  background: #000;
}

.pay-qr-code span.round {
  border-radius: 2px;
}

.pay-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-weight: 900;
}

.pay-tip {
  margin-top: 16px !important;
}

.pay-order-box {
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #d1d5db;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  text-align: left;
  color: #667085;
  font-size: 12px;
}

.pay-order-box b {
  color: #101828;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.pay-order-box strong {
  color: #1677ff;
  text-align: right;
  font-size: 16px;
}

.pay-status-note {
  margin-top: auto;
  padding-top: 28px;
  color: #667085;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pay-status-note.success,
.pay-checking.success {
  color: #059669;
}

.pay-checking.success {
  background: #dcfce7;
}

.pay-success-mark {
  width: 118px;
  height: 118px;
  margin-top: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
}

.pay-clock {
  width: 64px;
  height: 64px;
  margin-top: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #93c5fd;
  background: #dbeafe;
  color: #2f80ed;
}

.pay-clock.success {
  border-color: #86efac;
  background: #dcfce7;
  color: #16a34a;
}

.pay-checking,
.pay-refresh,
.pay-open {
  width: 100%;
  margin-top: 12px;
}

.pay-checking {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dbeafe;
  color: #1677ff;
  font-size: 11px;
}

.pay-refresh,
.pay-open {
  height: 36px;
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}

:root[data-theme="dark"] .recharge-layer,
:root[data-theme="dark"] .payment-layer {
  background: rgba(0, 0, 0, 0.72);
}

:root[data-theme="dark"] .recharge-modal {
  background: #151922;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f3f7fb;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

:root[data-theme="dark"] .recharge-head p {
  color: #9aa6b6;
}

:root[data-theme="dark"] .pay-mode-badge {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(16, 185, 129, 0.12);
  color: #7ee3b6;
}

:root[data-theme="dark"] .recharge-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .recharge-tabs button {
  color: #9aa6b6;
}

:root[data-theme="dark"] .recharge-tabs button.active {
  color: #7ee3b6;
  border-bottom-color: #34d399;
}

:root[data-theme="dark"] .recharge-label {
  color: #d8e1ec;
}

:root[data-theme="dark"] .recharge-amount-card {
  background: #1b222d;
  color: #f3f7fb;
  border-color: rgba(255, 255, 255, 0.11);
}

:root[data-theme="dark"] .recharge-amount-card.active {
  background: rgba(16, 185, 129, 0.13);
  border-color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.64);
}

:root[data-theme="dark"] .amount-bolt {
  background: rgba(148, 163, 184, 0.18);
  color: #b9c4d2;
}

:root[data-theme="dark"] .recharge-amount-card.active .amount-bolt {
  background: #10b981;
  color: #fff;
}

:root[data-theme="dark"] .recharge-amount-card strong small,
:root[data-theme="dark"] .recharge-amount-card > div {
  color: #9aa6b6;
}

:root[data-theme="dark"] .recharge-amount-card > div {
  border-top-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .recharge-amount-card b {
  color: #eef6ff;
}

:root[data-theme="dark"] .recharge-pay-option {
  background: #1b222d;
  color: #f3f7fb;
  border-color: rgba(255, 255, 255, 0.11);
}

:root[data-theme="dark"] .recharge-pay-option.active {
  background: rgba(16, 185, 129, 0.13);
  border-color: #34d399;
}

:root[data-theme="dark"] .recharge-pay-option:disabled {
  background: #111722;
  color: #7d8795;
}

:root[data-theme="dark"] .recharge-pay-option small {
  color: #9aa6b6;
}

:root[data-theme="dark"] .recharge-pay-option i {
  border-color: #667085;
}

:root[data-theme="dark"] .recharge-pay-option.active i {
  border-color: #34d399;
  box-shadow: inset 0 0 0 3px #151922;
  background: #34d399;
}

:root[data-theme="dark"] .card-redeem-box input {
  background: #111722;
  border-color: rgba(255, 255, 255, 0.12);
  color: #eef6ff;
}

:root[data-theme="dark"] .card-redeem-box input::placeholder {
  color: #798596;
}

:root[data-theme="dark"] .card-tips {
  background: #1b222d;
  border-color: rgba(255, 255, 255, 0.11);
  color: #aeb9c8;
}

:root[data-theme="dark"] .card-tips strong {
  color: #e7eef7;
}

:root[data-theme="dark"] .recharge-foot .btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1b222d;
  color: #d8e1ec;
}

:root[data-theme="dark"] .recharge-foot .btn-primary {
  background: #10b981;
  color: #04130f;
  border-color: #10b981;
}

:root[data-theme="dark"] .payment-modal {
  background: #151922;
  color: #f3f7fb;
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.62);
}

:root[data-theme="dark"] .payment-close {
  background: #252d39;
  color: #cbd5e1;
}

:root[data-theme="dark"] .payment-modal p,
:root[data-theme="dark"] .pay-status-note {
  color: #9aa6b6;
}

:root[data-theme="dark"] .pay-order-box {
  background: #1b222d;
  color: #aeb9c8;
}

:root[data-theme="dark"] .pay-order-box b {
  color: #f3f7fb;
}

:root[data-theme="dark"] .pay-clock,
:root[data-theme="dark"] .pay-checking,
:root[data-theme="dark"] .pay-refresh,
:root[data-theme="dark"] .pay-open {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(59, 130, 246, 0.12);
  color: #8cc8ff;
}

:root[data-theme="dark"] .pay-checking.success,
:root[data-theme="dark"] .pay-success-mark,
:root[data-theme="dark"] .pay-clock.success {
  background: rgba(16, 185, 129, 0.14);
  color: #74e0ad;
  border-color: rgba(52, 211, 153, 0.35);
}

.muted.mini {
  color: #98a2b3;
  font-size: 11px;
}

.recharge-inline-alert i,
.recharge-inline-alert svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.recharge-card-form-grid {
  grid-template-columns: 120px 110px 180px 100px 190px 1fr;
}

.generated-card-box {
  margin-top: 12px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.06);
  padding: 10px;
}

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

.generated-card-box textarea {
  width: 100%;
  min-height: 120px;
  font-family: Consolas, monospace;
}

.modal-foot {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.partner-title {
  text-align: center;
  font-size: 34px;
  color: var(--gold);
  margin: 10px 0 36px;
}

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

.partner-card {
  background: #151a23;
  border-radius: 8px;
  padding: 22px 18px;
  min-height: 170px;
}

.partner-card .modal-icon {
  background: var(--gold);
  color: #fff;
}

.key-toolbar {
  display: grid;
  grid-template-columns: 1fr 160px 110px auto;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
}

.key-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #707989;
}

.key-empty.compact {
  min-height: 92px;
}

.key-empty.align-left {
  place-items: start;
  text-align: left;
  padding: 12px;
}

.key-table {
  width: 100%;
  border-collapse: collapse;
}

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

.secret-box {
  border: 1px solid rgba(21, 214, 140, 0.35);
  background: rgba(21, 214, 140, 0.08);
  color: #95ffd6;
  padding: 10px;
  border-radius: 6px;
  margin: 12px 0;
  font-family: Consolas, monospace;
  word-break: break-all;
}

.api-key-secret {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.api-key-secret__text {
  flex: 1;
  min-width: 0;
}

.api-key-secret .copy-mini {
  flex: 0 0 auto;
  margin-left: 0;
}

.role-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
}

.role-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.login-layer {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.login-layer .modal {
  background: #191c23;
  border-color: #343945;
  color: #f8fafc;
}

.login-layer .modal input,
.login-layer .modal select {
  background: #161a22;
  border-color: #343945;
  color: #f8fafc;
}

.login-layer .login-title,
.login-layer .form-field label {
  color: #f8fafc;
}

.login-layer .login-sub,
.login-layer .check-row,
.login-layer .third-line {
  color: #98a2b3;
}

.login-layer .login-tabs {
  border-bottom-color: #343945;
}

.login-layer .login-tabs button {
  color: #98a2b3;
}

.login-layer .third-line span {
  background: #343945;
}

.login-layer .third-btn {
  background: #1f232c;
  border-color: #343945;
  color: #f2f4f7;
}

:root[data-theme="light"] .login-layer {
  background: rgba(32, 42, 56, 0.46);
}

:root[data-theme="light"] .login-layer .modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #101828;
}

:root[data-theme="light"] .login-layer .modal input,
:root[data-theme="light"] .login-layer .modal select {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

:root[data-theme="light"] .login-layer .login-title,
:root[data-theme="light"] .login-layer .form-field label {
  color: #101828;
}

:root[data-theme="light"] .login-layer .login-sub,
:root[data-theme="light"] .login-layer .check-row,
:root[data-theme="light"] .login-layer .third-line,
:root[data-theme="light"] .login-layer .login-tabs button {
  color: #667085;
}

:root[data-theme="light"] .login-layer .third-line span {
  background: #d0d5dd;
}

:root[data-theme="light"] .login-layer .third-btn {
  background: #f8fafc;
  border-color: #d0d5dd;
  color: #344054;
}

.dim-layer,
.notice-layer {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.notice-modal {
  width: min(710px, calc(100vw - 46px));
  height: min(760px, calc(100vh - 84px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 213, 236, 0.18), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(0, 213, 236, 0.12), transparent 28%),
    #20232b;
  border-color: rgba(0, 213, 236, 0.28);
  border-top-color: rgba(0, 213, 236, 0.85);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.notice-modal.template-maintenance {
  width: min(710px, calc(100vw - 46px));
  height: min(1034px, calc(100vh - 64px));
  background:
    radial-gradient(circle at 92% 3%, rgba(0, 213, 236, 0.22), transparent 30%),
    radial-gradient(circle at 5% 100%, rgba(0, 213, 236, 0.13), transparent 34%),
    linear-gradient(180deg, #1e2029 0%, #1d2028 50%, #111a22 100%);
  border-color: rgba(0, 213, 236, 0.26);
  border-top: 3px solid rgba(0, 213, 236, 0.72);
}

.notice-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  width: 34px;
  height: 34px;
  background: rgba(0, 213, 236, 0.16);
  color: #9fefff;
}

.notice-modal.template-maintenance .notice-close {
  background: rgba(0, 213, 236, 0.18);
  color: #b9f8ff;
}

.notice-head {
  min-height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 70px 14px;
}

.notice-bell {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00d9ff;
  background: rgba(0, 213, 236, 0.16);
  border: 1px solid rgba(0, 213, 236, 0.34);
  box-shadow: 0 0 28px rgba(0, 213, 236, 0.16);
}

.notice-head h2 {
  margin: 0 0 8px;
  color: #e9fbff;
  font-size: 25px;
}

.notice-head p {
  margin: 0;
  color: #9aa4b2;
  font-size: 12px;
}

.notice-scroll {
  overflow: auto;
  padding: 0 30px 18px;
  scrollbar-color: rgba(0, 213, 236, 0.74) rgba(255, 255, 255, 0.06);
}

.notice-modal.template-maintenance .notice-head {
  min-height: 146px;
  padding: 24px 70px 14px;
}

.notice-modal.template-maintenance .notice-head h2 {
  color: #dffcff;
  font-size: 25px;
  font-weight: 900;
}

.notice-modal.template-maintenance .notice-head p {
  color: #8893a3;
}

.notice-modal.template-maintenance .notice-bell {
  width: 78px;
  height: 78px;
  color: #1eeaff;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 229, 255, 0.22), transparent 44%),
    rgba(0, 213, 236, 0.16);
  border-color: rgba(0, 213, 236, 0.32);
}

.notice-modal.template-maintenance .notice-scroll {
  position: relative;
  padding: 0 31px 22px;
}

.notice-modal.template-maintenance .notice-scroll::-webkit-scrollbar {
  width: 7px;
}

.notice-modal.template-maintenance .notice-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.notice-modal.template-maintenance .notice-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 213, 236, 0.72);
  border-radius: 999px;
}

.notice-modal.template-maintenance .notice-foot {
  padding-top: 16px;
  background: rgba(16, 26, 34, 0.9);
}

.notice-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.notice-stars span {
  position: absolute;
  width: 6px;
  height: 6px;
  color: #04eaff;
}

.notice-stars span::before,
.notice-stars span::after {
  content: "";
  position: absolute;
  inset: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.notice-stars span::after {
  transform: rotate(90deg);
}

.notice-stars span:nth-child(1) {
  top: 8px;
  right: 76px;
}

.notice-stars span:nth-child(2) {
  top: 342px;
  left: 42px;
}

.notice-stars span:nth-child(3) {
  right: 70px;
  bottom: 86px;
}

.notice-stars span:nth-child(4) {
  top: 398px;
  left: 46px;
  opacity: 0.72;
}

.notice-summary {
  margin: 8px 0 20px;
  padding: 18px 20px;
  border-left: 3px solid #00d9ff;
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.11);
  color: #dce7f7;
  line-height: 1.9;
  font-weight: 700;
}

.notice-summary b,
.notice-card h3 small {
  color: #9d5cff;
}

.notice-section-title {
  min-height: 38px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 11px;
  align-items: center;
  margin: 22px 0 14px;
  color: #f2f4f7;
}

.notice-section-title span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  font-size: 13px;
  font-weight: 900;
}

.notice-section-title b {
  color: #f3f7ff;
  font-size: 18px;
}

.notice-section-title.important span {
  background: linear-gradient(135deg, #ff4d5e, #ff8a1f);
}

.notice-section-title em {
  color: #9aa4b2;
  font-style: normal;
  font-size: 12px;
}

.notice-card {
  margin-bottom: 12px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 10px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(0, 213, 236, 0.04)),
    rgba(88, 55, 136, 0.18);
  color: #e6edf8;
  line-height: 1.8;
}

.notice-card.danger {
  border-color: rgba(255, 77, 94, 0.42);
  background: rgba(124, 35, 46, 0.18);
}

.notice-card.cyan,
.notice-card.success {
  border-color: rgba(0, 213, 236, 0.32);
  background:
    linear-gradient(145deg, rgba(0, 213, 236, 0.11), rgba(20, 184, 166, 0.05)),
    rgba(8, 28, 36, 0.48);
}

.notice-card.gold,
.notice-card.warning {
  border-color: rgba(255, 196, 0, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 196, 0, 0.1), rgba(139, 92, 246, 0.05)),
    rgba(31, 25, 11, 0.36);
}

.notice-card h3 {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.notice-card h3 small {
  height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 0 8px;
  background: rgba(255, 196, 0, 0.12);
  color: #ffc400;
  font-size: 11px;
}

.notice-card p {
  margin: 10px 0 0;
  color: #c8d1df;
}

.notice-tag {
  height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  margin-right: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  font-size: 12px;
  font-weight: 900;
}

.notice-tag.red {
  background: linear-gradient(135deg, #ff4d5e, #ff8a1f);
}

.notice-maintenance-hero {
  position: relative;
  margin: 8px 0 18px;
  border: 1px solid rgba(255, 96, 110, 0.42);
  border-radius: 14px;
  padding: 34px 20px 20px;
  background:
    radial-gradient(circle at 52% 0, rgba(255, 104, 115, 0.18), transparent 52%),
    linear-gradient(115deg, rgba(255, 88, 97, 0.12), rgba(0, 213, 236, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.notice-ribbon {
  position: absolute;
  top: 0;
  left: 20px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 0 0 7px 7px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(90deg, #ff4d5e, #ff9854);
  font-size: 12px;
  font-weight: 900;
}

.notice-source-card .notice-ribbon {
  border-radius: 0 0 7px 7px;
  box-shadow: 0 8px 18px rgba(255, 77, 94, 0.18);
}

.notice-maintenance-hero h3 {
  margin: 0;
  color: #f7fbff;
  text-align: center;
  font-size: 19px;
  letter-spacing: 0;
}

.notice-maintenance-hero > p {
  margin: 10px auto 20px;
  max-width: 520px;
  color: #9da8b8;
  text-align: center;
  line-height: 1.8;
  font-size: 12px;
}

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

.notice-metric-card {
  min-height: 91px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(0, 213, 236, 0.22);
  border-radius: 10px;
  background: rgba(15, 19, 26, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.notice-metric-card span,
.notice-metric-card em {
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
}

.notice-metric-card b {
  margin: 6px 0 2px;
  color: #00f0ff;
  font-size: 22px;
  line-height: 1;
}

.notice-metric-card.danger {
  border-color: rgba(255, 77, 94, 0.38);
}

.notice-metric-card.danger b {
  color: #ff6873;
}

.notice-metric-card.warning {
  border-color: rgba(245, 158, 11, 0.38);
}

.notice-metric-card.warning b {
  color: #fbbf24;
}

.notice-metric-card.success {
  border-color: rgba(0, 217, 166, 0.38);
}

.notice-metric-card.success b {
  color: #00f5bf;
}

.notice-progress {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  padding: 11px 13px;
  color: #00f0ff;
  background: rgba(5, 12, 18, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 900;
}

.notice-progress span,
.notice-progress em {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.notice-progress span {
  color: #ff6873;
}

.notice-progress span::before,
.notice-progress em::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.notice-progress span::before {
  background: #ff6873;
  box-shadow: 0 0 8px rgba(255, 104, 115, 0.7);
}

.notice-progress b {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.notice-progress b i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5362 0%, #fbbf24 42%, #00d9a6 100%);
  box-shadow: 0 0 12px rgba(0, 217, 166, 0.24);
}

.notice-progress em {
  color: #00f5bf;
  font-style: normal;
  justify-content: flex-end;
}

.notice-progress em::after {
  background: #00f5bf;
  box-shadow: 0 0 8px rgba(0, 245, 191, 0.64);
}

.notice-section-title.maintenance {
  grid-template-columns: 5px 1fr;
  margin-top: 18px;
  margin-bottom: 12px;
}

.notice-section-title.maintenance span {
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00d9ff, #00d9a6);
}

.notice-section-title.maintenance.remind span {
  background: linear-gradient(180deg, #ffc400, #ff8a1f);
}

.notice-section-title.maintenance b {
  font-size: 15px;
}

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

.notice-feature-tile {
  min-height: 70px;
  border: 1px solid rgba(0, 213, 236, 0.24);
  border-radius: 9px;
  padding: 14px 16px;
  background:
    linear-gradient(145deg, rgba(0, 213, 236, 0.09), rgba(20, 184, 166, 0.04)),
    rgba(8, 28, 36, 0.5);
}

.notice-feature-tile b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00eaff;
  font-size: 13px;
}

.notice-feature-tile i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffcf33;
  font-style: normal;
}

.notice-feature-tile b span {
  min-width: 0;
}

.notice-feature-tile p {
  margin: 8px 0 0;
  color: #9eaab9;
  font-size: 12px;
  line-height: 1.7;
}

.notice-feature-tile.gold {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.11), rgba(0, 213, 236, 0.04)),
    rgba(31, 25, 11, 0.42);
}

.notice-feature-tile.purple {
  border-color: rgba(168, 85, 247, 0.28);
  background:
    linear-gradient(145deg, rgba(168, 85, 247, 0.11), rgba(0, 213, 236, 0.04)),
    rgba(23, 16, 35, 0.42);
}

.notice-feature-tile.success {
  border-color: rgba(0, 217, 166, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 217, 166, 0.1), rgba(0, 213, 236, 0.04)),
    rgba(10, 31, 27, 0.42);
}

.notice-reminder-list {
  border: 1px solid rgba(255, 196, 0, 0.34);
  border-radius: 10px;
  padding: 10px 16px;
  background:
    linear-gradient(145deg, rgba(255, 196, 0, 0.07), rgba(0, 213, 236, 0.035)),
    rgba(255, 196, 0, 0.035);
}

.notice-reminder-list div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 196, 0, 0.16);
}

.notice-reminder-list div:last-child {
  border-bottom: 0;
}

.notice-reminder-list span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171a22;
  background: #ffc400;
  font-size: 12px;
  font-weight: 900;
}

.notice-reminder-list p {
  margin: 0;
  color: #dbe7f6;
  line-height: 1.75;
}

.notice-reminder-list strong {
  color: #00ffd0;
  font-weight: 900;
}

.notice-maintenance-closing {
  margin: 34px 0 12px;
  text-align: center;
}

.notice-maintenance-thanks {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 14px;
  border: 1px solid rgba(0, 213, 236, 0.14);
  border-radius: 999px;
  padding: 9px 18px;
  color: #cdd8e8;
  background:
    linear-gradient(90deg, rgba(0, 213, 236, 0.16), rgba(0, 217, 166, 0.08)),
    rgba(12, 28, 36, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.notice-maintenance-thanks span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 213, 236, 0.12);
  font-size: 14px;
}

.notice-maintenance-footnote {
  margin: 0;
  color: #768395;
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
}

.notice-foot {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 30px 20px;
  border-top: 1px solid rgba(0, 213, 236, 0.16);
  background: rgba(18, 29, 36, 0.74);
}

.notice-foot .btn {
  color: #a9f3ff;
  background: rgba(0, 213, 236, 0.08);
  border-color: rgba(0, 213, 236, 0.3);
}

.notice-modal.template-maintenance .notice-foot .btn {
  min-height: 34px;
  color: #a9f3ff;
  background: rgba(0, 213, 236, 0.09);
  border-color: rgba(0, 213, 236, 0.34);
}

.notice-modal.template-maintenance .notice-foot .btn:disabled {
  color: rgba(169, 243, 255, 0.34);
  background: rgba(13, 21, 30, 0.46);
  border-color: rgba(0, 213, 236, 0.14);
}

.notice-admin-table td:nth-child(3) {
  min-width: 240px;
}

.notice-edit-modal {
  width: min(1180px, calc(100vw - 44px));
}

.notice-edit-modal.maintenance-designer-modal {
  width: min(1560px, calc(100vw - 34px));
}

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

.notice-edit-layout.maintenance {
  grid-template-columns: minmax(520px, 0.96fr) minmax(560px, 1.04fr);
}

.notice-edit-fields {
  min-width: 0;
}

.notice-admin-preview {
  position: sticky;
  top: 0;
}

.notice-template-panel {
  border: 1px solid rgba(0, 213, 236, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(0, 213, 236, 0.05), rgba(255, 77, 94, 0.035)),
    rgba(255, 255, 255, 0.026);
}

.notice-source-basic-grid {
  margin-bottom: 2px;
}

.notice-builder-wrap {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.notice-builder {
  border: 1px solid rgba(0, 213, 236, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(0, 213, 236, 0.05), rgba(124, 58, 237, 0.045)),
    rgba(255, 255, 255, 0.028);
}

.notice-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.notice-builder-head b {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.notice-builder-head span {
  color: var(--muted);
  font-size: 11px;
}

.notice-builder-head .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.upstream-key-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.upstream-key-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.upstream-key-toolbar > span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.upstream-key-match-btn {
  min-width: 78px;
}

.upstream-key-locate {
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.upstream-key-locate input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.notice-builder-grid,
.notice-reminder-editor {
  display: grid;
  gap: 9px;
}

.notice-builder-row {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 42px 10px 10px;
  background: rgba(9, 13, 20, 0.48);
}

.notice-builder-row.metric {
  grid-template-columns: minmax(90px, 0.8fr) minmax(86px, 0.8fr) minmax(110px, 1fr) minmax(92px, 0.7fr);
}

.notice-builder-row.feature {
  grid-template-columns: repeat(2, minmax(120px, 1fr)) minmax(84px, 0.7fr) minmax(140px, 1fr) minmax(0, 1.45fr) minmax(78px, 0.55fr) minmax(92px, 0.65fr);
}

.notice-builder-row.feature.upstream-key-row {
  grid-template-columns:
    minmax(148px, 0.9fr)
    minmax(168px, 1fr)
    minmax(210px, 1.2fr)
    minmax(78px, 0.45fr)
    minmax(88px, 0.5fr)
    minmax(70px, 0.38fr)
    minmax(92px, 0.48fr)
    minmax(92px, 0.48fr)
    28px
    28px;
  align-items: end;
  min-width: 1140px;
  padding: 10px;
}

.upstream-key-rows {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.upstream-key-rows::-webkit-scrollbar {
  height: 7px;
}

.upstream-key-rows::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.upstream-key-rows::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 213, 236, 0.45);
}

.upstream-key-row .check-cell {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-direction: row;
  white-space: nowrap;
}

.upstream-key-row .check-cell span {
  flex: 0 0 auto;
  min-width: 0;
}

.upstream-key-row .check-cell input[type="checkbox"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
}

.upstream-key-row > .icon-btn {
  align-self: end;
  width: 28px;
  height: 28px;
  min-height: 28px;
}

.upstream-key-row > .notice-row-remove {
  position: static;
  top: auto;
  right: auto;
}

.upstream-key-row.located {
  border-color: rgba(242, 169, 0, 0.72);
  box-shadow: 0 0 0 2px rgba(242, 169, 0, 0.13), 0 12px 28px rgba(242, 169, 0, 0.08);
}

.upstream-key-pager {
  margin-top: 10px;
}

.upstream-key-import-modal textarea {
  min-height: 220px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.upstream-cleanup-modal .check-line.single {
  justify-content: flex-start;
  margin-top: 12px;
}

.maintenance-designer-modal .notice-builder-row.feature {
  grid-template-columns: minmax(76px, 0.55fr) minmax(118px, 0.9fr) minmax(0, 1.45fr) minmax(92px, 0.7fr);
}

.maintenance-designer-modal .notice-builder-row.feature label:nth-of-type(1),
.maintenance-designer-modal .notice-builder-row.feature label:nth-of-type(2),
.maintenance-designer-modal .notice-builder-row.feature label:nth-of-type(6) {
  display: none;
}

.notice-builder-row.reminder {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
}

.notice-builder-row label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.notice-builder-row label span {
  color: var(--muted);
  font-size: 11px;
}

.notice-builder-row input,
.notice-builder-row select,
.notice-builder-row textarea {
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.notice-builder-row textarea {
  min-height: 58px;
  padding: 7px 8px;
  line-height: 1.45;
  resize: vertical;
}

.notice-builder-row.reminder > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #101828;
  background: #ffc400;
  font-size: 12px;
  font-weight: 900;
}

.notice-builder-row.reminder textarea {
  min-height: 44px;
}

.notice-row-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #ff8a95;
}

.notice-builder-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.notice-preview-card {
  max-height: min(760px, calc(100vh - 190px));
  overflow: auto;
  border: 1px solid rgba(0, 213, 236, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(0, 213, 236, 0.12), rgba(124, 58, 237, 0.12)),
    rgba(13, 20, 31, 0.76);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.notice-preview-card.template-maintenance {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(20, 184, 166, 0.1)),
    rgba(18, 22, 29, 0.78);
}

.notice-preview-card.template-compliance {
  border-color: rgba(255, 77, 94, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 77, 94, 0.12), rgba(124, 58, 237, 0.11)),
    rgba(22, 18, 25, 0.78);
}

.notice-preview-card.template-promotion {
  border-color: rgba(34, 197, 94, 0.3);
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(0, 213, 236, 0.1)),
    rgba(15, 24, 22, 0.78);
}

.notice-preview-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.notice-preview-head > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9fefff;
  background: rgba(0, 213, 236, 0.16);
}

.notice-preview-head b {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.notice-preview-head em,
.notice-preview-section small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.notice-preview-card > p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.7;
}

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

.notice-preview-metrics div {
  border: 1px solid rgba(0, 213, 236, 0.2);
  border-radius: 7px;
  padding: 8px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
}

.notice-preview-metrics span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-preview-metrics b {
  display: block;
  margin-top: 4px;
  color: #00d9ff;
  font-size: 15px;
}

.notice-preview-metrics .danger b {
  color: #ff6873;
}

.notice-preview-metrics .warning b {
  color: #fbbf24;
}

.notice-preview-metrics .success b {
  color: #00d9a6;
}

.notice-preview-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 10px;
}

.notice-preview-section.numbered {
  display: grid;
  grid-template-columns: 24px 1fr auto;
}

.notice-preview-section.numbered span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.notice-preview-section strong {
  min-width: 0;
  color: var(--text);
}

.notice-preview-section small {
  text-align: right;
}

.notice-preview-mini-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.notice-preview-mini-card.cyan,
.notice-preview-mini-card.success {
  border-color: rgba(0, 213, 236, 0.26);
  background: rgba(0, 213, 236, 0.08);
}

.notice-preview-mini-card.gold,
.notice-preview-mini-card.warning {
  border-color: rgba(255, 196, 0, 0.28);
  background: rgba(255, 196, 0, 0.075);
}

.notice-preview-mini-card.purple {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(124, 58, 237, 0.1);
}

.notice-preview-mini-card span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 5px;
  padding: 3px 7px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #00bcd4);
  font-size: 11px;
  font-weight: 800;
}

.notice-preview-mini-card b {
  display: block;
  color: var(--text);
}

.notice-preview-mini-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.notice-preview-card .notice-reminder-list {
  margin-top: 12px;
  padding: 8px 12px;
}

.notice-preview-card .notice-reminder-list div {
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding: 7px 0;
}

.notice-preview-card .notice-reminder-list span {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.notice-preview-card .notice-reminder-list p {
  line-height: 1.55;
  font-size: 12px;
}

.notice-preview-stage {
  height: min(760px, calc(100vh - 190px));
  display: grid;
  place-items: start center;
  overflow: auto;
  border: 1px solid rgba(0, 213, 236, 0.16);
  border-radius: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 213, 236, 0.08), transparent 35%),
    rgba(5, 10, 15, 0.42);
}

.notice-admin-live-shell {
  width: 469px;
  height: 682px;
  position: relative;
}

.notice-admin-live-modal {
  width: 710px;
  height: 1034px;
  max-width: none;
  max-height: none;
  transform: scale(0.66);
  transform-origin: top center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  pointer-events: none;
}

.notice-admin-live-modal .notice-close {
  pointer-events: none;
}

.assets-modal,
.role-modal {
  overflow: hidden;
  background: #20232b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.assets-modal {
  width: min(760px, calc(100vw - 46px));
}

.reference-modal {
  position: relative;
  width: min(820px, calc(100vw - 46px));
}

.asset-head,
.role-head {
  min-height: 72px;
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.asset-head {
  grid-template-columns: 1fr 30px;
  padding: 0 20px;
}

.asset-head h2,
.role-head h2 {
  margin: 0;
  font-size: 18px;
}

.asset-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 20px 10px;
}

.asset-tools input {
  height: 38px;
  padding: 0 12px;
}

.asset-tabs {
  padding: 0 20px 14px;
}

.asset-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px 12px 0;
}

.asset-mode-tabs button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: #c9d3df;
  font-weight: 800;
}

.asset-mode-tabs .active {
  background: var(--cyan);
  color: #001318;
  border-color: var(--cyan);
}

.reference-tools {
  padding: 12px 12px 8px;
}

.asset-tool-actions {
  display: flex;
  gap: 8px;
}

.upload-ref-btn {
  height: 32px;
  border-style: dashed;
  padding: 0 10px;
}

.asset-tabs.compact {
  padding: 0 12px 8px;
  gap: 6px;
}

.asset-tabs.compact button {
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
}

.asset-tip {
  margin: 0 12px 8px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 174, 0, 0.34);
  border-radius: 5px;
  background: rgba(255, 174, 0, 0.1);
  color: #f6c65d;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.reference-scroll {
  min-height: 224px;
  max-height: 292px;
  overflow: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.reference-card {
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #141820;
  padding: 0 0 8px;
  color: #dce5ef;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}

.reference-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.12);
}

.reference-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  display: block;
  background: #242832;
}

.reference-card strong {
  display: block;
  padding: 6px 6px 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}

.reference-card em {
  display: block;
  padding: 0 6px;
  color: #b8c2d0;
  font-size: 10px;
  font-style: normal;
}

.ref-type,
.ref-price {
  position: absolute;
  top: 4px;
  z-index: 2;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 900;
}

.ref-type {
  left: 4px;
  background: #ff59b7;
  color: #fff;
}

.ref-price {
  right: 4px;
  display: inline-flex;
  gap: 2px;
  align-items: center;
  background: rgba(0, 0, 0, 0.64);
  color: #ffd46b;
}

.asset-picker-foot {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #8ea0b4;
  font-size: 11px;
}

.asset-picker-foot > div {
  display: flex;
  gap: 8px;
}

.assets-modal .asset-manager-panel .admin-pager,
.assets-modal > .admin-pager {
  margin: 10px 12px 0;
  padding: 14px 0 8px;
  min-height: 54px;
}

.assets-modal .asset-manager-panel .admin-pager {
  margin-left: 12px;
  margin-right: 12px;
}

.assets-modal .pager-size {
  padding-right: 2px;
}

.assets-modal .pager-size select {
  margin-right: 0;
}

.assets-modal .asset-picker-foot {
  height: 50px;
  padding: 0 12px 6px;
}

.reference-empty {
  min-height: 220px;
  border: 0;
  background: transparent;
}

.asset-empty.compact {
  margin: 0 12px 12px;
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: #8f9bac;
  font-size: 12px;
}

.selected-reference-strip {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 12px 8px;
}

.selected-reference-item {
  flex: 0 0 auto;
  height: 34px;
  max-width: 160px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 7px;
  background: rgba(0, 213, 236, 0.08);
  padding: 3px 5px 3px 3px;
}

.selected-reference-item img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
}

.selected-reference-item span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #dce7f5;
  font-size: 11px;
  font-weight: 800;
}

.selected-reference-item button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce7f5;
  display: grid;
  place-items: center;
}

.reference-manager-layer {
  z-index: 76;
}

.reference-manager-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: hidden;
  background: #151922;
}

.reference-manager-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 12px;
  color: #9da8b8;
  font-size: 12px;
}

.reference-manager-summary > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reference-manager-grid {
  max-height: min(490px, calc(100vh - 220px));
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 18px 16px;
}

.reference-manager-card {
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.reference-manager-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.reference-manager-card div {
  padding: 9px 10px 7px;
}

.reference-manager-card strong,
.reference-manager-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-manager-card strong {
  color: #edf6ff;
  font-size: 12px;
}

.reference-manager-card span {
  margin-top: 3px;
  color: #8f9bac;
  font-size: 11px;
}

.reference-manager-card button {
  width: calc(100% - 16px);
  height: 30px;
  margin: 0 8px 10px;
  border: 1px solid rgba(255, 108, 108, 0.28);
  border-radius: 7px;
  background: rgba(255, 108, 108, 0.1);
  color: #ffb4b4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.reference-manager-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #98a2b3;
}

.asset-upload-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(378px, calc(100vw - 36px));
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #1b1f27;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.52);
  z-index: 3;
  padding-bottom: 12px;
}

.asset-upload-dialog label {
  display: grid;
  gap: 6px;
  margin: 10px 12px;
  color: #9aa6b5;
  font-size: 11px;
}

.asset-upload-dialog input,
.asset-upload-dialog textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #151922;
  color: #e8edf4;
  padding: 8px;
}

.asset-upload-dialog textarea {
  min-height: 52px;
  resize: none;
}

.asset-drop {
  min-height: 98px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.asset-drop img {
  max-width: 100%;
  max-height: 118px;
  border-radius: 6px;
  object-fit: cover;
}

.asset-drop svg {
  color: var(--cyan);
}

.asset-drop strong {
  color: #e8edf4;
}

.asset-drop span {
  color: #7e8998;
  font-size: 10px;
}

.asset-upload-type {
  display: flex;
  gap: 7px;
  padding: 0 12px 4px;
}

.asset-upload-type button {
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #b8c2cf;
  padding: 0 11px;
}

.asset-upload-type .active {
  color: #001318;
  background: var(--cyan);
  border-color: var(--cyan);
}

.vidu-assets-modal {
  width: min(680px, calc(100vw - 46px));
}

.vidu-asset-scroll {
  min-height: 240px;
  max-height: 330px;
}

.vidu-asset-notice {
  margin: 0 12px 8px;
  min-height: 26px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 6px;
  background: rgba(0, 213, 236, 0.08);
  color: var(--cyan-2);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

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

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

.vidu-image-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vidu-image-card:hover,
.vidu-image-card.selected {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.vidu-image-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: #10151d;
  cursor: pointer;
  overflow: hidden;
}

.vidu-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vidu-image-thumb .ref-type {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
}

.vidu-image-meta {
  padding: 7px 8px 0;
  min-width: 0;
}

.vidu-image-meta strong,
.vidu-image-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vidu-image-meta strong {
  color: #f1f6ff;
  font-size: 12px;
}

.vidu-image-meta span {
  color: #8f9bac;
  font-size: 11px;
  margin-top: 2px;
}

.vidu-image-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  gap: 5px;
  padding: 8px;
}

.vidu-image-card-actions .btn {
  min-height: 28px;
  padding: 0 8px;
}

.vidu-asset-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.vidu-asset-row strong,
.vidu-asset-row p {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vidu-asset-row strong {
  color: #f1f6ff;
  font-size: 12px;
}

.vidu-asset-row p {
  margin: 2px 0 0;
  color: #96a1b0;
  font-size: 11px;
}

.vidu-text-create {
  margin: 0 12px 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.04);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.vidu-text-create input,
.vidu-text-create textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #151922;
  color: #e8edf4;
  padding: 8px;
}

.vidu-text-create textarea {
  min-height: 88px;
  resize: vertical;
}

.vidu-text-create div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

:root[data-theme="light"] .vidu-asset-row,
:root[data-theme="light"] .vidu-text-create,
:root[data-theme="light"] .vidu-image-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.09);
}

:root[data-theme="light"] .vidu-asset-row strong,
:root[data-theme="light"] .vidu-image-meta strong {
  color: #111827;
}

:root[data-theme="light"] .vidu-image-thumb {
  background: #edf2f7;
}

:root[data-theme="light"] .vidu-text-create input,
:root[data-theme="light"] .vidu-text-create textarea {
  background: #fff;
  color: #111827;
}

.asset-create-grid {
  display: grid;
  grid-template-columns: 116px minmax(120px, 1fr) minmax(160px, 1fr) minmax(120px, 1fr) auto;
  gap: 8px;
  padding: 12px;
  align-items: start;
}

.asset-create-grid textarea {
  grid-column: 1 / 5;
  min-height: 58px;
}

.asset-form-actions,
.asset-row-actions,
.key-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.asset-form-actions {
  min-width: 128px;
}

.asset-list,
.account-list {
  display: grid;
  gap: 8px;
  padding: 0 20px 12px;
  max-height: 360px;
  overflow: auto;
}

.asset-manager-panel {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.asset-row,
.account-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.asset-row .work-tags {
  margin-top: 6px;
}

.asset-kind img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.asset-row-actions .btn,
.key-actions .btn {
  min-height: 30px;
  padding: 0 9px;
}

.key-table code {
  color: var(--cyan-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.account-row {
  grid-template-columns: minmax(0, 1fr) auto auto 116px;
}

.work-preview-modal {
  width: min(1040px, calc(100vw - 46px));
  overflow: hidden;
}

.work-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 18px;
}

.work-preview-media {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.work-preview-media img,
.work-preview-media video {
  max-width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  display: block;
}

.work-processing-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #c6b4ff;
  background: radial-gradient(circle at 50% 35%, rgba(139, 92, 246, 0.2), rgba(7, 10, 16, 0.96) 60%);
}

.work-processing-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(3px) saturate(0.8) brightness(0.62);
}

.work-processing-cover > div {
  position: relative;
  z-index: 1;
  width: min(330px, 84%);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  background: rgba(10, 12, 18, 0.62);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.work-processing-cover strong {
  color: #fff;
  font-size: 18px;
}

.work-processing-cover span {
  color: #b8c0ce;
  font-size: 12px;
  line-height: 1.6;
}

.work-processing-cover.gold {
  color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(255, 196, 0, 0.16), rgba(7, 10, 16, 0.96) 60%);
}

.work-processing-cover.danger {
  color: #ff8e9a;
  background: radial-gradient(circle at 50% 35%, rgba(255, 77, 94, 0.15), rgba(7, 10, 16, 0.96) 60%);
}

.audio-preview {
  width: min(420px, 90%);
  display: grid;
  gap: 18px;
  justify-items: center;
  color: var(--cyan-2);
}

.audio-preview audio {
  width: 100%;
}

.vidu-work-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cyan-2);
}

.vidu-work-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(1.08);
}

.vidu-work-cover .custom-icon-img,
.vidu-work-cover i {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.vidu-work-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #e8fbff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.work-preview-info {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.work-preview-info dl {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.work-preview-info dt {
  color: #8f9bac;
}

.work-preview-info dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.work-preview-info label {
  display: grid;
  gap: 8px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.work-preview-info textarea {
  min-height: 160px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #151922;
  color: var(--text);
  padding: 10px;
  resize: vertical;
}

.work-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.inspiration-detail-layer {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(9px);
}

.inspiration-detail-modal {
  width: min(1200px, calc(100vw - 72px));
  max-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 320px;
  gap: 0;
  overflow: hidden;
  background: #17191f;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.inspiration-detail-media {
  height: min(806px, calc(100vh - 96px));
  min-height: 486px;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.inspiration-detail-media video,
.inspiration-detail-single,
.inspiration-detail-grid,
.inspiration-detail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 486px;
}

.inspiration-detail-media video {
  object-fit: contain;
  background: #05070b;
}

.inspiration-detail-single {
  display: grid;
  place-items: center;
  background: #000;
}

.inspiration-detail-single img {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}

.inspiration-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: #000;
}

.inspiration-detail-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}

.inspiration-detail-grid.count-3 img:first-child,
.inspiration-detail-grid.count-5 img:first-child {
  grid-row: span 2;
}

.inspiration-detail-info {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  color: #f6f8fb;
  background: #1b1e26;
}

.inspiration-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
}

.inspiration-detail-kind {
  width: max-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 0 10px;
  color: #d8b8ff;
  background: rgba(139, 92, 246, 0.32);
  font-size: 12px;
  font-weight: 900;
}

.inspiration-detail-info h2 {
  margin: 0;
  padding-right: 44px;
  color: #fff;
  font-size: 17px;
  line-height: 1.55;
}

.inspiration-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #a9b0ba;
  font-size: 12px;
  font-weight: 800;
}

.inspiration-detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inspiration-detail-meta {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px 10px;
  margin: 2px 0 0;
  color: #a6afbd;
  font-size: 12px;
}

.inspiration-detail-meta dt,
.inspiration-detail-meta dd {
  margin: 0;
}

.inspiration-detail-meta dd {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eef4ff;
  font-weight: 900;
}

.inspiration-detail-meta dd strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspiration-detail-meta .free {
  color: #22e578;
}

.inspiration-detail-author {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.inspiration-detail-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #111827;
}

.inspiration-detail-author div {
  display: grid;
  gap: 3px;
}

.inspiration-detail-author span {
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 900;
}

.inspiration-detail-author em {
  color: #a6afbd;
  font-size: 12px;
  font-style: normal;
}

.inspiration-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inspiration-detail-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--cyan-2);
  background: rgba(0, 229, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.inspiration-detail-use {
  width: 100%;
  height: 48px;
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #18d3e5, #06b8c7);
  box-shadow: 0 14px 34px rgba(0, 213, 236, 0.22);
  font-size: 14px;
  font-weight: 950;
}

.inspiration-detail-use:hover {
  filter: brightness(1.06);
}

.vidu-work-summary {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 213, 236, 0.08), rgba(124, 58, 237, 0.06));
  padding: 12px;
  overflow: hidden;
}

.vidu-work-summary header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vidu-work-summary header strong {
  color: var(--text);
  font-size: 13px;
}

.vidu-work-summary header span {
  margin-left: auto;
  color: var(--cyan-2);
  font-size: 11px;
  font-weight: 900;
}

.vidu-work-summary p {
  margin: 0;
  color: #b6bfcb;
  font-size: 12px;
  line-height: 1.55;
}

.vidu-work-audio {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.vidu-work-audio > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.11);
  color: var(--cyan-2);
}

.vidu-work-audio strong,
.vidu-work-audio em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vidu-work-audio strong {
  font-size: 12px;
}

.vidu-work-audio em {
  margin-top: 2px;
  color: #8f9bac;
  font-size: 11px;
  font-style: normal;
}

.vidu-work-audio audio {
  grid-column: 1 / -1;
  width: 100%;
  height: 32px;
}

.vidu-work-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vidu-work-params span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0 9px;
  color: #d9e4f2;
  font-size: 11px;
  font-weight: 800;
}

.vidu-work-params b {
  color: #8f9bac;
}

.vidu-work-refs {
  display: grid;
  gap: 7px;
}

.vidu-work-refs strong {
  color: #b6bfcb;
  font-size: 12px;
}

.vidu-work-refs div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.vidu-work-refs a {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #11151d;
}

.vidu-work-refs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-modal {
  width: min(1160px, calc(100vw - 46px));
  max-height: calc(100vh - 84px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.history-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.history-tools input {
  height: 36px;
  padding: 0 12px;
}

.history-layout {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.history-list {
  min-height: 0;
  max-height: min(640px, calc(100vh - 206px));
  overflow-x: hidden;
  overflow-y: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
  padding: 12px;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.history-list-items {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.history-row {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 9px;
  margin-bottom: 6px;
}

.history-row:hover,
.history-row.active {
  background: rgba(0, 213, 236, 0.08);
  border-color: rgba(0, 213, 236, 0.28);
}

.history-kind,
.history-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.12);
  color: var(--cyan-2);
}

.history-row strong,
.history-detail-head strong,
.history-message strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.history-row em,
.history-row small,
.history-detail-head p,
.history-message time {
  display: block;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.history-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row b {
  font-size: 11px;
  font-weight: 800;
  color: #9db8ff;
}

.history-detail {
  min-width: 0;
  min-height: 0;
  max-height: min(640px, calc(100vh - 206px));
  padding-bottom: 10px;
  overflow: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.history-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-messages {
  min-height: 260px;
  overflow: auto;
  padding: 14px 16px 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.history-list .history-list-pager,
.history-detail .history-message-pager {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.history-list .history-list-pager .pager-summary,
.history-detail .history-message-pager .pager-summary {
  min-width: 0;
  gap: 5px;
  font-size: 12px;
}

.history-list .history-list-pager .pager-controls,
.history-detail .history-message-pager .pager-controls {
  justify-content: flex-start;
  grid-column: 1 / -1;
  order: 3;
}

.history-list .history-list-pager .pager-size,
.history-detail .history-message-pager .pager-size {
  justify-content: flex-end;
  gap: 5px;
}

.history-list .history-list-pager .pager-size select,
.history-detail .history-message-pager .pager-size select {
  width: 58px;
  min-width: 58px;
}

.history-list .history-list-pager .pager-btn,
.history-detail .history-message-pager .pager-btn {
  height: 28px;
  min-width: 32px;
  padding: 0 9px;
}

.history-detail .history-message-pager {
  padding: 10px 16px 0;
  margin: 0 0 2px;
}

.history-message {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.history-message.assistant {
  background: rgba(0, 213, 236, 0.07);
  border-color: rgba(0, 213, 236, 0.2);
}

.history-message p {
  margin: 5px 0 0;
  color: #d3dae6;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.history-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #98a2b3;
}

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

.share-stat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.share-stat > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 196, 0, 0.14);
  color: var(--gold);
}

.share-stat em {
  display: block;
  color: #98a2b3;
  font-style: normal;
  font-size: 11px;
  margin-bottom: 3px;
}

.share-stat strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.share-link-row,
.referral-bind-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.share-link-row input,
.referral-bind-row input {
  height: 38px;
  padding: 0 12px;
}

.referral-withdraw-form {
  display: grid;
  grid-template-columns: 140px 120px minmax(0, 1fr) 160px minmax(180px, 0.72fr);
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

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

.share-list {
  padding: 0 0 10px;
  max-height: 260px;
}

.share-layer {
  background: rgba(0, 0, 0, 0.78);
}

.share-fullscreen-layer {
  align-items: stretch;
  justify-content: stretch;
  padding: 14px;
  background: #0c0f15;
}

.share-dashboard {
  width: 100%;
  height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  overflow: hidden;
}

.share-dashboard-main,
.share-dashboard-side {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.share-dashboard-main {
  display: grid;
  align-content: start;
  gap: 18px;
}

.share-dashboard-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.share-dashboard-hero,
.share-dashboard-card,
.share-list-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #171a21;
}

.share-dashboard-hero {
  min-height: 150px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.share-dashboard-hero h1 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.share-dashboard-hero p {
  margin: 0;
  color: #9da8b8;
}

.share-dashboard-card {
  padding: 18px;
}

.share-dashboard-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.share-dashboard-card p,
.share-dashboard-card > div > span {
  margin: 0;
  color: #9da8b8;
  font-size: 12px;
}

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

.share-link-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.share-rule-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.share-rule-list span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #c8d3df;
  background: rgba(255, 255, 255, 0.035);
}

.share-source-modal {
  width: min(1320px, calc(100vw - 56px));
  min-height: min(780px, calc(100vh - 72px));
  max-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 196, 0, 0.08), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(0, 213, 236, 0.08), transparent 30%),
    #171a21;
}

.share-head .account-modal-icon {
  background: rgba(255, 196, 0, 0.16);
}

.share-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 20px 22px 22px;
}

.share-source-modal .share-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.share-source-modal .share-stat {
  min-height: 72px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.share-source-modal .share-stat > span {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px;
}

.share-source-modal .share-stat > span svg,
.share-source-modal .share-stat > span i {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  transform: translate(0.75px, 0.75px);
}

.share-source-modal .share-stat.gold > span {
  color: #ffc400;
  background: rgba(255, 196, 0, 0.16);
}

.share-source-modal .share-stat.green > span {
  color: #16d39a;
  background: rgba(16, 185, 129, 0.16);
}

.share-source-modal .share-stat.cyan > span {
  color: #19d9f2;
  background: rgba(6, 182, 212, 0.16);
}

.share-source-modal .share-stat.purple > span {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.16);
}

.share-source-modal .share-stat em {
  color: #8590a0;
  font-size: 11px;
}

.share-source-modal .share-stat strong {
  color: #f7fbff;
  font-size: 15px;
}

.share-invite-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.share-source-modal .share-link-row,
.share-source-modal .referral-bind-row {
  margin: 0;
}

.share-source-modal .share-link-row {
  grid-template-columns: minmax(0, 1fr) 104px;
}

.share-source-modal .referral-bind-row {
  grid-template-columns: minmax(0, 1fr) 78px;
}

.share-source-modal input,
.share-source-modal select {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: #10141c;
  color: #eef6ff;
}

.share-source-modal .form-field {
  margin: 0;
}

.share-source-modal .form-field label {
  color: #526177;
  font-size: 11px;
  margin-bottom: 6px;
}

.share-source-modal .referral-withdraw-form {
  grid-template-columns: 132px 112px minmax(180px, 1fr) 150px minmax(156px, 0.62fr);
  gap: 10px;
  margin: 10px 0 20px;
  align-items: end;
}

.share-source-modal .referral-withdraw-form .btn-primary {
  height: 36px;
  box-shadow: 0 14px 32px rgba(0, 213, 236, 0.22);
}

.share-dashboard .referral-withdraw-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin: 16px 0 0;
}

.share-dashboard .referral-withdraw-form .btn-primary {
  height: 38px;
}

.share-dashboard .share-list {
  max-height: none;
  min-height: 260px;
}

.share-dashboard .share-list-panel {
  min-height: 390px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.share-dashboard .withdrawal-panel {
  min-height: 340px;
  margin-top: 0;
}

.share-source-modal .share-columns {
  gap: 14px;
}

.share-list-panel {
  min-height: 230px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.share-list-panel .modal-actions-row {
  margin: 0 0 10px;
}

.share-list-panel .modal-actions-row strong {
  color: #f2f6ff;
  font-size: 13px;
}

.share-source-modal .share-list {
  min-height: 118px;
  max-height: 210px;
  padding: 0;
}

.share-source-modal .referral-row,
.share-source-modal .referral-withdrawal-row {
  min-height: 54px;
  padding: 9px 10px;
  gap: 10px;
}

.share-source-modal .referral-row time,
.share-source-modal .referral-withdrawal-row time {
  font-size: 11px;
}

.share-locked-modal {
  width: min(620px, calc(100vw - 48px));
  min-height: 0;
}

.share-locked-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 34px 40px;
  text-align: center;
}

.share-locked-body .modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #19d9f2;
  background: rgba(25, 217, 242, 0.14);
}

.share-locked-body h3 {
  margin: 4px 0 0;
  color: #f7fbff;
}

.share-locked-body p {
  max-width: 480px;
  margin: 0;
  color: #9da8b8;
  line-height: 1.7;
}

.share-source-modal .key-empty,
.share-source-modal .key-empty.compact {
  min-height: 118px;
  color: #61708a;
}

.share-source-modal .admin-pager {
  min-height: 42px;
  padding-top: 10px;
  margin-top: 8px;
}

.share-source-modal .segmented.small button {
  height: 28px;
  min-height: 28px;
  border-radius: 999px;
}

.share-source-modal .segmented.small .active {
  background: #19d9f2;
  color: #fff;
}

.withdrawal-panel {
  margin-top: 12px;
}

.referral-row,
.referral-withdrawal-row {
  grid-template-columns: minmax(0, 1fr) auto 116px;
}

.asset-row strong,
.account-row strong {
  display: block;
  margin-bottom: 4px;
}

.asset-row p,
.account-row p {
  margin: 0;
  color: #9da8b8;
  line-height: 1.5;
  max-height: 40px;
  overflow: hidden;
}

.asset-kind {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan-2);
}

.account-feature-modal textarea,
.asset-create-grid textarea {
  width: 100%;
  border: 1px solid #343945;
  border-radius: 7px;
  background: #151922;
  color: var(--text);
  padding: 10px;
  resize: vertical;
}

.account-form-grid {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  gap: 10px;
}

.account-settings-modal {
  width: min(560px, calc(100vw - 48px));
}

.account-settings-modal .modal-body {
  padding: 18px 20px 8px;
}

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

.account-settings-modal .form-field:last-child {
  margin-bottom: 12px;
}

.account-settings-modal .form-field label {
  color: #cbd5e1;
}

.account-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.account-profile-head img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.account-profile-head strong,
.account-profile-head span {
  display: block;
}

.account-profile-head span {
  color: #99a5b7;
  margin-top: 4px;
  font-size: 12px;
}

.review-dialog {
  width: min(520px, calc(100vw - 48px));
}

.review-dialog textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #11151d;
  color: var(--text);
  padding: 10px;
  resize: vertical;
}

.review-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.08);
}

.review-summary strong {
  color: var(--text);
}

.review-summary span {
  color: var(--cyan-2);
  font-size: 12px;
}

.account-form-grid.invoice-grid {
  grid-template-columns: 120px 1fr 160px 190px 120px;
}

.modal-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.reply-text {
  color: var(--cyan-2) !important;
}

.asset-empty {
  min-height: 300px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 32px 44px 44px;
  color: #98a2b3;
  line-height: 1.8;
}

.asset-empty .box-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 12px;
  background: #2a2e38;
  color: #98a2b3;
  font-size: 38px;
}

.asset-empty h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 18px;
}

.asset-empty p {
  margin: 0;
}

.role-modal {
  width: min(604px, calc(100vw - 46px));
  max-height: min(760px, calc(100vh - 84px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  border-top-color: rgba(0, 213, 236, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.role-head {
  grid-template-columns: 36px 1fr 30px;
  padding: 16px 18px;
}

.role-head h2 {
  color: #f8fafc;
}

.role-head p {
  margin: 3px 0 0;
  color: #98a2b3;
  font-size: 12px;
}

.role-tabs {
  display: flex;
  gap: 22px;
  min-height: 46px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.role-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #98a2b3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.role-tabs .active {
  color: #00d9ff;
  border-bottom-color: #00d9ff;
}

.role-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 20px;
}

.role-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 12px 16px;
}

.role-list.big {
  max-height: 260px;
  padding-right: 4px;
  scrollbar-color: #4b5563 transparent;
}

.role-panel .role-item {
  min-height: 54px;
  background: #272a32;
  border-color: rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.role-panel .role-item.active {
  border-color: rgba(0, 213, 236, 0.6);
  background: rgba(0, 213, 236, 0.1);
}

.role-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.role-item-actions .btn {
  height: 28px;
  padding: 0 9px;
}

.role-active-tip {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.08);
  color: #bff7ff;
  font-size: 12px;
}

.role-active-tip img,
.role-active-tip > span:first-child {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171c25;
}

.role-active-tip b {
  color: #fff;
}

.role-item-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  overflow: hidden;
  padding: 0;
  background: #10151d;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.22), 0 0 14px rgba(0, 213, 236, 0.14);
}

.save-role {
  width: 100%;
  margin-top: 12px;
}

.role-settings-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.role-setting-trigger {
  justify-content: center;
}

.role-setting-trigger.open {
  color: #fff;
  background: rgba(0, 213, 236, 0.16);
  border-color: rgba(0, 213, 236, 0.32);
}

.role-setting-popup {
  position: absolute;
  left: 0;
  bottom: 40px;
  z-index: 24;
  width: min(320px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1c1f26;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
}

.role-setting-popup.toggle {
  left: auto;
  width: 178px;
}

.role-setting-popup.deep_think {
  right: 96px;
}

.role-setting-popup.web_search {
  right: 0;
}

.role-setting-popup h3 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 13px;
}

.role-setting-popup p {
  margin: 0 0 10px;
  color: #98a2b3;
  font-size: 11px;
}

.role-setting-options {
  max-height: 224px;
  overflow: auto;
  padding-right: 3px;
}

.role-setting-popup button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #252932;
  color: #f8fafc;
  text-align: left;
}

.role-setting-popup.toggle button {
  grid-template-columns: 20px 1fr auto;
}

.role-setting-popup button.active {
  border-color: rgba(0, 213, 236, 0.62);
  background: rgba(0, 213, 236, 0.13);
}

.role-setting-popup b {
  display: block;
  font-size: 12px;
}

.role-setting-popup em {
  display: -webkit-box;
  overflow: hidden;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.role-popup-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.role-model-more {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: #7d8794;
  font-size: 11px;
}

.role-model-more.as-button {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: #00d9ff;
}

.role-setting-select {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: #20242d;
  color: #f5f7fb;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  padding: 0 8px;
}

.role-setting-select select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
}

.role-template-note,
.role-box {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.role-template-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.role-template-note p {
  margin: 0;
  color: #c5ccd7;
  font-size: 12px;
  line-height: 1.7;
}

.role-template-note button {
  border: 0;
  background: rgba(0, 213, 236, 0.13);
  color: #00d9ff;
  border-radius: 5px;
  font-weight: 700;
}

.role-template-note .ghost {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(0, 213, 236, 0.34);
}

.role-template-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.role-template-toggle {
  justify-self: start;
  height: 26px;
  padding: 0 10px;
}

.role-template-item {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px 128px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  background: #272a32;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.role-template-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 213, 236, 0.46);
  border-radius: 50%;
  overflow: hidden;
  background: #121722;
  box-shadow: 0 0 12px rgba(0, 213, 236, 0.14);
}

.role-template-item strong {
  color: #f8fafc;
}

.role-template-item span {
  color: #98a2b3;
  font-size: 11px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.role-template-item em {
  color: #00d9ff;
  font-style: normal;
  font-size: 11px;
}

.role-create-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.3fr);
  gap: 10px;
  margin-bottom: 10px;
}

.role-box {
  padding: 14px;
}

.role-avatar-uploader {
  width: 72px;
  height: 72px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  overflow: hidden;
  color: #98a2b3;
  cursor: pointer;
}

.role-avatar-uploader input {
  display: none;
}

.role-avatar-uploader span {
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
}

.role-box .form-field input {
  height: 32px;
  background: #101216;
}

.role-box .form-field b,
.role-prompt-label b {
  color: #f43f5e;
}

.role-prompt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  color: #e8edf4;
  font-size: 12px;
}

.role-prompt-label span {
  color: #7d8794;
  font-size: 11px;
}

.prompt-box textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: #101216;
  color: #f5f7fb;
  padding: 12px;
  outline: none;
}

.role-count {
  margin-top: 5px;
  text-align: right;
  color: #7d8794;
  font-size: 10px;
}

.role-create-foot {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0 0;
}

.voice-modal {
  width: min(660px, calc(100vw - 46px));
  overflow: hidden;
  background: #20232b;
  color: #f5f7fb;
  border-color: #303642;
}

.voice-pick-modal {
  width: min(654px, calc(100vw - 46px));
}

.voice-create-modal {
  width: min(454px, calc(100vw - 38px));
  border-top: 3px solid #8b5cf6;
}

.voice-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.voice-head p {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
}

.voice-empty {
  min-height: 236px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  color: #98a2b3;
}

.voice-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, calc(100vh - 230px));
  overflow: auto;
  padding: 14px 16px;
}

.voice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.voice-row > button:first-child {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
}

.voice-row.active > button:first-child {
  border-color: rgba(128, 88, 255, 0.5);
  background: rgba(128, 88, 255, 0.13);
}

.voice-row .badge.danger {
  color: #ff7a8a;
  background: rgba(255, 77, 94, 0.12);
  border-color: rgba(255, 77, 94, 0.28);
}

.voice-row strong {
  display: block;
  font-size: 13px;
}

.voice-row em {
  display: block;
  color: #98a2b3;
  font-style: normal;
  font-size: 11px;
  margin-top: 3px;
}

.voice-note {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.05);
}

.voice-note.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
}

.voice-foot {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.26);
}

.voice-foot b,
.purple-text,
.voice-label small {
  color: #a855f7;
}

.voice-form {
  padding: 16px 20px;
}

.voice-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #f2f4f7;
  font-size: 12px;
  font-weight: 900;
}

.voice-label em {
  color: #98a2b3;
  font-style: normal;
  font-weight: 600;
}

.voice-form p {
  margin: 0 0 9px;
  color: #98a2b3;
  line-height: 1.65;
  font-size: 12px;
}

.voice-name {
  height: 36px;
  margin-bottom: 14px;
  border-color: rgba(168, 85, 247, 0.72) !important;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.12);
}

.upload-panel {
  width: 100%;
  min-height: 74px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #aab2bf;
  display: grid;
  place-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.upload-panel.primary {
  min-height: 112px;
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.72);
  background: rgba(168, 85, 247, 0.08);
}

.price-strip {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.07);
  margin: 8px 0 14px;
}

.price-strip div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 7px;
  align-items: center;
  padding: 0 16px;
}

.price-icon {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
}

.price-icon.plus {
  background: #027a48;
}

.price-icon.sound {
  background: #7a5a11;
}

.price-strip small {
  color: #98a2b3;
}

.price-strip b {
  color: #12d982;
  font-size: 16px;
}

.price-strip div:last-child b {
  color: #ffb21b;
}

.voice-tip {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  padding: 10px 12px;
  color: #b7c0cc;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.7;
  font-size: 12px;
}

:root[data-theme="light"] .dim-layer,
:root[data-theme="light"] .notice-layer {
  background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="light"] .notice-modal,
:root[data-theme="light"] .assets-modal,
:root[data-theme="light"] .role-modal {
  background:
    radial-gradient(circle at 100% 0, rgba(0, 188, 212, 0.12), transparent 36%),
    #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #101828;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .notice-head h2,
:root[data-theme="light"] .asset-head h2,
:root[data-theme="light"] .role-head h2,
:root[data-theme="light"] .asset-empty h3 {
  color: #101828;
}

:root[data-theme="light"] .notice-head p,
:root[data-theme="light"] .notice-section-title em,
:root[data-theme="light"] .role-head p,
:root[data-theme="light"] .asset-empty {
  color: #667085;
}

:root[data-theme="light"] .notice-summary {
  background: #eefafd;
  color: #344054;
}

:root[data-theme="light"] .notice-section-title {
  color: #101828;
}

:root[data-theme="light"] .notice-card {
  background: #f7f2ff;
  color: #101828;
  border-color: rgba(139, 92, 246, 0.28);
}

:root[data-theme="light"] .notice-card.danger {
  background: #fff1f3;
  border-color: rgba(255, 77, 94, 0.26);
}

:root[data-theme="light"] .notice-card p {
  color: #475467;
}

:root[data-theme="light"] .notice-edit-modal .notice-template-panel,
:root[data-theme="light"] .notice-edit-modal .notice-builder {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 145, 178, 0.07), transparent 34%),
    #f8fcff;
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .notice-edit-modal .notice-builder-head b {
  color: #0f172a;
}

:root[data-theme="light"] .notice-edit-modal .notice-builder-head span,
:root[data-theme="light"] .notice-edit-modal .notice-builder-row label span {
  color: #64748b;
}

:root[data-theme="light"] .notice-edit-modal .notice-builder-row {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .notice-edit-modal .notice-builder-row.reminder > span {
  color: #1f2937;
  background: #facc15;
}

:root[data-theme="light"] .notice-edit-modal .notice-builder-empty {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 23, 42, 0.14);
  color: #64748b;
}

:root[data-theme="light"] .notice-edit-modal .notice-preview-stage {
  background:
    radial-gradient(circle at 50% 0%, rgba(8, 145, 178, 0.08), transparent 36%),
    #eef2f4;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .notice-foot,
:root[data-theme="light"] .asset-head,
:root[data-theme="light"] .role-head,
:root[data-theme="light"] .role-tabs {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.7);
}

:root[data-theme="light"] .notice-modal.template-maintenance {
  background:
    radial-gradient(circle at 92% 3%, rgba(0, 213, 236, 0.22), transparent 30%),
    radial-gradient(circle at 5% 100%, rgba(0, 213, 236, 0.13), transparent 34%),
    linear-gradient(180deg, #1e2029 0%, #1d2028 50%, #111a22 100%);
  border-color: rgba(0, 213, 236, 0.26);
  color: #e6edf8;
}

:root[data-theme="light"] .notice-modal.template-maintenance .notice-head h2 {
  color: #dffcff;
}

:root[data-theme="light"] .notice-modal.template-maintenance .notice-head p,
:root[data-theme="light"] .notice-modal.template-maintenance .notice-maintenance-footnote {
  color: #768395;
}

:root[data-theme="light"] .notice-modal.template-maintenance .notice-foot {
  border-color: rgba(0, 213, 236, 0.16);
  background: rgba(16, 26, 34, 0.9);
}

:root[data-theme="light"] .asset-empty .box-icon {
  background: #f2f4f7;
  color: #667085;
}

:root[data-theme="light"] .asset-upload-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(8, 145, 178, 0.08), transparent 34%),
    #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #101828;
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .asset-upload-dialog .asset-head {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .asset-upload-dialog label {
  color: #475467;
}

:root[data-theme="light"] .asset-upload-dialog input,
:root[data-theme="light"] .asset-upload-dialog textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #101828;
}

:root[data-theme="light"] .asset-upload-dialog input::placeholder,
:root[data-theme="light"] .asset-upload-dialog textarea::placeholder {
  color: #98a2b3;
}

:root[data-theme="light"] .asset-drop {
  background:
    linear-gradient(135deg, rgba(236, 254, 255, 0.82), rgba(248, 250, 252, 0.92));
  border-color: rgba(8, 145, 178, 0.28);
  color: #475467;
}

:root[data-theme="light"] .asset-drop strong {
  color: #101828;
}

:root[data-theme="light"] .asset-drop span {
  color: #667085;
}

:root[data-theme="light"] .asset-upload-type button {
  background: #f8fafc;
  border-color: #d7e0ec;
  color: #475467;
}

:root[data-theme="light"] .asset-upload-type .active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #001318;
  box-shadow: 0 8px 18px rgba(6, 182, 212, 0.18);
}

:root[data-theme="light"] .asset-upload-dialog .modal-foot {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .asset-row,
:root[data-theme="light"] .account-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .selected-reference-item {
  background: rgba(0, 188, 212, 0.09);
  border-color: rgba(0, 160, 190, 0.22);
}

:root[data-theme="light"] .selected-reference-item span,
:root[data-theme="light"] .selected-reference-item button {
  color: #155e75;
}

:root[data-theme="light"] .work-preview-media,
:root[data-theme="light"] .work-preview-info dl,
:root[data-theme="light"] .vidu-work-audio,
:root[data-theme="light"] .asset-manager-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .inspiration-detail-modal {
  background: #17191f;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f6f8fb;
}

:root[data-theme="light"] .inspiration-detail-info {
  background: #1b1e26;
}

:root[data-theme="light"] .asset-row p,
:root[data-theme="light"] .account-row p {
  color: #667085;
}

:root[data-theme="light"] .account-feature-modal textarea,
:root[data-theme="light"] .asset-create-grid textarea,
:root[data-theme="light"] .work-preview-info textarea {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

:root[data-theme="light"] .vidu-work-summary {
  background: linear-gradient(135deg, rgba(0, 170, 204, 0.08), rgba(96, 75, 210, 0.05));
  border-color: rgba(0, 120, 150, 0.18);
}

:root[data-theme="light"] .vidu-work-summary p,
:root[data-theme="light"] .vidu-work-refs strong {
  color: #475569;
}

:root[data-theme="light"] .vidu-work-audio em,
:root[data-theme="light"] .vidu-work-params b {
  color: #64748b;
}

:root[data-theme="light"] .vidu-work-params span {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  color: #111827;
}

:root[data-theme="light"] .role-panel {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .role-panel .role-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .role-active-tip {
  background: rgba(6, 182, 212, 0.1);
  color: #0e7490;
}

:root[data-theme="light"] .role-active-tip b {
  color: #101828;
}

:root[data-theme="light"] .role-template-note,
:root[data-theme="light"] .role-box {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .role-template-note p,
:root[data-theme="light"] .role-prompt-label,
:root[data-theme="light"] .role-template-item strong {
  color: #101828;
}

:root[data-theme="light"] .role-template-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .role-setting-select,
:root[data-theme="light"] .role-box .form-field input,
:root[data-theme="light"] .prompt-box textarea {
  background: #fff;
  color: #101828;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .role-setting-popup {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .role-setting-popup h3,
:root[data-theme="light"] .role-setting-popup button,
:root[data-theme="light"] .role-setting-popup b {
  color: #101828;
}

:root[data-theme="light"] .role-setting-popup button {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .role-setting-popup button.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.42);
}

:root[data-theme="light"] .role-setting-popup p,
:root[data-theme="light"] .role-setting-popup em {
  color: #667085;
}

:root[data-theme="light"] .role-model-more {
  color: #667085;
}

:root[data-theme="light"] .role-model-more.as-button {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0891b2;
}

:root[data-theme="light"] .voice-modal {
  background: #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .voice-head,
:root[data-theme="light"] .voice-foot {
  border-color: rgba(15, 23, 42, 0.08);
  background: #fff;
}

:root[data-theme="light"] .voice-head p,
:root[data-theme="light"] .voice-form p,
:root[data-theme="light"] .voice-label em,
:root[data-theme="light"] .voice-empty,
:root[data-theme="light"] .voice-row em,
:root[data-theme="light"] .price-strip small {
  color: #667085;
}

:root[data-theme="light"] .voice-row > button:first-child {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #101828;
}

:root[data-theme="light"] .voice-row.active > button:first-child {
  background: rgba(128, 88, 255, 0.08);
  border-color: rgba(128, 88, 255, 0.24);
}

:root[data-theme="light"] .voice-label {
  color: #101828;
}

:root[data-theme="light"] .upload-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.18);
  color: #667085;
}

:root[data-theme="light"] .upload-panel.primary {
  background: #faf5ff;
  border-color: rgba(168, 85, 247, 0.56);
  color: #8b5cf6;
}

:root[data-theme="light"] .voice-tip {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #475467;
}

:root[data-theme="light"] .modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #101828;
}

:root[data-theme="light"] .modal input,
:root[data-theme="light"] .modal select,
:root[data-theme="light"] .modal textarea,
:root[data-theme="light"] .admin-card input,
:root[data-theme="light"] .admin-card select,
:root[data-theme="light"] .admin-card textarea,
:root[data-theme="light"] .admin-filter-select,
:root[data-theme="light"] .model-admin-search,
:root[data-theme="light"] .admin-edit-modal input,
:root[data-theme="light"] .admin-edit-modal select,
:root[data-theme="light"] .admin-edit-modal textarea,
:root[data-theme="light"] .search input,
:root[data-theme="light"] .doc-search input {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

:root[data-theme="light"] .model-admin-search input {
  background: transparent;
  border-color: transparent;
}

:root[data-theme="light"] .upload-icon-btn {
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 160, 190, 0.28);
  color: #0895b2;
}

:root[data-theme="light"] .composer-config-card,
:root[data-theme="light"] .upstream-preset-panel,
:root[data-theme="light"] .admin-preview-stage {
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 188, 212, 0.08), transparent 30%),
    #fbfcfe;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .upstream-preset-head span {
  color: #101828;
}

:root[data-theme="light"] .upstream-preset-head small,
:root[data-theme="light"] .upstream-preset-summary {
  color: #667085;
}

:root[data-theme="light"] .upstream-preset-search {
  background: #fff;
  border-color: #d0d5dd;
  color: #667085;
}

:root[data-theme="light"] .upstream-preset-search input {
  background: transparent;
}

:root[data-theme="light"] .upstream-preset-chip {
  background: #f2f4f7;
  border-color: #eaecf0;
  color: #475467;
}

:root[data-theme="light"] .upstream-preset-chip:hover {
  background: #e8f7ff;
  color: #0f5d74;
}

:root[data-theme="light"] .upstream-preset-chip.active {
  background: linear-gradient(135deg, #e0f7ff, #ccfbf1);
  border-color: rgba(6, 182, 212, 0.65);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.18);
}

:root[data-theme="light"] .upstream-preset-chip.active svg {
  color: #0e7490;
  stroke: #0e7490;
}

:root[data-theme="light"] .upstream-preset-summary code {
  background: #eef7fb;
  color: #0f5d74;
}

:root[data-theme="light"] .upstream-key-editor {
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 145, 178, 0.07), transparent 34%),
    #f8fcff;
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .upstream-key-editor .notice-builder-head b {
  color: #0f172a;
}

:root[data-theme="light"] .upstream-key-editor .notice-builder-head span,
:root[data-theme="light"] .upstream-key-row label span {
  color: #64748b;
}

:root[data-theme="light"] .upstream-key-locate {
  background: #ffffff;
  border-color: #dbeafe;
  color: #64748b;
}

:root[data-theme="light"] .upstream-key-locate input {
  color: #0f172a;
}

:root[data-theme="light"] .upstream-key-rows {
  scrollbar-color: rgba(8, 145, 178, 0.48) rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .upstream-key-rows::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .upstream-key-rows::-webkit-scrollbar-thumb {
  background: rgba(8, 145, 178, 0.48);
}

:root[data-theme="light"] .notice-builder-row.feature.upstream-key-row {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .upstream-key-row.located {
  border-color: rgba(217, 119, 6, 0.72);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.12), 0 14px 24px rgba(217, 119, 6, 0.08);
}

:root[data-theme="light"] .upstream-key-row .check-cell {
  color: #334155;
}

:root[data-theme="light"] .upstream-key-row .check-cell input[type="checkbox"] {
  accent-color: #06b6d4;
}

:root[data-theme="light"] .composer-config-card > header span,
:root[data-theme="light"] .tool-config-head span,
:root[data-theme="light"] .admin-composer-preview > header span {
  color: #101828;
}

:root[data-theme="light"] .model-template-tools em,
:root[data-theme="light"] .admin-composer-preview > header em,
:root[data-theme="light"] .composer-checks label:not(:first-child) {
  color: #667085;
}

:root[data-theme="light"] .composer-config-preview span,
:root[data-theme="light"] .composer-config-preview b {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #667085;
}

:root[data-theme="light"] .composer-config-preview span {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.16);
  color: #0891b2;
}

:root[data-theme="light"] .composer-config-grid.sub,
:root[data-theme="light"] .tool-config-list,
:root[data-theme="light"] .admin-composer-preview {
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .tool-config-row {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .binding-field-picker > label {
  color: #475467;
}

:root[data-theme="light"] .binding-field-input span {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.18);
  color: #0891b2;
}

:root[data-theme="light"] .binding-field-search {
  background: #fff;
  border-color: #d0d5dd;
  color: #667085;
}

:root[data-theme="light"] .binding-field-search input {
  color: #101828;
}

:root[data-theme="light"] .binding-field-groups {
  scrollbar-color: rgba(8, 145, 178, 0.45) rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .binding-field-groups header {
  color: #344054;
}

:root[data-theme="light"] .binding-field-groups button {
  background: #f8fafc;
  border-color: #e4e7ec;
  color: #344054;
}

:root[data-theme="light"] .binding-field-groups button:hover,
:root[data-theme="light"] .binding-field-groups button.active {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.24);
}

:root[data-theme="light"] .binding-field-groups b {
  color: #101828;
}

:root[data-theme="light"] .binding-field-groups code {
  color: #0891b2;
}

:root[data-theme="light"] .binding-field-groups small {
  color: #667085;
}

:root[data-theme="light"] .admin-preview-composer,
:root[data-theme="light"] .admin-preview-vidu {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .admin-preview-ref,
:root[data-theme="light"] .admin-preview-input,
:root[data-theme="light"] .admin-preview-secondary,
:root[data-theme="light"] .admin-preview-vidu-grid article {
  background: #fbfcfe;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-preview-ref div,
:root[data-theme="light"] .admin-preview-ref b,
:root[data-theme="light"] .admin-preview-side button {
  background: #f2f4f7;
  color: #667085;
  border-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .admin-preview-input header,
:root[data-theme="light"] .admin-preview-secondary header,
:root[data-theme="light"] .admin-preview-vidu-grid header,
:root[data-theme="light"] .admin-preview-tools button b {
  color: #101828;
}

:root[data-theme="light"] .admin-preview-input p,
:root[data-theme="light"] .admin-preview-secondary p,
:root[data-theme="light"] .admin-preview-ref p,
:root[data-theme="light"] .admin-preview-vidu-grid article > p,
:root[data-theme="light"] .admin-preview-vidu-grid header span {
  color: #667085;
}

:root[data-theme="light"] .admin-preview-input strong,
:root[data-theme="light"] .admin-preview-vidu > strong {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.16);
  color: #087b8d;
}

:root[data-theme="light"] .admin-preview-tools button,
:root[data-theme="light"] .admin-preview-tools em {
  background: #f2f4f7;
  border-color: rgba(15, 23, 42, 0.08);
  color: #344054;
}

:root[data-theme="light"] .admin-preview-vidu-drop {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: #667085;
}

:root[data-theme="light"] .modal-close {
  background: #f2f4f7;
  color: #475467;
}

:root[data-theme="light"] .modal-head,
:root[data-theme="light"] .modal-foot {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .amount-card,
:root[data-theme="light"] .pay-option,
:root[data-theme="light"] .key-table th,
:root[data-theme="light"] .key-table td,
:root[data-theme="light"] .role-item {
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-pager {
  border-color: rgba(15, 23, 42, 0.08);
  color: #667085;
}

:root[data-theme="light"] .pager-summary span {
  color: #98a2b3;
}

:root[data-theme="light"] .pager-btn,
:root[data-theme="light"] .pager-size select {
  background: #fff;
  color: #344054;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .pager-btn.active {
  color: #fff;
  background: var(--cyan);
  border-color: var(--cyan);
}

:root[data-theme="light"] .page-load-more {
  color: #667085;
}

:root[data-theme="light"] .page-load-more.as-button {
  color: #0895b2;
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 160, 190, 0.24);
}

:root[data-theme="light"] .hint-box,
:root[data-theme="light"] .auth-box {
  background: #ecfdf5;
  color: #027a48;
  border-color: rgba(21, 128, 61, 0.18);
}

:root[data-theme="light"] .recharge-inline-alert.success {
  background: #e8f8ff;
  color: #0b3a53;
  border-color: rgba(0, 139, 190, 0.22);
}

:root[data-theme="light"] .recharge-inline-alert.success span,
:root[data-theme="light"] .recharge-inline-alert.success svg {
  color: #0b3a53;
}

:root[data-theme="light"] .recharge-inline-alert.error {
  background: #fff1f3;
  color: #b42318;
  border-color: rgba(217, 45, 32, 0.2);
}

:root[data-theme="light"] .code-box {
  background: #0f172a;
  color: #e2e8f0;
}

:root[data-theme="light"] .secret-box {
  background: #ecfdf5;
  color: #027a48;
}

:root[data-theme="light"] .btn:not(.btn-primary):hover {
  background: #ecfeff;
  border-color: #67d7e8;
  color: #075985;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .btn:disabled,
:root[data-theme="light"] .btn-primary:disabled {
  background: #f2f4f7;
  border-color: #d0d5dd;
  color: #98a2b3;
  box-shadow: none;
  opacity: 1;
}

:root[data-theme="light"] .copy-mini,
:root[data-theme="light"] .mini-action,
:root[data-theme="light"] .profile-logout-btn,
:root[data-theme="light"] .icon-btn:not(.sun):not(.green):not(.blue):not(.gold):not(.purple) {
  background: #ecfeff;
  border: 1px solid #67d7e8;
  color: #075985;
  font-weight: 720;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .copy-mini:hover,
:root[data-theme="light"] .mini-action:hover,
:root[data-theme="light"] .profile-logout-btn:hover,
:root[data-theme="light"] .icon-btn:not(.sun):not(.green):not(.blue):not(.gold):not(.purple):hover {
  background: #ecfeff;
  border-color: #0891b2;
  color: #064e63;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.12);
}

:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .function-card,
:root[data-theme="light"] .workbench-hero,
:root[data-theme="light"] .workbench-card,
:root[data-theme="light"] .workbench-stat,
:root[data-theme="light"] .workbench-quick,
:root[data-theme="light"] .work-card,
:root[data-theme="light"] .inspiration-card,
:root[data-theme="light"] .inspiration-category-row,
:root[data-theme="light"] .model-panel,
:root[data-theme="light"] .workflow-item,
:root[data-theme="light"] .workflow-detail,
:root[data-theme="light"] .partner-card,
:root[data-theme="light"] .amount-card,
:root[data-theme="light"] .pay-option,
:root[data-theme="light"] .admin-card {
  background: #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .works-page,
:root[data-theme="light"] .workbench-page {
  background:
    linear-gradient(rgba(8, 126, 148, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(8, 126, 148, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 18% 0%, rgba(0, 188, 212, 0.11), transparent 30%),
    #f7fbfd;
}

:root[data-theme="light"] .workbench-hero p,
:root[data-theme="light"] .workbench-card-head > span,
:root[data-theme="light"] .workbench-stat em,
:root[data-theme="light"] .workbench-quick em,
:root[data-theme="light"] .func-btn strong > span,
:root[data-theme="light"] .thumb-meta span,
:root[data-theme="light"] .date-title,
:root[data-theme="light"] .works-retention-notice {
  color: #667085;
}

:root[data-theme="light"] .workbench-quick strong,
:root[data-theme="light"] .thumb-meta strong {
  color: #101828;
}

:root[data-theme="light"] .thumb-actions button {
  background: rgba(255, 255, 255, 0.9);
  color: #344054;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .check-corner {
  background: #fff;
  border-color: #98a2b3;
}

:root[data-theme="light"] .workbench-hero h1,
:root[data-theme="light"] .workbench-card-head h2,
:root[data-theme="light"] .workbench-stat b {
  color: #101828;
}

:root[data-theme="light"] .gallery-top-tabs a {
  color: #667085;
}

:root[data-theme="light"] .gallery-size-control {
  color: #667085;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(8, 145, 178, 0.18);
}

:root[data-theme="light"] .gallery-category-search input,
:root[data-theme="light"] .gallery-item-search input {
  background: #fff;
  color: #172033;
  border-color: #f0c451;
}

:root[data-theme="light"] .gallery-category-search input::placeholder,
:root[data-theme="light"] .gallery-item-search input::placeholder {
  color: #7b8798;
}

:root[data-theme="light"] .gallery-category-search input:focus,
:root[data-theme="light"] .gallery-item-search input:focus {
  background: #fffdf5;
  border-color: #d99b00;
  box-shadow: 0 0 0 2px rgba(217, 155, 0, 0.12);
}

:root[data-theme="light"] .tag-btn {
  color: #087b8d;
  border-color: rgba(8, 145, 178, 0.18);
  background: rgba(8, 145, 178, 0.06);
}

:root[data-theme="light"] .tag-btn.active,
:root[data-theme="light"] .tag-btn:hover {
  color: #fff;
  background: var(--cyan);
  border-color: var(--cyan);
}

:root[data-theme="light"] .inspiration-category-row b {
  color: #101828;
}

:root[data-theme="light"] .inspiration-cover-uploader {
  background:
    linear-gradient(rgba(8, 145, 178, 0.045) 1px, transparent 1px) 0 0 / 22px 22px,
    #f8fafc;
  border-color: rgba(8, 145, 178, 0.28);
}

:root[data-theme="light"] .admin-stat-card {
  background:
    radial-gradient(circle at 88% 14%, rgba(0, 188, 212, 0.14), transparent 32%),
    #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-stat-card strong {
  color: #101828;
}

:root[data-theme="light"] .admin-stat-card small,
:root[data-theme="light"] .admin-stat-card em,
:root[data-theme="light"] .log-error,
:root[data-theme="light"] .setting-value-preview,
:root[data-theme="light"] .ledger-remark,
:root[data-theme="light"] .history-row em,
:root[data-theme="light"] .history-row small,
:root[data-theme="light"] .history-detail-head p,
:root[data-theme="light"] .history-message time {
  color: #667085;
}

:root[data-theme="light"] .history-row,
:root[data-theme="light"] .history-message,
:root[data-theme="light"] .share-stat {
  background: #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .share-layer,
:root[data-theme="light"] .share-fullscreen-layer {
  background:
    linear-gradient(rgba(8, 126, 148, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(8, 126, 148, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 16% 0%, rgba(255, 196, 0, 0.12), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(0, 188, 212, 0.12), transparent 30%),
    #f7fbfd;
}

:root[data-theme="light"] .share-dashboard-hero,
:root[data-theme="light"] .share-dashboard-card,
:root[data-theme="light"] .share-list-panel,
:root[data-theme="light"] .share-source-modal {
  background: #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .share-source-modal {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 196, 0, 0.1), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(0, 188, 212, 0.1), transparent 30%),
    #fff;
}

:root[data-theme="light"] .share-dashboard-hero p,
:root[data-theme="light"] .share-dashboard-card p,
:root[data-theme="light"] .share-dashboard-card > div > span,
:root[data-theme="light"] .share-rule-list span,
:root[data-theme="light"] .share-source-modal .share-stat em,
:root[data-theme="light"] .share-source-modal .form-field label,
:root[data-theme="light"] .share-source-modal .key-empty,
:root[data-theme="light"] .share-source-modal .key-empty.compact,
:root[data-theme="light"] .share-locked-body p {
  color: #667085;
}

:root[data-theme="light"] .share-dashboard-hero h1,
:root[data-theme="light"] .share-dashboard-card h2,
:root[data-theme="light"] .share-list-panel .modal-actions-row strong,
:root[data-theme="light"] .share-source-modal .share-stat strong,
:root[data-theme="light"] .share-locked-body h3 {
  color: #101828;
}

:root[data-theme="light"] .share-rule-list span,
:root[data-theme="light"] .share-source-modal .share-stat,
:root[data-theme="light"] .share-dashboard .share-list-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .share-source-modal input,
:root[data-theme="light"] .share-source-modal select,
:root[data-theme="light"] .share-link-row input,
:root[data-theme="light"] .referral-bind-row input,
:root[data-theme="light"] .share-dashboard .referral-withdraw-form input,
:root[data-theme="light"] .share-dashboard .referral-withdraw-form select {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

:root[data-theme="light"] .share-source-modal .segmented.small button,
:root[data-theme="light"] .share-dashboard .segmented.small button {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #475467;
}

:root[data-theme="light"] .share-source-modal .segmented.small .active,
:root[data-theme="light"] .share-dashboard .segmented.small .active {
  background: #19b8d2;
  border-color: #19b8d2;
  color: #fff;
}

:root[data-theme="light"] .share-dashboard .account-row,
:root[data-theme="light"] .share-source-modal .account-row {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .share-dashboard .account-row:hover,
:root[data-theme="light"] .share-source-modal .account-row:hover {
  background: #f8fafc;
}

:root[data-theme="light"] .history-row:hover,
:root[data-theme="light"] .history-row.active,
:root[data-theme="light"] .history-message.assistant {
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 188, 212, 0.22);
}

:root[data-theme="light"] .history-message p {
  color: #344054;
}

:root[data-theme="light"] .share-stat strong {
  color: #101828;
}

:root[data-theme="light"] .share-stat em {
  color: #667085;
}

:root[data-theme="light"] .permission-item {
  background: #f8fafc;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .doc-shell,
:root[data-theme="light"] .admin-shell {
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    #f7fbfd;
}

:root[data-theme="light"] .doc-sidebar,
:root[data-theme="light"] .admin-side {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-side .brand,
:root[data-theme="light"] .admin-side-foot {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .admin-nav-group {
  border-color: rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] .admin-nav-title {
  color: #475467;
}

:root[data-theme="light"] .admin-nav {
  color: #475467;
}

:root[data-theme="light"] .admin-nav svg,
:root[data-theme="light"] .admin-nav i {
  color: #667085;
  opacity: 1;
}

:root[data-theme="light"] .admin-nav:hover {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.2);
  color: #087b8d;
}

:root[data-theme="light"] .admin-nav.active {
  background: #dff8fd;
  border-color: rgba(8, 145, 178, 0.32);
  color: #075985;
  font-weight: 800;
}

:root[data-theme="light"] .admin-nav:hover svg,
:root[data-theme="light"] .admin-nav:hover i,
:root[data-theme="light"] .admin-nav.active svg,
:root[data-theme="light"] .admin-nav.active i {
  color: currentColor;
}

:root[data-theme="light"] .admin-nav.back {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #344054;
}

:root[data-theme="light"] .admin-inline-search input {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

:root[data-theme="light"] .doc-top {
  background: rgba(248, 252, 254, 0.86);
}

:root[data-theme="light"] .doc-brand {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .doc-provider {
  color: #64748b;
}

:root[data-theme="light"] .doc-model {
  color: #172033;
}

:root[data-theme="light"] .doc-model:hover {
  background: #f6fafc;
}

:root[data-theme="light"] .doc-model.active {
  background: #e8f2fb;
  outline: 1px solid rgba(8, 145, 178, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

:root[data-theme="light"] .doc-content,
:root[data-theme="light"] .doc-title {
  color: #111827;
}

:root[data-theme="light"] .crumb,
:root[data-theme="light"] .doc-content .stage-copy {
  color: #667085;
}

:root[data-theme="light"] .doc-content h2 {
  color: #111827;
}

:root[data-theme="light"] .doc-content .hint-box,
:root[data-theme="light"] .doc-content .auth-box {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

:root[data-theme="light"] .doc-content .hint-box code {
  color: #4338ca;
}

:root[data-theme="light"] .doc-steps article {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

:root[data-theme="light"] .doc-steps b {
  background: #dbe4ff;
  color: #3730a3;
}

:root[data-theme="light"] .doc-platform-tabs,
:root[data-theme="light"] .doc-os-tabs {
  border-bottom-color: #d9e2ee;
}

:root[data-theme="light"] .doc-platform-tabs button,
:root[data-theme="light"] .doc-os-tabs button {
  color: #667085;
}

:root[data-theme="light"] .doc-platform-tabs .active,
:root[data-theme="light"] .doc-os-tabs .active {
  color: #4f46e5;
}

:root[data-theme="light"] .doc-platform-tabs button:hover,
:root[data-theme="light"] .doc-os-tabs button:hover {
  color: #4338ca;
}

:root[data-theme="light"] .doc-warning {
  color: #d97706;
}

:root[data-theme="light"] .doc-code-card {
  background: #fff;
  border-color: #d9e2ee;
  color: #334155;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .doc-code-card header {
  background: #f1f5f9;
  border-bottom-color: #d9e2ee;
  color: #667085;
}

:root[data-theme="light"] .doc-code-card header button {
  background: #e2e8f0;
  color: #344054;
}

:root[data-theme="light"] .doc-code-card pre {
  color: #334155;
}

:root[data-theme="light"] .doc-endpoint-list div {
  background: rgba(255, 255, 255, 0.62);
  border-color: #d9e2ee;
  color: #64748b;
}

:root[data-theme="light"] .doc-endpoint-list code {
  color: #334155;
}

:root[data-theme="light"] .doc-endpoint-list em {
  color: #667085;
}

:root[data-theme="light"] .doc-content .endpoint {
  background: rgba(255, 255, 255, 0.62);
  border-color: #d9e2ee;
  color: #64748b;
}

:root[data-theme="light"] .doc-content .code-box {
  background: #fff;
  border-color: #d9e2ee;
  color: #334155;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .doc-content .code-box pre {
  color: #334155;
}

:root[data-theme="light"] .doc-top .btn {
  background: #fff;
  border-color: #d0dbe8;
  color: #344054;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .profile-row,
:root[data-theme="light"] .profile-row strong,
:root[data-theme="light"] .func-btn,
:root[data-theme="light"] .channel-row,
:root[data-theme="light"] .filter-title,
:root[data-theme="light"] .tool-title {
  color: #101828;
}

:root[data-theme="light"] .sidebar .brand {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .mode-tab {
  color: #667085;
  background: transparent;
}

:root[data-theme="light"] .mode-tab svg {
  color: #7a8798;
}

:root[data-theme="light"] .mode-tab:hover {
  color: #4338ca;
  background: #eef2ff;
}

:root[data-theme="light"] .mode-tab.active {
  color: #4338ca;
  background: #e0e7ff;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}

:root[data-theme="light"] .mode-tab.active svg {
  color: #4f46e5;
}

:root[data-theme="light"] .mode-tab.gold {
  color: #a16207;
  background: #fff6d8;
}

:root[data-theme="light"] .mode-tab.gold svg {
  color: #d69600;
}

:root[data-theme="light"] .mode-tab.gold.active {
  color: #9a5b00;
  background: #fff0b8;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.14);
}

:root[data-theme="light"] .model-tabs {
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .model-tabs button,
:root[data-theme="light"] .model-tabs a {
  color: #64748b;
  background: #f1f5f9;
}

:root[data-theme="light"] .model-tabs button:hover,
:root[data-theme="light"] .model-tabs a:hover {
  color: #0f6f82;
  background: #e7fbfe;
}

:root[data-theme="light"] .model-tabs .active {
  color: #fff;
  background: #0ea5b7;
  box-shadow: 0 7px 14px rgba(14, 165, 183, 0.18);
}

:root[data-theme="light"] .search input {
  background: #fff;
  color: #172033;
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .clearable-search > i,
:root[data-theme="light"] .clearable-search > svg,
:root[data-theme="light"] .clearable-search > .custom-icon-img {
  color: #0f95ad;
  opacity: 0.9;
}

:root[data-theme="light"] .clear-search-btn {
  color: #64748b;
  background: rgba(15, 23, 42, 0.07);
}

:root[data-theme="light"] .clear-search-btn:hover {
  color: #ffffff;
  background: #0ea5b7;
}

:root[data-theme="light"] .search input::placeholder {
  color: #7b8798;
}

:root[data-theme="light"] .tool-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .tool-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(14, 165, 183, 0.72), rgba(245, 158, 11, 0.68));
}

:root[data-theme="light"] .tool-item {
  color: #172033;
}

:root[data-theme="light"] .tool-item:hover {
  background: rgba(14, 165, 183, 0.07);
}

:root[data-theme="light"] .tool-item.active,
:root[data-theme="light"] .agent-sidebar .tool-item.active {
  background:
    linear-gradient(90deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.09) 52%, rgba(255, 255, 255, 0) 100%),
    #e9fbfd;
  border-left-color: #06b6d4;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.12), 0 7px 16px rgba(14, 165, 183, 0.1);
}

:root[data-theme="light"] .tool-icon,
:root[data-theme="light"] .agent-sidebar .agent-icon {
  color: #eefbff;
  background: linear-gradient(135deg, #172033, #283449);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .tool-item.active .tool-icon,
:root[data-theme="light"] .tool-item:hover .tool-icon,
:root[data-theme="light"] .agent-sidebar .tool-item.active .agent-icon,
:root[data-theme="light"] .agent-sidebar .tool-item:hover .agent-icon {
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #0f766e);
  box-shadow: 0 11px 22px rgba(8, 145, 178, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

:root[data-theme="light"] .agent-icon.gold,
:root[data-theme="light"] .agent-icon.orange {
  color: #fff7d6;
  background: linear-gradient(135deg, #9a5b00, #d97706);
}

:root[data-theme="light"] .agent-icon.purple {
  color: #f4edff;
  background: linear-gradient(135deg, #5b36b2, #7c3aed);
}

:root[data-theme="light"] .tool-title {
  color: #172033;
  font-weight: 780;
}

:root[data-theme="light"] .tool-desc {
  color: #667085;
  font-weight: 520;
}

:root[data-theme="light"] .tool-item.active .tool-title {
  color: #0f172a;
}

:root[data-theme="light"] .tool-item.active .tool-desc {
  color: #475467;
}

:root[data-theme="light"] .tool-item .badge {
  color: #08768a;
  background: #dcfafe;
  border-color: #7ddfec;
  font-weight: 760;
}

:root[data-theme="light"] .tool-item .badge.gold {
  color: #a16207;
  background: #fff7d6;
  border-color: #f3d56a;
}

:root[data-theme="light"] .tool-item .badge.purple {
  color: #6d43c2;
  background: #f0e9ff;
  border-color: #c4b5fd;
}

:root[data-theme="light"] .tool-item .badge.green {
  color: #047857;
  background: #dcfce7;
  border-color: #86efac;
}

:root[data-theme="light"] .sidebar-actions,
:root[data-theme="light"] .user-strip {
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .pill-btn:hover {
  background: #f8fafc;
  color: #0f6f82;
}

:root[data-theme="light"] .pill-btn.cyan {
  color: #08768a;
  border-color: rgba(8, 145, 178, 0.24);
  background: #ecfeff;
}

:root[data-theme="light"] .profile-main .badge {
  color: #344054;
  background: #f2f4f7;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .profile-role-badge {
  color: #344054;
  background: #f2f4f7;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .profile-role-badge.is-admin {
  color: #075985;
  background: #e0f7fe;
  border-color: #67d7e8;
}

:root[data-theme="light"] .profile-role-badge.is-admin:hover {
  color: #0f172a;
  background: #cffafe;
  border-color: #22d3ee;
}

:root[data-theme="light"] .profile-avatar-uploader > span {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .profile-row,
:root[data-theme="light"] .panel-title {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .profile-inline-form input,
:root[data-theme="light"] .bind-captcha-img {
  background: #fff;
  color: #101828;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .account-metric-list,
:root[data-theme="light"] .account-bind-block.editing {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-settings-modal .form-field label,
:root[data-theme="light"] .account-profile-head strong {
  color: #101828;
}

:root[data-theme="light"] .account-profile-head {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-profile-head span {
  color: #667085;
}

:root[data-theme="light"] .review-dialog textarea {
  background: #fff;
  color: #101828;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .review-summary {
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 188, 212, 0.2);
}

:root[data-theme="light"] .review-summary strong {
  color: #101828;
}

:root[data-theme="light"] .func-btn,
:root[data-theme="light"] .composer-clear-btn {
  background: #fff;
  color: #344054;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .composer-menu-btn {
  background: #f2f4f7;
  color: #344054;
}

:root[data-theme="light"] .composer-menu-btn.active,
:root[data-theme="light"] .composer-menu-btn[data-menu="policy"],
:root[data-theme="light"] .composer-menu-btn[data-menu="quantity"] {
  background: rgba(255, 196, 0, 0.18);
  color: #946200;
}

.toast {
  position: fixed;
  right: 20px;
  top: 70px;
  z-index: 80;
  background: #151a22;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  color: #dffaff;
  box-shadow: var(--shadow);
}

.support-layer {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.support-layer .support-modal {
  width: 302px;
  overflow: hidden;
  background: #1b1f27;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f6f8fb;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
}

.support-layer .support-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.support-layer .support-head h2,
.support-layer .agreement-head h2 {
  color: #f8fafc;
}

.support-layer .support-head p,
.support-layer .agreement-head p,
.support-layer .qr-card p {
  color: #8b95a5;
}

.support-layer .modal-close {
  color: #c1cad7;
  background: transparent;
}

.support-layer .service-card,
.support-layer .contact-row {
  border-color: rgba(255, 255, 255, 0.09);
  background: #222733;
}

.support-layer .service-avatar {
  background: #2a303d;
  color: #aeb8c7;
}

.support-layer .service-card strong,
.support-layer .contact-row strong {
  color: #f8fafc;
}

.support-layer .contact-row em {
  color: #8b95a5;
}

.support-layer .contact-row {
  color: #39bfff;
}

.support-layer .copy-btn {
  color: #b2bbc8;
}

.support-layer .support-foot {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.support-layer .support-foot .btn {
  background: #1f2430;
  color: #eef4ff;
  border-color: rgba(255, 255, 255, 0.12);
}

.support-layer .support-foot .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #09c4d8, #0aa9c4);
  border-color: rgba(0, 213, 236, 0.42);
}

:root[data-theme="light"] .support-layer {
  background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="light"] .support-layer .support-modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #101828;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .support-layer .support-head,
:root[data-theme="light"] .support-layer .support-foot {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.72);
}

:root[data-theme="light"] .support-layer .support-head h2,
:root[data-theme="light"] .support-layer .service-card strong,
:root[data-theme="light"] .support-layer .contact-row strong {
  color: #101828;
}

:root[data-theme="light"] .support-layer .support-head p,
:root[data-theme="light"] .support-layer .qr-card p,
:root[data-theme="light"] .support-layer .contact-row em {
  color: #667085;
}

:root[data-theme="light"] .support-layer .modal-close {
  background: #f2f4f7;
  color: #475467;
}

:root[data-theme="light"] .support-layer .service-card,
:root[data-theme="light"] .support-layer .contact-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .support-layer .service-avatar {
  background: #eef2f6;
  color: #475467;
}

:root[data-theme="light"] .support-layer .contact-row {
  color: #2e90fa;
}

:root[data-theme="light"] .support-layer .copy-btn {
  color: #667085;
}

:root[data-theme="light"] .support-layer .qr-code {
  background: #fff;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .support-layer .qr-code span {
  background: #eaf5ff;
}

:root[data-theme="light"] .support-layer .qr-code span.on {
  background: #2e90fa;
}

:root[data-theme="light"] .support-layer .support-foot .btn {
  background: #fff;
  color: #344054;
  border-color: #d0d5dd;
}

:root[data-theme="light"] .support-layer .support-foot .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #09c4d8, #0aa9c4);
  border-color: rgba(0, 160, 190, 0.32);
}

.partner-layer {
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 213, 236, 0.18), transparent 22%),
    radial-gradient(circle at 84% 6%, rgba(124, 58, 237, 0.18), transparent 22%),
    rgba(0, 0, 0, 0.86);
}

.partner-layer .partner-source-modal {
  position: relative;
  width: min(1398px, calc(100vw - 72px));
  min-height: min(802px, calc(100vh - 60px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-radius: 14px;
  border-color: rgba(0, 213, 236, 0.26);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 196, 0, 0.11), transparent 24%),
    linear-gradient(rgba(0, 213, 236, 0.032) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(0, 213, 236, 0.032) 1px, transparent 1px) 0 0 / 18px 18px,
    #05070b;
  box-shadow:
    inset 0 0 0 1px rgba(0, 213, 236, 0.16),
    0 34px 120px rgba(0, 0, 0, 0.7);
}

.partner-layer .partner-title {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--gold);
  text-align: center;
}

.partner-layer .partner-title strong {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(255, 196, 0, 0.28);
}

.partner-layer .partner-title p {
  flex-basis: 100%;
  margin: 28px 0 0;
  color: #9fb7c8;
  font-size: 14px;
}

.partner-layer .partner-body {
  position: relative;
  z-index: 1;
  padding: 0 68px 28px;
  max-height: none;
  overflow: visible;
}

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

.partner-layer .partner-card {
  position: relative;
  min-height: 176px;
  border: 1px solid rgba(0, 213, 236, 0.13);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 213, 236, 0.08) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(0, 213, 236, 0.06) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(1, 10, 19, 0.72);
  padding: 24px 22px;
  overflow: hidden;
}

.partner-layer .partner-card .modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
}

.partner-layer .partner-card h3 {
  margin: 22px 0 8px;
  color: #f8fbff;
  font-size: 15px;
}

.partner-layer .partner-card .stage-copy {
  margin: 0;
  color: #93a5b8;
  font-size: 12px;
  line-height: 1.7;
}

.partner-layer .partner-card .badge {
  min-height: 28px;
  border-color: rgba(0, 213, 236, 0.2);
  background: rgba(0, 213, 236, 0.12);
  color: #27e6ff;
}

.partner-layer .partner-foot {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 104px;
  border-top: 1px solid rgba(0, 213, 236, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(10px);
}

.partner-layer .partner-foot .btn {
  min-width: 124px;
  height: 48px;
}

.partner-layer .partner-foot .btn-primary {
  min-width: 280px;
  background: linear-gradient(135deg, #16d5f2, #a855f7);
  border-color: rgba(0, 213, 236, 0.35);
}

.pricing-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 213, 236, 0.2);
  border-radius: 8px;
  background: rgba(0, 213, 236, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.partner-apply-form {
  padding: 0 28px 0;
}

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

.partner-apply-grid input {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.64);
  color: var(--text);
  padding: 0 10px;
}

.partner-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.partner-status-row b {
  color: var(--text);
}

:root[data-theme="light"] .partner-layer {
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 180, 210, 0.16), transparent 24%),
    radial-gradient(circle at 84% 6%, rgba(124, 58, 237, 0.12), transparent 24%),
    rgba(15, 23, 42, 0.34);
}

:root[data-theme="light"] .partner-layer .partner-source-modal {
  border-color: rgba(8, 145, 178, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 196, 0, 0.12), transparent 26%),
    linear-gradient(rgba(8, 145, 178, 0.032) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(8, 145, 178, 0.032) 1px, transparent 1px) 0 0 / 18px 18px,
    #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(8, 145, 178, 0.12),
    0 32px 90px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .partner-layer .partner-close {
  color: #334155;
  border-color: #d7e2ef;
  background: rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .partner-layer .partner-title strong {
  color: #eab308;
  text-shadow: 0 12px 32px rgba(234, 179, 8, 0.22);
}

:root[data-theme="light"] .partner-layer .partner-title p {
  color: #54708a;
  font-weight: 620;
}

:root[data-theme="light"] .partner-layer .partner-card {
  border-color: #dce8f2;
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.05) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(rgba(8, 145, 178, 0.045) 1px, transparent 1px) 0 0 / 12px 12px,
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .partner-layer .partner-card:hover {
  border-color: rgba(234, 179, 8, 0.72);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.18), 0 18px 42px rgba(8, 145, 178, 0.12);
}

:root[data-theme="light"] .partner-layer .partner-card h3 {
  color: #172033;
  font-weight: 820;
}

:root[data-theme="light"] .partner-layer .partner-card .stage-copy {
  color: #52677d;
  font-weight: 560;
}

:root[data-theme="light"] .partner-layer .partner-card .badge {
  color: #06728a;
  border-color: #8ee7f2;
  background: #dff8fd;
  font-weight: 780;
}

:root[data-theme="light"] .partner-layer .pricing-note {
  color: #475467;
  border-color: #8ee7f2;
  background: linear-gradient(180deg, #e9fbff, #f5fdff);
}

:root[data-theme="light"] .partner-layer .partner-apply-grid input {
  color: #172033;
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .partner-layer .partner-apply-grid input::placeholder {
  color: #64748b;
}

:root[data-theme="light"] .partner-layer .partner-status-row {
  color: #52677d;
  border: 1px solid #dce8f2;
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .partner-layer .partner-status-row b {
  color: #172033;
}

:root[data-theme="light"] .partner-layer .partner-foot {
  border-top-color: rgba(8, 145, 178, 0.2);
  background: rgba(248, 251, 255, 0.9);
  box-shadow: 0 -18px 34px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .partner-layer .partner-foot .btn {
  color: #344054;
  border-color: #d0d5dd;
  background: #fff;
}

:root[data-theme="light"] .partner-layer .partner-foot .btn-primary {
  color: #fff;
  border-color: rgba(8, 145, 178, 0.26);
  background: linear-gradient(135deg, #13bfd7, #7c3aed);
}

.account-feature-layer .account-source-modal {
  width: min(1040px, calc(100vw - 72px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 26px 90px rgba(0, 0, 0, 0.56);
}

.account-feature-layer .api-key-modal {
  width: min(1280px, calc(100vw - 56px));
  min-height: 648px;
}

.account-feature-layer .consumption-modal {
  width: min(1120px, calc(100vw - 72px));
  min-height: min(790px, calc(100vh - 72px));
}

.account-feature-layer .payment-record-modal {
  width: min(760px, calc(100vw - 72px));
  min-height: 488px;
}

.account-feature-layer .invoice-source-modal {
  width: min(1080px, calc(100vw - 72px));
  min-height: 560px;
}

.account-feature-layer .account-source-head {
  padding: 0 22px;
}

.account-feature-layer .api-key-body,
.account-feature-layer .account-source-modal .ledger-table-wrap {
  scrollbar-gutter: stable;
}

.account-feature-layer .api-key-body {
  overflow: hidden;
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.account-feature-layer .api-key-table-wrap {
  margin: 14px 18px 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(9, 12, 18, 0.22);
  scrollbar-gutter: stable;
  padding-bottom: 6px;
}

.account-feature-layer .api-key-table {
  min-width: 1076px;
  table-layout: fixed;
}

.account-feature-layer .api-key-table th,
.account-feature-layer .api-key-table td {
  height: 52px;
  padding: 0 10px;
  vertical-align: middle;
}

.account-feature-layer .api-key-table th:nth-child(1),
.account-feature-layer .api-key-table td:nth-child(1) {
  width: 112px;
}

.account-feature-layer .api-key-table th:nth-child(2),
.account-feature-layer .api-key-table td:nth-child(2) {
  width: 190px;
}

.account-feature-layer .api-key-table th:nth-child(3),
.account-feature-layer .api-key-table td:nth-child(3) {
  width: 106px;
}

.account-feature-layer .api-key-table th:nth-child(4),
.account-feature-layer .api-key-table td:nth-child(4) {
  width: 118px;
}

.account-feature-layer .api-key-table th:nth-child(5),
.account-feature-layer .api-key-table td:nth-child(5) {
  width: 82px;
}

.account-feature-layer .api-key-table th:nth-child(6),
.account-feature-layer .api-key-table td:nth-child(6) {
  width: 100px;
}

.account-feature-layer .api-key-table th:nth-child(7),
.account-feature-layer .api-key-table td:nth-child(7) {
  width: 86px;
}

.account-feature-layer .api-key-table th:nth-child(8),
.account-feature-layer .api-key-table td:nth-child(8) {
  width: 136px;
}

.account-feature-layer .api-key-table th:nth-child(9),
.account-feature-layer .api-key-table td:nth-child(9) {
  width: 112px;
}

.account-feature-layer .api-key-table .key-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 7px;
}

.account-feature-layer .api-key-table .icon-btn,
.account-feature-layer .api-key-table .copy-mini {
  width: 27px;
  height: 27px;
}

.account-feature-layer .api-key-editing-row input,
.account-feature-layer .api-key-editing-row select {
  height: 34px;
}

.account-feature-layer .api-key-group-select {
  width: 100%;
  min-width: 0;
}

.account-feature-layer .api-key-group-pill {
  display: inline-flex;
  max-width: 112px;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(70, 227, 151, 0.12);
  color: #92f2bd;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-feature-layer .api-key-group-pill.fixed {
  background: rgba(0, 213, 236, 0.12);
  color: #7eeeff;
}

.account-feature-layer .api-key-table code {
  max-width: 166px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.account-feature-layer .consumption-stats,
.account-feature-layer .invoice-stats {
  padding-left: 26px;
  padding-right: 26px;
}

.account-feature-layer .consumption-toolbar,
.account-feature-layer .payment-toolbar {
  padding-left: 26px;
  padding-right: 26px;
}

.account-feature-layer .consumption-modal .ledger-table-wrap {
  max-height: min(430px, calc(100vh - 350px));
  margin: 12px 18px 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(9, 12, 18, 0.22);
  scrollbar-gutter: stable;
  padding-bottom: 6px;
}

.account-feature-layer .payment-record-modal .ledger-table-wrap {
  max-height: 300px;
  margin: 0 18px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(9, 12, 18, 0.22);
  scrollbar-gutter: stable;
  padding-bottom: 6px;
}

.account-feature-layer .ledger-table {
  min-width: 980px;
  table-layout: auto;
}

.account-feature-layer .payment-record-modal .ledger-table {
  min-width: 660px;
}

.account-feature-layer .ledger-table th,
.account-feature-layer .ledger-table td {
  padding: 12px 12px;
}

.account-feature-layer .ledger-table td:first-child,
.account-feature-layer .ledger-table th:first-child {
  padding-left: 18px;
}

.account-feature-layer .ledger-table td:last-child,
.account-feature-layer .ledger-table th:last-child {
  padding-right: 18px;
}

.account-feature-layer .ledger-remark {
  max-width: 280px;
}

.account-feature-layer .ledger-pager {
  padding: 14px 20px;
  margin: 0;
  border-top-color: rgba(255, 255, 255, 0.075);
}

.account-feature-layer .invoice-create-panel {
  margin: 18px 26px 0;
  padding: 16px;
  overflow: hidden;
  max-width: calc(100% - 52px);
}

.account-feature-layer .account-form-grid.invoice-grid {
  grid-template-columns: 130px minmax(230px, 1fr) minmax(170px, 0.8fr) minmax(230px, 1fr) 140px;
  align-items: end;
}

.account-feature-layer .invoice-create-panel .form-field {
  min-width: 0;
}

.account-feature-layer .invoice-create-panel input,
.account-feature-layer .invoice-create-panel select {
  height: 36px;
}

.account-feature-layer .invoice-create-panel textarea {
  min-height: 92px;
}

.account-feature-layer .invoice-list-panel {
  min-height: 244px;
}

.account-feature-layer .invoice-source-modal .account-empty {
  min-height: 240px;
}

:root[data-theme="light"] .account-feature-layer {
  background: rgba(15, 23, 42, 0.34);
}

:root[data-theme="light"] .account-feature-layer .account-source-modal {
  background: #fff;
  color: #101828;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 26px 82px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .account-feature-layer .account-source-head,
:root[data-theme="light"] .account-feature-layer .account-source-foot,
:root[data-theme="light"] .account-feature-layer .consumption-stats,
:root[data-theme="light"] .account-feature-layer .invoice-stats {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-feature-layer .account-source-head {
  background: rgba(248, 250, 252, 0.72);
}

:root[data-theme="light"] .account-feature-layer .account-source-foot {
  background: #fff;
  color: #667085;
}

:root[data-theme="light"] .account-feature-layer .account-source-head h2,
:root[data-theme="light"] .account-feature-layer .api-endpoint-panel__head strong,
:root[data-theme="light"] .account-feature-layer .account-empty strong,
:root[data-theme="light"] .account-feature-layer .account-stat strong,
:root[data-theme="light"] .account-feature-layer .key-table th,
:root[data-theme="light"] .account-feature-layer .key-table td,
:root[data-theme="light"] .account-feature-layer .ledger-table th,
:root[data-theme="light"] .account-feature-layer .ledger-table td,
:root[data-theme="light"] .account-feature-layer .bolt-text,
:root[data-theme="light"] .account-feature-layer .api-key-table code,
:root[data-theme="light"] .account-feature-layer .api-key-admin-value,
:root[data-theme="light"] .account-feature-layer .invoice-create-panel .form-field label,
:root[data-theme="light"] .account-feature-layer .feedback-source-modal .form-field label {
  color: #101828;
}

:root[data-theme="light"] .account-feature-layer .account-source-head p,
:root[data-theme="light"] .account-feature-layer .api-endpoint-panel__head span,
:root[data-theme="light"] .account-feature-layer .api-endpoint-note,
:root[data-theme="light"] .account-feature-layer .api-key-help p,
:root[data-theme="light"] .account-feature-layer .account-empty,
:root[data-theme="light"] .account-feature-layer .account-empty p,
:root[data-theme="light"] .account-feature-layer .account-stat span,
:root[data-theme="light"] .account-feature-layer .ledger-remark,
:root[data-theme="light"] .account-feature-layer .feedback-source-modal .form-field small {
  color: #667085;
}

:root[data-theme="light"] .account-feature-layer .api-endpoint-panel,
:root[data-theme="light"] .account-feature-layer .api-key-table-wrap,
:root[data-theme="light"] .account-feature-layer .consumption-modal .ledger-table-wrap,
:root[data-theme="light"] .account-feature-layer .payment-record-modal .ledger-table-wrap,
:root[data-theme="light"] .account-feature-layer .invoice-create-panel,
:root[data-theme="light"] .account-feature-layer .invoice-list-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-feature-layer .api-endpoint-item,
:root[data-theme="light"] .account-feature-layer .account-stat,
:root[data-theme="light"] .account-feature-layer .invoice-row,
:root[data-theme="light"] .account-feature-layer .api-key-table tbody tr:nth-child(odd) {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-feature-layer .invoice-row-main strong,
:root[data-theme="light"] .account-feature-layer .invoice-row-amount strong {
  color: #101828;
}

:root[data-theme="light"] .account-feature-layer .invoice-row-main p,
:root[data-theme="light"] .account-feature-layer .invoice-row-amount span,
:root[data-theme="light"] .account-feature-layer .invoice-row-status em,
:root[data-theme="light"] .account-feature-layer .invoice-row-actions time {
  color: #667085;
}

:root[data-theme="light"] .account-feature-layer .invoice-row-status code {
  color: #0369a1;
}

:root[data-theme="light"] .account-feature-layer .api-endpoint-panel__head code,
:root[data-theme="light"] .account-feature-layer .api-endpoint-item__main code,
:root[data-theme="light"] .account-feature-layer .api-key-table code {
  background: #eef7fb;
  color: #0f5d74;
}

:root[data-theme="light"] .account-feature-layer .api-key-create-row {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.06), rgba(255, 196, 0, 0.07));
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-feature-layer .api-key-create-row label {
  color: #667085;
}

:root[data-theme="light"] .account-feature-layer .api-key-create-row input,
:root[data-theme="light"] .account-feature-layer .api-key-create-row select,
:root[data-theme="light"] .account-feature-layer .api-key-editing-row input,
:root[data-theme="light"] .account-feature-layer .api-key-editing-row select,
:root[data-theme="light"] .account-feature-layer .consumption-selects select,
:root[data-theme="light"] .account-feature-layer .invoice-create-panel input,
:root[data-theme="light"] .account-feature-layer .invoice-create-panel select,
:root[data-theme="light"] .account-feature-layer .invoice-create-panel textarea,
:root[data-theme="light"] .account-feature-layer .feedback-source-modal input,
:root[data-theme="light"] .account-feature-layer .feedback-source-modal select,
:root[data-theme="light"] .account-feature-layer .feedback-source-modal textarea {
  background: #fff;
  border-color: #d0d5dd;
  color: #101828;
}

:root[data-theme="light"] .account-feature-layer .api-key-help {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.22);
  color: #946200;
}

:root[data-theme="light"] .account-feature-layer .copy-mini,
:root[data-theme="light"] .account-feature-layer .icon-btn {
  background: #f2f4f7;
  color: #475467;
}

:root[data-theme="light"] .account-feature-layer .api-key-group-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

:root[data-theme="light"] .account-feature-layer .api-key-group-pill.fixed {
  background: rgba(8, 145, 178, 0.1);
  color: #087b8d;
}

:root[data-theme="light"] .account-feature-layer .secret-box {
  background: #ecfdf5;
  color: #027a48;
  border-color: rgba(21, 128, 61, 0.18);
}

:root[data-theme="light"] .account-feature-layer .consumption-alert,
:root[data-theme="light"] .account-feature-layer .feedback-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.22);
}

:root[data-theme="light"] .account-feature-layer .feedback-hero {
  border-bottom-color: rgba(180, 83, 9, 0.16);
  background:
    radial-gradient(circle at 50% 22%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdfa 0%, #fff 78%);
}

:root[data-theme="light"] .account-feature-layer .feedback-hero .account-modal-icon {
  color: #b45309;
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 30px rgba(180, 83, 9, 0.12);
}

:root[data-theme="light"] .account-feature-layer .feedback-hero h2 {
  color: #92400e;
  text-shadow: none;
}

:root[data-theme="light"] .account-feature-layer .feedback-hero .modal-close {
  color: #344054;
  background: #f2f4f7;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .account-feature-layer .feedback-tabs {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

:root[data-theme="light"] .account-feature-layer .feedback-tabs button {
  color: #667085;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-feature-layer .feedback-tabs button.active {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.08);
}

:root[data-theme="light"] .account-feature-layer .feedback-tabs button svg {
  color: currentColor;
}

:root[data-theme="light"] .account-feature-layer .consumption-periods button {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  color: #475467;
}

:root[data-theme="light"] .account-feature-layer .consumption-periods button.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.32);
  color: #047857;
}

:root[data-theme="light"] .account-feature-layer .account-confirm-layer {
  background: rgba(15, 23, 42, 0.32);
}

:root[data-theme="light"] .account-feature-layer .account-confirm-dialog {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .account-feature-layer .account-confirm-head,
:root[data-theme="light"] .account-feature-layer .account-confirm-foot {
  border-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .account-feature-layer .account-confirm-head strong {
  color: #087b8d;
}

:root[data-theme="light"] .account-feature-layer .account-confirm-body {
  color: #344054;
}

.profile-action-layer .profile-action-modal {
  width: min(560px, calc(100vw - 72px));
  min-height: 0;
}

.profile-action-body {
  padding: 22px 26px 24px;
  display: grid;
  gap: 16px;
}

.profile-action-current {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-action-current span {
  color: #8e98a8;
  font-size: 12px;
}

.profile-action-current strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  word-break: break-all;
}

.profile-action-modal .profile-inline-form {
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.profile-action-modal .profile-inline-form input {
  height: 38px;
  border-radius: 7px;
  font-size: 13px;
  padding: 0 12px;
}

.profile-action-modal .bind-captcha-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.profile-action-modal .bind-captcha-img {
  height: 38px;
  border-radius: 7px;
  min-width: 112px;
}

.profile-action-modal .profile-action-row {
  grid-template-columns: minmax(0, 1fr) 96px 82px;
  gap: 10px;
}

.profile-action-modal .profile-action-row .btn {
  height: 36px;
  min-height: 36px;
  font-size: 13px;
}

.profile-action-modal .profile-code-notice,
.profile-action-modal .profile-bind-note {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #98a2b3;
  font-size: 12px;
}

.profile-action-modal .profile-wechat-tip {
  gap: 12px;
}

.profile-action-modal .password-inline-form {
  grid-template-columns: 1fr;
}

.profile-action-modal .password-inline-form .profile-action-row {
  grid-template-columns: 1fr 1fr;
}

.profile-action-modal .password-field button {
  top: 7px;
  right: 6px;
}

.agreement-layer .agreement-modal {
  width: min(860px, calc(100vw - 72px));
  height: min(820px, calc(100vh - 72px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 26px 90px rgba(0, 0, 0, 0.56);
}

.agreement-layer .agreement-head {
  padding-left: 24px;
  padding-right: 18px;
}

.agreement-layer .agreement-body {
  padding: 24px 34px 16px;
  scrollbar-gutter: stable;
}

.agreement-layer .agreement-foot {
  padding: 12px 34px 18px;
}

:root[data-theme="light"] .agreement-layer {
  background: rgba(15, 23, 42, 0.34);
}

:root[data-theme="light"] .agreement-layer .agreement-modal {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #344054;
  box-shadow: 0 26px 82px rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .agreement-layer .agreement-head {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agreement-layer .agreement-head h2,
:root[data-theme="light"] .agreement-layer .agreement-body h1,
:root[data-theme="light"] .agreement-layer .agreement-body h2 {
  color: #101828;
}

:root[data-theme="light"] .agreement-layer .agreement-head p {
  color: #667085;
}

:root[data-theme="light"] .agreement-layer .agreement-body {
  background: #fff;
  color: #344054;
}

:root[data-theme="light"] .agreement-layer .agreement-body p {
  color: #475467;
}

:root[data-theme="light"] .agreement-layer .agreement-foot {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .agreement-layer .read-tip {
  background: #ecfeff;
  border-color: rgba(8, 145, 178, 0.22);
  color: #087b8d;
}

:root[data-theme="light"] .agreement-layer .agreement-foot .btn-primary:not(:disabled) {
  background: linear-gradient(135deg, #09c4d8, #0aa9c4);
  border-color: rgba(0, 160, 190, 0.32);
  color: #fff;
}

@media (min-width: 861px) {
  .front-shell.app-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .front-shell .sidebar {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .front-shell .tool-list {
    min-height: 0;
    overflow-y: auto;
  }

  .front-shell .generator-main {
    height: 100vh;
    overflow-y: auto;
  }

  .front-shell .generator-workspace {
    padding-top: 28px;
    padding-bottom: 250px;
  }

  .front-shell .model-showcase-stage {
    margin-top: 64px;
  }

  .front-shell .showcase-feature-grid {
    margin-top: 24px;
  }

  .front-shell .showcase-quick-title {
    margin-top: 24px;
  }
}

@media (max-width: 1180px) {
  .front-motion-layer {
    opacity: 0.62;
  }

  .neo-hero {
    width: min(980px, calc(100vw - 36px));
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 62px;
  }

  .neo-hero-copy {
    max-width: 760px;
  }

  .neo-command-panel {
    width: min(720px, 100%);
    min-height: 440px;
  }

  .neo-flight-chip {
    opacity: 0.7;
  }

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

  .works-page,
  .workbench-page {
    grid-template-columns: 1fr;
  }

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

  .workbench-side {
    max-height: none;
  }

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

  .composer {
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 260px));
  }

  .generator-composer {
    min-height: 146px;
  }

  .vidu-composer {
    width: min(740px, calc(100vw - 260px));
    min-height: 360px;
  }

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

  .vidu-prompt-panel {
    grid-column: 1 / -1;
  }

  .vidu-music-workspace {
    padding-bottom: 420px;
  }

  .admin-preview-composer.has-reference.has-secondary .admin-preview-main {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-preview-composer.has-reference.has-secondary .admin-preview-secondary {
    grid-column: 2;
  }

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

  .admin-preview-vidu-grid article:last-child {
    grid-column: 1 / -1;
  }

  .model-showcase-stage {
    width: min(760px, calc(100vw - 300px));
    margin-top: 64px;
  }

  .chat-live-stage {
    width: min(760px, calc(100vw - 300px));
  }

  .model-panel {
    right: 18px;
    width: 282px;
  }

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

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

  .partner-layer .partner-body {
    padding-inline: 34px;
  }

  .agent-engine-showcase-grid,
  .agent-engine-dialog-grid {
    grid-template-columns: 1fr;
  }

  .agent-price-modal.with-detail .agent-price-shell {
    grid-template-columns: 1fr;
  }

  .agent-price-detail-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .agent-project-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .agent-project-result-panel {
    grid-column: 1 / -1;
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  .front-motion-layer {
    opacity: 0.5;
  }

  .front-chroma-field {
    opacity: 0.36;
  }

  .front-ribbon:nth-child(n + 4),
  .front-orbit-line:nth-child(n + 4),
  .front-glint:nth-child(n + 9) {
    display: none;
  }

  .front-shell .tool-item,
  .front-shell .tool-icon,
  .front-shell .brand-mark,
  .front-standalone .brand-mark,
  .neo-page .brand-mark {
    animation-duration: 7s;
  }

  .neo-page::after {
    height: 32vh;
  }

  .neo-hero {
    width: calc(100vw - 28px);
    padding: 42px 0 96px;
    min-height: auto;
  }

  .neo-motion-field {
    inset: -40px -12px 0;
  }

  .neo-grid-plane {
    opacity: 0.2;
  }

  .neo-scan-plane {
    inset: 0 -42%;
  }

  .neo-flight-chip {
    min-width: 106px;
    padding: 7px 8px;
  }

  .neo-flight-chip:nth-child(n + 6) {
    display: none;
  }

  .neo-chip-icon {
    width: 28px;
    height: 28px;
  }

  .neo-flight-chip strong {
    font-size: 11px;
  }

  .neo-flight-chip small {
    font-size: 9px;
  }

  .neo-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .neo-copy {
    width: 100%;
    font-size: 14px;
  }

  .neo-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .neo-stats div {
    min-height: 68px;
    padding: 10px;
  }

  .neo-stats strong {
    font-size: 22px;
  }

  .neo-command-panel {
    min-height: 0;
    padding: 12px;
  }

  .neo-panel-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .neo-route-ring {
    min-height: 270px;
  }

  .neo-terminal-row {
    grid-template-columns: 60px 1fr auto;
  }

  .neo-wave-stack {
    height: 76px;
  }

  .neo-model-ribbon {
    height: 52px;
    bottom: 16px;
  }

  .neo-ribbon-item {
    min-width: 142px;
    height: 34px;
    font-size: 12px;
  }

  .agent-project-page {
    padding: 62px 10px 10px;
  }

  .agent-project-workspace {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 72px);
  }

  .agent-project-worknav {
    grid-template-rows: auto auto auto auto auto;
    max-height: none;
  }

  .agent-worknav-projects,
  .agent-worknav-chapters {
    max-height: 240px;
  }

  .agent-project-workmain {
    padding: 13px;
  }

  .agent-workmain-head {
    flex-direction: column;
  }

  .agent-work-composer {
    grid-template-columns: 64px minmax(0, 1fr) 38px;
  }

  .agent-work-composer .reference-tile {
    width: 64px;
    height: 54px;
  }

  .agent-work-composer .asset-tile,
  .agent-work-composer .asset-tile.ref-filled,
  .agent-work-composer .asset-tile.ref-filled > img {
    width: 54px;
    height: 54px;
  }

  .agent-work-composer .agent-work-tool {
    display: none;
  }

  .agent-engine-overview-modal,
  .agent-price-modal,
  .agent-price-modal.with-detail {
    width: calc(100vw - 20px);
  }

  .agent-engine-overview-modal .modal-head {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .agent-engine-overview-modal .modal-head p {
    text-align: left;
  }

  .agent-engine-eval-grid,
  .agent-engine-showcase-grid {
    grid-template-columns: 1fr;
  }

  .agent-price-list-panel {
    padding-inline: 12px;
  }

  .agent-engine-foot {
    grid-template-columns: 1fr;
  }

  .upstream-filter-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .upstream-search-field {
    min-width: 0;
  }

  .upstream-preset-head {
    grid-template-columns: 1fr;
  }

  .upstream-preset-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .upstream-preset-summary code {
    max-width: 100%;
  }

  .works-head {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 12px;
  }

  .works-toolbar {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .works-search {
    width: min(100%, 320px);
    flex-basis: min(100%, 320px);
  }

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

  .works-list-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .workbench-page,
  .works-only-page {
    padding: 18px 16px 0;
  }

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

  .workbench-hero-actions {
    justify-content: flex-start;
  }

  .topbar {
    padding: 0 14px;
  }

  .top-actions .btn:not(.btn-primary) {
    display: none;
  }

  .app-shell,
  .doc-shell,
  .admin-shell,
  .workflow,
  .agent-flow,
  .agent-hero {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .doc-sidebar,
  .admin-side {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .doc-shell,
  .doc-main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .doc-list {
    max-height: 360px;
  }

  .admin-nav-list {
    overflow: visible;
  }

  .tool-list {
    max-height: 320px;
  }

  .agent-content,
  .with-project-panel .agent-content {
    width: calc(100vw - 32px);
    margin: 0 auto;
  }

  .agent-guide-inner {
    width: calc(100vw - 32px);
  }

  .multi-frame-shell {
    width: calc(100vw - 32px);
  }

  .agent-guide-section {
    padding: 28px 16px 76px;
  }

  .agent-guide-grid.compact,
  .agent-dialog-grid,
  .agent-project-cards,
  .agent-asset-board,
  .agent-engine-grid,
  .agent-engine-dialog-grid,
  .multi-frame-showcase,
  .multi-frame-feature-grid,
  .multi-frame-workflow,
  .agent-progress-rail,
  .agent-task-pipeline {
    grid-template-columns: 1fr;
  }

  .multi-frame-workflow span::after {
    display: none;
  }

  .agent-project-toolbar,
  .agent-create-grid,
  .agent-project-form-grid,
  .agent-engine-eval-grid,
  .agent-create-orientation {
    grid-template-columns: 1fr;
  }

  .agent-asset-block {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }

  .agent-asset-block:last-child {
    border-bottom: 0;
  }

  .agent-project-panel {
    position: relative;
    width: auto;
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-stage {
    height: auto;
    min-height: 100vh;
    padding: 72px 16px 140px;
    overflow: hidden;
  }

  .agent-main {
    overflow: hidden;
  }

  .agent-main .app-top {
    left: 0;
  }

  .agent-content,
  .with-project-panel .agent-content {
    height: auto;
    min-height: 0;
    display: block;
  }

  .agent-flow,
  .agent-action-bar,
  .agent-footer-row,
  .agent-mini-composer {
    width: 100%;
    transform: none;
  }

  .agent-footer-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .agent-bottom-actions {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
  }

  .agent-guide-pill,
  .agent-bottom-actions button {
    padding: 0 9px;
    font-size: 10px;
  }

  .agent-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .notice-modal,
  .notice-modal.template-maintenance {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
  }

  .notice-head,
  .notice-modal.template-maintenance .notice-head {
    min-height: 118px;
    justify-content: flex-start;
    padding: 18px 54px 12px 18px;
  }

  .notice-bell,
  .notice-modal.template-maintenance .notice-bell {
    width: 58px;
    height: 58px;
  }

  .notice-scroll,
  .notice-modal.template-maintenance .notice-scroll {
    padding: 0 16px 18px;
  }

  .notice-metric-grid,
  .notice-foot {
    grid-template-columns: 1fr;
  }

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

  .notice-foot {
    padding: 12px 16px 16px;
  }

  .agreement-layer .agreement-modal {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
  }

  .agreement-layer .agreement-head {
    padding-left: 18px;
    padding-right: 14px;
  }

  .agreement-layer .agreement-body {
    padding: 20px 18px 12px;
  }

  .agreement-layer .agreement-foot {
    padding: 12px 18px 16px;
  }

  .mini-grid,
  .right-stack,
  .workbench-stats,
  .workbench-quick-grid,
  .amount-grid,
  .pay-row,
  .key-toolbar,
  .asset-create-grid,
  .account-form-grid,
  .account-form-grid.invoice-grid,
  .recharge-card-form-grid,
  .permission-item,
  .admin-overview-grid,
  .admin-grid,
  .model-admin-grid,
  .admin-form-grid,
  .admin-edit-modal .admin-form-grid,
  .composer-config-grid,
  .agent-template-preview,
  .user-form-grid,
  .route-form {
    grid-template-columns: 1fr;
  }

  .tool-config-row {
    grid-template-columns: 1fr;
  }

  .tool-config-main,
  .binding-field-groups section > div {
    grid-template-columns: 1fr;
  }

  .admin-composer-preview > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-preview-stage {
    padding: 34px 10px 12px;
  }

  .admin-preview-composer,
  .admin-preview-vidu {
    padding-right: 48px;
  }

  .admin-preview-composer.has-reference .admin-preview-main,
  .admin-preview-composer.has-secondary .admin-preview-main,
  .admin-preview-composer.has-reference.has-secondary .admin-preview-main,
  .admin-preview-vidu-grid {
    grid-template-columns: 1fr;
  }

  .admin-preview-composer.has-reference.has-secondary .admin-preview-secondary,
  .admin-preview-vidu-grid article:last-child {
    grid-column: auto;
  }

  .admin-preview-ref {
    min-height: 68px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .admin-preview-ref p {
    max-width: none;
  }

  .admin-preview-input p,
  .admin-preview-secondary p,
  .admin-preview-vidu-grid article > p {
    margin-right: 0;
  }

  .asset-create-grid textarea {
    grid-column: auto;
  }

  .role-template-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .role-template-item > span:not(.role-template-avatar) {
    grid-column: 2 / -1;
  }

  .asset-row,
  .account-row,
  .invoice-row,
  .work-preview-body,
  .inspiration-detail-modal {
    grid-template-columns: 1fr;
  }

  .inspiration-detail-modal {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
  }

  .inspiration-detail-media,
  .inspiration-detail-media video,
  .inspiration-detail-single,
  .inspiration-detail-grid,
  .inspiration-detail-placeholder {
    min-height: min(58vh, 520px);
  }

  .inspiration-detail-media {
    height: min(58vh, 520px);
  }

  .inspiration-detail-info {
    padding: 18px;
  }

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

  .history-tools,
  .history-layout,
  .share-summary-grid,
  .share-columns,
  .referral-withdraw-form,
  .share-link-row,
  .referral-bind-row {
    grid-template-columns: 1fr;
  }

  .history-detail-head {
    display: grid;
    justify-items: start;
  }

  .history-list,
  .history-detail {
    max-height: none;
  }

  .history-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .referral-row,
  .referral-withdrawal-row {
    grid-template-columns: 1fr;
  }

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

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

  .model-admin-search {
    width: 100%;
  }

  .model-call-stats-toolbar {
    grid-template-columns: auto 138px 148px minmax(220px, 1fr) auto auto;
  }

  .composer {
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
  }

  .vidu-composer {
    width: auto;
    max-height: 72vh;
    overflow: auto;
    min-height: 0;
  }

  .vidu-input-grid,
  .vidu-asset-row,
  .notice-edit-layout {
    grid-template-columns: 1fr;
  }

  .notice-edit-layout.maintenance {
    grid-template-columns: 1fr;
  }

  .notice-preview-stage {
    height: auto;
    max-height: none;
  }

  .notice-builder-row.metric,
  .notice-builder-row.feature {
    grid-template-columns: 1fr;
  }

  .notice-builder-row.feature.upstream-key-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upstream-key-row > .icon-btn {
    align-self: center;
  }

  .notice-admin-preview {
    position: static;
  }

  .vidu-prompt-panel {
    grid-column: auto;
  }

  .vidu-intro-card {
    width: calc(100vw - 42px);
  }

  .vidu-music-workspace {
    padding: 64px 12px 520px;
  }

  .session-actions {
    display: none;
  }

  .model-showcase-stage {
    width: calc(100vw - 32px);
    margin-top: 28px;
  }

  .chat-live-workspace {
    padding: 42px 16px 260px;
  }

  .chat-live-stage {
    width: calc(100vw - 32px);
  }

  .chat-live-head,
  .chat-answer-grid {
    grid-template-columns: 1fr;
  }

  .chat-live-head {
    justify-items: start;
  }

  .showcase-feature-grid {
    grid-template-columns: 1fr;
  }

  .model-panel {
    display: none;
  }

  .doc-content {
    width: calc(100vw - 32px);
  }

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

  .side-signal,
  .orbit {
    display: none;
  }

  .account-source-modal,
  .consumption-modal,
  .payment-record-modal,
  .invoice-source-modal,
  .feedback-source-modal,
  .partner-layer .partner-source-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .partner-layer .partner-source-modal {
    overflow-y: auto;
  }

  .account-feature-layer .account-source-modal,
  .account-feature-layer .api-key-modal,
  .account-feature-layer .consumption-modal,
  .account-feature-layer .payment-record-modal,
  .account-feature-layer .invoice-source-modal,
  .profile-action-layer .profile-action-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .profile-action-body {
    padding: 18px;
  }

  .profile-action-current {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
  }

  .profile-action-modal .profile-inline-form,
  .profile-action-modal .profile-action-row {
    grid-template-columns: 1fr;
  }

  .profile-action-modal .bind-captcha-row {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .consumption-stats,
  .invoice-stats,
  .feedback-compact-grid,
  .partner-layer .partner-grid,
  .share-dashboard,
  .share-dashboard-grid,
  .share-link-card {
    grid-template-columns: 1fr;
  }

  .share-fullscreen-layer {
    padding: 10px;
  }

  .share-dashboard {
    height: calc(100vh - 20px);
    overflow: auto;
  }

  .share-dashboard-main,
  .share-dashboard-side {
    overflow: visible;
  }

  .share-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .consumption-toolbar,
  .payment-toolbar,
  .feedback-body,
  .feedback-tabs,
  .feedback-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-feature-layer .api-key-table-wrap,
  .account-feature-layer .consumption-modal .ledger-table-wrap,
  .account-feature-layer .payment-record-modal .ledger-table-wrap {
    margin-left: 12px;
    margin-right: 12px;
  }

  .api-key-create-row {
    grid-template-columns: 1fr 1fr;
  }

  .api-key-create-actions {
    justify-content: flex-start;
  }

  .account-feature-layer .account-form-grid.invoice-grid,
  .account-feature-layer .invoice-stats,
  .account-feature-layer .consumption-stats {
    grid-template-columns: 1fr;
  }

  .account-feature-layer .invoice-create-panel {
    max-width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  .partner-layer .partner-title {
    min-height: 172px;
    padding: 22px 52px 12px;
  }

  .partner-layer .partner-body {
    padding: 0 18px 92px;
    max-height: calc(100vh - 242px);
  }

  .partner-layer .partner-foot {
    min-height: 92px;
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .front-ribbon:nth-child(n + 3),
  .front-orbit-line:nth-child(n + 3),
  .front-glint:nth-child(n + 7) {
    display: none;
  }

  .front-motion-layer {
    opacity: 0.36;
  }

  .neo-hero {
    width: calc(100vw - 22px);
    padding-top: 30px;
  }

  .neo-stream:nth-child(n + 8),
  .neo-flight-chip:nth-child(n + 4) {
    display: none;
  }

  .neo-hero h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .neo-actions .btn {
    width: 100%;
  }

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

  .neo-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
  }

  .neo-stats span {
    margin-top: 0;
  }

  .neo-command-panel {
    padding: 10px;
  }

  .neo-route-ring {
    min-height: 232px;
  }

  .neo-core {
    width: 66px;
    height: 66px;
  }

  .neo-ring-mark {
    width: 30px;
    height: 30px;
  }

  .neo-terminal-row {
    height: auto;
    min-height: 48px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
    padding: 10px;
  }

  .neo-terminal-row em {
    width: 100%;
  }

  .neo-output-lines {
    min-height: 94px;
    padding: 14px 12px;
  }

  .neo-wave-stack {
    gap: 5px;
    padding: 10px;
  }

  .neo-model-ribbon {
    width: 100vw;
  }

  .gallery-nav {
    height: auto;
    min-height: 54px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 6px 0 10px;
  }

  .gallery-nav-tools {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-size-control {
    width: min(172px, 58vw);
  }

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

  .notice-feature-grid {
    grid-template-columns: 1fr;
  }

  .notice-progress {
    grid-template-columns: auto minmax(64px, 1fr) auto;
    gap: 8px;
    padding: 10px;
    font-size: 11px;
  }

  .notice-maintenance-thanks {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 9px 12px;
  }

  .function-grid,
  .consumption-selects,
  .feedback-foot,
  .partner-layer .partner-foot {
    grid-template-columns: 1fr;
  }

  .partner-layer .partner-foot {
    display: grid;
  }

  .partner-layer .partner-foot .btn,
  .partner-layer .partner-foot .btn-primary {
    width: 100%;
    min-width: 0;
  }

  .support-layer .support-modal {
    width: min(302px, calc(100vw - 30px));
  }
}

/* Final composer side-entry placement: keep configured entries as tiny top-right tools. */
.config-composer > .composer-side-icons.config-side-icons {
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  display: grid !important;
  grid-auto-flow: row;
  gap: 4px !important;
  z-index: 20 !important;
}

.config-composer > .composer-side-icons.config-side-icons a,
.config-composer > .composer-side-icons.config-side-icons button {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  border-radius: 5px !important;
  padding: 0 !important;
}

.config-composer > .composer-side-icons.config-side-icons svg {
  width: 11px !important;
  height: 11px !important;
}

.admin-preview-composer > .admin-preview-side {
  top: 9px !important;
  right: 10px !important;
}

.admin-preview-composer > .admin-preview-side button {
  width: 18px !important;
  height: 18px !important;
}

.admin-preview-composer > .admin-preview-side svg {
  width: 11px !important;
  height: 11px !important;
}

/* Front workspace clean pass */
.front-shell.app-shell {
  background:
    radial-gradient(circle at 20% 18%, rgba(5, 244, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(155, 107, 255, 0.16), transparent 34%),
    radial-gradient(circle at 54% 88%, rgba(19, 243, 162, 0.1), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(135deg, #070b13 0%, #0b1420 46%, #101024 100%);
}

.front-shell .front-motion-layer {
  opacity: 0.42;
}

.front-shell.front-image .front-motion-layer {
  display: none;
}

.front-shell .front-glint,
.front-shell .showcase-backdrop,
.front-shell .chat-live-backdrop,
.front-shell .sidebar::before,
.front-shell .sidebar::after,
.front-shell .mode-tab::after,
.front-shell .tool-item::after,
.front-shell .showcase-feature::after,
.front-shell .chat-answer-card::after,
.front-shell .chat-summary-card::after {
  display: none;
}

.front-shell .generator-main {
  background:
    radial-gradient(circle at 26% 18%, rgba(5, 244, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(155, 107, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 96%, rgba(19, 243, 162, 0.1), transparent 38%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(135deg, #07101a 0%, #0a1420 45%, #111327 100%);
}

:root[data-theme="light"] .front-shell.app-shell,
:root[data-theme="light"] .front-shell .generator-main {
  background:
    linear-gradient(rgba(15, 23, 42, 0.018) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(15, 23, 42, 0.018) 1px, transparent 1px) 0 0 / 64px 64px,
    #eef3f8;
}

.front-shell .sidebar {
  background: #151a22;
  border-right-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .front-shell .sidebar {
  background: #eef3f8;
  border-right-color: #d7dfeb;
  box-shadow: none;
}

.front-shell .tool-icon,
.front-shell .brand-mark,
.front-shell .mode-tab,
.front-shell .tool-item,
.front-shell .showcase-hero-card,
.front-shell .showcase-feature,
.front-shell .chat-live-head {
  animation: none;
}

.front-shell .showcase-hero-card,
.front-shell .showcase-feature,
.front-shell .chat-live-head,
.front-shell .chat-summary-card,
.front-shell .chat-answer-card,
.front-shell .model-panel,
.generator-composer:not(.vidu-composer) {
  backdrop-filter: blur(18px) saturate(1.25);
}

:root[data-theme="dark"] .front-shell .showcase-hero-card,
:root[data-theme="dark"] .front-shell .showcase-feature,
:root[data-theme="dark"] .front-shell .chat-live-head,
:root[data-theme="dark"] .front-shell .chat-summary-card,
:root[data-theme="dark"] .front-shell .chat-answer-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(15, 20, 32, 0.72);
  border-color: rgba(125, 211, 252, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 58px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .front-shell .showcase-hero-card::before,
:root[data-theme="dark"] .front-shell .showcase-feature::before,
:root[data-theme="dark"] .front-shell .chat-live-head::before,
:root[data-theme="dark"] .front-shell .chat-summary-card::before,
:root[data-theme="dark"] .front-shell .chat-answer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(5, 244, 255, 0.08) 68%, transparent);
  opacity: 0.48;
}

.front-shell .mode-tab:hover,
.front-shell .mode-tab.active,
.front-shell .tool-item.active,
.front-shell .tool-item:hover {
  transform: none;
}

:root[data-theme="light"] .front-shell .mode-tab {
  color: #64748b;
  background: transparent;
}

:root[data-theme="light"] .front-shell .mode-tab:hover,
:root[data-theme="light"] .front-shell .mode-tab.active {
  color: #036879;
  background: #dff6fb;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.14);
}

:root[data-theme="light"] .front-shell .mode-tab.gold {
  color: #a16207;
  background: #fff7d6;
}

:root[data-theme="light"] .front-shell .mode-tab.gold.active {
  color: #854d0e;
  background: #ffefb3;
}

.front-shell .mode-tab.gold:not(.active) {
  color: #a8b3c2;
  background: transparent;
  box-shadow: none;
}

.front-shell .mode-tab.gold:not(.active) svg {
  color: #b7a05a;
}

.front-shell .mode-tab.gold:not(.active):hover {
  color: #ffd166;
  background: rgba(255, 196, 0, 0.09);
}

:root[data-theme="light"] .front-shell .mode-tab.gold:not(.active) {
  color: #64748b;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .front-shell .mode-tab.gold:not(.active) svg {
  color: #8a94a6;
}

:root[data-theme="light"] .front-shell .mode-tab.gold:not(.active):hover {
  color: #9a5b00;
  background: #fff7d6;
}

.front-shell .model-tabs a,
.front-shell .model-tabs button {
  border-radius: 999px;
}

:root[data-theme="light"] .front-shell .model-tabs a,
:root[data-theme="light"] .front-shell .model-tabs button {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

:root[data-theme="light"] .front-shell .model-tabs .active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: none;
}

.front-shell .tool-item {
  border-left: 0;
  border-radius: 10px;
  transform: none;
}

:root[data-theme="light"] .front-shell .tool-item {
  background: transparent;
  color: #172033;
}

:root[data-theme="light"] .front-shell .tool-item:hover {
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .front-shell .tool-item.active,
:root[data-theme="light"] .front-shell .agent-sidebar .tool-item.active {
  background: #dfe8f4;
  border-left-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .front-shell .tool-icon,
:root[data-theme="light"] .front-shell .agent-sidebar .agent-icon {
  background: #111827;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .front-shell .tool-item.active .tool-icon,
:root[data-theme="light"] .front-shell .tool-item:hover .tool-icon,
:root[data-theme="light"] .front-shell .agent-sidebar .tool-item.active .agent-icon,
:root[data-theme="light"] .front-shell .agent-sidebar .tool-item:hover .agent-icon {
  background: #111827;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .front-shell .tool-title {
  color: #111827;
  font-weight: 760;
}

:root[data-theme="light"] .front-shell .tool-desc {
  color: #64748b;
  font-weight: 470;
}

.front-shell .orb-btn {
  animation: none;
  overflow: visible;
}

.front-shell .orb-btn::before,
.front-shell .orb-btn::after {
  display: none;
}

.front-shell .orb-btn:hover {
  animation: none;
  transform: translateY(-1px);
}

.front-shell .orb-btn span,
.front-shell .orb-btn:hover span {
  display: none !important;
}

:root[data-theme="light"] .front-shell .orb-btn {
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.generator-composer:not(.vidu-composer)::before,
.generator-composer:not(.vidu-composer)::after {
  display: none;
}

.generator-composer:not(.vidu-composer) {
  bottom: 18px;
  width: min(792px, calc(100vw - 460px));
  min-height: 122px;
  border-radius: 12px;
  background: #1c2028;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] .generator-composer:not(.vidu-composer) {
  background: #fff;
  border-color: #e4eaf2;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.generator-composer:not(.vidu-composer) .composer-input {
  min-height: 80px;
}

.generator-composer:not(.vidu-composer) textarea {
  min-height: 76px;
  padding-top: 24px;
  font-size: 12px;
}

:root[data-theme="light"] .generator-composer:not(.vidu-composer) textarea {
  color: #475467;
}

.generator-composer:not(.vidu-composer) .estimate {
  background: rgba(255, 255, 255, 0.92);
  color: #e08a00;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .generator-composer:not(.vidu-composer) .estimate {
  background: #252b35;
  box-shadow: none;
}

:root[data-theme="dark"] .generator-composer:not(.vidu-composer),
:root[data-theme="dark"] .model-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(12, 18, 29, 0.76);
  border-color: rgba(125, 211, 252, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 62px rgba(0, 0, 0, 0.42);
}

.generator-composer:not(.vidu-composer) .composer-tools {
  padding-top: 3px;
}

.generator-composer:not(.vidu-composer) .composer-menu-btn {
  height: 25px;
  border-radius: 7px;
  font-size: 10.5px;
}

:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-menu-btn {
  background: #f8fafc;
  border-color: #d9e2ee;
  color: #475467;
  box-shadow: none;
}

:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-menu-btn.active,
:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-menu-btn[data-menu="policy"],
:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-menu-btn[data-menu="quantity"] {
  background: #fff4cf;
  border-color: #f4d579;
  color: #946200;
}

.generator-composer:not(.vidu-composer) .send-btn {
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.24);
}

:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-clear-btn,
:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-side-icons button,
:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-side-icons a {
  background: #fff;
  border-color: #dbe3ef;
  color: #64748b;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-side-icons button:hover,
:root[data-theme="light"] .generator-composer:not(.vidu-composer) .composer-side-icons a:hover {
  background: #eef2ff;
  border-color: rgba(79, 70, 229, 0.26);
  color: #4f46e5;
}

.gen-model-dock {
  gap: 7px;
}

.gen-model-dock .model-avatar {
  width: 29px;
  height: 29px;
  border-width: 2px;
  animation: none;
}

.gen-model-dock .role-avatar-btn,
.gen-model-dock .gen-avatar {
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] .gen-model-dock .role-avatar-btn,
:root[data-theme="light"] .gen-model-dock .gen-avatar {
  border-color: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.16);
}

.gen-model-dock .role-avatar-btn.active {
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.22), 0 8px 16px rgba(79, 70, 229, 0.16);
}

.gen-model-dock .add-avatar {
  background: transparent;
  color: #94a3b8;
  border-color: #cbd5e1;
  box-shadow: none;
}

:root[data-theme="light"] .reference-tile .asset-tile,
:root[data-theme="light"] .asset-tile.ref-filled,
:root[data-theme="light"] .config-ref-tile.empty {
  background: #f8fafc;
  border-color: #d4deea;
  color: #64748b;
  box-shadow: none;
}

:root[data-theme="light"] .ref-more-btn {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.18);
}

:root[data-theme="light"] .reference-manager-modal {
  background: #fff;
  border-color: #e4eaf2;
  color: #101828;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] .reference-manager-summary {
  color: #667085;
}

:root[data-theme="light"] .reference-manager-card {
  background: #f8fafc;
  border-color: #e4eaf2;
}

:root[data-theme="light"] .reference-manager-card strong {
  color: #101828;
}

:root[data-theme="light"] .reference-manager-card span {
  color: #667085;
}

:root[data-theme="light"] .reference-manager-empty {
  color: #667085;
}

/* Light theme: replace green/cyan text accents with clearer blue-violet accents on white surfaces. */
:root[data-theme="light"] .brand-name,
:root[data-theme="light"] .front-shell .brand-name,
:root[data-theme="light"] .front-shell .brand-sub b,
:root[data-theme="light"] .metric-cyan,
:root[data-theme="light"] .cyan-text,
:root[data-theme="light"] .green-text,
:root[data-theme="light"] .purple-text,
:root[data-theme="light"] .agent-guide-action,
:root[data-theme="light"] .agent-guide-tip,
:root[data-theme="light"] .agent-guide-highlight,
:root[data-theme="light"] .pill-btn.cyan,
:root[data-theme="light"] .func-btn.cyan .func-icon,
:root[data-theme="light"] .func-btn.green .func-icon,
:root[data-theme="light"] .orb-btn.green,
:root[data-theme="light"] .orb-btn.blue,
:root[data-theme="light"] .node-icon.cyan,
:root[data-theme="light"] .neo-ring-mark.cyan,
:root[data-theme="light"] .neo-ring-mark.green,
:root[data-theme="light"] .tool-item .badge.green,
:root[data-theme="light"] .policy-pill.green,
:root[data-theme="light"] .account-stat.green strong,
:root[data-theme="light"] .share-source-modal .share-stat.green strong,
:root[data-theme="light"] .share-source-modal .share-stat.cyan strong {
  color: #4f46e5 !important;
}

:root[data-theme="light"] .status-dot,
:root[data-theme="light"] .status-dot.green,
:root[data-theme="light"] .price-icon.plus {
  background: #4f46e5 !important;
}

:root[data-theme="light"] .func-btn.green,
:root[data-theme="light"] .func-btn.cyan {
  border-left-color: #4f46e5 !important;
}

:root[data-theme="light"] .policy-pill.green,
:root[data-theme="light"] .share-source-modal .share-stat.green > span,
:root[data-theme="light"] .share-source-modal .share-stat.cyan > span,
:root[data-theme="light"] .account-stat.green,
:root[data-theme="light"] .agent-guide-highlight,
:root[data-theme="light"] .agent-guide-tip {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: rgba(79, 70, 229, 0.22) !important;
}

/* Light theme: keep green/cyan accents off white surfaces across the whole app. */
:root[data-theme="light"] .accent,
:root[data-theme="light"] .hero h1 span,
:root[data-theme="light"] .section-title span,
:root[data-theme="light"] .pill,
:root[data-theme="light"] .btn:not(.btn-primary):hover,
:root[data-theme="light"] .icon-btn.green,
:root[data-theme="light"] .icon-btn.success,
:root[data-theme="light"] .icon-btn:not(.sun):not(.gold):not(.purple):not(.red):hover,
:root[data-theme="light"] .page-load-more.as-button,
:root[data-theme="light"] .copy-mini,
:root[data-theme="light"] .mini-action,
:root[data-theme="light"] .profile-logout-btn,
:root[data-theme="light"] .profile-wechat-tip,
:root[data-theme="light"] .smart-row,
:root[data-theme="light"] .learn-row,
:root[data-theme="light"] .policy-option.active,
:root[data-theme="light"] .service-status,
:root[data-theme="light"] .pay-mode-badge,
:root[data-theme="light"] .recharge-tabs button.active,
:root[data-theme="light"] .recharge-amount-card.active,
:root[data-theme="light"] .recharge-pay-option.active,
:root[data-theme="light"] .recharge-pay-option.active i,
:root[data-theme="light"] .recharge-inline-alert.success,
:root[data-theme="light"] .recharge-inline-alert.success span,
:root[data-theme="light"] .recharge-inline-alert.success svg,
:root[data-theme="light"] .pay-status-note.success,
:root[data-theme="light"] .pay-checking.success,
:root[data-theme="light"] .pay-clock.success,
:root[data-theme="light"] .hint-box,
:root[data-theme="light"] .auth-box,
:root[data-theme="light"] .secret-box,
:root[data-theme="light"] .doc-content .hint-box,
:root[data-theme="light"] .doc-content .auth-box,
:root[data-theme="light"] .doc-content .hint-box code,
:root[data-theme="light"] .tag-btn,
:root[data-theme="light"] .tool-item .badge,
:root[data-theme="light"] .tool-item .badge.green,
:root[data-theme="light"] .pill-btn:hover,
:root[data-theme="light"] .pill-btn.cyan,
:root[data-theme="light"] .account-modal-icon.green,
:root[data-theme="light"] .account-feature-layer .api-key-group-pill,
:root[data-theme="light"] .account-feature-layer .api-key-group-pill.fixed,
:root[data-theme="light"] .account-feature-layer .secret-box,
:root[data-theme="light"] .account-feature-layer .consumption-periods button.active,
:root[data-theme="light"] .account-feature-layer .account-confirm-head strong,
:root[data-theme="light"] .price-strip div:first-child b,
:root[data-theme="light"] .agent-schedule-tip,
:root[data-theme="light"] .agent-schedule-tip b,
:root[data-theme="light"] .agent-price-link,
:root[data-theme="light"] .agent-price-tabs button.active,
:root[data-theme="light"] .agent-price-row em.chat,
:root[data-theme="light"] .agent-price-row em.audio,
:root[data-theme="light"] .agent-official-route em,
:root[data-theme="light"] .agent-engine-policy-row label.active,
:root[data-theme="light"] .agent-engine-policy-row label:has(input:checked),
:root[data-theme="light"] .tool-item.active .tool-title,
:root[data-theme="light"] .front-shell .tool-item.active .tool-title {
  color: #4f46e5 !important;
}

:root[data-theme="light"] .pill,
:root[data-theme="light"] .page-load-more.as-button,
:root[data-theme="light"] .copy-mini,
:root[data-theme="light"] .mini-action,
:root[data-theme="light"] .profile-logout-btn,
:root[data-theme="light"] .profile-wechat-tip,
:root[data-theme="light"] .smart-row,
:root[data-theme="light"] .learn-row,
:root[data-theme="light"] .policy-option.active,
:root[data-theme="light"] .service-status,
:root[data-theme="light"] .pay-mode-badge,
:root[data-theme="light"] .recharge-amount-card.active,
:root[data-theme="light"] .recharge-pay-option.active,
:root[data-theme="light"] .recharge-inline-alert.success,
:root[data-theme="light"] .pay-status-note.success,
:root[data-theme="light"] .pay-checking.success,
:root[data-theme="light"] .pay-clock.success,
:root[data-theme="light"] .hint-box,
:root[data-theme="light"] .auth-box,
:root[data-theme="light"] .secret-box,
:root[data-theme="light"] .doc-content .hint-box,
:root[data-theme="light"] .doc-content .auth-box,
:root[data-theme="light"] .tag-btn,
:root[data-theme="light"] .tool-item .badge,
:root[data-theme="light"] .tool-item .badge.green,
:root[data-theme="light"] .pill-btn.cyan,
:root[data-theme="light"] .account-modal-icon.green,
:root[data-theme="light"] .account-feature-layer .api-key-group-pill,
:root[data-theme="light"] .account-feature-layer .api-key-group-pill.fixed,
:root[data-theme="light"] .account-feature-layer .secret-box,
:root[data-theme="light"] .account-feature-layer .consumption-periods button.active,
:root[data-theme="light"] .agent-schedule-tip,
:root[data-theme="light"] .agent-price-link,
:root[data-theme="light"] .agent-engine-policy-row label.active,
:root[data-theme="light"] .agent-engine-policy-row label:has(input:checked) {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
}

:root[data-theme="light"] .btn:not(.btn-primary):hover,
:root[data-theme="light"] .copy-mini:hover,
:root[data-theme="light"] .mini-action:hover,
:root[data-theme="light"] .profile-logout-btn:hover,
:root[data-theme="light"] .icon-btn:not(.sun):not(.gold):not(.purple):not(.red):hover {
  background: #eef2ff !important;
  border-color: #a5b4fc !important;
  color: #3730a3 !important;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12) !important;
}

:root[data-theme="light"] .recharge-tabs button.active {
  border-bottom-color: #4f46e5 !important;
}

:root[data-theme="light"] .recharge-amount-card.active {
  box-shadow: inset 0 0 0 1px #4f46e5 !important;
}

:root[data-theme="light"] .recharge-amount-card.active .amount-bolt,
:root[data-theme="light"] .recharge-pay-option.active i,
:root[data-theme="light"] .policy-icon,
:root[data-theme="light"] .wechat-pay-icon,
:root[data-theme="light"] .pay-success-mark,
:root[data-theme="light"] .price-icon.plus,
:root[data-theme="light"] .account-primary-mini {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
}

:root[data-theme="light"] .tool-item.active,
:root[data-theme="light"] .agent-sidebar .tool-item.active {
  background:
    linear-gradient(90deg, rgba(79, 70, 229, 0.16), rgba(79, 70, 229, 0.07) 52%, rgba(255, 255, 255, 0) 100%),
    #eef2ff !important;
  border-left-color: #4f46e5 !important;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.12), 0 7px 16px rgba(79, 70, 229, 0.1) !important;
}

:root[data-theme="light"] .tool-item.active .tool-icon,
:root[data-theme="light"] .tool-item:hover .tool-icon,
:root[data-theme="light"] .agent-sidebar .tool-item.active .agent-icon,
:root[data-theme="light"] .agent-sidebar .tool-item:hover .agent-icon,
:root[data-theme="light"] .front-shell .tool-item.active .tool-icon,
:root[data-theme="light"] .front-shell .tool-item:hover .tool-icon,
:root[data-theme="light"] .front-shell .agent-sidebar .tool-item.active .agent-icon,
:root[data-theme="light"] .front-shell .agent-sidebar .tool-item:hover .agent-icon {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 11px 22px rgba(79, 70, 229, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

:root[data-theme="light"] .agent-price-tabs button.active::after {
  background: #4f46e5 !important;
}

.reference-tile:hover,
.asset-tile.ref-filled:hover,
.config-ref-tile:hover {
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.14));
}

.chat-live-stage {
  width: min(920px, calc(100vw - 520px));
}

.chat-live-head,
.chat-summary-card,
.chat-answer-card {
  backdrop-filter: none;
}

:root[data-theme="light"] .chat-live-head,
:root[data-theme="light"] .chat-summary-card,
:root[data-theme="light"] .chat-answer-card {
  background: #fff;
  border-color: #e4eaf2;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

:root[data-theme="light"] .model-panel {
  background: #fff;
  border-color: #e4eaf2;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

@media (min-width: 861px) and (max-width: 1199px) {
  .chat-model-panel {
    left: auto;
    right: clamp(8px, 1.4vw, 18px);
    bottom: 154px;
    width: clamp(168px, calc((100vw - 860px) * 0.42 + 168px), 230px);
    padding: 7px 8px;
  }

  .chat-model-panel.single-mode {
    width: clamp(168px, calc((100vw - 860px) * 0.42 + 168px), 230px);
  }

  .chat-model-panel .model-panel-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .chat-model-panel.single-mode .model-panel-row,
  .chat-model-panel .summary-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-model-panel .panel-label {
    font-size: 11px;
  }

  .chat-model-panel .selected {
    height: 26px;
    padding: 0 7px;
    font-size: 11px;
    gap: 5px;
  }

  .chat-model-panel .panel-model-icon {
    width: 24px;
    height: 24px;
    margin-right: -8px;
  }
}

@media (min-width: 1200px) {
  .chat-model-panel {
    left: auto;
    right: clamp(10px, calc((100vw - 1200px) * 0.12 + 10px), 18px);
    bottom: 18px;
    width: clamp(208px, calc((100vw - 1200px) * 0.1 + 208px), 248px);
    padding: 8px;
  }

  .chat-model-panel.single-mode {
    width: clamp(208px, calc((100vw - 1200px) * 0.1 + 208px), 248px);
  }

  .chat-model-panel .model-panel-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .chat-model-panel.single-mode .model-panel-row,
  .chat-model-panel .summary-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-model-panel .panel-model-icon {
    width: 24px;
    height: 24px;
    margin-right: -8px;
  }

  .chat-model-panel .panel-count {
    min-width: 28px;
    height: 24px;
  }

  .chat-model-panel .selected {
    height: 26px;
    padding: 0 7px;
    font-size: 11px;
    gap: 5px;
  }
}

@media (max-width: 1180px) {
  .generator-composer:not(.vidu-composer) {
    width: min(760px, calc(100vw - 270px));
  }
}

@media (max-width: 860px) {
  .front-shell .generator-main,
  :root[data-theme="light"] .front-shell .generator-main,
  :root[data-theme="light"] .front-shell.app-shell {
    background: #eef3f8;
  }

  .generator-composer:not(.vidu-composer) {
    width: auto;
    min-height: 126px;
  }

  .chat-live-stage {
    width: 100%;
  }
}

/* Mobile front experience pass */
@media (max-width: 860px) {
  html,
  body,
  #root {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  body {
    touch-action: manipulation;
  }

  .front-shell.app-shell {
    height: auto;
    min-height: 100dvh;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: max(148px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 8% 8%, rgba(5, 244, 255, 0.18), transparent 30%),
      radial-gradient(circle at 92% 24%, rgba(255, 79, 179, 0.14), transparent 32%),
      radial-gradient(circle at 50% 92%, rgba(255, 216, 74, 0.1), transparent 34%),
      linear-gradient(135deg, #07101a, #111327);
  }

  :root[data-theme="light"] .front-shell.app-shell {
    background:
      radial-gradient(circle at 10% 8%, rgba(8, 145, 178, 0.14), transparent 30%),
      radial-gradient(circle at 90% 18%, rgba(219, 39, 119, 0.08), transparent 32%),
      radial-gradient(circle at 50% 92%, rgba(217, 119, 6, 0.1), transparent 34%),
      #eef3f8;
  }

  .front-shell .front-motion-layer {
    opacity: 0.24;
  }

  .front-shell.front-image .front-motion-layer {
    display: block;
    opacity: 0.16;
  }

  .front-shell > .sidebar {
    position: sticky;
    top: 0;
    z-index: 34;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 10px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
      rgba(9, 14, 24, 0.92);
    backdrop-filter: blur(18px) saturate(1.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  :root[data-theme="light"] .front-shell > .sidebar {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 252, 0.86)),
      rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  }

  .front-shell .sidebar .brand {
    height: auto;
    min-height: 42px;
    padding: 0 2px;
  }

  .front-shell .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .front-shell .brand-name {
    font-size: 14px;
  }

  .front-shell .brand-sub {
    font-size: 10px;
  }

  .front-shell .mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 0;
  }

  .front-shell .mode-tab {
    min-width: 0;
    height: 38px;
    justify-content: center;
    border-radius: 12px;
    padding: 0 8px;
    font-size: 12px;
  }

  .front-shell .model-tabs {
    display: flex;
    gap: 7px;
    padding: 0 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .front-shell .model-tabs::-webkit-scrollbar,
  .front-shell .tool-list::-webkit-scrollbar,
  .gallery-category-wrap::-webkit-scrollbar {
    display: none;
  }

  .front-shell .model-tabs a,
  .front-shell .model-tabs button {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .front-shell .search {
    padding: 0;
  }

  .front-shell .search input {
    height: 36px;
    font-size: 13px;
    border-radius: 12px;
  }

  .front-shell .tool-list {
    display: flex;
    gap: 8px;
    min-height: 0;
    max-height: none;
    padding: 0 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .front-shell .tool-item {
    flex: 0 0 min(78vw, 268px);
    min-height: 64px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  :root[data-theme="light"] .front-shell .tool-item {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.06);
  }

  .front-shell .tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .front-shell .tool-title {
    font-size: 13px;
  }

  .front-shell .tool-desc {
    -webkit-line-clamp: 1;
    line-height: 1.35;
  }

  .front-shell .sidebar-actions,
  .front-shell .user-strip {
    display: none;
  }

  .front-shell .generator-main {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0 12px 0;
    background: transparent !important;
    scrollbar-gutter: auto;
  }

  .front-shell .generator-main::before {
    display: none;
  }

  .app-top,
  .agent-main .app-top {
    position: sticky;
    top: auto;
    left: auto;
    right: auto;
    z-index: 25;
    height: auto;
    min-height: 46px;
    padding: 8px 0;
    background: transparent;
    backdrop-filter: none;
  }

  .app-top {
    justify-content: flex-start;
  }

  .app-top > div:first-child:empty {
    display: none;
  }

  .top-orbs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 48;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
      rgba(8, 12, 20, 0.86);
    backdrop-filter: blur(18px) saturate(1.25);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
  }

  :root[data-theme="light"] .top-orbs {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  }

  .top-orbs .orb-btn {
    width: 100%;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: none;
  }

  :root[data-theme="light"] .top-orbs .orb-btn {
    background: #f8fafc;
  }

  .top-orbs .orb-btn span {
    display: none !important;
  }

  .session-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .new-chat-btn,
  .history-btn {
    width: 100%;
    height: 38px;
    justify-content: center;
    border-radius: 13px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .history-quick-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: auto;
    width: auto;
    max-height: 45vh;
    overflow: auto;
  }

  .model-showcase-stage,
  .chat-live-stage {
    width: 100%;
    margin: 8px auto 0;
    padding-bottom: 248px;
  }

  .showcase-hero-card {
    min-height: 280px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .showcase-hero-card h1 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .showcase-feature-grid,
  .chat-answer-grid,
  .chat-summary-grid {
    grid-template-columns: 1fr;
  }

  .chat-live-head,
  .chat-summary-card,
  .chat-answer-card {
    border-radius: 16px;
  }

  .model-panel {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 12px 0 230px;
    border-radius: 16px;
  }

  .composer,
  .generator-composer:not(.vidu-composer),
  .vidu-composer {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 46;
    width: auto;
    min-height: 112px;
    max-height: min(42vh, 248px);
    transform: none;
    border-radius: 18px;
    overflow: visible;
  }

  .composer-input,
  .generator-composer:not(.vidu-composer) .composer-input {
    min-height: 72px;
  }

  .composer textarea,
  .generator-composer:not(.vidu-composer) textarea {
    min-height: 68px;
    max-height: 132px;
    overflow-y: auto;
    padding: 18px 54px 12px 72px;
    font-size: 13px;
  }

  .composer-side-icons {
    left: auto;
    right: 10px;
    top: 8px;
    gap: 5px;
  }

  .composer-side-icons a,
  .composer-side-icons button {
    width: 20px;
    height: 20px;
  }

  .ref-more-btn {
    min-width: 24px;
    height: 17px;
    left: -8px;
    top: -7px;
    right: auto;
    bottom: auto;
  }

  .composer-clear-btn {
    width: 30px;
    height: 30px;
  }

  .generator-composer:not(.vidu-composer) .composer-tools {
    max-width: calc(100% - 56px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .generator-composer:not(.vidu-composer) .composer-tools::-webkit-scrollbar {
    display: none;
  }

  .generator-composer:not(.vidu-composer) .composer-menu-btn {
    flex: 0 0 auto;
    height: 28px;
  }

  .config-composer,
  .config-composer.composer-height-tall,
  .config-composer.has-secondary {
    min-height: 138px;
    max-height: min(48vh, 292px);
    padding: 9px 10px 8px;
    overflow: auto;
  }

  .config-composer-main,
  .config-composer.has-reference .config-composer-main,
  .config-composer.has-secondary .config-composer-main,
  .config-composer.has-reference.has-secondary .config-composer-main {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding-right: 42px;
  }

  .config-reference-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .config-reference-panel::-webkit-scrollbar {
    display: none;
  }

  .config-ref-list {
    flex: 0 0 auto;
    max-width: none;
  }

  .config-ref-tile {
    transform: none;
  }

  .config-reference-panel p {
    max-width: none;
    text-align: left;
    white-space: nowrap;
  }

  .config-prompt-panel header,
  .config-secondary-panel header {
    height: 20px;
  }

  .config-composer textarea,
  .config-prompt-panel header + textarea,
  .config-secondary-panel header + textarea {
    min-height: 66px;
    max-height: 118px;
    padding: 7px 10px;
    font-size: 12px;
    overflow-y: auto;
  }

  .config-composer .estimate {
    top: -16px;
    right: 10px;
  }

  .config-tools {
    padding: 7px 42px 0 0;
  }

  .send-btn {
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
  }

  .gallery-shell.front-shell {
    padding-bottom: max(96px, env(safe-area-inset-bottom));
  }

  .gallery-shell .sidebar {
    grid-template-rows: auto auto auto;
  }

  .gallery-sidebar .filter-panel {
    max-height: 210px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
  }

  :root[data-theme="light"] .gallery-sidebar .filter-panel {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(15, 23, 42, 0.07);
  }

  .gallery-category-wrap {
    max-height: 102px;
    overflow: auto;
  }

  .gallery-category-cloud {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .tag-btn {
    flex: 0 0 auto;
    height: 28px;
  }

  .gallery-page {
    padding: 12px 0 120px;
  }

  .gallery-nav {
    height: auto;
    min-height: 0;
    display: grid;
    gap: 10px;
    padding: 0 0 12px;
  }

  .gallery-top-tabs {
    width: 100%;
    gap: 8px;
  }

  .gallery-top-tabs a {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
  }

  .gallery-nav-tools {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .gallery-size-control {
    width: min(172px, 48vw);
  }

  .masonry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
    gap: 10px;
  }

  .masonry-column {
    gap: 10px;
    min-width: 0;
  }

  .inspiration-card {
    border-radius: 14px;
  }

  .work-card:hover,
  .inspiration-card:hover,
  .thumb-card:hover,
  .workbench-stat:hover,
  .workbench-quick:hover,
  .func-btn:hover {
    transform: none;
  }

  .agent-stage {
    height: auto;
    min-height: auto;
    padding: 18px 0 116px;
    overflow: visible;
  }

  .with-project-panel {
    height: auto;
    padding-top: 18px;
    padding-bottom: 96px;
  }

  .agent-content,
  .with-project-panel .agent-content {
    width: 100%;
    display: grid;
    gap: 12px;
    margin: 0;
    overflow: visible;
  }

  .agent-project-panel {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: grid;
    gap: 10px;
  }

  .agent-project-list {
    display: none;
  }

  .agent-engine-pill {
    min-height: 40px;
  }

  .agent-hero {
    width: 100%;
    max-width: none;
    min-height: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--agent), transparent 76%);
    border-radius: 18px;
    background: color-mix(in srgb, var(--agent), transparent 94%);
    text-align: left;
  }

  .agent-hero-icon {
    width: 50px;
    height: 50px;
  }

  .agent-hero h1 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .agent-pill {
    max-width: 100%;
    font-size: 10px;
  }

  .agent-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-flow {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    transform: none;
  }

  .agent-step-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
  }

  .agent-step-list::after {
    display: none;
  }

  .agent-step {
    flex: 0 0 min(78vw, 260px);
    min-height: 62px;
    transform: none !important;
  }

  .agent-detail {
    min-height: 180px;
    padding: 46px 18px 20px;
  }

  .agent-number {
    left: 18px;
  }

  .agent-status {
    right: 18px;
  }

  .agent-progress {
    margin-top: 0;
  }

  .agent-timeline {
    width: 100%;
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-timeline span {
    flex: 0 0 92px;
  }

  .agent-action-bar,
  .agent-footer-row,
  .agent-mini-composer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .agent-action-bar {
    min-height: 44px;
    margin-top: 4px;
  }

  .agent-primary {
    width: 100%;
    min-width: 0;
  }

  .agent-mini-composer {
    min-height: 84px;
    border-radius: 16px;
  }

  .agent-mini-composer textarea {
    min-height: 82px;
    padding: 14px 52px 12px 76px;
  }

  .agent-footer-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agent-bottom-actions {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .agent-bottom-actions button {
    flex: 0 0 auto;
  }

  .agent-project-page {
    padding: 12px 0 118px;
  }

  .agent-project-workspace {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .agent-project-worknav,
  .agent-project-workmain,
  .agent-project-result-panel {
    border-radius: 16px;
  }

  .agent-project-worknav {
    max-height: none;
    grid-template-rows: auto auto auto auto;
  }

  .agent-worknav-projects,
  .agent-worknav-chapters {
    max-height: 180px;
  }

  .agent-project-workmain {
    overflow: visible;
    grid-template-rows: auto auto auto auto;
  }

  .agent-workmain-center {
    min-height: 170px;
  }

  .agent-work-prompt-hints {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-work-prompt-hints button {
    flex: 0 0 auto;
  }

  .agent-work-composer {
    grid-template-columns: 60px minmax(0, 1fr) 40px;
    border-radius: 16px;
  }

  .agent-work-composer textarea {
    min-height: 60px;
    height: 60px;
  }

  .workbench-page,
  .works-only-page {
    min-height: 100dvh;
    display: block;
    padding: calc(14px + env(safe-area-inset-top)) 12px 96px;
  }

  .doc-shell.front-standalone {
    height: auto;
    min-height: 100dvh;
    display: block;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 12% 8%, rgba(5, 244, 255, 0.14), transparent 32%),
      radial-gradient(circle at 92% 16%, rgba(255, 79, 179, 0.1), transparent 34%),
      #090d13;
  }

  :root[data-theme="light"] .doc-shell.front-standalone {
    background:
      radial-gradient(circle at 12% 8%, rgba(8, 145, 178, 0.12), transparent 32%),
      radial-gradient(circle at 92% 16%, rgba(124, 58, 237, 0.08), transparent 34%),
      #f6fbfd;
  }

  .doc-sidebar {
    position: sticky;
    top: 0;
    z-index: 34;
    height: auto;
    max-height: 48dvh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: auto;
    background: rgba(17, 24, 33, 0.94);
    backdrop-filter: blur(18px);
  }

  :root[data-theme="light"] .doc-sidebar {
    background: rgba(255, 255, 255, 0.92);
  }

  .doc-brand {
    height: auto;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  .doc-search {
    padding: 8px 12px;
  }

  .doc-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 12px 8px;
    scrollbar-width: none;
  }

  .doc-cats::-webkit-scrollbar,
  .doc-list::-webkit-scrollbar {
    display: none;
  }

  .doc-list {
    max-height: 25dvh;
    padding: 2px 12px 12px;
  }

  .doc-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .doc-top {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 58px;
    display: grid;
    gap: 8px;
    justify-items: stretch;
    padding: 10px 12px;
  }

  .doc-top .top-actions {
    position: static !important;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .doc-top .top-actions::-webkit-scrollbar {
    display: none;
  }

  .base-url {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .doc-content {
    width: auto;
    padding: 18px 12px 112px;
  }

  .doc-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .doc-copy-btn {
    margin-top: 8px;
  }

  .doc-steps,
  .doc-grid-2,
  .doc-endpoint-list {
    grid-template-columns: 1fr;
  }

  .doc-endpoint-list div {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .doc-endpoint-list em {
    grid-column: 2;
    text-align: left;
  }

  .doc-platform-tabs,
  .doc-os-tabs,
  .toolbar-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .doc-platform-tabs::-webkit-scrollbar,
  .doc-os-tabs::-webkit-scrollbar,
  .toolbar-row::-webkit-scrollbar {
    display: none;
  }

  .doc-platform-tabs button,
  .doc-os-tabs button,
  .toolbar-row .badge {
    flex: 0 0 auto;
  }

  .doc-code-card,
  .doc-code-card pre,
  pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .doc-code-card pre {
    white-space: pre;
    font-size: 12px;
    line-height: 1.62;
  }

  .agent-guide-window {
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(68dvh, 520px);
    border-radius: 18px;
  }

  .agent-guide-window-body {
    max-height: calc(min(68dvh, 520px) - 112px);
  }

  .agent-guide-window-head {
    min-height: 50px;
  }

  .agent-guide-window-foot {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .agent-guide-window-foot::-webkit-scrollbar {
    display: none;
  }

  .agent-guide-window-foot button {
    flex: 0 0 auto;
  }

  .workbench-main,
  .works-full-main {
    display: grid;
    gap: 14px;
  }

  .workbench-hero,
  .works-head,
  .workbench-card,
  .profile-card,
  .function-card {
    border-radius: 16px;
  }

  .workbench-hero {
    min-height: 0;
    padding: 18px;
  }

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

  .workbench-stat {
    min-height: 76px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .workbench-quick-grid,
  .function-grid {
    grid-template-columns: 1fr;
  }

  .workbench-side {
    display: grid;
    gap: 14px;
    margin-top: 14px;
  }

  .workbench-recent-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .works-toolbar,
  .works-head,
  .works-list-title {
    align-items: stretch;
  }

  .works-search {
    width: 100%;
    flex-basis: 100%;
  }

  .modal-layer,
  .account-feature-layer,
  .light-layer,
  .agreement-layer {
    align-items: end;
    place-items: end center;
    padding: 10px;
  }

  .modal,
  .modal.wide,
  .modal.upstream-test-modal,
  .account-source-modal,
  .account-feature-layer .account-source-modal,
  .account-feature-layer .api-key-modal,
  .account-feature-layer .consumption-modal,
  .account-feature-layer .payment-record-modal,
  .account-feature-layer .invoice-source-modal,
  .profile-action-layer .profile-action-modal,
  .agreement-layer .agreement-modal,
  .inspiration-detail-modal {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 20px 20px 14px 14px;
  }

  .account-source-modal,
  .account-feature-layer .account-source-modal,
  .account-feature-layer .api-key-modal,
  .account-feature-layer .consumption-modal,
  .account-feature-layer .payment-record-modal,
  .account-feature-layer .invoice-source-modal {
    min-height: min(78dvh, 680px);
  }

  .account-source-head,
  .modal-head {
    min-height: 58px;
    padding: 10px 14px;
  }

  .account-source-head h2,
  .modal-head h2 {
    font-size: 16px;
  }

  .account-source-head p {
    font-size: 11px;
  }

  .modal-close {
    width: 34px;
    height: 34px;
  }

  .api-key-create-row,
  .api-endpoint-panel__head,
  .api-endpoint-item,
  .account-feature-layer .consumption-toolbar,
  .account-feature-layer .payment-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .api-key-create-row {
    padding: 12px;
  }

  .api-key-create-row input,
  .api-key-create-row select,
  .account-feature-layer .invoice-create-panel input,
  .account-feature-layer .invoice-create-panel select {
    height: 38px;
  }

  .api-key-create-actions,
  .api-endpoint-item__actions {
    justify-content: flex-start;
  }

  .account-feature-layer .api-key-table-wrap,
  .account-feature-layer .consumption-modal .ledger-table-wrap,
  .account-feature-layer .payment-record-modal .ledger-table-wrap {
    margin: 12px;
    max-height: 48dvh;
    overflow: auto;
    border-radius: 12px;
  }

  .account-feature-layer .api-key-table,
  .account-feature-layer .ledger-table {
    min-width: 760px;
  }

  .account-feature-layer .payment-record-modal .ledger-table {
    min-width: 620px;
  }

  .account-feature-layer .invoice-create-panel {
    max-width: none;
    margin: 12px;
    border-radius: 14px;
  }

  .account-feature-layer .account-form-grid.invoice-grid,
  .account-form-grid,
  .consumption-selects,
  .feedback-compact-grid,
  .invoice-stats,
  .consumption-stats {
    grid-template-columns: 1fr;
  }

  .profile-action-body {
    padding: 16px;
  }

  .profile-action-modal .profile-action-row {
    grid-template-columns: 1fr 1fr;
  }

  .profile-action-modal .profile-action-row .btn:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .front-shell.app-shell {
    padding-bottom: max(156px, env(safe-area-inset-bottom));
  }

  .front-shell .sidebar {
    padding-inline: 8px;
  }

  .front-shell .brand-sub {
    display: none;
  }

  .front-shell .mode-tab {
    font-size: 11px;
    gap: 4px;
  }

  .front-shell .tool-item {
    flex-basis: min(84vw, 256px);
  }

  .top-orbs {
    left: 8px;
    right: 8px;
    gap: 4px;
    padding: 7px;
  }

  .top-orbs .orb-btn {
    height: 36px;
  }

  .composer,
  .generator-composer:not(.vidu-composer),
  .vidu-composer {
    left: 8px;
    right: 8px;
  }

  .composer,
  .generator-composer:not(.vidu-composer),
  .vidu-composer {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .model-showcase-stage,
  .chat-live-stage {
    padding-bottom: 262px;
  }

  .config-composer,
  .config-composer.composer-height-tall,
  .config-composer.has-secondary {
    max-height: min(52vh, 318px);
  }

  .masonry,
  .workbench-recent-grid,
  .work-grid {
    grid-template-columns: 1fr !important;
  }

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

  .agent-hero {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 10px;
  }

  .agent-hero-icon {
    width: 44px;
    height: 44px;
  }

  .agent-hero h1 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .agent-detail {
    padding-left: 14px;
    padding-right: 14px;
  }

  .agent-status {
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .agent-work-composer {
    grid-template-columns: 54px minmax(0, 1fr) 38px;
    gap: 8px;
    padding: 8px;
  }

  .agent-work-composer .reference-tile {
    width: 54px;
  }

  .api-endpoint-panel,
  .api-key-help {
    margin-inline: 12px;
  }

  .profile-action-modal .bind-captcha-row {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
}

/* Final mobile app layout pass */
@media (max-width: 860px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body {
    overscroll-behavior-x: none;
  }

  .front-shell.app-shell {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 calc(232px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: visible;
  }

  .front-shell > .sidebar {
    position: sticky;
    top: 0;
    z-index: 54;
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    max-height: min(48dvh, 260px);
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, auto);
    gap: 7px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 9px;
    overflow: hidden;
    border-right: 0;
  }

  .front-shell .sidebar .brand {
    min-height: 34px;
    height: 34px;
    padding: 0;
  }

  .front-shell .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .front-shell .mode-tabs {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
  }

  .front-shell .mode-tab {
    height: 34px;
    min-width: 0;
    padding: 0 6px;
    border-radius: 12px;
    justify-content: center;
    font-size: 11.5px;
  }

  .front-shell .model-tabs {
    min-width: 0;
    width: 100%;
    display: flex;
    gap: 6px;
    padding: 0 0 1px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .front-shell .model-tabs a,
  .front-shell .model-tabs button {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 11px;
    font-size: 11px;
  }

  .front-shell .search {
    min-width: 0;
    padding: 0;
  }

  .front-shell .search input {
    height: 34px;
    border-radius: 12px;
    font-size: 12.5px;
  }

  .front-shell .tool-list {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: 78px;
    display: flex;
    gap: 8px;
    padding: 0 1px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .front-shell .tool-item {
    flex: 0 0 clamp(216px, 76vw, 282px);
    max-width: calc(100vw - 28px);
    min-height: 62px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .front-shell .tool-title,
  .front-shell .tool-desc {
    min-width: 0;
  }

  .front-shell .tool-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .front-shell .tool-list .list-more {
    flex: 0 0 auto;
    min-width: 96px;
    height: 62px;
    margin: 0;
    display: grid;
    place-items: center;
  }

  .front-shell .sidebar-actions,
  .front-shell .user-strip {
    display: none !important;
  }

  .front-shell .generator-main {
    flex: 1 1 auto;
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    height: auto;
    padding: 0 10px;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .app-top,
  .agent-main .app-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 36;
    min-height: auto;
    height: auto;
    display: block;
    padding: 8px 0 0;
    pointer-events: auto;
  }

  .session-actions {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .new-chat-btn,
  .history-btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    border-radius: 12px;
    font-size: 12px;
  }

  .history-quick-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    bottom: auto;
    width: auto;
    max-height: min(34dvh, 176px);
    border-radius: 14px;
    overflow: auto;
    z-index: 72;
  }

  .history-quick-panel button,
  .history-quick-panel a {
    min-height: 42px;
  }

  .top-orbs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 66;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    border-radius: 17px;
  }

  .top-orbs .orb-btn {
    width: 100%;
    height: 36px;
    min-width: 0;
    border-radius: 13px;
  }

  .generator-workspace {
    min-height: auto;
    display: block;
    padding: 10px 0 calc(210px + env(safe-area-inset-bottom));
  }

  .model-showcase-stage,
  .chat-live-stage {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 10px 0 0;
    padding: 0 0 212px;
  }

  .showcase-backdrop,
  .chat-live-backdrop {
    inset: 0;
    opacity: 0.45;
  }

  .showcase-hero-card {
    min-height: auto;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    animation: none;
  }

  .showcase-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .showcase-icon .custom-icon-img {
    width: 30px !important;
    height: 30px !important;
  }

  .showcase-hero-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
    word-break: break-word;
  }

  .showcase-hero-card p {
    display: -webkit-box;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .showcase-feature-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 10px;
  }

  .showcase-feature {
    min-height: 64px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .showcase-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .showcase-feature h3 {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .showcase-feature p {
    display: -webkit-box;
    font-size: 11.5px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .showcase-quick-title {
    margin-top: 12px;
  }

  .showcase-quick-row {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .showcase-quick-row::-webkit-scrollbar {
    display: none;
  }

  .showcase-quick {
    flex: 0 0 auto;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    font-size: 11.5px;
  }

  .chat-live-workspace {
    padding: 10px 0 calc(220px + env(safe-area-inset-bottom));
  }

  .chat-live-head {
    min-height: 62px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    justify-items: stretch;
  }

  .chat-live-orb {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .chat-live-head strong {
    font-size: 14px;
  }

  .chat-live-head button {
    height: 30px;
    padding: 0 9px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .chat-summary-card,
  .chat-answer-card {
    padding: 12px;
  }

  .chat-answer-grid,
  .chat-answer-grid.single {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .chat-card-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .chat-markdown {
    font-size: 13px;
    line-height: 1.62;
  }

  .model-panel {
    display: none !important;
  }

  .composer,
  .generator-composer:not(.vidu-composer) {
    position: fixed;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(62px + env(safe-area-inset-bottom));
    z-index: 64;
    width: auto !important;
    min-height: 104px;
    max-height: min(34dvh, 198px);
    transform: none;
    border-radius: 18px;
    overflow: visible;
  }

  .generator-composer:not(.vidu-composer) .composer-input {
    min-height: 58px;
  }

  .composer-chat textarea,
  .composer-audio textarea {
    padding: 14px 54px 10px 14px;
  }

  .composer-image textarea,
  .composer-video textarea,
  .generator-composer:not(.vidu-composer) textarea {
    min-height: 58px;
    max-height: 92px;
    padding-top: 14px;
    padding-bottom: 10px;
    font-size: 12.5px;
  }

  .composer-image textarea,
  .composer-video textarea {
    padding-left: 72px;
  }

  .generator-composer:not(.vidu-composer) .estimate {
    top: -14px;
    right: 12px;
    height: 22px;
    font-size: 10px;
  }

  .generator-composer:not(.vidu-composer) .composer-tools,
  .config-tools {
    max-width: calc(100% - 50px);
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 44px 8px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .generator-composer:not(.vidu-composer) .composer-tools::-webkit-scrollbar,
  .config-tools::-webkit-scrollbar {
    display: none;
  }

  .generator-composer:not(.vidu-composer) .composer-menu-btn {
    flex: 0 0 auto;
    height: 26px;
    max-width: 142px;
  }

  .composer-clear-btn {
    right: 12px;
    bottom: 50px;
    width: 34px;
    height: 34px;
  }

  .send-btn {
    right: 12px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
  }

  .config-composer,
  .config-composer.composer-height-tall,
  .config-composer.has-secondary {
    min-height: 118px;
    max-height: min(38dvh, 226px);
    padding: 8px 10px;
    overflow: hidden;
  }

  .config-composer-main,
  .config-composer.has-reference .config-composer-main,
  .config-composer.has-secondary .config-composer-main,
  .config-composer.has-reference.has-secondary .config-composer-main {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-right: 42px;
  }

  .config-reference-panel {
    min-height: 54px;
    max-height: 62px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .config-ref-tile {
    flex: 0 0 auto;
  }

  .config-reference-panel p {
    display: none;
  }

  .config-composer textarea,
  .config-prompt-panel header + textarea,
  .config-secondary-panel header + textarea {
    min-height: 58px;
    max-height: 82px;
    padding: 7px 10px;
    overflow-y: auto;
  }

  .gallery-page,
  .works-page,
  .workbench-page,
  .agent-detail,
  .agent-stage,
  .agent-home,
  .doc-content {
    max-width: 100%;
  }

  .front-shell.front-image,
  .front-shell.gallery-shell {
    padding-bottom: max(92px, env(safe-area-inset-bottom));
  }

  .front-shell.front-image .generator-main,
  .front-shell.gallery-shell .generator-main {
    padding-bottom: 0;
  }

  .front-shell.front-image .top-orbs,
  .front-shell.gallery-shell .top-orbs {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .agent-stage {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: 12px 0 calc(96px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .agent-main {
    overflow: visible;
  }

  .agent-content,
  .with-project-panel .agent-content {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    gap: 12px;
    margin: 0;
    overflow: visible;
  }

  .agent-hero {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .agent-detail {
    width: 100%;
    max-width: 100%;
    min-height: 154px;
    padding: 42px 14px 16px;
    border-radius: 18px;
  }

  .agent-detail h2 {
    font-size: 18px;
  }

  .agent-detail p {
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.52;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .agent-timeline {
    grid-template-columns: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-timeline span {
    flex: 0 0 92px;
  }

  .agent-mini-composer {
    min-height: 82px;
    max-height: 132px;
    overflow: visible;
  }

  .agent-mini-composer textarea {
    min-height: 78px;
    max-height: 104px;
    overflow-y: auto;
  }

  .gallery-shell .sidebar {
    max-height: min(52dvh, 286px);
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .gallery-sidebar .filter-panel {
    min-height: 0;
    max-height: 196px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .gallery-page {
    width: 100%;
    max-width: 100%;
    padding: 10px 0 calc(92px + env(safe-area-inset-bottom));
  }

  .gallery-nav {
    width: 100%;
    min-height: 0;
    gap: 8px;
    padding-bottom: 10px;
  }

  .gallery-nav-tools {
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gallery-top-tabs,
  .gallery-category-cloud {
    scrollbar-width: none;
  }

  .gallery-top-tabs::-webkit-scrollbar,
  .gallery-category-cloud::-webkit-scrollbar,
  .gallery-nav-tools::-webkit-scrollbar {
    display: none;
  }

  .masonry {
    width: 100%;
    max-width: 100% !important;
  }
}

@media (max-width: 520px) {
  .front-shell.app-shell {
    padding-bottom: calc(226px + env(safe-area-inset-bottom));
  }

  .front-shell > .sidebar {
    max-height: min(50dvh, 244px);
    padding-inline: 8px;
  }

  .front-shell .brand-sub {
    display: none;
  }

  .front-shell .mode-tab {
    height: 32px;
    font-size: 11px;
    gap: 4px;
  }

  .front-shell .tool-list {
    max-height: 74px;
  }

  .front-shell .tool-item {
    flex-basis: clamp(206px, 74vw, 258px);
    min-height: 60px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 9px;
  }

  .front-shell .tool-icon {
    width: 34px;
    height: 34px;
  }

  .top-orbs {
    left: 8px;
    right: 8px;
    gap: 4px;
    padding: 6px;
  }

  .top-orbs .orb-btn {
    height: 34px;
    border-radius: 12px;
  }

  .model-showcase-stage,
  .chat-live-stage {
    padding-bottom: 202px;
  }

  .showcase-hero-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .showcase-icon {
    width: 40px;
    height: 40px;
  }

  .showcase-hero-card h1 {
    font-size: 18px;
  }

  .showcase-hero-card p {
    font-size: 11.5px;
  }

  .showcase-feature {
    min-height: 60px;
    padding: 9px 10px;
  }

  .composer,
  .generator-composer:not(.vidu-composer) {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(58px + env(safe-area-inset-bottom));
    max-height: min(34dvh, 184px);
  }

  .config-composer,
  .config-composer.composer-height-tall,
  .config-composer.has-secondary {
    max-height: min(40dvh, 214px);
  }
}

/* Final chat model panel placement: keep the dock visibly responsive while resizing. */
@media (min-width: 861px) and (max-width: 1199px) {
  .chat-model-panel {
    position: fixed !important;
    left: auto !important;
    right: clamp(6px, 1vw, 12px) !important;
    top: auto !important;
    bottom: 154px !important;
    width: clamp(132px, 15.5vw, 186px) !important;
    margin: 0 !important;
    padding: 7px !important;
    border-radius: 10px !important;
    z-index: 58 !important;
  }

  .chat-model-panel.single-mode {
    width: clamp(132px, 15.5vw, 186px) !important;
  }

  .chat-model-panel .model-panel-row {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    gap: 5px !important;
  }

  .chat-model-panel.single-mode .model-panel-row,
  .chat-model-panel .summary-row {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  .chat-model-panel .panel-label {
    font-size: 11px !important;
  }

  .chat-model-panel .selected {
    height: 25px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
    gap: 5px !important;
  }

  .chat-model-panel .panel-model-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: -8px !important;
  }
}

@media (min-width: 1200px) {
  .chat-model-panel {
    position: fixed !important;
    left: auto !important;
    right: clamp(8px, 1.1vw, 18px) !important;
    top: auto !important;
    bottom: 18px !important;
    width: clamp(176px, 15.5vw, 248px) !important;
    margin: 0 !important;
    padding: 8px !important;
  }

  .chat-model-panel.single-mode {
    width: clamp(176px, 15.5vw, 248px) !important;
  }

  .chat-model-panel .model-panel-row {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    gap: 7px !important;
  }

  .chat-model-panel.single-mode .model-panel-row,
  .chat-model-panel .summary-row {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  .chat-model-panel .panel-model-icon {
    width: 24px !important;
    height: 24px !important;
    margin-right: -8px !important;
  }

  .chat-model-panel .panel-count {
    min-width: 26px !important;
    height: 24px !important;
    font-size: 10px !important;
  }

  .chat-model-panel .selected {
    height: 26px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }
}

@media (min-width: 861px) and (max-width: 1050px) {
  .chat-model-panel .model-panel-row {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
  }

  .chat-model-panel.single-mode .model-panel-row,
  .chat-model-panel .summary-row {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  .chat-model-panel .panel-label {
    width: auto !important;
    gap: 5px !important;
    overflow: hidden !important;
    font-size: 10.5px !important;
  }

  .chat-model-panel .panel-label svg {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 auto !important;
  }
}
