:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #18202f;
  --muted: #677085;
  --line: #dde3ee;
  --brand: #176b87;
  --brand-dark: #0f5269;
  --good: #12715b;
  --bad: #b42318;
  --shadow: 0 10px 30px rgba(24, 32, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 980px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

.shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 16px;
}

button,
input,
select {
  font: inherit;
}

.primary {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

.primary:hover {
  background: var(--brand-dark);
}

.filters,
.summary,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input,
select {
  height: 34px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: white;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
}

.summary article {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: white;
}

.summary span {
  color: var(--muted);
  font-size: 12px;
}

.summary strong {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.summary article:last-child strong {
  font-size: 15px;
}

.status {
  min-height: 20px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

.status.error {
  color: var(--bad);
}

.panel {
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 12px;
}

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

th {
  color: var(--muted);
  background: #f3f6fa;
  font-weight: 700;
}

tbody tr:hover {
  background: #f8fbfd;
}

.positive {
  color: var(--good);
}

.negative {
  color: var(--bad);
}
