* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #14151a;
  color: #eaeaea;
  margin: 0;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 100vh;
}
.hidden { display: none !important; }

.screen.card, .card {
  background: #1e1f26;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.card.small { padding: 14px; font-size: 14px; }

#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
}
#login-screen .card { width: 100%; max-width: 320px; }

h1 { font-size: 20px; margin: 0 0 12px; }

input, select, button {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #101116;
  color: #eaeaea;
  font-size: 15px;
}

button {
  background: #4d7cfe;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: #3a67e0; }

.link-btn {
  width: auto;
  background: none;
  color: #8fa5ff;
  text-decoration: underline;
  padding: 0;
  margin-left: 12px;
}

.error { color: #ff6b6b; font-size: 13px; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
header div { font-size: 14px; }

.add-task {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.add-task input { flex: 2; }
.add-task select { flex: 1; }
.add-task button { flex: 0 0 80px; }

code {
  display: block;
  background: #101116;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  word-break: break-all;
  margin: 6px 0;
}
.hint { color: #999; font-size: 12px; }

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e1f26;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.task-item.done { opacity: 0.5; text-decoration: line-through; }
.task-item .title { flex: 1; }
.task-item .assignee {
  font-size: 12px;
  background: #2a2c36;
  padding: 3px 8px;
  border-radius: 12px;
}
.task-item .del-btn {
  width: auto;
  background: transparent;
  color: #ff6b6b;
  font-weight: bold;
  padding: 0 6px;
}
