* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #172033;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.topbar {
  align-items: center;
  background: #12355b;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
}

.topbar span {
  color: #c7d7e8;
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.topbar a {
  color: white;
  text-decoration: none;
}

.layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
}

.panel {
  background: white;
  border: 1px solid #dde4ef;
  border-radius: 8px;
  padding: 24px;
}

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

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

input,
select,
button {
  border: 1px solid #c9d3df;
  border-radius: 6px;
  display: block;
  font: inherit;
  margin-top: 7px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

button {
  background: #1d6fb8;
  border-color: #1d6fb8;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

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

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

.check input {
  margin: 0;
  min-height: auto;
  width: auto;
}

.result {
  background: #edf6ff;
  border: 1px solid #cfe6fb;
  border-radius: 6px;
  margin: 14px 0;
  padding: 12px;
}

.muted {
  color: #5f6f84;
}

@media (max-width: 820px) {
  .layout,
  .grid {
    grid-template-columns: 1fr;
  }

  .layout {
    padding: 16px;
  }
}

