* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1713;
  color: #eae6da;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: #14201a;
  border-bottom: 1px solid #2a3a30;
}
nav a {
  color: #d9c98a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
nav a:hover { color: #f0dfa0; }
nav .brand { color: #f0dfa0; font-size: 1.1rem; font-weight: 700; margin-right: auto; }
main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
h1 { color: #f0dfa0; font-size: 1.4rem; }
h2 { color: #f0dfa0; font-size: 1.1rem; }
.cards { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.card {
  background: #182620;
  border: 1px solid #2a3a30;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  min-width: 150px;
}
.card .num { font-size: 1.8rem; font-weight: 700; color: #f0dfa0; }
.card .label { font-size: 0.8rem; color: #9bab9f; text-transform: uppercase; letter-spacing: 0.04em; }
table { width: 100%; border-collapse: collapse; background: #182620; border-radius: 8px; overflow: hidden; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid #233129; font-size: 0.9rem; }
th { color: #9bab9f; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
a.link { color: #d9c98a; text-decoration: none; }
a.link:hover { text-decoration: underline; }
.badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; margin-right: 0.25rem;
}
.badge.running { background: #1e3a2a; color: #6fd98c; }
.badge.stopped { background: #3a1e1e; color: #d96f6f; }
.badge.notinstalled { background: #2a2a2a; color: #777; }
.badge.trial { background: #3a341e; color: #d9c46f; }
.badge.active { background: #1e3a2a; color: #6fd98c; }
.badge.suspended { background: #3a1e1e; color: #d96f6f; }
button, input[type=submit] {
  background: #2a4a36; color: #eae6da; border: 1px solid #3a5e46;
  border-radius: 6px; padding: 0.45rem 0.9rem; font-size: 0.85rem; cursor: pointer;
}
button:hover { background: #345c42; }
button.danger { background: #5a2424; border-color: #7a3030; }
button.danger:hover { background: #6e2c2c; }
button.small { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
input, select, textarea {
  background: #0f1713; color: #eae6da; border: 1px solid #2a3a30;
  border-radius: 6px; padding: 0.5rem; font-size: 0.9rem; width: 100%;
}
label { display: block; margin: 0.8rem 0 0.3rem; font-size: 0.85rem; color: #9bab9f; }
form { background: #182620; border: 1px solid #2a3a30; border-radius: 8px; padding: 1.2rem; margin-bottom: 1.2rem; }
.error { color: #d96f6f; margin-top: 0.5rem; font-size: 0.85rem; }
.success { color: #6fd98c; margin-top: 0.5rem; font-size: 0.85rem; }
.checkrow { display: flex; align-items: center; gap: 0.5rem; margin: 0.4rem 0; }
.checkrow input { width: auto; }
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  align-items: center; justify-content: center; z-index: 10;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #182620; border: 1px solid #2a3a30; border-radius: 8px;
  padding: 1.2rem; width: 90%; max-width: 700px; max-height: 80vh; overflow: auto;
}
pre { white-space: pre-wrap; word-break: break-all; font-size: 0.8rem; color: #cfcab8; }
.section { margin-bottom: 2rem; }
.muted { color: #9bab9f; font-size: 0.85rem; }
