* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: #f4f5f7;
  color: #222;
}

a {
  color: #2563eb;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.user-label {
  font-size: 14px;
  margin-right: 12px;
}

.link-button {
  border: none;
  background: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
}

.page {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  margin-bottom: 20px;
}

.card-large {
  min-width: 320px;
}

.card-auth {
  width: 100%;
  max-width: 420px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.role-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.btn.primary {
  background: #2563eb;
  color: white;
}

.btn.secondary {
  background: #e5e7eb;
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.btn.social {
  width: 100%;
  margin-bottom: 8px;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.form input,
.form select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-top: 4px;
  font-size: 14px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muted {
  font-size: 13px;
  color: #6b7280;
}

.error {
  color: #dc2626;
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
}

.simple-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.simple-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 6px;
}

.table tr.good {
  background: #ecfdf3;
}

.table tr.bad {
  background: #fef2f2;
}

.ai-output {
  width: 100%;
  white-space: pre-wrap;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  font-size: 13px;
  margin-top: 10px;
}
