:root {
  --bg: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #16a34a;
  --accent-strong: #15803d;
  --accent-soft: #ecfdf3;
  --border: rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --btn-gradient: linear-gradient(135deg, #22c55e, #86efac);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.92)),
    radial-gradient(circle at top right, rgba(34,197,94,0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(34,197,94,0.10), transparent 24%),
    #f8fafc;
}

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

.page-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  min-height: 100vh;
  padding: 28px;
}

.sidebar {
  position: sticky;
  top: 28px;
  align-self: start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--btn-gradient);
  color: #0b3d1e;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent-soft);
  border-color: rgba(22, 163, 74, 0.12);
  color: var(--accent-strong);
}

.sidebar-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.sidebar-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sidebar-card-text {
  font-size: 0.92rem;
  line-height: 1.55;
}

.main {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero > div,
.hero-status,
.card {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.hero > div:first-child {
  padding: 28px;
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pill {
  padding: 8px 12px;
}

.chip {
  padding: 10px 12px;
}

.hero-status {
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.status-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-value {
  font-weight: 700;
  word-break: break-word;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 22px;
}

.card h2 {
  margin: 0 0 16px;
  font-size: 1.08rem;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #ffffff;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

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

.form-actions,
.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-gradient);
  color: #0b3d1e;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-main);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #fca5a5);
  color: #4a1010;
}

.feature-list,
.ordered-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  color: var(--text-main);
}

.muted {
  color: var(--text-muted);
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.console-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.console-output {
  margin: 0;
  min-height: 360px;
  max-height: 70vh;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e5f7ea;
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.6;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}