:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f6fa;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  background: #172033;
  color: #fff;
}

button:hover { opacity: .9; }

.app {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

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

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
}

.subtitle {
  margin: 12px 0 0;
  color: #68738a;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #566176;
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a7b0c2;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.card,
.panel {
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(23, 32, 51, .05);
}

.card {
  padding: 20px;
}

.card span {
  display: block;
  color: #738098;
  font-size: 13px;
}

.card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.panel { padding: 22px; }

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

h2 {
  margin: 0;
  font-size: 22px;
}

.panel-head p {
  margin: 6px 0 0;
  color: #738098;
}

.count {
  color: #738098;
}

.message {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f2f5f9;
  color: #5d6980;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #718099;
  font-size: 13px;
}

td {
  font-size: 14px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding: 0 4px;
  color: #8290a5;
  font-size: 12px;
}

.error-detail {
  flex-basis: 100%;
  display: block;
  color: #9aa4b5;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .hero { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; }
}

@media (max-width: 460px) {
  .app { width: min(100% - 20px, 1100px); padding: 24px 0; }
  .summary-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
