:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e2e7f0;
  display: flex;
  justify-content: space-between;
  padding: 16px 28px;
}

.brand {
  color: #172033;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

a {
  color: #0b63ce;
}

.container {
  margin: 0 auto;
  max-width: 1040px;
  padding: 28px;
}

.panel {
  background: #ffffff;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 24px;
}

.narrow {
  max-width: 420px;
}

h1,
h2 {
  margin: 0 0 18px;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 20px;
}

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

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

th,
td {
  border-bottom: 1px solid #edf1f7;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #536174;
  font-size: 13px;
  font-weight: 600;
}

.form,
.upload {
  display: grid;
  gap: 16px;
}

label {
  color: #536174;
  display: grid;
  font-size: 14px;
  gap: 7px;
}

input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
}

button,
.button {
  background: #0b63ce;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.danger {
  background: #c2352b;
}

.inline {
  display: inline;
}

.inline button {
  background: transparent;
  color: #0b63ce;
  padding: 0;
}

.flash {
  background: #fff7db;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.empty {
  color: #536174;
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .container {
    padding: 18px;
  }

  .panel {
    padding: 18px;
  }
}
