:root {
  color: #1f2933;
  background: #eef2f6;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #146c5f;
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 16px;
}

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

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  font-size: 17px;
}

#statusText {
  color: #52606d;
  margin-top: 6px;
}

.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

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

.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.switch {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

label {
  color: #334e68;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

input,
textarea {
  border: 1px solid #bcccdc;
  border-radius: 6px;
  color: #1f2933;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.compact {
  max-height: 360px;
  overflow: auto;
}

.row {
  border: 1px solid #edf2f7;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.row span {
  color: #52606d;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.row strong,
.row p {
  color: #1f2933;
  overflow-wrap: anywhere;
}

.empty {
  color: #829ab1;
  padding: 8px 0;
}

@media (max-width: 760px) {
  .shell {
    padding: 16px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .layout,
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
