:root {
  --bg: #efefeb;
  --surface: #f7f7f4;
  --border: #d3d3ce;
  --text: #222;
  --text-muted: #666;
  --accent: #6a7f6b;
  --accent-dark: #5c6f5d;
  --success: #5c7a5f;
  --error: #a8574c;
  --radius: 2px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

nav .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

nav .brand .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

nav .links a {
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}
nav .links a:hover { color: var(--text); text-decoration: none; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

h1 { font-size: 24px; font-weight: 400; margin: 0 0 6px; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; color: var(--text); }
p.subtitle { color: var(--text-muted); margin: 0 0 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}
label:first-of-type { margin-top: 0; }

label .hint {
  font-weight: 400;
  color: var(--text-muted);
}

input[type=text], input[type=email], input[type=password], input[type=number], input[type=url] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

input:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.checkbox-row label { margin: 0; }

button, .button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent-dark);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
}
button:hover, .button:hover { background: var(--accent-dark); text-decoration: none; }

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.button.secondary:hover { background: var(--surface); color: var(--accent-dark); }

.error-box {
  background: #f3ece9;
  border: 1px solid #e0c9c1;
  color: var(--error);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.success-box {
  background: #eaeee9;
  border: 1px solid #cdd8cb;
  color: var(--success);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-pill.active { background: #eaeee9; color: var(--success); }
.status-pill.inactive { background: #e8e8e4; color: var(--text-muted); }

.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

table.log-table {
  width: 100%;
  border-collapse: collapse;
}
table.log-table th, table.log-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
table.log-table th { color: var(--text-muted); font-weight: 600; }

.log-status-ok { color: var(--success); }
.log-status-error { color: var(--error); }

.auth-card {
  max-width: 380px;
  margin: 80px auto;
}

.center-text { text-align: center; }
