:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #6b7280;
  --line: #e4e9f2;
  --line-strong: #cfd8e6;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fbfcfe;
  color: var(--text);
}

input:focus,
select:focus {
  outline: none;
  border-color: #8db1ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

button {
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

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

button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line-strong);
}

button.secondary:hover {
  background: #f8fafc;
  border-color: #b9c5d8;
}

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

button.danger:hover {
  background: #fff5f5;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.message {
  min-height: 20px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.message.error {
  color: var(--danger);
}

.hidden {
  display: none;
}
