* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background: #fafafa;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #222;
  color: #fff;
}
header h1 { margin: 0; font-size: 1.2rem; }
header a { color: #fff; margin-right: 1rem; }
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}
main.narrow { max-width: 320px; margin-top: 4rem; }
h2 { margin-top: 2rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #ddd; }
form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
input { padding: 0.5rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.5rem 1rem; font-size: 0.95rem; cursor: pointer; border: 1px solid #333; background: #fff; border-radius: 4px; }
button:hover { background: #eee; }
button:disabled { opacity: 0.4; cursor: default; }
.msg { padding: 0.5rem; background: #dff0d8; border-radius: 4px; }
.msg.error { background: #f2dede; color: #a94442; }
.error { color: #a94442; }
.search-box { position: relative; max-width: 480px; }
.suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
}
.suggestions li { padding: 0.5rem; cursor: pointer; }
.suggestions li:hover { background: #eee; }
#lineup-list { list-style: none; padding: 0; max-width: 480px; }
#lineup-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  margin-bottom: 0.25rem;
  background: #fff;
  border-radius: 4px;
  cursor: grab;
}
#lineup-list li .name { flex: 1; }
.handle { color: #999; }
#moderator-current { max-width: 480px; margin-bottom: 1rem; }
