* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f1115;
  color: #e5e7eb;
  margin: 0;
  padding: 2rem;
}
.container { max-width: 780px; margin: 0 auto; }
h1, h2 { color: #fff; }
.card {
  background: #1a1d24;
  border: 1px solid #2a2e37;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
input, select, button, textarea {
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #333844;
  background: #12141a;
  color: #fff;
  width: 100%;
  margin-bottom: 0.8rem;
  font-family: inherit;
}
button.link-button {
  width: auto;
  background: none;
  border: none;
  color: #9ca3af;
  padding: 0;
  margin: 0;
  font-weight: normal;
  text-decoration: underline;
  cursor: pointer;
}
button.link-button:hover { background: none; color: #e5e7eb; }
button {
  background: #3b82f6;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: #2563eb; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
.domain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #2a2e37;
}
.muted { color: #9ca3af; font-size: 0.9rem; }
.alert { padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #3b1616; color: #fca5a5; border: 1px solid #7f1d1d; }
.alert-success { background: #14301c; color: #86efac; border: 1px solid #166534; }
pre.log {
  background: #0a0b0e;
  padding: 1rem;
  border-radius: 8px;
  max-height: 350px;
  overflow: auto;
  font-size: 0.85rem;
  white-space: pre-wrap;
}
a { color: #60a5fa; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.disk-bar {
  background: #12141a;
  border: 1px solid #2a2e37;
  border-radius: 6px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.disk-bar.mini { height: 8px; margin-bottom: 0; }
.disk-bar-fill { background: #3b82f6; height: 100%; }
.disk-bar-fill.warn { background: #f59e0b; }
.disk-bar-fill.danger { background: #dc2626; }
.usage-table { width: 100%; border-collapse: collapse; }
.usage-table td { padding: 0.3rem 0.4rem 0.3rem 0; font-size: 0.9rem; }
.usage-table .usage-num { text-align: right; white-space: nowrap; color: #9ca3af; }
.usage-table .usage-bar-cell { width: 35%; }
.server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .server-grid { grid-template-columns: 1fr; }
}
.svc-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin: 0.15rem 0.3rem 0.15rem 0;
  white-space: nowrap;
}
.svc-badge.svc-ok { background: #14301c; color: #86efac; }
.svc-badge.svc-warn { background: #3a2e12; color: #fcd34d; }
.svc-badge.svc-bad { background: #3b1616; color: #fca5a5; }
