body { font-family: system-ui, sans-serif; margin: 0; background: #f4f7f5; color: #1a2e24; }
.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-box { background: #fff; padding: 2rem; border-radius: 12px; width: min(360px, 92vw); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.login-box label { display: block; margin: 1rem 0; }
.login-box input { width: 100%; padding: .5rem; box-sizing: border-box; }
.login-box button { width: 100%; margin-top: 1rem; padding: .6rem; background: #1f4d3a; color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
.error { color: #a00; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #1f4d3a; color: #fff; }
.top a { color: #d5efe0; }
.sync-status { margin: 1rem 1.5rem; padding: 1rem; background: #fff; border-radius: 8px; }
.sync-status.stale { border: 2px solid #c44; }
.warn { color: #a33; }
section { margin: 1rem 1.5rem 2rem; }
.card { background: #fff; padding: 1rem; margin-bottom: 1rem; border-radius: 8px; border: 1px solid #d5e8dc; }
.meta { font-size: .85rem; color: #666; }
.body { margin-top: .5rem; line-height: 1.5; white-space: pre-wrap; }
.folder-group { margin-bottom: 1rem; }
.folder-group > summary { cursor: pointer; margin: .3rem 0 .6rem; }
.inline-actions { margin-top: .75rem; }
.inline-actions button { width: auto; margin: 0; padding: .4rem .7rem; border-radius: 6px; border: 0; cursor: pointer; }
.btn-danger { background: #b03838; color: #fff; }
.cat-filter-bar { margin-bottom: 1rem; }
.cat-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.cat-btn, .cat-pill {
  display: inline-block;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #e8f2ec;
  color: #1f4d3a;
  text-decoration: none;
  font-size: .85rem;
  border: 1px solid #b9d4c4;
}
.cat-btn:hover, .cat-pill:hover { background: #1f4d3a; color: #fff; }
.cat-btn.active, .cat-pill.active {
  background: #1f4d3a;
  color: #fff;
  border-color: #1f4d3a;
}
.cat-pills { margin: .5rem 0 .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.cat-pill-auto { border-style: dashed; background: #f8fcf9; }
.cat-assign { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .5rem 0 .75rem; }
.cat-assign .meta { margin-right: .25rem; }
.cat-toggle {
  padding: .3rem .55rem;
  border-radius: 999px;
  background: #fff;
  color: #1f4d3a;
  border: 1px solid #b9d4c4;
  font-size: .85rem;
  cursor: pointer;
}
.cat-toggle:hover { background: #e8f2ec; }
.cat-toggle.active {
  background: #1f4d3a;
  color: #fff;
  border-color: #1f4d3a;
}
