/* App-local styles for habbits. The shared design system (palette, typography,
   forms, admin lists) comes from /assets/darkmatter.css. Only small layout
   extensions live here. */

.section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: 16px;
  margin: 0 0 0.5rem;
}

/* Inline record edit row: value + datetime + save on one line, aligned. */
.record-edit {
  align-items: flex-end;
  flex: 1;
  gap: 0.5rem;
}

.record-edit .form-field {
  margin: 0;
}

/* Each habit's edit form on the settings page, divided by a hairline. */
.settings-habit {
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.settings-habit .inline-form {
  margin-top: 0.5rem;
}

/* Day / habit groupings in record lists. */
.day-group {
  margin-bottom: 1rem;
}

.day-heading {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 0.25rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.25rem;
}

.habit-group {
  margin: 0.5rem 0 0.75rem;
}

.habit-group-name {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}
