:root {
  --bg: #071216;
  --panel: rgba(6, 23, 28, 0.8);
  --panel-soft: rgba(10, 33, 40, 0.65);
  --line: rgba(131, 236, 190, 0.23);
  --text: #ecfff7;
  --muted: #9fc4b4;
  --accent: #7cf6b9;
  --accent-2: #36c7ee;
  --warn: #ffd38b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(54, 199, 238, 0.23), transparent 36%),
    radial-gradient(circle at 80% 10%, rgba(124, 246, 185, 0.22), transparent 35%),
    linear-gradient(160deg, #040c10, #081a21 55%, #09161b);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(64px);
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  width: 250px;
  height: 250px;
  left: -80px;
  top: 200px;
  background: rgba(124, 246, 185, 0.21);
}

.orb-b {
  width: 300px;
  height: 300px;
  right: -100px;
  top: 30px;
  background: rgba(54, 199, 238, 0.18);
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1300px, 94vw);
  margin: 30px auto;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.panel-main {
  padding: 24px;
}

.panel-side {
  padding: 20px;
  background: var(--panel-soft);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 12px;
}

.hero h1 {
  margin: 10px 0;
  font-size: clamp(29px, 5.6vw, 52px);
  line-height: 1.02;
}

.hero h1 span {
  color: var(--accent);
}

.sub {
  color: var(--muted);
  max-width: 860px;
}

.input-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(124, 246, 185, 0.34);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: 'IBM Plex Mono', monospace;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 13px 18px;
  background: linear-gradient(130deg, var(--accent), #57ebb8 35%, #50d7d3);
  font-weight: 700;
  color: #072117;
  transition: transform 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(124, 246, 185, 0.38);
  color: var(--text);
}

.quick-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--warn);
  min-height: 22px;
}

.spec-grid {
  margin-top: 15px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid rgba(124, 246, 185, 0.2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 12px;
  animation: rise 360ms ease both;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-body {
  color: #d7ede4;
  font-size: 14px;
  line-height: 1.35;
  font-family: 'IBM Plex Mono', monospace;
  word-break: break-word;
}

.yaml-wrap {
  margin-top: 16px;
  border: 1px solid rgba(124, 246, 185, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.yaml-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(124, 246, 185, 0.2);
}

.chip {
  border: 1px solid rgba(124, 246, 185, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

pre {
  margin: 0;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: #dbf8ea;
}

.history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.history li {
  border: 1px solid rgba(124, 246, 185, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.history button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
}

.history strong {
  display: block;
  margin-bottom: 5px;
}

.history span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.hidden {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    width: min(960px, 95vw);
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }
}
