:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #f6f7f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 22px;
}

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

h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 650;
}

p {
  margin: 0;
  color: #667085;
}

.status {
  min-width: 82px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #6941c6;
  background: #f4f3ff;
  font-size: 13px;
}

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

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

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

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  color: #111827;
  background: #fff;
}

textarea {
  resize: vertical;
}

.checks,
.mode,
.actions,
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.checks label,
.mode label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checks input,
.mode input {
  width: auto;
  min-height: auto;
}

button {
  height: 38px;
  border: 1px solid #98a2b3;
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #f9fafb;
}

.primary {
  border-color: #1570ef;
  background: #1570ef;
  color: #fff;
}

.primary:hover {
  background: #175cd3;
}

.hidden {
  display: none;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 14px;
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid #eaecf0;
  padding-top: 12px;
}

.columns label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
}

.columns input {
  width: auto;
  min-height: auto;
}

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

  header,
  .grid,
  .columns {
    grid-template-columns: 1fr;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
