* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f7f8fa;
}
.page {
  width: min(1040px, calc(100vw - 32px));
  margin: 48px auto;
}
.auth-panel, .admin {
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  padding: 28px;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: #8a95a3;
  font-size: 12px;
  line-height: 1.6;
}
.auth-footer p {
  margin: 4px 0;
}
.auth-footer a {
  color: inherit;
  text-decoration: none;
}
.auth-footer a:hover {
  text-decoration: underline;
}
h1 { margin: 0 0 20px; font-size: 28px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid #c8d0da;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #1769aa;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 14px;
  background: #1769aa;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.button.secondary { background: #eef2f6; color: #263445; }
.button.small { padding: 6px 10px; font-size: 13px; }
.error { color: #b42318; background: #fff0ed; padding: 10px 12px; border-radius: 6px; }
.admin-header { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 24px; }
.admin-header p { margin: 4px 0 0; color: #5f6b7a; }
.client-form { margin-bottom: 28px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border-top: 1px solid #e3e8ef; text-align: left; vertical-align: top; }
code { background: #eef2f6; padding: 2px 4px; border-radius: 4px; }
