:root {
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #17212f;
  background: #eef4f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100vw - 36px));
  margin: 28px auto 60px;
  display: grid;
  gap: 18px;
}

.panel {
  background: #fff;
  border: 1px solid #dce7ee;
  border-radius: 8px;
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin-top: 0;
}

p {
  color: #627184;
}

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

.field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.field span {
  color: #526174;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfdce6;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #19ad57;
  box-shadow: 0 0 0 3px rgba(25, 173, 87, 0.14);
}

.checks {
  display: flex;
  gap: 24px;
  margin: 16px 0;
}

button {
  border: 1px solid #cfdce6;
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  cursor: pointer;
}

button.primary {
  color: #fff;
  border-color: #19ad57;
  background: #19ad57;
}

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

#message {
  color: #526174;
}

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

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

th,
td {
  text-align: left;
  border-bottom: 1px solid #e4edf3;
  padding: 12px;
  white-space: nowrap;
}

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

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    display: grid;
  }
}
