:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: #f3f5f8;
  color: #18202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  width: min(980px, calc(100vw - 32px));
  margin: 32px auto;
}

.panel {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(24, 32, 42, 0.08);
  padding: 28px;
}

.header,
.latest-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: #2864b4;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.badge {
  border: 1px solid #ccd6e2;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #4a5665;
  background: #f7f9fb;
}

.badge.ok {
  color: #0f6f43;
  background: #eaf8f0;
  border-color: #bde8ce;
}

.badge.err {
  color: #9a251f;
  background: #fff0ee;
  border-color: #f2c5c0;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3a4654;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: #18202a;
}

textarea,
.check,
button[type="submit"] {
  grid-column: 1 / -1;
}

.check {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
}

.check input {
  width: 18px;
  height: 18px;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: #2864b4;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#refresh {
  color: #2864b4;
  background: #eaf1fb;
  padding: 8px 12px;
}

.progress-wrap {
  margin-top: 18px;
}

.progress {
  height: 10px;
  overflow: hidden;
  background: #e6ebf1;
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #1f9d62;
  transition: width 160ms ease;
}

#progressText {
  margin: 8px 0 0;
  color: #4a5665;
  font-size: 13px;
}

.latest {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e3e8ef;
}

pre {
  overflow: auto;
  min-height: 120px;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 6px;
  background: #101923;
  color: #dce7f2;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .shell {
    width: calc(100vw - 20px);
    margin: 10px auto;
  }

  .panel {
    padding: 18px;
  }

  .header,
  .latest-title,
  .form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
