* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #17202a;
  background: #eef2f5;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

p {
  line-height: 1.5;
}

.status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-stack span,
.legend span {
  border: 1px solid #9baabc;
  background: #ffffff;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
}

.notice,
.panel,
.candidate-card {
  border: 1px solid #c5cfda;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}

dt {
  color: #5b6d80;
  font-size: 12px;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.flags,
.muted {
  color: #5b6d80;
}

.thought-headline {
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid #d8e0e8;
  padding: 8px;
  text-align: left;
}

canvas {
  width: 100%;
  height: auto;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.legend b {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
}

.warning-panel {
  border-color: #b8873a;
}
