* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1c1e21;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #1c1e21;
  color: #fff;
  flex-wrap: wrap;
}
header h1 { font-size: 18px; margin: 0; }
#status-bar { font-size: 13px; color: #cfd3d8; }
#status-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.ok { background: #42b72a; }
.dot.warn { background: #f7b928; }
.dot.bad { background: #e41e3f; }

main { max-width: 1400px; margin: 24px auto; padding: 0 16px; }
.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}
.card-header { display: flex; justify-content: space-between; align-items: center; }
h2 { font-size: 16px; margin: 4px 0 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e4e6eb; white-space: nowrap; }
th { color: #65676b; font-weight: 600; }
td.suffix-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge.success { background: #d9f2d0; color: #1d6608; }
.badge.failed { background: #fadde0; color: #a8051a; }
.badge.accepted { background: #fdeeca; color: #8a5a00; }
.badge.none { background: #e4e6eb; color: #65676b; }

button {
  background: #1877f2; color: #fff; border: none; border-radius: 6px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
button:hover { background: #166fe0; }
button.secondary { background: #e4e6eb; color: #1c1e21; }
button.secondary:hover { background: #d8dadf; }
button.danger { background: #e41e3f; }
button.small { padding: 3px 8px; font-size: 12px; margin-right: 4px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
label { display: flex; flex-direction: column; font-size: 13px; color: #65676b; gap: 4px; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input, select {
  padding: 8px 10px; border: 1px solid #ccd0d5; border-radius: 6px; font-size: 14px;
}
.form-actions { display: flex; gap: 8px; }
.errors { color: #e41e3f; font-size: 13px; margin-bottom: 8px; }
.muted { color: #65676b; font-size: 13px; }
.hidden { display: none; }
