* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}
.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.nav a {
  color: #155eef;
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 6px;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 700;
}
.panel {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(25, 35, 45, .06);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8d2dc;
  border-radius: 6px;
  font-size: 14px;
}
button, .button {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: #155eef;
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.button.small, button.small {
  padding: 6px 9px;
  font-size: 12px;
}
.button.danger, button.danger {
  background: #b42318;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.inline {
  display: inline;
}
.muted {
  color: #667085;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  padding: 14px;
}
.stat strong {
  display: block;
  font-size: 24px;
}
.button.secondary {
  background: #52616f;
}
.alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.alert.error {
  background: #ffe8e8;
  color: #8a1f1f;
}
.alert.ok {
  background: #e8f7ee;
  color: #155f35;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #fff;
}
th, td {
  border-bottom: 1px solid #e2e8ef;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
code {
  background: #eef2f6;
  border-radius: 4px;
  padding: 2px 5px;
}
