:root {
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #f7f2ff;
  background: #080713;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --panel: rgba(15, 12, 34, 0.76);
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(168, 85, 247, 0.28), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(34, 211, 238, 0.18), transparent 24%),
    linear-gradient(135deg, #080713 0%, #160b2e 48%, #090a18 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.16;
  animation: scanline 9s linear infinite;
}

.scene-glow {
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  background:
    conic-gradient(from 140deg at 78% 18%, transparent, rgba(34, 211, 238, 0.18), transparent 28%),
    conic-gradient(from 320deg at 16% 64%, transparent, rgba(236, 72, 153, 0.18), transparent 30%);
  filter: blur(28px);
  opacity: 0.82;
  animation: drift 14s ease-in-out infinite alternate;
}

.sidebar {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid rgba(216, 180, 254, 0.2);
  background: rgba(8, 7, 19, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 18px 0 46px rgba(0, 0, 0, 0.32);
}

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

.brand-mark {
  display: grid;
  position: relative;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.6);
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899 56%, #22d3ee);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.55);
  color: #fff;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 10px;
  content: "";
  animation: pulseRing 2.6s ease-in-out infinite;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 3px;
  color: #9ca3ff;
  font-size: 11px;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 9px;
}

nav a {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c4b5fd;
}

nav a.active,
nav a:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.34), rgba(34, 211, 238, 0.1));
  color: #fff;
  box-shadow: inset 3px 0 0 #22d3ee;
}

.system-card {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(124, 58, 237, 0.18));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.08);
}

.system-card span,
.system-card small {
  display: block;
  color: #a5b4fc;
  font-size: 11px;
}

.system-card strong {
  display: block;
  margin: 6px 0 3px;
  color: #67e8f9;
  font-size: 22px;
  letter-spacing: 0;
}

.main {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(216, 180, 254, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(14, 165, 233, 0.12)),
    rgba(17, 12, 38, 0.72);
  box-shadow: 0 20px 70px rgba(76, 29, 149, 0.32);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 0;
  left: -40%;
  width: 42%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #22d3ee, #ec4899, transparent);
  animation: energyLine 4.2s linear infinite;
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  content: "";
  box-shadow: inset 0 0 36px rgba(124, 58, 237, 0.18);
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  background: linear-gradient(90deg, #ffffff, #d8b4fe 48%, #67e8f9);
  background-clip: text;
  color: transparent;
  font-size: 42px;
  line-height: 1.15;
}

h2 {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 16px;
}

.ui-icon,
.title-icon,
.button-icon,
.metric-icon {
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(34, 211, 238, 0.45));
}

.ui-icon {
  width: 18px;
  height: 18px;
  opacity: 0.88;
}

.title-icon {
  width: 20px;
  height: 20px;
}

.button-icon {
  width: 16px;
  height: 16px;
}

.metric-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  opacity: 0.2;
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(236, 72, 153, 0.65));
}

p {
  max-width: 760px;
  margin-top: 8px;
  color: #c4b5fd;
}

button,
.download {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #db2777 58%, #0891b2);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.34);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

button {
  min-height: 38px;
  padding: 0 15px;
}

button:hover,
.download:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.32);
}

.retry-button {
  min-height: 32px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.cancel-button {
  min-height: 32px;
  margin-bottom: 8px;
  margin-left: 8px;
  border: 1px solid rgba(248, 113, 113, 0.48);
  background: rgba(127, 29, 29, 0.36);
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.16);
}

.primary-action {
  min-width: 108px;
}

.hero-console {
  position: relative;
  z-index: 1;
  min-width: 184px;
  padding: 15px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.48);
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.1);
}

.hero-console span,
.hero-console small {
  display: block;
  color: #a5b4fc;
  font-size: 11px;
}

.hero-console strong {
  display: block;
  margin: 6px 0 8px;
  color: #67e8f9;
  font-size: 24px;
}

.cards,
.workspace {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.project-console {
  margin-bottom: 14px;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 440px);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  border-color: rgba(34, 211, 238, 0.36);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.12), rgba(236, 72, 153, 0.1)),
    rgba(15, 12, 34, 0.78);
}

.auth-stack {
  display: grid;
  gap: 10px;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.email-register-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.email-register-form button[type="submit"],
.email-register-form .form-hint {
  grid-column: 1 / -1;
}

.login-form input,
.email-register-form input {
  margin-bottom: 0;
}

.project-select {
  width: min(360px, 100%);
  margin: 0;
}

.project-meta,
.settings-grid,
.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.project-meta > div,
.settings-grid > div,
.diagnostic-grid > div,
.output-item {
  padding: 12px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 8px;
  background: rgba(8, 7, 19, 0.52);
}

.diagnostic-grid {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  margin-bottom: 12px;
}

.diagnostic-grid > div {
  position: relative;
  overflow: hidden;
}

.diagnostic-grid > div::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  content: "";
}

.diagnostic-grid strong {
  color: #67e8f9;
  font-size: 24px;
}

.project-meta strong,
.project-meta span,
.settings-grid strong,
.diagnostic-grid strong,
.output-item strong {
  display: block;
  color: #fff;
  font-weight: 900;
}

.project-meta span {
  font-size: 24px;
}

.project-meta small,
.settings-grid small,
.diagnostic-grid small,
.output-item small,
.form-hint {
  display: block;
  margin-top: 5px;
  color: #a5b4fc;
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.pipeline-panel {
  margin-bottom: 14px;
}

.pipeline-summary {
  padding: 7px 11px;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pipeline-step {
  position: relative;
  min-height: 156px;
  padding: 15px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 8px;
  background: rgba(8, 7, 19, 0.55);
  overflow: hidden;
}

.pipeline-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  width: 14px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.78), rgba(236, 72, 153, 0.78));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.pipeline-index {
  position: absolute;
  right: 12px;
  top: 10px;
  color: rgba(216, 180, 254, 0.42);
  font-size: 22px;
  font-weight: 900;
}

.pipeline-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

.pipeline-step strong,
.pipeline-step small,
.pipeline-step em {
  display: block;
}

.pipeline-step strong {
  color: #fff;
}

.pipeline-step small {
  min-height: 38px;
  margin-top: 8px;
  color: #a5b4fc;
  font-size: 12px;
}

.pipeline-step em {
  width: fit-content;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.step-done {
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.08);
}

.step-done em {
  background: rgba(34, 211, 238, 0.16);
  color: #67e8f9;
}

.step-running {
  border-color: rgba(236, 72, 153, 0.48);
  box-shadow: inset 0 0 28px rgba(236, 72, 153, 0.09);
}

.step-running em {
  background: rgba(236, 72, 153, 0.16);
  color: #f9a8d4;
}

.step-waiting em,
.step-blocked em {
  background: rgba(99, 102, 241, 0.16);
  color: #c4b5fd;
}

.cards article,
.panel {
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: 8px;
  background: rgba(15, 12, 34, 0.76);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.cards article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cards article::after {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  content: "";
}

.cards article::before,
.panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 550ms ease;
}

.cards article:hover,
.panel:hover {
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 22px 64px rgba(124, 58, 237, 0.22), 0 0 32px rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.cards article:hover::before,
.panel:hover::before {
  transform: translateX(120%);
}

.cards span,
.cards em {
  display: block;
  color: #a5b4fc;
  font-style: normal;
}

.cards strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 38px;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.24);
}

.cards b {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 10px;
}

.cards article:hover .metric-icon,
.panel:hover .title-icon,
nav a:hover .ui-icon,
nav a.active .ui-icon {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(34, 211, 238, 0.72));
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.featured-panel {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 20px 58px rgba(14, 165, 233, 0.16);
}

input,
textarea,
select {
  width: 100%;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 8px;
  outline: none;
  background: rgba(7, 8, 22, 0.72);
  color: #fff;
  font: inherit;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13);
}

input::placeholder,
textarea::placeholder {
  color: #8b8bbd;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.tasks,
.assets,
.outputs {
  display: grid;
  gap: 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-head .eyebrow {
  margin-bottom: 5px;
}

.task-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-pill {
  display: inline-flex;
  min-height: 34px;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(15, 23, 42, 0.52);
  box-shadow: none;
  color: #c4b5fd;
}

.filter-pill strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
  font-size: 12px;
}

.filter-pill.active {
  border-color: rgba(34, 211, 238, 0.62);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(34, 211, 238, 0.18));
  color: #fff;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12);
}

.task,
.asset {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 180px minmax(260px, 1.2fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 8px;
  background: rgba(8, 7, 19, 0.58);
  transition: border-color 160ms ease, background 160ms ease;
}

.task {
  grid-template-columns: minmax(260px, 1.1fr) 96px 180px minmax(260px, 1.15fr);
}

.task:hover,
.asset:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(15, 12, 34, 0.78);
}

.asset {
  grid-template-columns: minmax(260px, 1fr) 110px 110px;
}

.asset strong,
.task strong {
  color: #fff;
}

.task-main strong {
  display: block;
}

.task small,
.asset small {
  display: block;
  margin-top: 4px;
  color: #9ca3ff;
}

.status {
  padding: 6px 8px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #ddd6fe;
  text-align: center;
}

.status.succeeded {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
}

.status.running {
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.14);
  color: #f9a8d4;
}

.status.failed {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.task-progress {
  display: grid;
  gap: 7px;
}

.task-progress span {
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 800;
}

.task-succeeded {
  border-left: 3px solid #22d3ee;
}

.task-running,
.task-queued {
  border-left: 3px solid #ec4899;
}

.task-failed {
  border-left: 3px solid #f87171;
}

.task-output {
  min-width: 0;
}

.task-events {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #a5b4fc;
  font-size: 12px;
}

.failure-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #fecaca;
  font-size: 12px;
}

.health-advice {
  grid-column: span 2;
}

.health-advice ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #c4b5fd;
  font-size: 12px;
}

.output-item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.closed-loop {
  margin-bottom: 12px;
}

.commercial-report {
  margin-bottom: 12px;
}

.commercial-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.08)),
    rgba(8, 7, 19, 0.62);
}

.commercial-card.ready {
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.08);
}

.commercial-card.not-ready {
  border-color: rgba(236, 72, 153, 0.46);
  box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.08);
}

.commercial-card strong {
  display: block;
  color: #67e8f9;
  font-size: 42px;
  line-height: 1;
}

.commercial-card small {
  display: block;
  margin-top: 8px;
  color: #a5b4fc;
}

.commercial-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.commercial-checks span {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.commercial-checks span.ok {
  border: 1px solid rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.commercial-checks span.missing {
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
}

.closed-loop-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 8px;
  background: rgba(8, 7, 19, 0.58);
}

.closed-loop-card.ready {
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.08);
}

.closed-loop-card.not-ready {
  border-color: rgba(236, 72, 153, 0.46);
  box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.08);
}

.closed-loop-card strong {
  color: #fff;
  font-size: 18px;
}

.closed-loop-card small {
  color: #a5b4fc;
}

.closed-loop-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.closed-loop-card span {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.closed-loop-card span.ok {
  border: 1px solid rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.closed-loop-card span.missing {
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
}

.api-test-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.34), rgba(8, 47, 73, 0.28));
  box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.08);
}

.api-test-card strong,
.api-test-card small {
  display: block;
}

.api-test-card strong {
  color: #fff;
  font-size: 14px;
}

.api-test-card small {
  color: #c4b5fd;
  margin-top: 4px;
}

.api-test-card button {
  width: auto;
  min-width: 128px;
}

.api-sample {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #22d3ee;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.6;
}

progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 27, 75, 0.9);
}

progress::-webkit-progress-bar {
  background: rgba(30, 27, 75, 0.9);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  background-size: 180% 100%;
  animation: progressFlow 2.2s linear infinite;
}

pre {
  max-height: 120px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.56);
  color: #dbeafe;
  font-size: 12px;
  white-space: pre-wrap;
}

.download {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 12px;
  text-decoration: none;
}

.empty {
  margin: 0;
  color: #a5b4fc;
}

@keyframes energyLine {
  to {
    left: 120%;
  }
}

@keyframes progressFlow {
  to {
    background-position: 180% 0;
  }
}

@keyframes scanline {
  to {
    transform: translateY(42px);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) rotate(4deg);
  }
}

@keyframes pulseRing {
  50% {
    opacity: 0.35;
    transform: scale(1.12);
  }
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .cards,
  .workspace,
  .pipeline,
  .project-meta,
  .diagnostic-grid,
  .login-panel,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .login-form {
    grid-template-columns: 1fr;
  }

  .email-register-form,
  .code-row {
    grid-template-columns: 1fr;
  }

  .commercial-card {
    grid-template-columns: 1fr;
  }

  .hero,
  .task,
  .asset {
    grid-template-columns: 1fr;
  }

  .pipeline-step:not(:last-child)::after {
    display: none;
  }
}
