* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  margin: 0; background: #fafafa; color: #1a1a1a;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; background: #fff; border-bottom: 1px solid #eee;
}
.topbar .logo { font-weight: 600; font-size: 18px; text-decoration: none; color: #1a1a1a; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar nav a { color: #555; text-decoration: none; }
.topbar nav a:hover { color: #000; }
.topbar nav .user { color: #888; }

main { padding: 24px; max-width: 1400px; margin: 0 auto; }

h1 { font-size: 22px; margin: 0 0 16px; }
.hint { color: #777; font-size: 14px; margin-bottom: 16px; }

.filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
  background: #fff; padding: 12px; border: 1px solid #eee; border-radius: 8px;
}
.filters select, .filters button, .filters input {
  padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; background: #fff;
}
.filters button { cursor: pointer; background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.count { color: #888; font-size: 13px; margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; background: #fff;
        border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
table th, table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 14px; }
table th { background: #fafafa; font-weight: 500; color: #555; }
table tr:last-child td { border-bottom: none; }
table tr.overdue td { background: #fff5f5; }
table tr.overdue td:first-child { border-left: 3px solid #d33; }
table tr.done td { color: #aaa; text-decoration: line-through; }

.title { font-weight: 500; }
.unmatched { color: #b85; font-style: italic; }
.badge { display: inline-block; padding: 1px 6px; border-radius: 3px;
         font-size: 11px; margin-left: 6px; }
.badge.low { background: #fff3cd; color: #855; }

.actions form button {
  padding: 4px 8px; font-size: 12px; border: 1px solid #ddd; border-radius: 4px;
  background: #fff; cursor: pointer; margin-right: 4px;
}
.actions form button:hover { background: #f0f0f0; }

.login-box { max-width: 380px; margin: 80px auto; background: #fff;
             padding: 32px; border-radius: 12px; border: 1px solid #eee; text-align: center; }
.login-box h1 { margin-top: 0; }

.members input { padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.members button { padding: 4px 10px; }
