* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #f4f5f7;
  color: #1a1a1a;
}
header {
  background: #1f2937;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a { color: #fff; text-decoration: none; margin-right: 16px; font-weight: 500; }
header a:hover { text-decoration: underline; }
main {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
h1 { font-size: 22px; }
h2 { font-size: 18px; margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 14px; vertical-align: top; }
th { background: #fafafa; }
.flag { color: #dc2626; font-weight: bold; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}
label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
button, .btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
button.danger, .btn.danger { background: #dc2626; }
button:hover { opacity: 0.9; }
.error { color: #dc2626; margin-bottom: 12px; }
.muted { color: #6b7280; font-size: 13px; }
.tabs { margin-bottom: 16px; }
.tabs a { margin-right: 14px; font-weight: 600; color: #374151; text-decoration: none; }
.tabs a.active { color: #2563eb; border-bottom: 2px solid #2563eb; }
form.inline { display: inline; }
.login-wrap { max-width: 360px; margin: 80px auto; }
