:root {
  --bg: #ebf5f7;
  --surface: #ffffff;
  --surface-2: #f7fbfc;
  --text: #111827;
  --muted: #5b6674;
  --line: #ced6dd;
  --brand: #0f766e;
  --brand-2: #134e4a;
  --danger: #b91c1c;
  --terminal: #071226;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at 20% 0%, #d9f0f0 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, #dce8f8 0%, transparent 40%),
    var(--bg);
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
}

.hero p {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface);
}

.pill.offline {
  border-color: #f5c2c2;
  color: var(--danger);
}

.pill.online {
  border-color: #86d7b5;
  color: #08633e;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0 0 10px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

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

input,
textarea,
button {
  width: 100%;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
}

textarea {
  resize: vertical;
}

button {
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
}

button:hover {
  background: var(--brand-2);
}

button.ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.muted {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.services,
.jobs {
  display: grid;
  gap: 10px;
}

.audit-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.service {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2);
}

.service summary {
  cursor: pointer;
  font-weight: 700;
}

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

.tag {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #9fd7d0;
  color: #0f766e;
  padding: 2px 8px;
  margin-right: 6px;
  margin-top: 4px;
  font-size: 0.82rem;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.order {
  margin: 8px 0 0;
  color: #1f2937;
}

.terminal {
  background: var(--terminal);
  color: #e6edf7;
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 70px;
  margin: 0;
}

.terminal-panel .terminal {
  max-height: 280px;
  overflow: auto;
}

@media (max-width: 860px) {
  .auth-row {
    grid-template-columns: 1fr;
  }

  .service-actions {
    grid-template-columns: 1fr;
  }

  .audit-filters {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
