:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --subtle: #f6f8fa;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --brand: #0969da;
  --brand-strong: #0550ae;
  --brand-subtle: #ddf4ff;
  --primary: #1f883d;
  --primary-hover: #1a7f37;
  --danger: #d1242f;
  --shadow: 0 8px 24px rgba(31, 35, 40, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

input {
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
}

input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.18);
}

.ghost-btn,
.file-trigger,
button.primary,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 12px;
  background: var(--subtle);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ghost-btn:hover,
.file-trigger:hover,
.pagination button:hover:not(:disabled) {
  border-color: #b8c0ca;
  background: #eef1f4;
}

.ghost-btn:focus-visible,
.file-trigger:focus-visible,
button.primary:focus-visible,
.pagination button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

button.primary:hover:not(:disabled) { background: var(--primary-hover); }
