:root {
  --blue: #387ed1;
  --green: #2ca24c;
  --red: #d1453b;
  --border: #e0e2e7;
  --bg: #f7f8fa;
  --text: #1a1a1a;
  --muted: #7a7f8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

header h1 { font-size: 18px; margin: 0; }

.user-box { display: flex; align-items: center; gap: 12px; font-size: 14px; }

main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.center { text-align: center; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:disabled { background: #a9c3e3; cursor: not-allowed; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }

.alert {
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.alert-error { background: #fdecea; border: 1px solid var(--red); color: #7a2822; }
.alert-success { background: #e8f6ec; border: 1px solid var(--green); color: #1c5c30; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.spacer { flex: 1; }
.checkbox-label { font-size: 14px; display: flex; align-items: center; gap: 6px; }

.status { font-size: 13px; color: var(--muted); margin-bottom: 8px; min-height: 18px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-align: left;
}

th { background: #fafbfc; font-weight: 600; }

td input[type="number"] {
  width: 90px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

td select {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

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

.results { margin-top: 16px; }
.result-row {
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.result-success { background: #e8f6ec; color: #1c5c30; }
.result-error { background: #fdecea; color: #7a2822; }
