:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #0b6bcb;
  --error-bg: #fef3f2;
  --error-ink: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.wrap {
  width: min(920px, calc(100% - 32px));
  margin: 48px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
}

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.hint, .foot, .meta {
  color: var(--muted);
  margin: 0 0 18px;
}

.foot { margin-top: 18px; font-size: 13px; }

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

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd6e0;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(11, 107, 203, 0.18);
  border-color: var(--accent);
}

button {
  justify-self: start;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #0857a6; }

.error {
  background: var(--error-bg);
  color: var(--error-ink);
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 16px 0;
}

.empty {
  padding: 28px 0;
  color: var(--muted);
}

.table-wrap { overflow-x: auto; margin-top: 12px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

.mid {
  max-width: 260px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .wrap { margin: 20px auto; padding: 20px; }
  h1 { font-size: 19px; }
}
