:root {
  --pico-font-size: 95%;
  --pico-primary: #0b6b57;
  --pico-primary-background: #0b6b57;
  --pico-primary-hover: #095646;
  --pico-primary-hover-background: #095646;
  --pico-secondary: #667085;
  --pico-muted-color: #5c6676;
}

body {
  background: linear-gradient(180deg, #f5f7f3 0%, #eef2ec 100%);
}

.container {
  max-width: 1180px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 0.5rem;
}

.site-title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.nav-actions,
.card-actions,
.history-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.instance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.overview-table {
  min-width: 1100px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 0.8rem;
}

.overview-table td,
.overview-table th {
  vertical-align: top;
}

.table-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 16rem;
}

.compact-button {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}

.notify-col {
  min-width: 12rem;
}

.change-col {
  max-width: 24rem;
}

.change-snippet {
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.status-pill.ok {
  background: #dff7eb;
  color: #0d6a43;
}

.status-pill.error {
  background: #fde7e7;
  color: #aa2d2d;
}

.status-pill.unknown {
  background: #eceff3;
  color: #526071;
}

.response-box {
  max-height: 18rem;
  overflow: auto;
  white-space: pre-wrap;
  background: #111827;
  color: #edf2f7;
  border-radius: 0.6rem;
  padding: 1rem;
}

.login-wrap {
  max-width: 30rem;
  margin: 8vh auto 0;
}

.error-text {
  color: #aa2d2d;
}

.logout-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
