:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --accent: #25d366;
  --accent-dark: #1ebe57;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.site-header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-header h1 a {
  color: var(--ink);
  text-decoration: none;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.container.narrow {
  max-width: 420px;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.tools {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.tools th,
table.tools td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  vertical-align: top;
}
table.tools tr:last-child td { border-bottom: none; }
table.tools th {
  background: #f9fafb;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
table.tools tr.missing td:not(:last-child) { color: var(--muted); }
table.tools td a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}
table.tools td a:hover { text-decoration: underline; }

.status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-ok { background: #e7f9ee; color: var(--accent-dark); }
.status-missing { background: #f3f4f6; color: var(--muted); }

.logout {
  margin-top: 1.75rem;
  text-align: right;
}
.logout a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.logout a:hover { text-decoration: underline; }

/* Login form */
.login-form {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.login-form h2 {
  margin: 0 0 0.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.25rem;
  color: var(--ink);
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.login-form input[type="password"] {
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.login-form input[type="password"]:focus {
  border-color: var(--accent);
}
.login-form button {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.login-form button:hover { background: var(--accent-dark); }
.login-form .error {
  padding: 0.6rem 0.8rem;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Honeypot: hidden from humans but present in the DOM for bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
