:root {
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #172033;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #1769e0;
  color: white;
  cursor: pointer;
  padding: 10px 14px;
}

button.secondary {
  background: #e7ebf3;
  color: #172033;
}

button.danger {
  background: #c93838;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.topbar h1 {
  font-size: 26px;
  margin: 0;
}

.topbar p {
  color: #637089;
  margin: 6px 0 0;
}

.panel {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 18px;
}

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

.grid {
  display: grid;
  gap: 12px;
}

.cols {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.inline {
  display: flex;
  gap: 10px;
}

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

input,
select,
textarea {
  border: 1px solid #ccd5e3;
  border-radius: 6px;
  box-sizing: border-box;
  color: #172033;
  min-width: 0;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.check {
  align-items: center;
  display: flex;
  gap: 8px;
}

.check input {
  width: auto;
}

.table {
  margin-top: 14px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e7ebf3;
  font-size: 13px;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #536178;
  font-weight: 600;
}

.muted {
  color: #7b8799;
}

.ok {
  color: #168348;
}

.bad {
  color: #c93838;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .shell {
    padding: 14px;
  }

  .inline {
    display: grid;
  }
}
