:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

.site-header {
  background:
    linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: white;
  padding: 42px 24px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  opacity: 0.85;
}

.lead {
  margin-top: 12px;
  max-width: 760px;
  opacity: 0.9;
}

.container {
  width:
    min(1400px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.control-panel,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 8px 24px rgba(15,23,42,.06);
}

.control-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 20px;
}

label {
  display: flex;
  gap: 8px;
  align-items: center;
}

select,
button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font: inherit;
}

button {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  cursor: pointer;
}

.card {
  padding: 20px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  background: #f9fafb;
  text-align: left;
}

th.sortable {
  cursor: pointer;
  color: var(--accent);
}

td.number,
th.number {
  text-align: right;
}