:root {
  --accent: #a5a9ff;
  --accent-strong: #8a8fe3;
  --accent-soft: #1c2233;
  --bg: #0f131c;
  --card: #161c27;
  --text: #e6edf7;
  --muted: #a1acc2;
  --border: #293347;
  --ghost: #1d2432;
  --ghost-strong: #252e3f;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 20px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

header h1 {
  margin: 6px 0;
  font-size: 2.4rem;
}

header .lede {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.info-card {
  border-left: 4px solid var(--accent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.card-header h2 {
  margin: 2px 0 4px;
}

.card-header .meta {
  margin: 0;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.primary-link {
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--accent-strong);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="password"],
textarea,
select {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  box-sizing: border-box;
  color: var(--text);
  background: var(--ghost);
}

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

button {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

button.primary {
  background: var(--accent);
  color: #ffffff;
}

button.primary:hover {
  background: var(--accent-strong);
}

button.ghost {
  background: var(--ghost);
  color: var(--text);
}

button.ghost:hover {
  background: var(--ghost-strong);
}

.select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.output {
  min-height: 120px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  white-space: pre-wrap;
}

.status {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}

#history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#history li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--ghost);
}

#history .meta {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.compact-grid {
  grid-template-columns: 1fr;
}

iframe {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.meta {
  color: var(--muted);
  margin-top: 4px;
}

#deployments,
#github-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#deployments li,
#github-history li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--ghost);
}

#deployments a,
#github-history a {
  color: var(--accent);
  font-weight: 700;
}

#deployments .meta-row,
#github-history .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .compact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
