:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --header1: #1d4ed8;
  --header2: #38bdf8;
}

* {
  box-sizing: border-box;
}

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

.site-header {
  background: linear-gradient(135deg, var(--header1), var(--header2));
  color: white;
  padding: 40px 24px;
}

.site-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.site-header p {
  margin: 0;
  color: #e0f2fe;
}

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.panel h2 {
  margin-top: 0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

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

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;
}

#status {
  margin: 8px 0 12px;
  color: var(--muted);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

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

th {
  background: #eff6ff;
  cursor: pointer;
}

th:first-child,
td:first-child {
  text-align: left;
}

tbody tr:hover {
  background: #f8fafc;
}