* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f7fb;
  color: #1f2d3d;
  line-height: 1.6;
}
header {
  background: #1565c0;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
header .brand { font-weight: 700; font-size: 18px; }
header nav a {
  color: #fff; text-decoration: none;
  margin-left: 14px; font-size: 14px; opacity: .9;
}
header nav a:hover { opacity: 1; text-decoration: underline; }
main { max-width: 880px; margin: 20px auto; padding: 0 14px; }
.card {
  background: #fff; border-radius: 10px; padding: 18px;
  margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card h2 { margin: 0 0 10px; font-size: 18px; }
.meta { color: #607d8b; font-size: 13px; margin-bottom: 8px; }
.content { white-space: pre-wrap; font-size: 14px; }
.members { margin-top: 10px; font-size: 14px; color: #37474f; }
.empty { color: #90a4ae; text-align: center; padding: 30px 0; }
.msg { padding: 10px 14px; border-radius: 6px; margin-top: 14px; font-size: 14px; }
.msg.err { background: #ffebee; color: #c62828; }
input, select, textarea {
  width: 100%; padding: 8px 10px;
  border: 1px solid #cfd8dc; border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; color: #546e7a; margin: 12px 0 4px; }
.btn {
  display: inline-block; padding: 8px 16px;
  border-radius: 6px; border: none;
  background: #1565c0; color: #fff;
  font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #0d47a1; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.gray { background: #78909c; }
.btn.red { background: #e53935; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.login-card { max-width: 420px; margin: 60px auto; }
.task-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid #eceff1;
}
.task-row:last-child { border-bottom: none; }
.task-row .t { font-weight: 600; }
.task-row .actions { display: flex; gap: 6px; flex-shrink: 0; }
footer { text-align: center; color: #90a4ae; font-size: 12px; padding: 24px 0; }
@media (max-width: 600px) {
  header { flex-direction: column; align-items: flex-start; }
  header nav a { margin-left: 0; margin-right: 14px; }
  .task-row { flex-direction: column; align-items: flex-start; }
}