:root {
  --surface: #12141a;
  --card: #1b1e27;
  --line: #2c3140;
  --text: #f4f1ea;
  --muted: #a7adbb;
  --accent: #ff5a1f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font: 16px/1.5 "Segoe UI", sans-serif;
}

header, main { width: min(960px, calc(100% - 32px)); margin: 0 auto; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 8px;
}

.brand { font-size: 28px; font-weight: 700; letter-spacing: 0.04em; }
.brand span { color: var(--accent); }

nav a { color: var(--accent); margin-left: 16px; }

h1, h2 { font-weight: 650; }
h2 { margin: 0 0 12px; font-size: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
}

label { display: block; margin: 10px 0 4px; color: var(--muted); }

input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

button, .button {
  display: inline-block;
  margin-top: 14px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.muted { color: var(--muted); }
.error { color: #ff8d6a; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

.quota-num { font-size: 28px; color: var(--accent); margin: 0; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--text);
}
.check input { width: auto; margin: 0; }

td button { margin-top: 0; margin-left: 8px; padding: 6px 10px; }
td input[type="number"] { width: 5rem; display: inline-block; }
