:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --accent: #0f4c81;
  --border: #e4e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.topbar nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text);
}

.page {
  padding: 24px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: #f0f4f8;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.inline-form {
  display: inline;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.notice {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pill {
  background: #e6eef7;
  color: #0f4c81;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.code {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
}

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f6f8 0%, #e1e8ef 100%);
}

.login-card {
  background: var(--card);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: min(420px, 90vw);
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

.captcha-row {
  display: flex;
  justify-content: center;
}

.login-links {
  margin-top: 12px;
  text-align: center;
}

.form-section {
  display: grid;
  gap: 12px;
}
