* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #172033;
  font-family: Segoe UI, Arial, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #172033;
  color: white;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

header a {
  color: white;
}

main {
  width: min(1280px, calc(100vw - 32px));
  margin: 24px auto;
}

section {
  margin-bottom: 24px;
  padding: 18px;
  background: white;
  border: 1px solid #d9e0ef;
  border-radius: 8px;
}

h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #46536b;
}

input,
select,
button {
  min-height: 34px;
  border: 1px solid #c8d1e3;
  border-radius: 6px;
  padding: 6px 9px;
  font: inherit;
}

button {
  cursor: pointer;
  background: #1d6fd8;
  color: white;
  border-color: #1d6fd8;
}

button.danger {
  background: #c93434;
  border-color: #c93434;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.inline-form {
  margin-top: 12px;
}

.grid-form .wide {
  grid-column: span 3;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 9px;
  border-bottom: 1px solid #e4e9f3;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  color: #5d6980;
}

code {
  font-family: Consolas, monospace;
}

.small {
  width: 170px;
  margin-bottom: 5px;
}

.tiny {
  width: 72px;
}

.muted {
  margin-top: 5px;
  color: #6a758a;
  font-size: 12px;
  word-break: break-all;
}

.empty {
  color: #6a758a;
  text-align: center;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-box {
  width: 360px;
  padding: 24px;
  background: white;
  border: 1px solid #d9e0ef;
  border-radius: 8px;
}

.login-box h1 {
  margin-top: 0;
}

.login-box form {
  display: grid;
  gap: 12px;
}

.error {
  color: #b3261e;
}
