:root {
  color-scheme: dark;
  --bg: #050b16;
  --bg-2: #07111f;
  --surface: rgba(13, 21, 37, 0.82);
  --surface-solid: #0e1728;
  --panel: rgba(9, 16, 30, 0.88);
  --ink: #f5f8ff;
  --soft-ink: #d5deea;
  --muted: #8da0b7;
  --faint: rgba(255, 255, 255, 0.05);
  --line: rgba(140, 168, 207, 0.18);
  --line-strong: rgba(123, 154, 196, 0.28);
  --cyan: #42f5c8;
  --cyan-soft: rgba(66, 245, 200, 0.14);
  --blue: #2d7dff;
  --blue-soft: rgba(45, 125, 255, 0.16);
  --magenta: #ff4fd8;
  --magenta-soft: rgba(255, 79, 216, 0.16);
  --amber: #ffcf4a;
  --amber-soft: rgba(255, 207, 74, 0.16);
  --red: #ff6f86;
  --red-soft: rgba(255, 111, 134, 0.16);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.24);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-2: #edf3f9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --panel: rgba(255, 255, 255, 0.94);
  --ink: #132033;
  --soft-ink: #263449;
  --muted: #485a72;
  --faint: rgba(15, 23, 42, 0.05);
  --line: rgba(95, 116, 144, 0.2);
  --line-strong: rgba(95, 116, 144, 0.34);
  --cyan: #009f86;
  --cyan-soft: rgba(0, 159, 134, 0.12);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.12);
  --magenta: #c026d3;
  --magenta-soft: rgba(192, 38, 211, 0.12);
  --amber: #b77900;
  --amber-soft: rgba(217, 119, 6, 0.14);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.12);
  --shadow: 0 24px 70px rgba(47, 66, 93, 0.16);
  --shadow-soft: 0 12px 32px rgba(47, 66, 93, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(66, 245, 200, 0.12), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(255, 79, 216, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(66, 245, 200, 0.28);
  outline-offset: 2px;
}

#app {
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.brand img,
.brand-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-on-dark strong {
  color: var(--ink);
}

.brand-on-dark small {
  color: #94a5ba;
}

.compact-brand .brand-icon {
  width: 28px;
  height: 28px;
}

.compact-brand small {
  display: none;
}

.public-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 16, 0.1), rgba(2, 6, 16, 0.92) 74%),
    radial-gradient(circle at 52% 40%, rgba(66, 245, 200, 0.12), transparent 28%),
    radial-gradient(circle at 80% 34%, rgba(255, 79, 216, 0.14), transparent 32%),
    #050b16;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(140, 168, 207, 0.08);
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.9), rgba(4, 10, 20, 0.52));
  backdrop-filter: blur(18px);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.top-links a {
  color: #97a6bb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.top-links a:hover {
  color: var(--cyan);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn,
.icon-btn,
.avatar-btn {
  border: 1px solid var(--line-strong);
  background: rgba(14, 23, 40, 0.92);
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover,
.icon-btn:hover,
.avatar-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 245, 200, 0.35);
}

.btn:disabled,
.amount-btn:disabled,
.icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 730;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2d7dff, #42f5c8);
  color: #04101b;
  box-shadow: 0 14px 34px rgba(45, 125, 255, 0.24);
}

.btn.primary:hover {
  box-shadow: 0 18px 38px rgba(66, 245, 200, 0.22);
}

.btn.glass,
.btn.ghost-on-dark {
  background: rgba(12, 20, 34, 0.4);
}

.btn.ghost-on-dark {
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.btn.danger {
  border-color: rgba(255, 111, 134, 0.35);
  background: rgba(255, 111, 134, 0.08);
  color: #ff96a8;
}

.icon-btn,
.avatar-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-btn {
  width: 32px;
  padding: 0;
  border-radius: 8px;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-btn.dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle,
.theme-switch {
  flex: 0 0 auto;
}

.theme-switch {
  min-height: 34px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.78);
  color: var(--muted);
}

.theme-switch span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.theme-switch svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.theme-switch span.active {
  background: linear-gradient(135deg, rgba(45, 125, 255, 0.96), rgba(66, 245, 200, 0.9));
  color: #04101b;
}

.theme-switch:hover {
  border-color: rgba(66, 245, 200, 0.35);
}

.avatar-btn {
  min-width: 92px;
  padding: 0 10px;
  border-radius: 999px;
}

.avatar-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 4px rgba(66, 245, 200, 0.14);
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.52fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 58px);
  padding: clamp(28px, 5vh, 74px) 30px 92px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 11, 22, 0.94) 0%, rgba(7, 17, 31, 0.52) 42%, rgba(10, 6, 24, 0.82) 100%),
    radial-gradient(circle at 50% 48%, rgba(125, 249, 255, 0.18), transparent 24%),
    radial-gradient(circle at 84% 42%, rgba(255, 79, 216, 0.16), transparent 30%);
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.landing-hero::before {
  inset: 0;
  background:
    linear-gradient(rgba(125, 249, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 216, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 0%, rgba(0,0,0,.45) 42%, transparent 78%);
  transform: perspective(740px) rotateX(62deg) translateY(34%);
  transform-origin: 50% 100%;
  opacity: 0.7;
}

.landing-hero::after {
  inset: -18% -8%;
  background:
    radial-gradient(circle at 49% 49%, rgba(255,255,255,0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 32%, rgba(66,245,200,0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 30%, rgba(255,79,216,0.42) 0 1px, transparent 2px);
  background-size: 124px 124px, 168px 168px, 142px 142px;
  opacity: 0.18;
  animation: starDrift 18s linear infinite;
}

.collision-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.reactor-frame {
  position: absolute;
  inset: 20px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(125, 249, 255, 0.08);
  box-shadow: inset 0 0 70px rgba(45, 125, 255, 0.08);
}

.reactor-frame i {
  position: absolute;
  width: 72px;
  height: 72px;
  border-color: rgba(66, 245, 200, 0.45);
}

.reactor-frame i:nth-child(1) { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.reactor-frame i:nth-child(2) { right: -1px; top: -1px; border-right: 2px solid; border-top: 2px solid; border-color: rgba(255, 79, 216, 0.45); }
.reactor-frame i:nth-child(3) { left: -1px; bottom: -1px; border-left: 2px solid; border-bottom: 2px solid; border-color: rgba(45, 125, 255, 0.42); }
.reactor-frame i:nth-child(4) { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; border-color: rgba(255, 207, 74, 0.32); }

.hero-copy,
.hero-panel,
.hero-telemetry,
.landing-band,
.landing-section {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 860px;
  min-width: 0;
  padding: 20px 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(66, 245, 200, 0.18);
  border-radius: 999px;
  background: rgba(4, 12, 24, 0.38);
  color: #c8d8e8;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(66, 245, 200, 0.16);
}

.hero-copy h1 {
  display: grid;
  gap: 6px;
  margin: 0;
  max-width: 820px;
  font-size: inherit;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 0 22px rgba(125, 249, 255, 0.2),
    0 22px 80px rgba(0, 0, 0, 0.55);
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  font-size: clamp(48px, 5.4vw, 88px);
  line-height: 0.98;
}

.hero-title-sub {
  color: rgba(245, 248, 255, 0.94);
  font-size: clamp(44px, 5vw, 82px);
  line-height: 0.95;
  font-weight: 860;
}

.hero-copy p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #d7e4f2;
  font-size: 17px;
  line-height: 1.7;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  min-width: 0;
}

.hero-panel {
  justify-self: end;
  width: min(100%, 500px);
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(125, 249, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 16, 30, 0.78), rgba(5, 10, 22, 0.86)),
    radial-gradient(circle at 50% -10%, rgba(66, 245, 200, 0.2), transparent 48%),
    radial-gradient(circle at 100% 20%, rgba(255, 79, 216, 0.12), transparent 44%);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(66, 245, 200, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.2;
}

.panel-orbit {
  position: absolute;
  inset: -18px;
  border-radius: 8px;
  border: 1px solid rgba(66, 245, 200, 0.14);
  opacity: 0.95;
  pointer-events: none;
  box-shadow:
    0 0 80px rgba(45, 125, 255, 0.12),
    inset 0 0 42px rgba(66, 245, 200, 0.06);
}

.panel-orbit::before,
.panel-orbit::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: inherit;
  border: 1px solid rgba(255, 79, 216, 0.12);
  transform: skewY(-5deg);
}

.panel-orbit::after {
  inset: 32px;
  border-color: rgba(125, 249, 255, 0.12);
  transform: skewY(5deg);
}

.login-form {
  display: grid;
  gap: 12px;
}

.turnstile-box {
  min-height: 65px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field span,
.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.login-field input,
.input,
.select,
.textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 7px 10px;
  color-scheme: dark;
}

.hero-panel .input,
.hero-panel .login-field input {
  min-height: 44px;
  border-color: rgba(140, 168, 207, 0.28);
  background: rgba(30, 44, 70, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.select option,
.select optgroup,
select option,
select optgroup {
  background: #ffffff;
  color: #111827;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.login-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
}

.hero-telemetry {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-telemetry div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(140, 168, 207, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 16, 30, 0.68), rgba(4, 10, 20, 0.72));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.hero-telemetry span {
  display: block;
  color: #8da0b7;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-telemetry strong {
  display: block;
  margin-top: 4px;
  color: #f5f8ff;
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-124px, 62px, 0); }
}

.login-meta span {
  color: var(--muted);
}

.login-meta strong {
  font-size: 14px;
}

.login-link {
  color: var(--cyan);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.landing-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 12px;
}

.landing-metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 16, 30, 0.74);
  box-shadow: var(--shadow-soft);
}

.landing-metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.landing-metric span {
  color: var(--muted);
  font-size: 13px;
}

.landing-section {
  padding: 18px 22px 0;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-section h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.feature-grid,
.pricing-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.landing-plan,
.panel,
.hero-card,
.metric-card,
.key-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 12px;
  min-height: 132px;
}

.feature-card span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.feature-card p {
  margin: 7px 0 0;
  color: #c1d0e1;
  line-height: 1.5;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.split-section p {
  margin: 8px 0 0;
  color: #bfcedd;
  line-height: 1.7;
}

.code-card,
pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 22, 0.9);
  color: #d8e5f4;
}

.code-card {
  padding: 12px;
  margin: 0;
}

pre {
  padding: 12px;
  line-height: 1.55;
  font-size: 12px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-plan {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 12px;
}

.landing-plan.featured {
  border-color: rgba(66, 245, 200, 0.36);
  background:
    linear-gradient(180deg, rgba(14, 23, 40, 0.96), rgba(14, 23, 40, 0.8)),
    radial-gradient(circle at top, rgba(66, 245, 200, 0.11), transparent 45%);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-top h3,
.landing-plan h3,
.plan-card h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(66, 245, 200, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.features {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft-ink);
  font-size: 13px;
}

.features li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  align-items: start;
}

.features li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.landing-section .btn {
  width: auto;
}

.tutorial-video-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 22px 10px;
}

.tutorial-videos-shell {
  display: grid;
  gap: 18px;
}

.tutorial-video-copy {
  display: grid;
  gap: 8px;
  width: min(780px, 100%);
  min-width: 0;
  text-align: center;
}

.tutorial-video-copy span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 820;
}

.tutorial-video-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
}

.tutorial-video-copy p {
  margin: 0;
  color: #bfcedd;
  line-height: 1.65;
}

.tutorial-video-frame {
  width: min(960px, 100%);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.82);
  box-shadow: var(--shadow-soft);
}

.tutorial-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030812;
}

.docs-tutorial {
  padding: 0;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px 24px;
  color: #8fa1b8;
  font-size: 12px;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 10px;
  align-items: start;
}

.media-compose {
  display: grid;
  gap: 12px;
}

.media-library-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.media-date-field {
  min-width: 190px;
  margin: 0;
}

.media-date-field .input {
  min-height: 34px;
}

.media-page-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.media-prompt {
  min-height: 150px;
  resize: vertical;
}

.media-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-estimate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(66, 245, 200, 0.2);
  border-radius: 8px;
  background: rgba(66, 245, 200, 0.08);
}

.media-estimate span {
  color: var(--cyan);
  font-weight: 800;
}

.media-limit-note {
  padding: 9px 11px;
  border: 1px solid rgba(255, 207, 74, 0.22);
  border-radius: 8px;
  background: rgba(255, 207, 74, 0.08);
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.55;
}

.media-run-timer {
  min-width: 90px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.media-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: box-shadow .15s ease;
}

.media-card a {
  display: block;
  background: rgba(3, 8, 16, 0.8);
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card .media-preview-shell {
  position: relative;
  display: block;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(3, 8, 16, 0.8);
}

.media-card .media-preview-shell > a {
  padding: 0;
}

.media-card .media-image-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: block;
  padding: 0;
}

.media-image-menu-toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 10, 20, 0.76);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.media-image-menu-toggle span {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.media-image-menu-toggle:hover,
.media-image-menu.is-open .media-image-menu-toggle {
  transform: translateY(-1px);
  border-color: rgba(66, 245, 200, 0.55);
  background: rgba(8, 22, 34, 0.94);
}

.media-card .media-image-menu-popover {
  position: absolute;
  top: 38px;
  right: 0;
  width: 142px;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease;
  backdrop-filter: blur(16px);
}

.media-image-menu.is-open .media-image-menu-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.media-image-menu-popover button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soft-ink);
  text-align: left;
  font-size: 12px;
  font-weight: 720;
}

.media-image-menu-popover button:hover,
.media-image-menu-popover button:focus-visible {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.media-image-menu-popover button.is-loading {
  opacity: 0.66;
}

@media (prefers-reduced-motion: reduce) {
  .media-image-menu-toggle,
  .media-image-menu-popover {
    transition: none;
  }
}

.media-card div {
  display: grid;
  gap: 4px;
  padding: 0 10px 10px;
}

.media-card strong,
.media-card span,
.media-card p {
  min-width: 0;
}

.media-card span {
  color: var(--muted);
  font-size: 12px;
}

.media-storage-warning,
.media-storage-muted,
.media-storage-saved {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 8px;
  font-weight: 800;
}

.media-storage-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.media-storage-muted {
  background: var(--faint);
  color: var(--muted);
}

.media-storage-saved {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.media-output-actions {
  padding: 0;
}

.media-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.media-details {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.media-details summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  list-style-position: inside;
}

.media-details-body {
  display: grid;
  gap: 8px;
  padding: 8px 0 2px;
}

.media-details-body > div {
  display: grid;
  gap: 4px;
  padding: 0;
}

.media-details-body strong {
  color: var(--muted);
  font-size: 11px;
}

.media-details-body p {
  max-height: 160px;
  overflow: auto;
}

.media-details-body pre {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  color: var(--soft-ink);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.media-card .btn {
  width: max-content;
  min-height: 28px;
  padding: 0 9px;
}

.admin-assets-gallery {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.admin-asset-card .admin-asset-body {
  gap: 6px;
}

.admin-asset-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(3, 8, 16, 0.8);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
}

.asset-params {
  color: var(--muted);
  font-size: 12px;
}

.asset-params summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 800;
}

.asset-params pre {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 6px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.78);
  color: var(--soft-ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.media-table {
  margin-top: 12px;
}

.workflow-showcase-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(66, 245, 200, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(66, 245, 200, 0.08), rgba(45, 125, 255, 0.08));
}

.workflow-showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: start;
  margin: 14px 0;
}

.workflow-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.workflow-showcase-copy .eyebrow {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 11px;
}

.workflow-showcase-copy h3 {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.28;
}

.workflow-showcase-copy p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-showcase-qr {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  font-size: 12px;
  font-weight: 750;
}

.workflow-showcase-qr img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.workflow-showcase-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  justify-content: start;
  width: min(100%, 720px);
  max-width: 50vw;
  margin: 0 0 16px;
  min-width: 0;
}

.workflow-showcase-video {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.workflow-showcase-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #02050a;
}

.workflow-showcase-groups {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  margin: 0 0 16px;
  min-width: 0;
}
@media (max-width: 900px) {
  .workflow-showcase-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}
.workflow-showcase-group {
  min-width: 0;
}
.workflow-showcase-group-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan, #42f5c8);
}
.workflow-showcase-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.workflow-showcase-group.is-portrait .workflow-showcase-video video {
  aspect-ratio: 9 / 16;
}
.workflow-showcase-group.is-landscape .workflow-showcase-video video {
  aspect-ratio: 16 / 9;
}

.workflow-product-featured,
.workflow-launcher-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 16, 30, 0.48);
}

.workflow-product-featured {
  min-height: 0;
  align-items: flex-start;
  margin: 0;
  padding: 18px 20px;
  border-color: rgba(66, 245, 200, 0.34);
  background:
    linear-gradient(135deg, rgba(14, 23, 40, 0.96), rgba(9, 16, 30, 0.78)),
    radial-gradient(circle at 8% 0%, rgba(66, 245, 200, 0.2), transparent 44%);
}

.workflow-product-featured h3 {
  margin: 8px 0 4px;
  font-size: clamp(20px, 2.1vw, 28px);
}

.workflow-product-featured p,
.workflow-launcher-access span {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.workflow-zero-compute {
  display: inline-block;
  margin-top: 8px;
  color: #26c281;
}

.workflow-launcher-access.is-unlocked {
  border-color: rgba(38, 194, 129, 0.35);
  background: rgba(38, 194, 129, 0.08);
}

.workflow-launcher-access.is-locked {
  border-color: rgba(255, 207, 74, 0.28);
  background: rgba(255, 207, 74, 0.06);
}

.workflow-launcher-access strong,
.workflow-launcher-access span {
  display: block;
}

.workflow-launcher-access strong {
  margin-bottom: 4px;
}

.workflow-showcase-video figcaption {
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 920px) {
  .workflow-showcase-hero {
    grid-template-columns: 1fr;
  }

  .workflow-showcase-videos {
    max-width: min(100%, 720px);
  }

  .workflow-showcase-copy {
    align-items: center;
    text-align: center;
  }

  .workflow-showcase-copy .eyebrow {
    align-self: center;
  }
}

@media (max-width: 620px) {
  .workflow-showcase-contact {
    padding: 15px;
  }

  .workflow-showcase-videos {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .workflow-showcase-video {
    width: min(190px, 100%);
  }

  .workflow-showcase-video video {
    max-height: 58vh;
  }
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  align-items: start;
}

.workflow-parameters-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.workflow-parameter-note,
.workflow-parameter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(66, 245, 200, 0.22);
  border-radius: 8px;
  background: rgba(66, 245, 200, 0.06);
  color: var(--soft-ink);
}

.workflow-parameter-note strong {
  color: var(--cyan);
  white-space: nowrap;
}

.workflow-parameter-note span,
.workflow-parameter-section-head small,
.field-help,
.workflow-parameter-security {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workflow-parameter-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.2);
}

.workflow-parameter-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.workflow-parameter-section-head > div {
  display: grid;
  gap: 4px;
}

.workflow-parameter-section-head strong {
  font-size: 14px;
}

.compact-field {
  min-width: 150px;
}

.compact-field span {
  white-space: nowrap;
}

.workflow-parameter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-parameter-grid .field {
  min-width: 0;
}

.workflow-parameter-grid .field-help {
  display: block;
  margin-top: 5px;
}

.runninghub-reference-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.runninghub-video-list,
.runninghub-audio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.runninghub-reference-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 23, 40, 0.48);
}

.runninghub-video-card {
  align-content: start;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 720;
}

.toggle-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.runninghub-paired-audio {
  display: grid;
  gap: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.workflow-advanced-parameters {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.2);
}

.workflow-advanced-parameters summary {
  padding: 12px 14px;
  color: var(--soft-ink);
  cursor: pointer;
  font-weight: 780;
  list-style: none;
}

.workflow-advanced-parameters summary::-webkit-details-marker {
  display: none;
}

.workflow-advanced-parameters summary::after {
  content: '+';
  float: right;
  color: var(--cyan);
  font-size: 16px;
  line-height: 1;
}

.workflow-advanced-parameters[open] summary::after {
  content: '−';
}

.workflow-advanced-parameters > .workflow-parameter-grid {
  padding: 0 14px 14px;
}

.runninghub-reference-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.runninghub-reference-head span {
  color: var(--muted);
  font-size: 11px;
}

.file-drop {
  gap: 4px;
  padding: 10px;
  text-align: center;
}

.file-drop input {
  width: 100%;
  max-width: 190px;
  color: var(--soft-ink);
  font-size: 11px;
}

.file-drop small {
  color: var(--muted);
  font-size: 11px;
}

.parameter-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.workflow-parameter-summary {
  justify-content: flex-start;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

.workflow-parameter-actions {
  flex-wrap: wrap;
}

.workflow-parameter-security {
  margin: -4px 0 0;
}

.workflow-template-panel,
.workflow-runner,
.workflow-runs-panel {
  min-width: 0;
}

.workflow-template-list,
.workflow-fields,
.workflow-run-list,
.workflow-step-list,
.workflow-segment-list,
.workflow-chain-builder {
  display: grid;
  gap: 10px;
}

.codex-task-list {
  display: grid;
  gap: 8px;
}

.codex-task-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.codex-task-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.codex-task-card summary::-webkit-details-marker {
  display: none;
}

.codex-task-card summary > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.codex-task-card summary strong,
.codex-task-card summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-task-card summary small,
.codex-task-meta {
  color: var(--muted);
  font-size: 12px;
}

.codex-task-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.codex-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}

.codex-task-body pre {
  max-height: 420px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(2, 6, 16, 0.58);
  color: var(--soft-ink);
  font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.codex-secret-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 207, 74, 0.34);
  border-radius: 8px;
  background: var(--amber-soft);
}

.codex-secret-box code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .codex-secret-box {
    grid-template-columns: 1fr;
  }
}

.workflow-template-card {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
}

.workflow-template-card:hover,
.workflow-template-card.active {
  border-color: rgba(66, 245, 200, 0.36);
  background: rgba(66, 245, 200, 0.08);
}

.workflow-template-card span {
  width: max-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(66, 245, 200, 0.12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 820;
}

.workflow-template-card strong,
.workflow-run-card strong,
.workflow-step-item strong {
  font-size: 14px;
}

.workflow-template-card p,
.workflow-run-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.5;
}

.workflow-template-card small,
.workflow-run-head span,
.workflow-step-item small,
.workflow-run-foot {
  color: var(--muted);
  font-size: 12px;
}

.workflow-run-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.workflow-run-head,
.workflow-run-foot,
.workflow-step-item > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-run-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workflow-step-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.28);
}

.workflow-chain-toolbar,
.workflow-segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-segment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.22);
}

.workflow-segment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-segment-card small {
  color: var(--cyan);
  font-weight: 800;
}

.workflow-step-output {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.workflow-step-output img,
.workflow-step-output video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.8);
}

.workflow-tail-frame {
  display: grid;
  gap: 6px;
}

.workflow-tail-frame span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workflow-tail-frame img {
  width: min(180px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.8);
}

@media (max-width: 920px) {
  .workflow-layout {
    grid-template-columns: 1fr;
  }

  .workflow-parameter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runninghub-reference-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runninghub-video-list,
  .runninghub-audio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-segment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .workflow-parameter-note,
  .workflow-parameter-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-parameter-grid,
  .runninghub-reference-list,
  .runninghub-video-list,
  .runninghub-audio-list {
    grid-template-columns: 1fr;
  }

  .compact-field {
    min-width: 0;
  }
}

.console-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 56px 1fr;
}

.console-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 22, 0.84);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.console-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.console-nav::-webkit-scrollbar {
  display: none;
}

.console-nav button {
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #9aa9bc;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.console-nav button:hover,
.console-nav button.active {
  background: rgba(66, 245, 200, 0.12);
  color: var(--cyan);
}

.console-main {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.66);
}

.side-card {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 21, 37, 0.86);
}

.side-card span {
  color: var(--muted);
  font-size: 12px;
}

.side-card strong {
  font-size: 16px;
}

.side-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.side-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.side-menu {
  display: grid;
  gap: 3px;
}

.side-menu button {
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9aa9bc;
  text-align: left;
  font-size: 13px;
  font-weight: 680;
}

.side-menu button:hover,
.side-menu button.active {
  border-color: rgba(66, 245, 200, 0.2);
  background: rgba(66, 245, 200, 0.08);
  color: var(--cyan);
}

.side-menu i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #a3b4c9;
  font-style: normal;
  font-size: 11px;
}

.content {
  min-width: 0;
  padding: 16px 18px 28px;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.breadcrumb {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.page-title-row h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.page-title-row p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.balance-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(180px, 0.6fr));
  gap: 10px;
  margin-bottom: 10px;
}

.hero-card,
.metric-card,
.panel,
.plan-card,
.key-card {
  position: relative;
  overflow: hidden;
}

.hero-card {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(14, 23, 40, 0.96), rgba(11, 18, 32, 0.8)),
    radial-gradient(circle at top right, rgba(66, 245, 200, 0.08), transparent 36%);
}

.hero-card span,
.metric-card span,
.panel-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.hero-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}

.hero-amount small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 108px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(13, 21, 37, 0.82);
}

.metric-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.metric-card small {
  color: var(--muted);
}

.view {
  display: grid;
  gap: 10px;
}

.monitor-bars i.idle {
  background: rgba(141, 160, 183, 0.2);
}

.grid {
  display: grid;
  gap: 10px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recharge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 12px;
  align-items: stretch;
}

.amount-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 8px;
}

.amount-btn {
  min-height: 76px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: rgba(66, 245, 200, 0.42);
  background: rgba(66, 245, 200, 0.12);
  color: var(--cyan);
}

.custom-amount {
  grid-column: 1 / -1;
}

.recharge-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 23, 40, 0.96), rgba(11, 18, 32, 0.82)),
    radial-gradient(circle at top right, rgba(66, 245, 200, 0.1), transparent 38%);
}

.recharge-summary > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.recharge-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.recharge-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.recharge-summary dt {
  color: var(--muted);
}

.recharge-summary dd {
  margin: 0;
  font-weight: 800;
}

.model-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.model-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 21, 37, 0.82);
}

.model-card strong,
.model-card span {
  display: block;
}

.model-card > div:first-child span,
.muted-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.model-price {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 820;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-row span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 720;
}

.model-search {
  min-width: 260px;
}

.compact-select {
  min-width: 150px;
}

.model-table {
  min-width: 920px;
}

.model-scope-field {
  min-width: 260px;
}

.model-scope-field small {
  color: var(--muted);
  line-height: 1.35;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 14, 0.76);
  backdrop-filter: blur(12px);
}

.key-modal-card {
  width: min(1080px, 100%);
  max-height: min(90vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.simple-key-modal {
  width: min(720px, 100%);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.simple-key-form {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.single-model-list,
.multi-model-list {
  max-height: min(52vh, 420px);
}

.key-modal-hint {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 13px;
}

.key-modal-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
}

.key-modal-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto;
  align-items: end;
  gap: 10px;
}

.field-title {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button,
.model-group-list button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft-ink);
  font-weight: 760;
  cursor: pointer;
}

.segmented button {
  padding: 0 10px;
}

.segmented button.active,
.model-group-list button.active {
  border-color: rgba(66, 245, 200, 0.34);
  background: rgba(66, 245, 200, 0.1);
  color: var(--cyan);
}

.toggle-row {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 760;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.model-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.model-picker-columns {
  min-height: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
}

.model-group-list {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.62);
  overflow: auto;
}

.model-group-list button {
  width: 100%;
  padding: 0 10px;
  text-align: left;
}

.key-modal-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.62);
}

.key-modal-summary span {
  color: var(--cyan);
  line-height: 1.45;
  font-weight: 780;
}

.key-modal-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.key-modal-actions {
  padding-top: 2px;
}

.model-picker-card {
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.model-pick-list {
  min-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.7);
}

.model-pick-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.model-pick-row.disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.model-pick-row:last-child {
  border-bottom: 0;
}

.model-pick-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.model-pick-row strong,
.model-pick-row small {
  display: block;
}

.model-pick-row small {
  margin-top: 3px;
  color: var(--muted);
}

.model-pick-row em {
  color: var(--soft-ink);
  font-size: 12px;
  font-style: normal;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.key-model-tags {
  margin-top: 6px;
}

.panel {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}

.panel-head {
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel h2 {
  margin: 0;
  font-size: 15px;
}

.referral-hero-panel {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(66, 245, 200, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(4, 55, 62, 0.82), rgba(7, 17, 31, 0.9)),
    radial-gradient(circle at 78% 18%, rgba(255, 79, 216, 0.16), transparent 36%),
    radial-gradient(circle at 18% 22%, rgba(66, 245, 200, 0.2), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.referral-hero-copy {
  max-width: 660px;
}

.referral-hero-copy h2 {
  margin: 0;
  font-size: 24px;
}

.referral-hero-copy p {
  margin: 8px 0 0;
  color: #d3e4ef;
  line-height: 1.6;
}

.referral-link-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.copy-field {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.copy-field code {
  min-width: 0;
  overflow: hidden;
  padding: 0 8px;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(66, 245, 200, 0.22);
  border-radius: 8px;
  background: rgba(66, 245, 200, 0.08);
  color: #cbe7e5;
}

.referral-note strong {
  color: var(--cyan);
}

.referral-note p {
  margin: 0;
}

.chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  align-items: end;
  gap: 8px;
  padding: 10px 4px 0;
}

.bar-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  align-items: end;
  gap: 6px;
}

.bar-track {
  height: 100%;
  display: flex;
  align-items: end;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.bar {
  width: 100%;
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.bar-label,
.bar-value {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.quick-list {
  display: grid;
  gap: 6px;
}

.quick-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.quick-item strong,
.quick-item span {
  display: block;
}

.quick-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.monitor-card {
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 21, 37, 0.92), rgba(9, 16, 30, 0.82)),
    radial-gradient(circle at top right, rgba(66, 245, 200, 0.08), transparent 42%);
  box-shadow: var(--shadow-soft);
}

.monitor-head,
.monitor-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.monitor-head {
  align-items: flex-start;
}

.monitor-head strong,
.monitor-head span,
.monitor-score small {
  display: block;
}

.monitor-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 1.2;
}

.monitor-head span,
.monitor-foot,
.monitor-score small {
  color: var(--muted);
  font-size: 11px;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(66, 245, 200, 0.12);
}

.monitor-score {
  color: var(--cyan);
  text-align: right;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.monitor-score small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
}

.monitor-bars {
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
  min-height: 40px;
}

.monitor-bars i {
  display: block;
  height: 22px;
  border-radius: 999px;
  background: var(--cyan);
}

.monitor-bars i.warn {
  background: var(--amber);
}

.monitor-bars i.slow {
  background: #75a7ff;
}

.monitor-foot {
  align-items: center;
  padding-top: 2px;
}

.service-notice-card {
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, auto) auto auto auto;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.service-notice-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.service-notice-head h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.notice-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notice-link-grid article,
.notice-alert,
.notice-policy-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.notice-link-grid article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 12px;
}

.notice-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #7fb0ff;
  font-weight: 900;
}

.notice-icon.green {
  background: rgba(66, 245, 114, 0.12);
  color: #70f59a;
}

.notice-icon.purple {
  background: rgba(151, 111, 255, 0.15);
  color: #bda8ff;
}

.notice-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.notice-link-grid strong,
.notice-alert strong,
.notice-policy-list strong {
  display: block;
  font-size: 15px;
}

.notice-link-grid p,
.notice-alert p,
.notice-policy-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.notice-alert {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-color: rgba(255, 111, 134, 0.28);
  background: rgba(255, 111, 134, 0.08);
}

.notice-alert strong {
  color: #ff9bad;
}

.notice-policy-list {
  display: grid;
  gap: 8px;
}

.notice-policy-list > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.notice-policy-list p,
.notice-policy-list strong {
  grid-column: 2;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.compact-head {
  padding: 0;
  border-bottom: 0;
}

.compact-head h2 {
  font-size: 14px;
}

.dashboard-card-body {
  display: grid;
  gap: 9px;
}

.dashboard-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-stat span,
.dashboard-stat small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-stat strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
}

.analytics-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.dual-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 10px;
  padding: 12px 4px 0;
}

.dual-bar {
  height: 100%;
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  gap: 6px;
  align-items: end;
}

.dual-bar .bar-track {
  position: relative;
  border-radius: 8px;
}

.dual-bar .bar {
  position: absolute;
  bottom: 0;
  min-height: 5px;
  border-radius: 8px 8px 0 0;
}

.token-bar {
  left: 20%;
  width: 34%;
  background: linear-gradient(180deg, var(--blue), #345889);
}

.call-bar {
  right: 20%;
  width: 26%;
  background: linear-gradient(180deg, var(--magenta), #7f4c98);
  opacity: 0.86;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.token-dot {
  background: var(--blue);
}

.call-dot {
  background: var(--magenta);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.75);
}

.table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 800;
}

.usage-part {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  line-height: 1.25;
}

.usage-part strong {
  color: var(--text);
}

.usage-part small {
  color: var(--muted);
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status.ok {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.status.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.bad {
  background: var(--red-soft);
  color: #ff96a8;
}

.multiplier-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 9px;
  border: 1px solid rgba(66, 245, 200, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(66, 245, 200, 0.24), rgba(45, 125, 255, 0.16)),
    rgba(8, 18, 32, 0.84);
  color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(66, 245, 200, 0.1), 0 8px 22px rgba(66, 245, 200, 0.12);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.notice {
  margin-bottom: 16px;
  padding: 9px 11px;
  border: 1px solid rgba(66, 245, 200, 0.22);
  border-radius: 8px;
  background: rgba(66, 245, 200, 0.08);
  color: #bffdf0;
  font-size: 13px;
}

.notice.success {
  border-color: rgba(66, 245, 200, 0.28);
  background: rgba(66, 245, 200, 0.09);
  color: #bffdf0;
}

.notice.error {
  border-color: rgba(255, 111, 134, 0.24);
  background: rgba(255, 111, 134, 0.09);
  color: #ffd0d7;
}

.notice-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.notice-support-copy {
  display: grid;
  gap: 6px;
}

.notice-support-copy strong {
  font-size: 15px;
}

.notice-support-copy p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.6;
}

.notice-qq-image {
  width: 168px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f9;
}

.hidden {
  display: none;
}

.action-row,
.form-row {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 190px;
}

.textarea {
  min-height: 106px;
  resize: vertical;
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(13, 21, 37, 0.8);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.plan-card:hover,
.landing-plan:hover,
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 245, 200, 0.24);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border-color: rgba(66, 245, 200, 0.3);
  background:
    linear-gradient(180deg, rgba(14, 23, 40, 0.98), rgba(13, 21, 37, 0.82)),
    radial-gradient(circle at top, rgba(66, 245, 200, 0.09), transparent 44%);
}

.key-list {
  display: grid;
  gap: 8px;
}

.key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgba(13, 21, 37, 0.82);
}

.selectable-key {
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.selectable-key.active {
  border-color: rgba(66, 245, 200, 0.38);
  background: rgba(66, 245, 200, 0.08);
}

.key-card code,
pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.86);
}

.key-card code {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 6px;
}

.key-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 128px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0e1728;
  box-shadow: var(--shadow);
}

.key-context-menu button {
  width: 100%;
  min-height: 34px;
  display: block;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 720;
}

.key-context-menu button:last-child {
  border-bottom: 0;
}

.key-context-menu button:hover {
  background: rgba(66, 245, 200, 0.1);
  color: var(--cyan);
}

.key-context-menu button.danger:hover {
  background: rgba(255, 111, 134, 0.12);
  color: #ff96a8;
}

.secret-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(66, 245, 200, 0.22);
  border-radius: 8px;
  background: rgba(66, 245, 200, 0.08);
}

.secret-list {
  align-items: flex-start;
  justify-content: space-between;
}

.secret-list > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.secret-box code {
  flex: 1;
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.key-detail-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.key-detail-box > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.45);
}

.key-detail-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.key-detail-box strong,
.key-detail-box code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-route-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 150px minmax(260px, 1.4fr) minmax(170px, 1fr) 90px auto auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
}

.route-table {
  margin-top: 10px;
}

.billing-rule-box {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.billing-rule-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.46);
}

.billing-rule-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.billing-rule-head strong,
.billing-rule-head span {
  display: block;
}

.billing-rule-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.billing-rule-grid {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.billing-tier-list {
  display: grid;
  gap: 8px;
}

.billing-tier-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.media-billing-form {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  align-items: start;
}

.media-billing-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
}

.media-billing-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  min-width: 0;
}

.media-model-billing-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.36);
}

.media-model-billing-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.media-model-billing-title strong,
.media-model-billing-title span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.media-model-billing-title span {
  color: var(--muted);
  font-size: 12px;
}

.billing-rules-table {
  margin-top: 4px;
}

.quick-price-row {
  min-width: 190px;
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.availability-table {
  min-width: 860px;
}

.availability-input-wrap {
  min-width: 130px;
  display: grid;
  grid-template-columns: minmax(88px, 120px) auto;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-weight: 760;
}

.availability-control {
  min-width: 230px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gateway-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.46);
}

.gateway-head strong,
.gateway-head span {
  display: block;
}

.gateway-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.snippet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.snippet-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 21, 37, 0.78);
}

.snippet-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.snippet-card pre {
  margin: 0;
  max-height: 180px;
  overflow: auto;
}

.snippet-card code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.docs-guide-panel {
  display: grid;
  gap: 12px;
}

.docs-start-note {
  margin: 0;
  color: #dbe8f7;
  font-size: 13px;
  line-height: 1.7;
}

.docs-start-note span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 207, 74, 0.45);
  border-radius: 8px;
  background: rgba(255, 207, 74, 0.16);
  color: #ffdf7b;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.docs-key-tool {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.docs-mode-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.56);
}

.docs-mode-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.docs-mode-tabs button.active {
  border-color: rgba(66, 245, 200, 0.24);
  background: rgba(66, 245, 200, 0.12);
  color: var(--cyan);
}

.docs-mode-note {
  margin: 10px 0 0;
  color: var(--soft-ink);
  line-height: 1.6;
}

.docs-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docs-command-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 21, 37, 0.82);
}

.docs-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.docs-command-head h3 {
  margin: 0;
  font-size: 15px;
}

.docs-command-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.docs-command-list {
  display: grid;
  gap: 8px;
}

.docs-command-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.68);
}

.docs-command-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(66, 245, 200, 0.1);
  color: #8cf7de;
  font-size: 12px;
  font-weight: 700;
}

.docs-command-row code {
  min-width: 0;
  padding: 0;
  color: #d8e5f4;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.btn.tiny {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.announcement-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.announcement-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.announcement-copy h2,
.announcement-card h3 {
  margin: 0;
}

.announcement-copy h2 {
  font-size: 22px;
  line-height: 1.18;
}

.announcement-copy p,
.announcement-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.7;
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qq-group-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.qq-group-card img {
  width: min(220px, 100%);
  border-radius: 8px;
  background: #f6f7f9;
}

.qq-group-card strong {
  font-size: 15px;
}

.qq-group-card span {
  color: var(--muted);
  font-size: 12px;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.announcement-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.announcement-step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(66, 245, 200, 0.12);
  color: var(--cyan);
  font-weight: 850;
}

.announcement-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--soft-ink);
  line-height: 1.62;
}

.announcement-list.compact {
  gap: 8px;
}

.config-table {
  display: grid;
  gap: 8px;
}

.config-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.58);
}

.config-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.config-row code {
  min-width: 0;
  color: #d8e5f4;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.integration-list {
  display: grid;
  gap: 2px;
}

.integration-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.integration-item:last-child {
  border-bottom: 0;
}

.mono {
  font-family: "Cascadia Code", Consolas, monospace;
}

.empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 20% 14%, rgba(0, 159, 134, 0.08), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(37, 99, 235, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

:root[data-theme="light"] .brand-on-dark small,
:root[data-theme="light"] .top-links a,
:root[data-theme="light"] .public-footer {
  color: var(--muted);
}

:root[data-theme="light"] .btn,
:root[data-theme="light"] .icon-btn,
:root[data-theme="light"] .avatar-btn,
:root[data-theme="light"] .theme-switch,
:root[data-theme="light"] .amount-btn {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

:root[data-theme="light"] .btn.primary {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
}

:root[data-theme="light"] .btn.glass,
:root[data-theme="light"] .btn.ghost-on-dark {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

:root[data-theme="light"] .hero-copy p,
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .feature-card p,
:root[data-theme="light"] .split-section p,
:root[data-theme="light"] .tutorial-video-copy p,
:root[data-theme="light"] .announcement-copy p,
:root[data-theme="light"] .announcement-card p,
:root[data-theme="light"] .docs-command-head p,
:root[data-theme="light"] .panel-subtitle,
:root[data-theme="light"] .docs-start-note,
:root[data-theme="light"] .docs-mode-note,
:root[data-theme="light"] .referral-note p,
:root[data-theme="light"] .monitor-head span,
:root[data-theme="light"] .monitor-foot,
:root[data-theme="light"] .monitor-score small,
:root[data-theme="light"] .key-detail-box span,
:root[data-theme="light"] .model-card > div:first-child span,
:root[data-theme="light"] .model-pick-row small,
:root[data-theme="light"] .muted-line {
  color: var(--soft-ink);
}

:root[data-theme="light"] .hero-panel,
:root[data-theme="light"] .landing-metric,
:root[data-theme="light"] .landing-plan.featured,
:root[data-theme="light"] .tutorial-video-frame,
:root[data-theme="light"] .hero-card,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .plan-card,
:root[data-theme="light"] .plan-card.featured,
:root[data-theme="light"] .key-card,
:root[data-theme="light"] .side-card,
:root[data-theme="light"] .model-card,
:root[data-theme="light"] .recharge-summary,
:root[data-theme="light"] .key-modal-card,
:root[data-theme="light"] .simple-key-modal,
:root[data-theme="light"] .monitor-card,
:root[data-theme="light"] .docs-command-card,
:root[data-theme="light"] .announcement-card,
:root[data-theme="light"] .qq-group-card {
  background: var(--surface);
}

:root[data-theme="light"] .console-header {
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="light"] .console-nav button,
:root[data-theme="light"] .side-menu button {
  color: var(--muted);
}

:root[data-theme="light"] .side-menu i,
:root[data-theme="light"] .quick-item,
:root[data-theme="light"] .empty,
:root[data-theme="light"] .bar-track,
:root[data-theme="light"] .key-model-option,
:root[data-theme="light"] .key-modal-main,
:root[data-theme="light"] .key-modal-summary,
:root[data-theme="light"] .key-detail-box > div,
:root[data-theme="light"] .secret-box,
:root[data-theme="light"] .referral-note,
:root[data-theme="light"] .docs-mode-tabs,
:root[data-theme="light"] .docs-command-row,
:root[data-theme="light"] .config-row,
:root[data-theme="light"] .model-pick-list,
:root[data-theme="light"] .model-pick-row,
:root[data-theme="light"] .admin-route-form,
:root[data-theme="light"] .billing-tier-row,
:root[data-theme="light"] .media-model-billing-row,
:root[data-theme="light"] .announcement-list li,
:root[data-theme="light"] .amount-btn {
  background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .login-field input,
:root[data-theme="light"] .input,
:root[data-theme="light"] .select,
:root[data-theme="light"] .textarea {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  color-scheme: light;
}

:root[data-theme="light"] .select option,
:root[data-theme="light"] .select optgroup,
:root[data-theme="light"] select option,
:root[data-theme="light"] select optgroup {
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="light"] .code-card,
:root[data-theme="light"] pre,
:root[data-theme="light"] .table-wrap,
:root[data-theme="light"] .key-card code,
:root[data-theme="light"] .secret-box code,
:root[data-theme="light"] .key-detail-box code,
:root[data-theme="light"] .docs-command-row code,
:root[data-theme="light"] .config-row code {
  background: rgba(248, 250, 252, 0.9);
  color: #172033;
}

:root[data-theme="light"] .monitor-card {
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="light"] .monitor-head strong,
:root[data-theme="light"] .key-detail-box strong,
:root[data-theme="light"] .model-pick-row strong {
  color: var(--ink);
}

:root[data-theme="light"] .model-pick-list {
  border-color: rgba(95, 116, 144, 0.22);
}

:root[data-theme="light"] .model-pick-row {
  border-bottom-color: rgba(95, 116, 144, 0.16);
}

:root[data-theme="light"] .model-pick-row:hover {
  background: rgba(0, 159, 134, 0.08);
}

:root[data-theme="light"] .model-pick-row input {
  accent-color: var(--cyan);
}

:root[data-theme="light"] .model-pick-row em {
  color: #53657c;
}

:root[data-theme="light"] .monitor-score {
  color: var(--cyan);
}

:root[data-theme="light"] .multiplier-badge,
:root[data-theme="light"] .status.ok {
  border-color: rgba(0, 159, 134, 0.22);
  background: var(--cyan-soft);
  color: #007866;
}

:root[data-theme="light"] .docs-start-note span {
  border-color: rgba(183, 121, 0, 0.28);
  background: rgba(183, 121, 0, 0.12);
  color: #8a5a00;
}

:root[data-theme="light"] .docs-mode-tabs button {
  color: var(--muted);
}

:root[data-theme="light"] .docs-mode-tabs button.active {
  border-color: rgba(0, 159, 134, 0.26);
  background: var(--cyan-soft);
  color: #007866;
}

:root[data-theme="light"] .docs-command-index {
  background: var(--cyan-soft);
  color: #007866;
}

:root[data-theme="light"] .theme-switch {
  border-color: rgba(95, 116, 144, 0.26);
  background: rgba(255, 255, 255, 0.9);
  color: #53657c;
}

:root[data-theme="light"] .theme-switch span.active {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
}

:root[data-theme="light"] .referral-note strong,
:root[data-theme="light"] .secret-box strong {
  color: #007866;
}

:root[data-theme="light"] .table th {
  background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .notice,
:root[data-theme="light"] .notice.success {
  color: #047857;
}

:root[data-theme="light"] .notice.error,
:root[data-theme="light"] .btn.danger {
  color: #be123c;
}

:root[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.35);
}

@media (max-width: 1180px) {
  .landing-hero,
  .tutorial-video-panel,
  .media-layout,
  .split-section,
  .work-grid,
  .analytics-layout,
  .recharge-layout,
  .plans,
  .pricing-grid,
  .feature-grid,
  .monitor-grid,
  .model-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-title-main,
  .hero-title-sub {
    max-width: 100%;
  }

  .console-nav {
    display: none;
  }

  .balance-strip,
  .stats-grid,
  .analytics-grid,
  .snippet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 16px;
  }

  .top-links {
    display: none;
  }

  .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 22px 14px 18px;
  }

  .reactor-frame {
    inset: 10px;
  }

  .hero-copy h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-title-main {
    font-size: clamp(44px, 9.6vw, 72px);
  }

  .hero-title-sub {
    font-size: clamp(34px, 8.4vw, 58px);
  }

  .hero-copy p {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-panel {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .hero-telemetry {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
  }

  .landing-band,
  .landing-section,
  .tutorial-video-panel,
  .public-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .monitor-grid,
  .notice-link-grid,
  .notice-support-layout,
  .announcement-hero,
  .announcement-grid,
  .stats-grid,
  .referral-link-grid {
    grid-template-columns: 1fr;
  }

  .notice-support-layout {
    justify-items: center;
    text-align: center;
  }

  .referral-hero-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .service-notice-card {
    max-height: 88vh;
    padding: 14px;
  }

  .console-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px 0;
    border-right: 0;
    background: transparent;
  }

  .side-card {
    display: none;
  }

  .side-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .side-menu button {
    min-width: max-content;
  }

  .content {
    padding: 14px 12px 26px;
  }

  .page-title-row,
  .key-card {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-overlay {
    padding: 10px;
    place-items: start center;
    overflow: auto;
  }

  .key-modal-card {
    max-height: none;
  }

  .key-modal-layout,
  .form-grid,
  .settings-row,
  .tutorial-video-panel,
  .model-picker-toolbar,
  .model-picker-columns,
  .key-detail-box,
  .analytics-grid,
  .admin-route-form,
  .media-billing-tier-grid,
  .docs-key-tool,
  .docs-command-grid,
  .config-row,
  .snippet-grid {
    grid-template-columns: 1fr;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .key-modal-summary {
    order: -1;
  }

  .model-group-list {
    display: flex;
    overflow-x: auto;
  }

  .model-group-list button {
    min-width: max-content;
  }
}

@media (max-width: 560px) {
  .landing-hero {
    gap: 18px;
    padding: 18px 14px 16px;
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .hero-copy h1 {
    line-height: 0.94;
  }

  .hero-title-main {
    font-size: clamp(38px, 10.8vw, 46px);
  }

  .hero-title-sub {
    font-size: clamp(30px, 8.8vw, 38px);
  }

  .hero-copy p {
    line-height: 1.6;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-telemetry {
    grid-template-columns: 1fr;
  }

  .hero-telemetry div {
    padding: 10px 12px;
  }

  .panel-orbit {
    inset: -8px;
  }
}

@media (max-width: 560px) {
  .landing-band,
  .stats-grid,
  .analytics-grid,
  .media-form-grid,
  .balance-strip {
    grid-template-columns: 1fr;
  }

  .amount-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-search,
  .compact-select,
  .docs-key-tool,
  .secret-box {
    min-width: 100%;
  }

  .docs-command-head,
  .docs-command-row {
    align-items: stretch;
  }

  .docs-command-head {
    flex-direction: column;
  }

  .docs-command-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .docs-command-row .btn {
    grid-column: 1 / -1;
  }

  .secret-box {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-amount {
    font-size: 24px;
  }

  .public-footer {
    flex-direction: column;
  }

  .header-tools .icon-btn:not(.theme-toggle),
  .top-links {
    display: none;
  }

  .public-page .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .public-page .hero-copy h1 {
    max-width: 100%;
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .public-page .hero-title-main {
    font-size: clamp(38px, 10.8vw, 46px);
  }

  .public-page .hero-title-sub {
    font-size: clamp(30px, 8.8vw, 38px);
  }

  .public-page .hero-copy p {
    max-width: 34ch;
    overflow-wrap: break-word;
  }

  .public-page .hero-panel,
  .public-page .hero-actions,
  .public-page .hero-telemetry {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== AtomForce 视觉美化皮肤 v21（2.10）仅加法：不改布局 / 不改 logo / 不改尺寸 / 不改内容 ===== */
:root{
  /* 统一气质：电光青 → 蔚蓝 → 紫罗兰 → 品红 的极光流光；暖金仅作焦点 */
  --skin-a:#2ee6ff;   /* 电光青 */
  --skin-b:#4d7cff;   /* 蔚蓝 */
  --skin-c:#a06bff;   /* 紫罗兰 */
  --skin-d:#ff5cc8;   /* 品红 */
  --skin-warm:#ffc24a;/* 焦点暖金 */
  --line: rgba(140,168,207,0.20);
  --line-strong: rgba(130,184,230,0.40);
  --skin-radius-card: 14px;
  --skin-radius-panel: 12px;
  --skin-radius-sm: 10px;
}
/* 全局环境光：固定背景层（仅深色主题），收敛不抢戏 */
:root:not([data-theme="light"]) body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(60vw 50vh at 12% 8%, rgba(120,200,255,.10), transparent 60%),
    radial-gradient(55vw 45vh at 88% 18%, rgba(200,120,255,.10), transparent 60%),
    radial-gradient(70vw 60vh at 50% 100%, rgba(120,255,220,.08), transparent 60%);
}
/* 标题渐变（电光青→蔚蓝，干净不杂） */
.landing-section h2,
.panel h2,
.section-kicker,
.page-title-row h1,
.tutorial-video-copy h2{
  background:linear-gradient(100deg,#eafffb,var(--skin-a) 50%,#9db8ff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
/* ===== 核心卡片：玻璃质感 + 常驻微光（不再平平无奇） ===== */
.feature-card,
.landing-plan,
.panel,
.hero-card,
.metric-card,
.key-card{
  position:relative;
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: var(--skin-radius-card);
  border:1px solid rgba(120,180,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, hsla(var(--rest,200),82%,60%,.08), transparent 72%),
    var(--surface);
  box-shadow:
    var(--shadow-soft),
    0 1px 0 rgba(255,255,255,.07) inset,
    0 0 0 1px hsla(var(--rest,200),90%,62%,.10),
    0 28px 64px -22px rgba(0,0,0,.60),
    0 0 32px hsla(var(--rest,200),85%,60%,.14);
}
.panel{ border-radius: var(--skin-radius-panel); }
.btn{ border-radius: var(--skin-radius-sm); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.input, .select, .textarea{ border-radius: var(--skin-radius-sm); }
/* 焦点框（套餐主推）：唯一暖金焦点，制造直击人心的重点，不造成光污染 */
.landing-plan.featured{
  border-color: rgba(255,194,74,.75);
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-soft),
    0 1px 0 rgba(255,255,255,.12) inset,
    0 0 0 1px rgba(255,194,74,.38),
    0 34px 76px -20px rgba(0,0,0,.62),
    0 0 60px rgba(255,180,60,.34);
}
/* 各核心卡片常驻微光取不同色相，增加色彩层次（不抢戏）；主推仍为暖金焦点 */
.feature-card{ --rest:150; }
.landing-plan{ --rest:215; }
.panel{ --rest:270; }
.hero-card{ --rest:175; }
.metric-card{ --rest:45; }
.key-card{ --rest:288; }
.landing-plan.featured{ --rest:45; }
/* 注：所有框的 hover 流光由 JS 叠层 #afBoxGlow 统一处理（不依赖类名，任意框一碰即亮，且与光标同色系但各自取独立色相）；亮度由「流光强度」滑块（window.afCursorBrightness）控制，0 时整圈不显示 */

/* ===== 2.3 外页文案：高级排版 + 精致边框（仅公开页，不碰控制台） ===== */
.public-page{
  font-family:"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-feature-settings:"tnum" 1,"kern" 1;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.public-page .hero-title-main{ letter-spacing:.5px; font-weight:800; }
.public-page .section-kicker{ letter-spacing:.22em; text-transform:uppercase; font-weight:700; opacity:.85; }
.public-page .landing-section h2,
.public-page .panel h2,
.public-page .tutorial-video-copy h2,
.public-page .hero-copy h1{ letter-spacing:.3px; font-weight:800; line-height:1.18; }
.public-page .hero-copy p,
.public-page .landing-section p,
.public-page .tutorial-video-copy p{
  line-height:1.85; font-size:1.02rem; color: color-mix(in srgb, var(--text) 88%, transparent);
}
.public-page .landing-metric strong,
.public-page .feature-grid .feature-card strong,
.public-page .landing-plan h3{ letter-spacing:.4px; font-weight:760; }
/* 精致边框：用 outline 做框，不位移、不覆盖原有阴影 */
.public-page .hero-copy,
.public-page .hero-panel,
.public-page .landing-metric,
.public-page .feature-grid > *,
.public-page .landing-plan,
.public-page .metrics-band,
.public-page .tutorial-video-panel,
.public-page .service-notice-card{
  outline:1px solid rgba(150,190,255,.18);
  outline-offset:-1px;
}
/* 主按钮：玻璃质感 + 内高光 + 发光，明确为页面焦点 */
.btn.primary{
  border:1px solid rgba(130,200,255,.55);
  background: linear-gradient(180deg, rgba(86,156,255,.96), rgba(38,92,232,.96));
  color:#fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 12px 26px -6px rgba(40,110,255,.55),
    0 0 26px rgba(46,230,255,.32);
}
.btn.primary:hover{
  box-shadow:
    0 1px 0 rgba(255,255,255,.45) inset,
    0 18px 38px -6px rgba(40,120,255,.62),
    0 0 42px rgba(46,230,255,.5);
  transform: translateY(-1px);
}
.btn.primary:active{ transform: translateY(0); }
/* 顶部：鼠标激光亮度滑块（位于白天/黑夜切换左侧） */
.cursor-bright{ display:flex; align-items:center; gap:8px; padding:0 6px; }
.cursor-bright .cb-dot{ width:8px; height:8px; border-radius:50%; background:radial-gradient(circle,#fff,var(--skin-a)); box-shadow:0 0 8px var(--skin-a); }
.cursor-bright .cb-label{ color:var(--skin-a); font-size:12px; font-weight:600; letter-spacing:.04em; white-space:nowrap; }
.cursor-bright .cb-slider{ -webkit-appearance:none; appearance:none; width:130px; height:4px; border-radius:999px; background:linear-gradient(90deg, rgba(120,180,255,.25), var(--skin-a)); outline:none; cursor:pointer; }
.cursor-bright .cb-slider::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:14px; height:14px; border-radius:50%; background:#fff; border:2px solid var(--skin-a); box-shadow:0 0 8px rgba(46,230,255,.6); cursor:pointer; }
.cursor-bright .cb-slider::-moz-range-thumb{ width:14px; height:14px; border-radius:50%; background:#fff; border:2px solid var(--skin-a); box-shadow:0 0 8px rgba(46,230,255,.6); cursor:pointer; }
:root[data-theme="light"] .cursor-bright .cb-slider{ background:linear-gradient(90deg, rgba(40,110,255,.25), #2e6bff); }
.btn:focus-visible, .icon-btn:focus-visible, .avatar-btn:focus-visible{
  outline:none; border-color: rgba(46,230,255,.55);
  box-shadow: 0 0 0 3px rgba(46,230,255,.18);
}
/* 输入框聚焦光环 */
.input:focus, .select:focus, .textarea:focus,
input:focus, textarea:focus, select:focus{
  outline:none; border-color: rgba(46,230,255,.55);
  background: rgba(46,230,255,.04);
  box-shadow: 0 0 0 3px rgba(46,230,255,.16), inset 0 1px 0 rgba(255,255,255,.05);
}
/* 表格 */
.table tbody tr{ transition: background .15s ease; background: hsla(var(--rowtint,210),80%,62%,.05); }
.table th{ color: var(--skin-a); font-weight:780; }
.table tbody tr:hover{ background: rgba(46,230,255,.10); }
/* 徽标 / 标签：胶囊玻璃 */
.badge, .tag-row span{
  border-radius:999px;
  background: rgba(46,230,255,.10);
  box-shadow: inset 0 0 0 1px rgba(46,230,255,.22), 0 6px 16px rgba(6,14,30,.30);
}
/* 弹窗 */
.modal{ border-radius: var(--skin-radius-panel); box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 40px rgba(77,124,255,.16); }
/* 滚动条 */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,var(--skin-a),var(--skin-b)); border-radius:10px; border:2px solid var(--bg); }
/* 选中色 */
::selection{ background:rgba(46,230,255,.28); color:#eafffb; }

/* ===== 通用框流光叠层（JS 驱动：任意框一碰即亮；每框按位置取独立色相，相邻不同色；hover 时框上浮“浮现”） ===== */
@property --glow-hue{ syntax:"<number>"; inherits:false; initial-value:200; }
@property --af-angle{ syntax:"<angle>"; inherits:false; initial-value:0deg; }
#afBoxGlow{
  position:fixed; left:0; top:0; width:0; height:0; pointer-events:none; z-index:9997;
  border-radius:14px; opacity:0; transition:opacity .16s ease; mix-blend-mode:screen;
  --glow-hue:200; --af-angle:0deg;
  --c1:var(--skin-a); --c2:var(--skin-b); --c3:var(--skin-c);
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%),
    hsla(var(--glow-hue),95%,66%,.22),
    hsla(calc(var(--glow-hue) + 35),95%,60%,.09) 40%, transparent 64%);
}
#afBoxGlow::after{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: conic-gradient(from var(--af-angle),
    transparent 0deg, var(--c1) 55deg, var(--c2) 110deg, var(--c3) 150deg, transparent 205deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
#afBoxGlow.on{ opacity:1; }
/* hover 时框上浮“浮现”（像早期版本一样），并带自身色相 */
.af-hot{ transform: translateY(-3px); transition: transform .18s ease; }
@media (prefers-reduced-motion: no-preference){
  #afBoxGlow.on::after{ animation: af-flow 3.2s linear infinite; }
}
@keyframes af-flow{ to { --af-angle:360deg; } }

/* ===== 左侧栏：每个栏目独立极光色，彼此区分；激活/悬停发光（替换原来统一的青绿） ===== */
.side-menu button{
  --acc:#2ee6ff; position:relative; overflow:hidden;
  border:1px solid transparent; background:transparent; color:#9aa9bc;
  transition:color .18s ease, background .18s ease, border-color .18s ease;
}
.side-menu button:nth-child(9n+1){ --acc:#2ee6ff; }
.side-menu button:nth-child(9n+2){ --acc:#4d7cff; }
.side-menu button:nth-child(9n+3){ --acc:#b06bff; }
.side-menu button:nth-child(9n+4){ --acc:#19d3c5; }
.side-menu button:nth-child(9n+5){ --acc:#ffc24a; }
.side-menu button:nth-child(9n+6){ --acc:#6f8cff; }
.side-menu button:nth-child(9n+7){ --acc:#3ad6a0; }
.side-menu button:nth-child(9n+8){ --acc:#f2a93b; }
.side-menu button:nth-child(9n+9){ --acc:#7ad14b; }
.side-menu button::before{
  content:""; position:absolute; left:0; top:7px; bottom:7px; width:3px; border-radius:3px;
  background:var(--acc); opacity:.28; transition:opacity .18s ease, box-shadow .18s ease;
}
.side-menu button i{ color:#a3b4c9; background:rgba(255,255,255,.05); transition:color .18s ease, background .18s ease, box-shadow .18s ease; }
.side-menu button:hover, .side-menu button.active{
  color:var(--acc);
  border-color: color-mix(in srgb, var(--acc) 35%, transparent);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
}
.side-menu button:hover::before, .side-menu button.active::before{ opacity:1; box-shadow:0 0 10px var(--acc); }
.side-menu button:hover i, .side-menu button.active i{
  color:var(--acc); background:color-mix(in srgb, var(--acc) 18%, transparent); box-shadow:0 0 8px color-mix(in srgb, var(--acc) 45%, transparent);
}
.side-card{ border-color: color-mix(in srgb, var(--skin-b) 22%, transparent); }
.side-card strong{ color:#e8f1ff; }
.side-progress div{ background:linear-gradient(90deg,#2ee6ff,#19d3c5 28%,#4d7cff 56%,#a06bff 82%,#ffc24a); }
/* ===== 背景：恢复为暗色氛围底（1.6 风格），不改为太空/分块 ===== */

/* ===== 媒体库筛选标签 ===== */
.media-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.media-filter-tabs .btn {
  font-size: 12px;
  padding: 6px 12px;
}
.media-filter-tabs .btn.active {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== 批量工具栏 ===== */
.batch-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.batch-toolbar #selectedCount {
  font-size: 13px;
  color: var(--soft-ink);
}
.batch-toolbar .btn {
  font-size: 12px;
  padding: 6px 12px;
}

/* ===== 媒体卡片选择状态 ===== */
.media-card {
  position: relative;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.media-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 8px rgba(66, 245, 200, 0.25);
}
.media-card .in-selection-box {
  box-shadow: 0 0 0 2px var(--blue), 0 0 12px var(--cyan-soft);
}

/* 拖拽选择框 */
.media-selection-box {
  position: fixed;
  pointer-events: none;
  border: 2px dashed var(--cyan);
  background: rgba(34, 211, 238, 0.15);
  z-index: 9999;
}

/* ===== 右键菜单 ===== */
.context-menu {
  position: fixed;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 10000;
  min-width: 180px;
  animation: fadeIn .1s ease;
}
.context-menu button {
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.context-menu button:hover {
  background: var(--surface);
}
.context-menu button[style*="color: #f87171"] {
  color: var(--red);
}
.context-menu hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

/* 批量工具栏按钮 */
.batch-toolbar .btn {
  white-space: nowrap;
}

/* 媒体画廊包装器 */
.media-gallery-wrapper {
  min-height: 200px;
}

/* ===== 项目库样式 ===== */
.project-library-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.project-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  padding: 4px;
}
.project-tabs .btn {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 6px;
  transition: all .15s ease;
}
.project-tabs .btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.project-tabs .btn:not(.active):hover {
  background: var(--surface);
  border-color: var(--line);
}

.project-sidebar {
  width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  height: fit-content;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.project-sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 8px;
}
.project-episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-episode-list li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--soft-ink);
  transition: all .15s ease;
}
.project-episode-list li:hover,
.project-episode-list li.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: all .2s ease;
}
.project-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}
.project-card img,
.project-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.project-card-body {
  padding: 10px;
}
.project-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* 模态框覆盖层 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}
.modal-overlay .modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 360px;
  max-width: 90vw;
  box-shadow: var(--shadow);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--ink);
}
.modal .field {
  margin-bottom: 12px;
}
.modal .action-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* 参考图预览 + 进度条 */
.rh-preview-area {
  position: relative;
  width: 100%;
  min-height: 80px;
  max-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--faint);
  transition: border-color .2s;
}
.rh-preview-area:has(.rh-preview-img) { border-style: solid; border-color: var(--cyan); }
.rh-preview-img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
}
.rh-preview-placeholder {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}
.rh-preview-size {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: rgba(0,0,0,.7);
  color: var(--cyan);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.rh-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rh-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--faint);
  border-radius: 3px;
  overflow: hidden;
}
.rh-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 3px;
  transition: width .3s ease;
}
.rh-progress-text {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}
.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 8px;
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--cyan);
  background: rgba(66, 245, 200, 0.06);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop span {
  font-size: 12px;
  color: var(--soft-ink);
}
.file-drop small {
  font-size: 10px;
  color: var(--muted);
}

.key-group-section { margin-bottom: 2px; }
.key-group-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.key-group-chip {
  border: 1px solid var(--line);
  background: rgba(6, 11, 20, 0.7);
  color: var(--soft-ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.key-group-chip:hover { border-color: var(--cyan); color: #fff; }
.key-group-chip.active {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35);
}
.key-group-empty { color: var(--muted); font-size: 13px; }
.key-group-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.landing-model-market{padding-top:28px}
.landing-model-market .market-sub{max-width:720px;margin:8px 0 20px;color:#9db0c7;font-size:14px;line-height:1.6}
.model-market-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.model-market-grid .model-card{min-height:0}
@media(max-width:720px){.model-market-grid{grid-template-columns:1fr 1fr}}

.top-links a.active{color:var(--cyan);}
.market-page-hero{padding-top:40px;padding-bottom:56px;}
.market-page-title{margin:0 0 4px;font-size:34px;line-height:1.15;}
.market-page-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px;}
.login-howto{margin:0 0 14px;padding:10px 12px;border:1px solid rgba(140,168,207,.18);border-radius:8px;background:rgba(7,14,28,.55);color:#b7c6d9;font-size:12px;line-height:1.55;}
.login-howto strong{display:block;margin-bottom:6px;color:#f5f8ff;font-size:12px;}
.login-howto ul{margin:0;padding-left:16px;}
.login-howto li{margin:3px 0;}
.login-howto b{color:#e8eefc;font-weight:700;}

.amount-btn { position: relative; overflow: hidden; }
.amount-discount {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 7px;
  border-radius: 0 7px 0 8px;
  background: linear-gradient(135deg, #ff4d6d, #ff2d55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.discount-badge {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.22), rgba(255, 45, 85, 0.12));
  border: 1px solid rgba(255, 77, 109, 0.45);
  color: #ff8fab;
}
.pay-amount {
  color: var(--cyan, #42f5c8);
  font-weight: 900;
}
.discount-amount {
  color: #ff6b81;
  font-weight: 800;
}
