* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  color: #1f2937;
}
.container {
  width: min(1200px, 95vw);
  margin: 20px auto;
}
.center-card {
  max-width: 620px;
  margin-top: 10vh;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.06);
}
.card h2 { margin-top: 0; }
.form-grid {
  display: grid;
  gap: 8px;
}
input, select, textarea, button {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
button, .button {
  cursor: pointer;
  background: #1f4ed8;
  color: #fff;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.button.secondary {
  background: #334155;
}
.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 8px 6px;
}
.muted { color: #6b7280; }
.hint { color: #475569; font-size: 14px; }
.warn { color: #b45309; }
.chat-result {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}
.userbox {
  display: grid;
  gap: 6px;
  justify-items: end;
}
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
}
