:root {
  --bg: #f7f3ea;
  --card: #ffffff;
  --ink: #24211a;
  --muted: #69645a;
  --accent: #d99a21;
  --danger: #8a1f11;
  --ok: #2b6b35;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
header {
  padding: 24px;
  background: var(--ink);
  color: white;
}
main {
  padding: 24px;
  max-width: 1100px;
  margin: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  min-height: 44px;
}
nav a, button, a.button {
  background: var(--accent);
  color: var(--ink);
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
button.secondary, a.secondary {
  background: #eee2c8;
}
button.danger {
  background: #e4b1a8;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 4px solid var(--accent);
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.metric {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 8px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
th, td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}
th {
  background: #eee2c8;
}
input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
}
.error {
  color: var(--danger);
}
.success {
  color: var(--ok);
}
code, pre {
  background: #f1eadc;
  padding: 3px 6px;
  border-radius: 6px;
}
pre {
  overflow-x: auto;
  padding: 12px;
}


nav .nav-spacer {
  flex: 1 1 auto;
}

nav a, nav button {
  min-height: 40px;
  line-height: 20px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  nav {
    align-items: stretch;
  }

  nav a, nav button {
    flex: 1 1 140px;
    text-align: center;
  }

  nav .nav-spacer {
    display: none;
  }
}


.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.small-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.status-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eee2c8;
  font-size: 0.85rem;
  font-weight: 700;
}


footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 32px;
  color: var(--muted);
  font-size: 0.85rem;
}






}


/* HiveBeacon logo hard sizing fix */
header .brand-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

header img.brand-logo,
img.brand-logo {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  object-fit: contain !important;
  flex: 0 0 24px !important;
  border-radius: 4px !important;
}

header .brand-copy h1 {
  margin: 0 !important;
}

header .brand-copy p {
  display: none !important;
}

/* Prevent any accidental unclassed logo/header image from taking over the page */
header img {
  max-width: 32px !important;
  max-height: 32px !important;
  width: auto;
  height: auto;
}

/* Auth pages may use a larger logo, but still capped */
main img.auth-logo,
img.auth-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 0 14px 0 !important;
}

@media (max-width: 640px) {
  header img.brand-logo,
  img.brand-logo {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex-basis: 22px !important;
  }
}


#activeAlertsCard {
  border-top-color: #8a1f11;
  margin-bottom: 18px;
}
