* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f4f8;
  color: #1e293b;
  min-height: 100vh;
  padding: 16px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e40af;
  text-align: center;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #334155;
}

.input-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .input-section {
    grid-template-columns: 1fr;
  }
}

.input-group {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #2563eb;
}

button {
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

button:hover {
  background: #1d4ed8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.8rem;
}

.tag .del-btn {
  background: none;
  color: #94a3b8;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.tag .del-btn:hover {
  color: #ef4444;
  background: none;
}

.map-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.summary-item {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 10px;
  color: #475569;
}

.summary-item span {
  font-weight: 700;
  color: #2563eb;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.85rem;
}

thead th {
  background: #1e40af;
  color: #fff;
  padding: 8px 12px;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

thead th:first-child {
  text-align: left;
  min-width: 100px;
}

tbody tr:nth-child(even) {
  background: #f8fafc;
}

tbody td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
}

.check-cell {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.check-cell:hover {
  background: #dbeafe;
}

.check-cell.done {
  background: #bbf7d0;
  color: #166534;
  font-size: 1.1rem;
}

.check-cell.done:hover {
  background: #86efac;
}

.empty-msg {
  text-align: center;
  color: #94a3b8;
  padding: 20px;
  font-size: 0.9rem;
}
