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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.5rem;
}

nav { display: flex; gap: 0.5rem; }

nav button {
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
}

nav button.active {
  background: #1a1a1a;
  color: white;
  border-color: #1a1a1a;
}

#count { color: #666; font-size: 0.9rem; }

.capture-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.capture-meta { font-size: 0.75rem; color: #888; margin-bottom: 0.5rem; }

.capture-text {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.capture-url { margin-top: 0.5rem; font-size: 0.8rem; }
.capture-url a { color: #0070f3; }

.decision-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  background: white;
  transition: background 0.1s;
}

.btn:hover { background: #f0f0f0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-discard   { border-color: #e53e3e; color: #e53e3e; }
.btn-task      { border-color: #3182ce; color: #3182ce; }
.btn-note      { border-color: #38a169; color: #38a169; }
.btn-evergreen { border-color: #805ad5; color: #805ad5; }

.capture-card.decided { opacity: 0.4; transition: opacity 0.3s; }

.title-input-row { display: none; margin-top: 0.5rem; gap: 0.5rem; align-items: center; }
.title-input-row.visible { display: flex; }

.title-input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85rem;
  min-width: 200px;
}

.btn-confirm { border-color: #38a169; color: #38a169; }

.note-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.note-row a { color: #0070f3; text-decoration: none; }

#loading, #empty {
  text-align: center;
  color: #666;
  padding: 3rem;
}
