:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #d9dee7;
  --text: #17202e;
  --muted: #667085;
  --accent: #1769aa;
  --accent-dark: #0e4f84;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.panel,
.output {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

h1,
h2 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

.muted,
.status {
  color: var(--muted);
}

.form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
button {
  min-height: 42px;
  border-radius: 6px;
  font: inherit;
}

input,
select {
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
}

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

button {
  border: 0;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

.toolbar button {
  background: #2d3748;
}

.report {
  line-height: 1.68;
  white-space: pre-wrap;
}

.report.empty {
  color: var(--muted);
}

.posts {
  display: grid;
  gap: 12px;
}

.post {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.post a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.post-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
}

.status.error {
  color: #b42318;
}

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

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
